configure.in
changeset 3382 294fb5e6f301
parent 3372 dd11d2376e27
child 3388 be67ddef6617
     1.1 --- a/configure.in	Sun Oct 11 10:30:47 2009 +0000
     1.2 +++ b/configure.in	Sun Oct 11 10:38:38 2009 +0000
     1.3 @@ -4,6 +4,9 @@
     1.4  AC_GNU_SOURCE
     1.5  AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
     1.6  
     1.7 +dnl Save the CFLAGS to see whether they were passed in or generated
     1.8 +orig_CFLAGS="$CFLAGS"
     1.9 +
    1.10  dnl Set various version strings - taken gratefully from the GTk sources
    1.11  #
    1.12  # Making releases:
    1.13 @@ -87,6 +90,10 @@
    1.14          ;;
    1.15  esac
    1.16  BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
    1.17 +# The default optimization for SDL 1.3 is -O3 (Bug #31)
    1.18 +if test x$orig_CFLAGS = x; then
    1.19 +    BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
    1.20 +fi
    1.21  EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
    1.22  BUILD_LDFLAGS="$LDFLAGS"
    1.23  EXTRA_LDFLAGS="$BASE_LDFLAGS"