Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 2be7c78

Browse files
committed
Fix PMI and PMI2 builds
(cherry picked from commit open-mpi/ompi@2d2ea63)
1 parent 8516895 commit 2be7c78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/opal_check_pmi.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ AC_DEFUN([OPAL_CHECK_PMI_LIB],
4141
AC_MSG_CHECKING([for $3.h in $1/include])
4242
AS_IF([test -f $1/include/$3.h],
4343
[AC_MSG_RESULT([found])
44-
opal_check_$3_mycppflags="-I$3/include"],
44+
opal_check_$3_mycppflags="-I$1/include"],
4545
[AC_MSG_RESULT([not found])
4646
AC_MSG_CHECKING([for $3.h in $1/include/slurm])
4747
AS_IF([test -f $1/include/slurm/$3.h],
@@ -76,7 +76,7 @@ AC_DEFUN([OPAL_CHECK_PMI_LIB],
7676
[opal_check_$3_lib_happy=no])],
7777
[opal_check_$3_lib_happy=no
7878
AC_MSG_RESULT([not found])])
79-
79+
8080
# check for presence of lib64 directory - if found, see if the
8181
# desired library is present and matches our build requirements
8282
files=`ls $2/lib64/lib$3.* 2> /dev/null | wc -l`
@@ -195,12 +195,12 @@ AC_DEFUN([OPAL_CHECK_PMI],[
195195
196196
AS_IF([test "$opal_enable_pmi2" = "yes"],
197197
[AS_IF([test "$default_pmi_loc" = "no" || test "$slurm_pmi_found" = "yes"],
198-
[opal_pmi2_CPPFLAGS="$pmi_CPPFLAGS"
198+
[opal_pmi2_CPPFLAGS="$pmi2_CPPFLAGS"
199199
AC_SUBST(opal_pmi2_CPPFLAGS)])
200200
AS_IF([test "$default_pmi_libloc" = "no" || test "$slurm_pmi_found" = "yes"],
201-
[opal_pmi2_LDFLAGS="$pmi_LDFLAGS"
201+
[opal_pmi2_LDFLAGS="$pmi2_LDFLAGS"
202202
AC_SUBST(opal_pmi2_LDFLAGS)
203-
opal_pmi2_rpath="$pmi_rpath"
203+
opal_pmi2_rpath="$pmi2_rpath"
204204
AC_SUBST(opal_pmi2_rpath)])])
205205
206206
# since support was explicitly requested, then we should error out

0 commit comments

Comments
 (0)