configure.in
changeset 1745 741dc4e89f3a
parent 1742 af4352da64d8
child 1783 c546353b1ad4
equal deleted inserted replaced
1744:7f39af143e38 1745:741dc4e89f3a
   713 
   713 
   714     visibility_CFLAGS="-fvisibility=hidden"
   714     visibility_CFLAGS="-fvisibility=hidden"
   715     save_CFLAGS="$CFLAGS"
   715     save_CFLAGS="$CFLAGS"
   716     CFLAGS="$save_CFLAGS $visibility_CFLAGS"
   716     CFLAGS="$save_CFLAGS $visibility_CFLAGS"
   717     AC_TRY_COMPILE([
   717     AC_TRY_COMPILE([
   718         int placeholder = 1;
   718     #if !defined(__GNUC__) || __GNUC__ < 4
       
   719     #error SDL only uses visibility attributes in GCC 4 or newer
       
   720     #endif
   719     ],[
   721     ],[
   720     ],[
   722     ],[
   721     have_gcc_fvisibility=yes
   723     have_gcc_fvisibility=yes
   722     ])
   724     ])
   723     AC_MSG_RESULT($have_gcc_fvisibility)
   725     AC_MSG_RESULT($have_gcc_fvisibility)