comparison configure.in @ 568:cddbe182ae5e

Cleaned up gcc4 visibility check.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 05 Jan 2010 14:53:15 -0500
parents 7e08477b0fc1
children
comparison
equal deleted inserted replaced
567:83fff24e5f71 568:cddbe182ae5e
85 have_gcc_fvisibility=no 85 have_gcc_fvisibility=no
86 visibility_CFLAGS="-fvisibility=hidden" 86 visibility_CFLAGS="-fvisibility=hidden"
87 save_CFLAGS="$CFLAGS" 87 save_CFLAGS="$CFLAGS"
88 CFLAGS="$save_CFLAGS $visibility_CFLAGS" 88 CFLAGS="$save_CFLAGS $visibility_CFLAGS"
89 AC_TRY_COMPILE([ 89 AC_TRY_COMPILE([
90 int placeholder = 1; 90 #if !defined(__GNUC__) || __GNUC__ < 4
91 #error SDL only uses visibility attributes in GCC 4 or newer
92 #endif
91 ],[ 93 ],[
92 ],[ 94 ],[
93 have_gcc_fvisibility=yes 95 have_gcc_fvisibility=yes
94 ]) 96 ])
95 AC_MSG_RESULT($have_gcc_fvisibility) 97 AC_MSG_RESULT($have_gcc_fvisibility)