Hello Open MPI Developers,
Here's a small patch to fix a misnamed cache variable. The next
Autoconf version will issue a warning for typos like these, which
is how I found this.
Cheers,
Ralf
* config/ompi_check_visibility.m4 (OMPI_CHECK_VISIBILITY):
Rename ompi_cv_cc_fvisibility to ompi_vc_cc_fvisibility, so
that it will be cached.
Index: config/ompi_check_visibility.m4
===================================================================
--- config/ompi_check_visibility.m4 (revision 16430)
+++ config/ompi_check_visibility.m4 (working copy)
@@ -33,7 +33,7 @@
CFLAGS="$CFLAGS_orig -fvisibility=hidden"
add=
AC_CACHE_CHECK([if $CC supports -fvisibility],
- [ompi_vc_cc_fvisibility],
+ [ompi_cv_cc_fvisibility],
[AC_TRY_LINK([
#include <stdio.h>
__attribute__((visibility("default"))) int foo;
@@ -42,17 +42,17 @@
[if test -s conftest.err ; then
$GREP -iq "visibility" conftest.err
if test "$?" = "0" ; then
- ompi_vc_cc_fvisibility="no"
+ ompi_cv_cc_fvisibility="no"
else
- ompi_vc_cc_fvisibility="yes"
+ ompi_cv_cc_fvisibility="yes"
fi
else
- ompi_vc_cc_fvisibility="yes"
+ ompi_cv_cc_fvisibility="yes"
fi],
- [ompi_vc_cc_fvisibility="no"])
+ [ompi_cv_cc_fvisibility="no"])
])
- if test "$ompi_vc_cc_fvisibility" = "yes" ; then
+ if test "$ompi_cv_cc_fvisibility" = "yes" ; then
add=" -fvisibility=hidden"
have_visibility=1
AC_MSG_WARN([$add has been added to CFLAGS])