1
1

Next step in RFC: OMPI_CHECK_COMPILER_WORKS -> OPAL_CHECK_COMPILER_WORKS

This commit was SVN r31584.
Этот коммит содержится в:
Ralph Castain 2014-05-01 15:25:47 +00:00
родитель e11eb15518
Коммит 2749231eb5
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -13,7 +13,7 @@ dnl
dnl $HEADER$ dnl $HEADER$
dnl dnl
# OMPI_CHECK_COMPILER_WORKS(language, headers, body, # OPAL_CHECK_COMPILER_WORKS(language, headers, body,
# [action-if-found], [action-if-not-found]) # [action-if-found], [action-if-not-found])
# ---------------------------------------------------- # ----------------------------------------------------
# Try to compile and run a simple application in 'language'. A # Try to compile and run a simple application in 'language'. A
@ -26,7 +26,7 @@ dnl
# statements), and body is the program to compile. It should include # statements), and body is the program to compile. It should include
# a clean exit from the application (e.g., "return 0" in C/C++, empty in # a clean exit from the application (e.g., "return 0" in C/C++, empty in
# fortran). # fortran).
AC_DEFUN([OMPI_CHECK_COMPILER_WORKS], AC_DEFUN([OPAL_CHECK_COMPILER_WORKS],
[ AS_VAR_PUSHDEF([lang_var], [ompi_cv_$1_works]) [ AS_VAR_PUSHDEF([lang_var], [ompi_cv_$1_works])
AC_CACHE_CHECK([if $1 compiler works], lang_var, AC_CACHE_CHECK([if $1 compiler works], lang_var,

Просмотреть файл

@ -113,7 +113,7 @@ AC_DEFUN([_OMPI_SETUP_CXX_COMPILER],[
[ompi_cxx_compiler_works=no], [ompi_cxx_compiler_works=no],
[AS_IF([test "$ompi_cv_cxx_compiler_vendor" = "microsoft" ], [AS_IF([test "$ompi_cv_cxx_compiler_vendor" = "microsoft" ],
[ompi_cxx_compiler_works=yes], [ompi_cxx_compiler_works=yes],
[OMPI_CHECK_COMPILER_WORKS([C++], [#include <string> [OPAL_CHECK_COMPILER_WORKS([C++], [#include <string>
], ],
[std::string foo = "Hello, world"], [std::string foo = "Hello, world"],
[ompi_cxx_compiler_works=yes], [ompi_cxx_compiler_works=yes],

Просмотреть файл

@ -74,7 +74,7 @@ AC_DEFUN([OMPI_SETUP_FC],[
# Don't just use the AC macro so that we can have a pretty # Don't just use the AC macro so that we can have a pretty
# message. # message.
AS_IF([test $ompi_fc_happy -eq 1], AS_IF([test $ompi_fc_happy -eq 1],
[OMPI_CHECK_COMPILER_WORKS([Fortran], [], [], [], [OPAL_CHECK_COMPILER_WORKS([Fortran], [], [], [],
[AC_MSG_ERROR([Could not run a simple Fortran program. Aborting.])])]) [AC_MSG_ERROR([Could not run a simple Fortran program. Aborting.])])])
# OS X before 10.3 (deployment target) does not allow undefined common # OS X before 10.3 (deployment target) does not allow undefined common