@@ -23,6 +23,12 @@ AC_DEFUN([OMPI_CHECK_DELETED_OPTIONS],[
23
23
[* DELETED* Look for libpmi or libpmi2 in the given directory DIR, DIR/lib or DIR/lib64])],
24
24
[with_pmi_libdir_given= yes])
25
25
26
+ AS_IF([test " $with_pmi " = " no" ],
27
+ [with_pmi_given= no])
28
+
29
+ AS_IF([test " $with_pmi_libdir " = " no" ],
30
+ [with_pmi_libdir_given= no])
31
+
26
32
if test " $with_pmi_given " = " yes" || test " $with_pmi_libdir_given " = " yes" ; then
27
33
AC_MSG_WARN([Open MPI no longer supports PMI-1 or PMI-2 libraries.])
28
34
AC_MSG_WARN([PMIx is now required. Either the internal version or an])
@@ -37,20 +43,31 @@ AC_DEFUN([OMPI_CHECK_DELETED_OPTIONS],[
37
43
38
44
# Open MPI C++ bindings were removed in v5.0
39
45
cxx=0
46
+ cxxseek=0
47
+ cxxex=0
40
48
AC_ARG_ENABLE([mpi-cxx],
41
49
[AC_HELP_STRING([--enable-mpi-cxx],
42
50
[* DELETED* Build the MPI C++ bindings])],
43
51
[cxx= 1])
44
52
AC_ARG_ENABLE([mpi-cxx-seek],
45
53
[AC_HELP_STRING([--enable-mpi-cxx-seek],
46
54
[* DELETED* Build support for MPI::SEEK])],
47
- [cxx = 1])
55
+ [cxxseek = 1])
48
56
AC_ARG_ENABLE([cxx-exceptions],
49
57
[AC_HELP_STRING([--enable-cxx-exceptions],
50
58
[* DELETED* Build support for C++ exceptions in the MPI C++ bindings])],
51
- [cxx= 1])
59
+ [cxxex= 1])
60
+
61
+ AS_IF([test " $enable_mpi_cxx " = " no" ],
62
+ [cxx= 0])
63
+
64
+ AS_IF([test " $enable_mpi_cxx_seek " = " no" ],
65
+ [cxxseek= 0])
66
+
67
+ AS_IF([test " $enable_cxx_exceptions " = " no" ],
68
+ [cxxex= 0])
52
69
53
- AS_IF([test $cxx -eq 1],
70
+ AS_IF([test $cxx -eq 1 || test $cxxseek -eq 1 || test $cxxex -eq 1 ],
54
71
[AC_MSG_WARN([The MPI C++ bindings have been removed from Open MPI.])
55
72
AC_MSG_WARN([If you need support for the MPI C++ bindings, you])
56
73
AC_MSG_WARN([will need to use an older version of Open MPI.])
0 commit comments