]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configury: Use only one copy of CHECK_ATTRIBUTE_VISIBILITY macro
authorPietro Monteiro <pietro@sociotechnical.xyz>
Tue, 30 Dec 2025 02:57:01 +0000 (21:57 -0500)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Tue, 5 May 2026 00:39:40 +0000 (20:39 -0400)
Currently libatomic, libgfortran, libgomp, and libitm have a version
of the CHECK_ATTRIBUTE_VISIBILITY macro.

Put the macro in its own file and have all libraries use it.

config/ChangeLog:

* visibility.m4: New file.

libatomic/ChangeLog:

* Makefile.in: Regenerate.
* acinclude.m4: Delete LIBAT_CHECK_ATTRIBUTE_VISIBILITY.
* aclocal.m4: Regenerate.
* configure: Likewise.
* configure.ac: Use GCC_CHECK_ATTRIBUTE_VISIBILITY instead of
LIBAT_CHECK_ATTRIBUTE_VISIBILITY.
* testsuite/Makefile.in: Regenerate.

libgfortran/ChangeLog:

* Makefile.in: Regenerate.
* acinclude.m4: Delete LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY.
* aclocal.m4: Regenerate.
* configure: Likewise.
* configure.ac: Use GCC_CHECK_ATTRIBUTE_VISIBILITY istead of
LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY.

libgomp/ChangeLog:

* Makefile.in: Regenerate.
* acinclude.m4: Delete LIGOMP_CHECK_ATTRIBUTE_VISIBILITY.
* aclocal.m4: Regenerate.
* configure: Likewise.
* configure.ac: Use GCC_CHECK_ATTRIBUTE_VISIBILITY instead of
LIGOMP_CHECK_ATTRIBUTE_VISIBILITY.
* testsuite/Makefile.in: Regenerate.

libitm/ChangeLog:

* Makefile.in: Regenerate.
* acinclude.m4: Delete LIBITM_CHECK_ATTRIBUTE_VISIBILITY.
* aclocal.m4: Regenerate.
* configure: Likewise.
* configure.ac: Use GCC_CHECK_ATTRIBUTE_VISIBILITY instead of
LIBITM_CHECK_ATTRIBUTE_VISIBILITY.
* testsuite/Makefile.in: Regenerate.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
24 files changed:
config/visibility.m4 [new file with mode: 0644]
libatomic/Makefile.in
libatomic/acinclude.m4
libatomic/aclocal.m4
libatomic/configure
libatomic/configure.ac
libatomic/testsuite/Makefile.in
libgfortran/Makefile.in
libgfortran/acinclude.m4
libgfortran/aclocal.m4
libgfortran/configure
libgfortran/configure.ac
libgomp/Makefile.in
libgomp/acinclude.m4
libgomp/aclocal.m4
libgomp/configure
libgomp/configure.ac
libgomp/testsuite/Makefile.in
libitm/Makefile.in
libitm/acinclude.m4
libitm/aclocal.m4
libitm/configure
libitm/configure.ac
libitm/testsuite/Makefile.in

diff --git a/config/visibility.m4 b/config/visibility.m4
new file mode 100644 (file)
index 0000000..19530f9
--- /dev/null
@@ -0,0 +1,14 @@
+dnl Check whether the target supports hidden visibility.
+AC_DEFUN([GCC_CHECK_ATTRIBUTE_VISIBILITY], [
+  AC_CACHE_CHECK([whether the target supports hidden visibility],
+                gcc_cv_have_attribute_visibility, [
+  save_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -Werror"
+  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[void __attribute__((visibility("hidden"))) foo(void) { }]], [])],
+                   gcc_cv_have_attribute_visibility=yes,
+                   gcc_cv_have_attribute_visibility=no)
+  CFLAGS="$save_CFLAGS"])
+  if test $gcc_cv_have_attribute_visibility = yes; then
+    AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1,
+      [Define to 1 if the target supports __attribute__((visibility(...))).])
+  fi])
index 887ae41e440227cabcb009277c3759c9644a0486..e7f12134ac5927116c1865437b6a3ca1631c839a 100644 (file)
@@ -115,6 +115,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/override.m4 \
        $(top_srcdir)/../config/stdint.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../config/warnings.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
index 0ba6d8da23bf125a107b127a9d28281d5fbb6133..1e57bd52f5d2182deff19209e7cd89925b731181 100644 (file)
@@ -206,21 +206,6 @@ AC_DEFUN([LIBAT_CHECK_IFUNC], [
 dnl ----------------------------------------------------------------------
 dnl This whole bit snagged from libitm.
 
-dnl Check whether the target supports hidden visibility.
-AC_DEFUN([LIBAT_CHECK_ATTRIBUTE_VISIBILITY], [
-  AC_CACHE_CHECK([whether the target supports hidden visibility],
-                libat_cv_have_attribute_visibility, [
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -Werror"
-  AC_TRY_COMPILE([void __attribute__((visibility("hidden"))) foo(void) { }],
-                [], libat_cv_have_attribute_visibility=yes,
-                libat_cv_have_attribute_visibility=no)
-  CFLAGS="$save_CFLAGS"])
-  if test $libat_cv_have_attribute_visibility = yes; then
-    AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1,
-      [Define to 1 if the target supports __attribute__((visibility(...))).])
-  fi])
-
 dnl Check whether the target supports dllexport
 AC_DEFUN([LIBAT_CHECK_ATTRIBUTE_DLLEXPORT], [
   AC_CACHE_CHECK([whether the target supports dllexport],
index 4d7c727d9d36bba70863ab6649517318242dd604..b6c44a23e3ee9feb103f4639dfbfba421c9d55a5 100644 (file)
@@ -1198,6 +1198,7 @@ m4_include([../config/multi.m4])
 m4_include([../config/override.m4])
 m4_include([../config/stdint.m4])
 m4_include([../config/toolexeclibdir.m4])
+m4_include([../config/visibility.m4])
 m4_include([../config/warnings.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
index 2ab04c889a73cb1fe7d31ffe17d642d2c02d21af..8284c81b1bb88dd30446194d1961f7fd017b3e84 100755 (executable)
@@ -15435,7 +15435,7 @@ esac
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
-if ${libat_cv_have_attribute_visibility+:} false; then :
+if ${gcc_cv_have_attribute_visibility+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
@@ -15453,16 +15453,16 @@ main ()
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  libat_cv_have_attribute_visibility=yes
+  gcc_cv_have_attribute_visibility=yes
 else
-  libat_cv_have_attribute_visibility=no
+  gcc_cv_have_attribute_visibility=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   CFLAGS="$save_CFLAGS"
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
-$as_echo "$libat_cv_have_attribute_visibility" >&6; }
-  if test $libat_cv_have_attribute_visibility = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_attribute_visibility" >&5
+$as_echo "$gcc_cv_have_attribute_visibility" >&6; }
+  if test $gcc_cv_have_attribute_visibility = yes; then
 
 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
 
index 4dc99e0f89dbbf659040afb44ef3bfa5f2e84f86..98aade0dae2a8985bcd88123c57fd73e4d649293 100644 (file)
@@ -256,7 +256,7 @@ case " $config_path " in
 esac
 
 # See what sort of export controls are available.
-LIBAT_CHECK_ATTRIBUTE_VISIBILITY
+GCC_CHECK_ATTRIBUTE_VISIBILITY
 LIBAT_CHECK_ATTRIBUTE_DLLEXPORT
 LIBAT_CHECK_ATTRIBUTE_ALIAS
 if test x$try_ifunc = xyes; then
index 381bae1923270babeb52eab970bb412f69e7035c..ba6fbf22f859cb01ddc039fd22b402efff6f2571 100644 (file)
@@ -101,6 +101,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/override.m4 \
        $(top_srcdir)/../config/stdint.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../config/warnings.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
index 360187a10ce7add2b22c517bf7bb35c02d00d27c..566fbff6125daa1ec9083d4c22af9f8b4f03894a 100644 (file)
@@ -171,6 +171,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/ax_pthread.m4 \
        $(top_srcdir)/../config/override.m4 \
        $(top_srcdir)/../config/stdint.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
        $(top_srcdir)/acinclude.m4 $(top_srcdir)/../config/acx.m4 \
index 239ab71475066e3254eea443ecc2a4547c223ea4..ad90c68fe5912aa68616cec3b9ca168bf5c7d0ac 100644 (file)
@@ -31,21 +31,6 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN])
 AC_DEFUN([AC_PROG_LD])
 ])
 
-dnl Check whether the target supports hidden visibility.
-AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY], [
-  AC_CACHE_CHECK([whether the target supports hidden visibility],
-                libgfor_cv_have_attribute_visibility, [
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -Werror"
-  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[void __attribute__((visibility("hidden"))) foo(void) { }]], [])],
-                   libgfor_cv_have_attribute_visibility=yes,
-                   libgfor_cv_have_attribute_visibility=no)
-  CFLAGS="$save_CFLAGS"])
-  if test $libgfor_cv_have_attribute_visibility = yes; then
-    AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1,
-      [Define to 1 if the target supports __attribute__((visibility(...))).])
-  fi])
-
 dnl Check whether the target supports symbol aliases.
 AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_ALIAS], [
   AC_CACHE_CHECK([whether the target supports symbol aliases],
index 139c98a50a7400f9b59e38210bb7c3a8f0855b3c..c1e2f6dc502303afa4fec7c4a66cdd531a3efdbe 100644 (file)
@@ -1178,6 +1178,7 @@ m4_include([../config/multi.m4])
 m4_include([../config/override.m4])
 m4_include([../config/stdint.m4])
 m4_include([../config/toolexeclibdir.m4])
+m4_include([../config/visibility.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
 m4_include([../ltversion.m4])
index 75cf47e3a194c70824d62374da74b5cb759f0784..4555f6f0cf64c28366041dcbb0742779638b9c8d 100755 (executable)
@@ -32021,7 +32021,7 @@ fi
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
-if ${libgfor_cv_have_attribute_visibility+:} false; then :
+if ${gcc_cv_have_attribute_visibility+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
@@ -32039,16 +32039,16 @@ main ()
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  libgfor_cv_have_attribute_visibility=yes
+  gcc_cv_have_attribute_visibility=yes
 else
-  libgfor_cv_have_attribute_visibility=no
+  gcc_cv_have_attribute_visibility=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   CFLAGS="$save_CFLAGS"
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
-$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
-  if test $libgfor_cv_have_attribute_visibility = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_attribute_visibility" >&5
+$as_echo "$gcc_cv_have_attribute_visibility" >&6; }
+  if test $gcc_cv_have_attribute_visibility = yes; then
 
 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
 
index da9ae604cab59aecc821cce88faa9ba6c5523fb0..ce64e97bcca2bdcd380f7482cfceb1165823adf5 100644 (file)
@@ -787,7 +787,7 @@ fi
 
 
 # Check out attribute support.
-LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY
+GCC_CHECK_ATTRIBUTE_VISIBILITY
 LIBGFOR_CHECK_ATTRIBUTE_ALIAS
 
 # Check out atomic builtins support.
index 07827630e8c4069cdeeadcf40c2edfc9e434ab8a..9d1b05243e0589d8716357a7540eca186319b363 100644 (file)
@@ -136,6 +136,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/override.m4 \
        $(top_srcdir)/../config/tls.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
        $(top_srcdir)/acinclude.m4 $(top_srcdir)/../libtool.m4 \
index 948205959962e39872eca80968445d3b0756fccc..a174ff5881a0a6dc4ba70703aa31d15d9813c600 100644 (file)
@@ -12,21 +12,6 @@ AC_DEFUN([LIBGOMP_CHECK_SYNC_BUILTINS], [
              [Define to 1 if the target supports __sync_*_compare_and_swap])
   fi])
 
-dnl Check whether the target supports hidden visibility.
-AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY], [
-  AC_CACHE_CHECK([whether the target supports hidden visibility],
-                libgomp_cv_have_attribute_visibility, [
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -Werror"
-  AC_TRY_COMPILE([void __attribute__((visibility("hidden"))) foo(void) { }],
-                [], libgomp_cv_have_attribute_visibility=yes,
-                libgomp_cv_have_attribute_visibility=no)
-  CFLAGS="$save_CFLAGS"])
-  if test $libgomp_cv_have_attribute_visibility = yes; then
-    AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1,
-      [Define to 1 if the target supports __attribute__((visibility(...))).])
-  fi])
-
 dnl Check whether the target supports dllexport
 AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT], [
   AC_CACHE_CHECK([whether the target supports dllexport],
index 94d1b0af125331c8e430fa0e5697fdfc6da655e7..1298ffaa3986a25c873921def1f6f47b9f1e61f0 100644 (file)
@@ -1180,6 +1180,7 @@ m4_include([../config/multi.m4])
 m4_include([../config/override.m4])
 m4_include([../config/tls.m4])
 m4_include([../config/toolexeclibdir.m4])
+m4_include([../config/visibility.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
 m4_include([../ltversion.m4])
index 56cffe7963452d0ef84735ad3adaae69e34e6e6e..6d3f9922f060ed2e52d9993a19d7d8c52f9704a5 100755 (executable)
@@ -16319,7 +16319,7 @@ $as_echo "#define USE_EMUTLS 1" >>confdefs.h
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
-if ${libgomp_cv_have_attribute_visibility+:} false; then :
+if ${gcc_cv_have_attribute_visibility+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
@@ -16337,16 +16337,16 @@ main ()
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  libgomp_cv_have_attribute_visibility=yes
+  gcc_cv_have_attribute_visibility=yes
 else
-  libgomp_cv_have_attribute_visibility=no
+  gcc_cv_have_attribute_visibility=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   CFLAGS="$save_CFLAGS"
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
-$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
-  if test $libgomp_cv_have_attribute_visibility = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_attribute_visibility" >&5
+$as_echo "$gcc_cv_have_attribute_visibility" >&6; }
+  if test $gcc_cv_have_attribute_visibility = yes; then
 
 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
 
index 1730c62c74c64743cbd3b0f9b3aaf9b6758f42f9..a7938beb1ca9222fc5e77d7e2941584a71a783ec 100644 (file)
@@ -325,7 +325,7 @@ GCC_CHECK_TLS
 GCC_CHECK_EMUTLS
 
 # See what sort of export controls are available.
-LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY
+GCC_CHECK_ATTRIBUTE_VISIBILITY
 LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT
 LIBGOMP_CHECK_ATTRIBUTE_ALIAS
 LIBGOMP_ENABLE_SYMVERS
index 477bfdb83de36b2342f2e5951037e91da4957984..235337323731d2ca37dcd1acd874220f241173f8 100644 (file)
@@ -103,6 +103,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/override.m4 \
        $(top_srcdir)/../config/tls.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
        $(top_srcdir)/acinclude.m4 $(top_srcdir)/../libtool.m4 \
index cbca7026760378603d4229d757a6f76b02be2fb5..8e3243142461c3bc32c6835ec0cbfbc8beb37e3b 100644 (file)
@@ -110,6 +110,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/stdint.m4 \
        $(top_srcdir)/../config/tls.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../config/weakref.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
index 73ab59927c01c3ef24ddd572926c9a1f529aa1e9..89f99099a0679996e029eec39bff68ce632afad2 100644 (file)
@@ -26,21 +26,6 @@ AC_DEFUN([LIBITM_CHECK_64BIT_SYNC_BUILTINS], [
                [Define to 1 if the target supports 64-bit __sync_*_compare_and_swap])
   fi])
 
-dnl Check whether the target supports hidden visibility.
-AC_DEFUN([LIBITM_CHECK_ATTRIBUTE_VISIBILITY], [
-  AC_CACHE_CHECK([whether the target supports hidden visibility],
-                libitm_cv_have_attribute_visibility, [
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -Werror"
-  AC_TRY_COMPILE([void __attribute__((visibility("hidden"))) foo(void) { }],
-                [], libitm_cv_have_attribute_visibility=yes,
-                libitm_cv_have_attribute_visibility=no)
-  CFLAGS="$save_CFLAGS"])
-  if test $libitm_cv_have_attribute_visibility = yes; then
-    AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1,
-      [Define to 1 if the target supports __attribute__((visibility(...))).])
-  fi])
-
 dnl Check whether the target supports dllexport
 AC_DEFUN([LIBITM_CHECK_ATTRIBUTE_DLLEXPORT], [
   AC_CACHE_CHECK([whether the target supports dllexport],
index 4cb1a5f9098f7fd5121a282c0256fea1f35ec97b..ef1d70abeb5b2b142dfa643ad74a04e1d5d635a8 100644 (file)
@@ -1202,6 +1202,7 @@ m4_include([../config/override.m4])
 m4_include([../config/stdint.m4])
 m4_include([../config/tls.m4])
 m4_include([../config/toolexeclibdir.m4])
+m4_include([../config/visibility.m4])
 m4_include([../config/weakref.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
index 0c82eba44a661e6d522b79411e4d53377f4a76e0..532a59e5d64676af114ca82e057a91c6059c9b26 100755 (executable)
@@ -17324,7 +17324,7 @@ $as_echo "#define HAVE_TLS 1" >>confdefs.h
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
-if ${libitm_cv_have_attribute_visibility+:} false; then :
+if ${gcc_cv_have_attribute_visibility+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
@@ -17342,16 +17342,16 @@ main ()
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  libitm_cv_have_attribute_visibility=yes
+  gcc_cv_have_attribute_visibility=yes
 else
-  libitm_cv_have_attribute_visibility=no
+  gcc_cv_have_attribute_visibility=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   CFLAGS="$save_CFLAGS"
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
-$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
-  if test $libitm_cv_have_attribute_visibility = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_attribute_visibility" >&5
+$as_echo "$gcc_cv_have_attribute_visibility" >&6; }
+  if test $gcc_cv_have_attribute_visibility = yes; then
 
 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
 
index 0b5f08b86e808f79a3ffe0a48241dc143a87c8ed..db5528a01a4e2b43aa1bf79c5e0bdbb1189f3381 100644 (file)
@@ -218,7 +218,7 @@ GCC_LINUX_FUTEX(:)
 GCC_CHECK_TLS
 
 # See what sort of export controls are available.
-LIBITM_CHECK_ATTRIBUTE_VISIBILITY
+GCC_CHECK_ATTRIBUTE_VISIBILITY
 LIBITM_CHECK_ATTRIBUTE_DLLEXPORT
 LIBITM_CHECK_ATTRIBUTE_ALIAS
 
index 2e04463336554f685fa13f380bb31bf25e198373..cd39def26b8e134975f45e495a820a7261b6678d 100644 (file)
@@ -105,6 +105,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/stdint.m4 \
        $(top_srcdir)/../config/tls.m4 \
        $(top_srcdir)/../config/toolexeclibdir.m4 \
+       $(top_srcdir)/../config/visibility.m4 \
        $(top_srcdir)/../config/weakref.m4 \
        $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
        $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \