Skip to content

Commit 55ae676

Browse files
committed
configury: use --with-pmix option instead of --with-external-pmix
1 parent d416c7f commit 55ae676

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

config/opal_check_pmi.m4

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,25 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
232232
233233
OPAL_VAR_SCOPE_PUSH([pmix_ext_install_dir])
234234
235-
AC_ARG_WITH([external-pmix],
236-
[AC_HELP_STRING([--with-external-pmix(=DIR)],
237-
[Use external PMIx support, optionally adding DIR to the search path (default: no)])],
238-
[], with_external_pmix=no)
235+
AC_ARG_WITH([pmix],
236+
[AC_HELP_STRING([--with-pmix(=DIR)],
237+
[Build PMIx support. DIR can take one of three values: "internal", "external", or a valid directory name. "internal" (or no DIR value) forces Open MPI to use its internal copy of PMIx. "external" forces Open MPI to use an external installation of PMIx. Supplying a valid directory name also forces Open MPI to use an external installation of PMIx, and adds DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries. Note that Open MPI does not support --without-pmix.])])
239238
240-
AC_MSG_CHECKING([if user requested PMIx support])
241-
AS_IF([test "$with_external_pmix" = "no"],
239+
AS_IF([test "$with_pmix" = "no"],
240+
[AC_MSG_WARN([Open MPI requires PMIx support. It can be built])
241+
AC_MSG_WARN([with either its own internal copy of PMIx, or with])
242+
AC_MSG_WARN([an external copy that you supply.])
243+
AC_MSG_ERROR([Cannot continue])])
244+
245+
AC_MSG_CHECKING([if user requested PMIx support($with_pmix)])
246+
AS_IF([test -z "$with_pmix" || test "$with_pmix" = "yes" || test "$with_mpix" = "internal"],
242247
[AC_MSG_RESULT([no])
243248
opal_external_pmix_happy="no"],
244249
[AC_MSG_RESULT([yes])
245250
# check for external pmix lib */
246-
AS_IF([test "$with_external_pmix" == "yes" || test -z "$with_external_pmix"],
251+
AS_IF([test "$with_pmix" = "external"],
247252
[pmix_ext_install_dir=/usr],
248-
[pmix_ext_install_dir=$with_external_pmix])
253+
[pmix_ext_install_dir=$with_pmix])
249254
250255
# cannot use check_package because there are
251256
# external dependencies to make the headers

0 commit comments

Comments
 (0)