1
1
This commit was SVN r17788.
Этот коммит содержится в:
George Bosilca 2008-03-07 21:13:20 +00:00
родитель aaff245271
Коммит 023fa2663d

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

@ -24,12 +24,12 @@
AC_DEFUN([OMPI_CHECK_VISIBILITY],[ AC_DEFUN([OMPI_CHECK_VISIBILITY],[
AC_REQUIRE([AC_PROG_GREP]) AC_REQUIRE([AC_PROG_GREP])
# Check if the compiler has support for visibilty, like some versions of gcc, icc. # Check if the compiler has support for visibility, like some versions of gcc, icc.
AC_ARG_ENABLE(visibility, AC_ARG_ENABLE(visibility,
AC_HELP_STRING([--enable-visibility], AC_HELP_STRING([--enable-visibility],
[enable visibility feature of certain compilers/linkers (default: enabled)])) [enable visibility feature of certain compilers/linkers (default: enabled)]))
if test "$enable_visibility" = "no"; then if test "$enable_visibility" = "no"; then
AC_MSG_CHECKING([enable symbol visibilty]) AC_MSG_CHECKING([enable symbol visibility])
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
have_visibility=0 have_visibility=0
else else
@ -59,13 +59,13 @@ AC_DEFUN([OMPI_CHECK_VISIBILITY],[
if test "$ompi_cv_cc_fvisibility" = "yes" ; then if test "$ompi_cv_cc_fvisibility" = "yes" ; then
add=" -fvisibility=hidden" add=" -fvisibility=hidden"
have_visibility=1 have_visibility=1
AC_MSG_CHECKING([enable symbol visibilty]) AC_MSG_CHECKING([enable symbol visibility])
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_MSG_WARN([$add has been added to CFLAGS]) AC_MSG_WARN([$add has been added to CFLAGS])
elif test "$enable_visibility" = "yes"; then elif test "$enable_visibility" = "yes"; then
AC_MSG_ERROR([Symbol visibility support requested but compiler does not seem to support it. Aborting]) AC_MSG_ERROR([Symbol visibility support requested but compiler does not seem to support it. Aborting])
else else
AC_MSG_CHECKING([enable symbol visibilty]) AC_MSG_CHECKING([enable symbol visibility])
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
have_visibility=0 have_visibility=0
fi fi