Skip to content

Commit

Permalink
Patch from Gilles - modify detection of PMIx version for external lib…
Browse files Browse the repository at this point in the history
…raries
  • Loading branch information
Ralph Castain committed May 30, 2016
1 parent d2abff5 commit 7b115a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions config/opal_check_pmi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
CPPFLAGS=$opal_pmix_ext_CPPFLAGS
LDFLAGS=$opal_pmix_ext_LDFLAGS
LIBS=$opal_pmix_ext_LIBS
LD_LIBRARY_PATH=$pmix_ext_install_dir/lib
LD_LIBRARY_PATH=$pmix_ext_install_dir/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
AC_MSG_CHECKING([PMIx library version])
AC_TRY_RUN([
AC_RUN_IFELSE([
AC_LANG_SOURCE([
#include <stdio.h>
#include <stdlib.h>
#include <pmix.h>
Expand All @@ -302,15 +304,17 @@ int main(int argc, char **argv)
return 0;
}
], [
])], [
eval opal_external_pmix_version=`cat conftestval`
AC_MSG_RESULT([$opal_external_pmix_version])
], [
LD_LIBRARY_PATH=$opal_pmix_LD_LIBRARY_PATH_save
export LD_LIBRARY_PATH
opal_external_pmix_happy="no"
AC_MSG_ERROR([External PMIx support requested but could not build/run a test program. Aborting])
], [
LD_LIBRARY_PATH=$opal_pmix_LD_LIBRARY_PATH_save
export LD_LIBRARY_PATH
opal_external_pmix_happy="no"
AC_MSG_ERROR([External PMIx disabled for cross compile. Aborting])
])
Expand Down

0 comments on commit 7b115a9

Please sign in to comment.