Ensure to compile the test as a Fortran program. Thanks to Eugene for
pointing out the issue. This commit was SVN r26309.
Этот коммит содержится в:
родитель
89726b4ebc
Коммит
a0c3e38ded
@ -177,6 +177,7 @@ EOF
|
||||
AS_IF([test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""],
|
||||
[AC_MSG_RESULT([skipped (no C++ exceptions flags)])],
|
||||
[FCFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
|
||||
AC_LANG_PUSH([Fortran])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
|
||||
INTEGER I
|
||||
I = 3]])],
|
||||
@ -184,6 +185,7 @@ I = 3]])],
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_MSG_WARN([C++ exception flags are different between the C and Fortran compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list.])
|
||||
AC_MSG_ERROR([*** Cannot continue])])
|
||||
AC_LANG_POP
|
||||
])
|
||||
])
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user