File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -280,10 +280,12 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
280
280
CPPFLAGS=$opal_pmix_ext_CPPFLAGS
281
281
LDFLAGS=$opal_pmix_ext_LDFLAGS
282
282
LIBS=$opal_pmix_ext_LIBS
283
- LD_LIBRARY_PATH=$pmix_ext_install_dir/lib
283
+ LD_LIBRARY_PATH=$pmix_ext_install_dir/lib:$LD_LIBRARY_PATH
284
+ export LD_LIBRARY_PATH
284
285
285
286
AC_MSG_CHECKING ( [ PMIx library version] )
286
- AC_TRY_RUN ( [
287
+ AC_RUN_IFELSE ( [
288
+ AC_LANG_SOURCE ( [
287
289
#include <stdio.h>
288
290
#include <stdlib.h>
289
291
#include <pmix.h>
@@ -302,15 +304,17 @@ int main(int argc, char **argv)
302
304
303
305
return 0;
304
306
}
305
- ] , [
307
+ ] ) ] , [
306
308
eval opal_external_pmix_version=`cat conftestval`
307
309
AC_MSG_RESULT ( [ $opal_external_pmix_version] )
308
310
] , [
309
311
LD_LIBRARY_PATH=$opal_pmix_LD_LIBRARY_PATH_save
312
+ export LD_LIBRARY_PATH
310
313
opal_external_pmix_happy="no"
311
314
AC_MSG_ERROR ( [ External PMIx support requested but could not build/run a test program. Aborting] )
312
315
] , [
313
316
LD_LIBRARY_PATH=$opal_pmix_LD_LIBRARY_PATH_save
317
+ export LD_LIBRARY_PATH
314
318
opal_external_pmix_happy="no"
315
319
AC_MSG_ERROR ( [ External PMIx disabled for cross compile. Aborting] )
316
320
] )
You can’t perform that action at this time.
0 commit comments