@@ -859,6 +859,32 @@ AC_DEFUN([PMIX_SETUP_CORE],[
859859 AC_SUBST(pmixlibdir)
860860 AC_SUBST(pmixincludedir)
861861
862+ # ###########################################################################
863+ # setup "make check"
864+ # ###########################################################################
865+ PMIX_BUILT_TEST_PREFIX= $PMIX_top_builddir
866+ AC_SUBST(PMIX_BUILT_TEST_PREFIX)
867+ # expose the mca component library paths in the build system
868+ pathfile= $PMIX_top_srcdir /config/mca_library_paths.txt
869+ PMIX_COMPONENT_LIBRARY_PATHS= ` cat $pathfile `
870+ AC_SUBST(PMIX_COMPONENT_LIBRARY_PATHS)
871+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests00.pl], [chmod +x test/run_tests00.pl])
872+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests01.pl], [chmod +x test/run_tests01.pl])
873+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests02.pl], [chmod +x test/run_tests02.pl])
874+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests03.pl], [chmod +x test/run_tests03.pl])
875+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests04.pl], [chmod +x test/run_tests04.pl])
876+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests05.pl], [chmod +x test/run_tests05.pl])
877+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests06.pl], [chmod +x test/run_tests06.pl])
878+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests07.pl], [chmod +x test/run_tests07.pl])
879+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests08.pl], [chmod +x test/run_tests08.pl])
880+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests09.pl], [chmod +x test/run_tests09.pl])
881+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests10.pl], [chmod +x test/run_tests10.pl])
882+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests11.pl], [chmod +x test/run_tests11.pl])
883+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests12.pl], [chmod +x test/run_tests12.pl])
884+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests13.pl], [chmod +x test/run_tests13.pl])
885+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests14.pl], [chmod +x test/run_tests14.pl])
886+ AC_CONFIG_FILES(pmix_config_prefix[test/run_tests15.pl], [chmod +x test/run_tests15.pl])
887+
862888 # ###########################################################################
863889 # final output
864890 # ###########################################################################
@@ -920,7 +946,7 @@ AC_DEFUN([PMIX_DEFINE_ARGS],[
920946 AC_ARG_ENABLE([embedded-mode],
921947 [AC_HELP_STRING([--enable-embedded-mode],
922948 [Using --enable-embedded-mode causes PMIx to skip a few configure checks and install nothing. It should only be used when building PMIx within the scope of a larger package.])])
923- AS_IF([test ! -z " $enable_embedded_mode " && test " $enable_embedded_mode " = " yes" ],
949+ AS_IF([test " $enable_embedded_mode " = " yes" ],
924950 [pmix_mode= embedded
925951 pmix_install_primary_headers= no
926952 AC_MSG_RESULT([yes])],
@@ -1207,6 +1233,24 @@ if test "$WANT_PYTHON_BINDINGS" = "1"; then
12071233 fi
12081234fi
12091235
1236+ # see if they want to disable non-RTLD_GLOBAL dlopen
1237+ AC_MSG_CHECKING([if want to support dlopen of non-global namespaces])
1238+ AC_ARG_ENABLE([nonglobal-dlopen],
1239+ AC_HELP_STRING([--enable-nonglobal-dlopen],
1240+ [enable non-global dlopen (default: enabled)]))
1241+ if test " $enable_nonglobal_dlopen " == " no" ; then
1242+ AC_MSG_RESULT([no])
1243+ pmix_need_libpmix=0
1244+ else
1245+ AC_MSG_RESULT([yes])
1246+ pmix_need_libpmix=1
1247+ fi
1248+
1249+ # if someone enables embedded mode but doesn't want to install the
1250+ # devel headers, then default nonglobal-dlopen to false
1251+ AS_IF([test -z " $enable_nonglobal_dlopen " && test " x$pmix_mode " = " xembedded" && test $WANT_INSTALL_HEADERS -eq 0 && test $pmix_need_libpmix -eq 1],
1252+ [pmix_need_libpmix= 0])
1253+
12101254])dnl
12111255
12121256# This must be a standalone routine so that it can be called both by
@@ -1222,6 +1266,7 @@ AC_DEFUN([PMIX_DO_AM_CONDITIONALS],[
12221266 AM_CONDITIONAL([WANT_PRIMARY_HEADERS], [test " x$pmix_install_primary_headers " = " xyes" ])
12231267 AM_CONDITIONAL(WANT_INSTALL_HEADERS, test " $WANT_INSTALL_HEADERS " = 1)
12241268 AM_CONDITIONAL(WANT_PMI_BACKWARD, test " $WANT_PMI_BACKWARD " = 1)
1269+ AM_CONDITIONAL(NEED_LIBPMIX, [test " $pmix_need_libpmix " = " 1" ])
12251270 ])
12261271 pmix_did_am_conditionals= yes
12271272])dnl
0 commit comments