#! /bin/sh
##
## Copyright (C) by Argonne National Laboratory
##     See COPYRIGHT in top-level directory
##

# Check that we are using the simple PMI implementation
# (Selecting multiple PM's may require incompatible PMI implementations 
# (e.g., gforker and SMPD).


if test -z "$PM_REQUIRES_PMI" ; then
    if test "$with_pmi" = "pmi2/simple" -o "$with_pmi" = "simple" ; then
        PM_REQUIRES_PMI=$with_pmi
    else
	PM_REQUIRES_PMI=simple
    fi
elif test "$PM_REQUIRES_PMI" != "simple" -a "$PM_REQUIRES_PMI" != "pmi2/simple" ; then
    echo "hydra requires the \"simple\" or \"pmi2\" PMI implementation; \"$PM_REQUIRES_PMI\" has already been selected"
    exit 1
fi

