comparison configure.in @ 569:d02c00ce16d9 stable-1.0

Clean up symbol visibility in the stable-1.0 branch.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 05 Jan 2010 15:03:43 -0500
parents cbb8f13ca516
children
comparison
equal deleted inserted replaced
556:1c7d570fcee8 569:d02c00ce16d9
53 53
54 AC_PROG_CC 54 AC_PROG_CC
55 AC_PROG_INSTALL 55 AC_PROG_INSTALL
56 AC_PROG_LN_S 56 AC_PROG_LN_S
57 AM_PROG_LIBTOOL 57 AM_PROG_LIBTOOL
58
59
60 dnl ---------------------------------------------------------------------
61 dnl Have GCC's -fvisibility option?
62 dnl ---------------------------------------------------------------------
63 AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
64 have_gcc_fvisibility=no
65 visibility_CFLAGS="-fvisibility=hidden"
66 save_CFLAGS="$CFLAGS"
67 CFLAGS="$save_CFLAGS $visibility_CFLAGS"
68 AC_TRY_COMPILE([
69 #if !defined(__GNUC__) || __GNUC__ < 4
70 #error SDL only uses visibility attributes in GCC 4 or newer
71 #endif
72 ],[
73 ],[
74 have_gcc_fvisibility=yes
75 ])
76 AC_MSG_RESULT($have_gcc_fvisibility)
77 CFLAGS="$save_CFLAGS"
78
79 if test x$have_gcc_fvisibility = xyes; then
80 CFLAGS="$CFLAGS $visibility_CFLAGS"
81 fi
58 82
59 83
60 dnl --------------------------------------------------------------------- 84 dnl ---------------------------------------------------------------------
61 dnl Debug mode? 85 dnl Debug mode?
62 dnl --------------------------------------------------------------------- 86 dnl ---------------------------------------------------------------------