configure.ac
changeset 12804 1a330416800d
parent 12762 0fa532733f3f
child 12869 2b56cef46971
equal deleted inserted replaced
12803:70d338e248c8 12804:1a330416800d
  1324     AC_MSG_RESULT($have_gcc_fvisibility)
  1324     AC_MSG_RESULT($have_gcc_fvisibility)
  1325     CFLAGS="$save_CFLAGS"
  1325     CFLAGS="$save_CFLAGS"
  1326 
  1326 
  1327     if test x$have_gcc_fvisibility = xyes; then
  1327     if test x$have_gcc_fvisibility = xyes; then
  1328         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  1328         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
       
  1329     fi
       
  1330 }
       
  1331 
       
  1332 dnl See if GCC's -fno-strict-aliasingis supported.
       
  1333 dnl  Reference: https://bugzilla.libsdl.org/show_bug.cgi?id=4254
       
  1334 CheckNoStrictAliasing()
       
  1335 {
       
  1336     AC_MSG_CHECKING(for GCC -fno-strict-aliasing option)
       
  1337     have_gcc_no_strict_aliasing=no
       
  1338 
       
  1339     save_CFLAGS="$CFLAGS"
       
  1340     CFLAGS="$save_CFLAGS -fno-strict-aliasing"
       
  1341     AC_TRY_COMPILE([
       
  1342     int x = 0;
       
  1343     ],[
       
  1344     ],[
       
  1345     have_gcc_no_strict_aliasing=yes
       
  1346     ])
       
  1347     AC_MSG_RESULT($have_gcc_no_strict_aliasing)
       
  1348     CFLAGS="$save_CFLAGS"
       
  1349 
       
  1350     if test x$have_gcc_no_strict_aliasing = xyes; then
       
  1351         EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  1329     fi
  1352     fi
  1330 }
  1353 }
  1331 
  1354 
  1332 dnl See if GCC's -mpreferred-stack-boundary is supported.
  1355 dnl See if GCC's -mpreferred-stack-boundary is supported.
  1333 dnl  Reference: http://bugzilla.libsdl.org/show_bug.cgi?id=1296
  1356 dnl  Reference: http://bugzilla.libsdl.org/show_bug.cgi?id=1296
  3261 
  3284 
  3262 
  3285 
  3263 
  3286 
  3264 dnl Do this on all platforms, before everything else (other things might want to override it).
  3287 dnl Do this on all platforms, before everything else (other things might want to override it).
  3265 CheckWarnAll
  3288 CheckWarnAll
       
  3289 CheckNoStrictAliasing
  3266 
  3290 
  3267 dnl Do this for every platform, but for some it doesn't mean anything, but better to catch it here anyhow.
  3291 dnl Do this for every platform, but for some it doesn't mean anything, but better to catch it here anyhow.
  3268 CheckEventSignals
  3292 CheckEventSignals
  3269 
  3293 
  3270 dnl Set up the configuration based on the host platform!
  3294 dnl Set up the configuration based on the host platform!