@@ -16,6 +16,7 @@ dnl Copyright (c) 2007-2009 Sun Microsystems, Inc. All rights reserved.
16
16
dnl Copyright (c) 2008-2020 Cisco Systems, Inc. All rights reserved.
17
17
dnl Copyright (c) 2015-2016 Research Organization for Information Science
18
18
dnl and Technology (RIST). All rights reserved.
19
+ dnl Copyright (c) 2021 Nanook Consulting. All rights reserved.
19
20
dnl $COPYRIGHT $
20
21
dnl
21
22
dnl Additional copyrights may follow
@@ -33,7 +34,6 @@ AC_DEFUN([OMPI_PROG_CXX],[
33
34
34
35
ompi_cxxflags_save= " $CXXFLAGS "
35
36
AC_PROG_CXX
36
- AC_PROG_CXXCPP
37
37
CXXFLAGS= " $ompi_cxxflags_save "
38
38
39
39
# Note: according to the Autoconf docs, if no C++ compiler is
@@ -43,13 +43,14 @@ AC_DEFUN([OMPI_PROG_CXX],[
43
43
# https://www.open-mpi.org/community/lists/users/2013/02/21356.php,
44
44
# which advises us to set Libtool precious variables to "no" if we
45
45
# don't want Libtool to setup that language at all.
46
- AS_IF([test " x$CXX " = " x" ], [CXX= no])
47
46
set dummy $CXX
48
47
ompi_cxx_argv0= [$]2
49
48
OPAL_WHICH([$ompi_cxx_argv0 ], [OMPI_CXX_ABSOLUTE])
50
49
AS_IF([test " x$OMPI_CXX_ABSOLUTE " = " x" ],
51
50
[CXX= no
52
- OMPI_CXX_ABSOLUTE= no])
51
+ OMPI_CXX_ABSOLUTE= no],
52
+ [ # If we did actually find a C++ compiler, find the C++ CPP
53
+ AC_PROG_CXXCPP])
53
54
54
55
AC_DEFINE_UNQUOTED(OMPI_CXX, " $CXX " , [OMPI underlying C++ compiler])
55
56
AC_SUBST(OMPI_CXX_ABSOLUTE)
0 commit comments