comparison configure.in @ 2292:4845eb8d4221

Merged -fvisibility detection fix from SDL 1.2 revision 3500
author Sam Lantinga <slouken@libsdl.org>
date Sun, 30 Dec 2007 05:01:35 +0000
parents 323a5af2924b
children 824f6dee6648
comparison
equal deleted inserted replaced
2291:dc3dd3a0bf02 2292:4845eb8d4221
876 AC_MSG_CHECKING(for GCC -fvisibility=hidden option) 876 AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
877 have_gcc_fvisibility=no 877 have_gcc_fvisibility=no
878 878
879 visibility_CFLAGS="-fvisibility=hidden" 879 visibility_CFLAGS="-fvisibility=hidden"
880 save_CFLAGS="$CFLAGS" 880 save_CFLAGS="$CFLAGS"
881 CFLAGS="$save_CFLAGS $visibility_CFLAGS" 881 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
882 AC_TRY_COMPILE([ 882 AC_TRY_COMPILE([
883 #if !defined(__GNUC__) || __GNUC__ < 4 883 #if !defined(__GNUC__) || __GNUC__ < 4
884 #error SDL only uses visibility attributes in GCC 4 or newer 884 #error SDL only uses visibility attributes in GCC 4 or newer
885 #endif 885 #endif
886 ],[ 886 ],[