[Xfce4-commits] <libxfce4util:nick/abi-changes> Use Xdt visibility macro.

Nick Schermer noreply at xfce.org
Fri Jun 10 21:28:01 CEST 2011


Updating branch refs/heads/nick/abi-changes
         to 4286db4497523e672842cd767efe86976cdbdd82 (commit)
       from 09e3bc79fc38046b30d13da37d59dc3e9c8f6921 (commit)

commit 4286db4497523e672842cd767efe86976cdbdd82
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Jun 10 21:27:27 2011 +0200

    Use Xdt visibility macro.

 configure.in.in |   31 +------------------------------
 1 files changed, 1 insertions(+), 30 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index 7bb3cc1..28138b0 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -159,36 +159,7 @@ XDT_FEATURE_LINKER_OPTS()
 dnl ****************************************
 dnl *** Check for ELF visibility support ***
 dnl ****************************************
-AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
-have_gnuc_visibility=no
-if test x"$enable_visibility" != x"no"; then
-  dnl Check whether the compiler supports the visibility attribute
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -Wall -Werror"
-  AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
-  AC_COMPILE_IFELSE(AC_LANG_SOURCE(
-  [
-    void test_default (void);
-    void test_hidden (void);
-
-    void __attribute__ ((visibility("default"))) test_default (void) {}
-    void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
-
-    int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
-  ]),
-  [
-    have_gnuc_visibility=yes
-    AC_MSG_RESULT([yes])
-  ],
-  [
-    AC_MSG_RESULT([no])
-  ])
-  CFLAGS="$save_CFLAGS"
-fi
-if test x"$have_gnuc_visibility" = x"yes"; then
-  CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
-fi
-AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
+XDT_FEATURE_VISIBILITY()
 
 dnl *************************************
 dnl *** Compensate for broken gtk-doc ***



More information about the Xfce4-commits mailing list