configure.in
changeset 3382 294fb5e6f301
parent 3372 dd11d2376e27
child 3388 be67ddef6617
equal deleted inserted replaced
3381:c4d6458121db 3382:294fb5e6f301
     1 dnl Process this file with autoconf to produce a configure script.
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_INIT(README)
     2 AC_INIT(README)
     3 AC_CONFIG_HEADER(include/SDL_config.h)
     3 AC_CONFIG_HEADER(include/SDL_config.h)
     4 AC_GNU_SOURCE
     4 AC_GNU_SOURCE
     5 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
     5 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
       
     6 
       
     7 dnl Save the CFLAGS to see whether they were passed in or generated
       
     8 orig_CFLAGS="$CFLAGS"
     6 
     9 
     7 dnl Set various version strings - taken gratefully from the GTk sources
    10 dnl Set various version strings - taken gratefully from the GTk sources
     8 #
    11 #
     9 # Making releases:
    12 # Making releases:
    10 # Edit include/SDL/SDL_version.h and change the version, then:
    13 # Edit include/SDL/SDL_version.h and change the version, then:
    85         BASE_CFLAGS="-D_GNU_SOURCE=1"
    88         BASE_CFLAGS="-D_GNU_SOURCE=1"
    86         BASE_LDFLAGS=""
    89         BASE_LDFLAGS=""
    87         ;;
    90         ;;
    88 esac
    91 esac
    89 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
    92 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
       
    93 # The default optimization for SDL 1.3 is -O3 (Bug #31)
       
    94 if test x$orig_CFLAGS = x; then
       
    95     BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
       
    96 fi
    90 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
    97 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
    91 BUILD_LDFLAGS="$LDFLAGS"
    98 BUILD_LDFLAGS="$LDFLAGS"
    92 EXTRA_LDFLAGS="$BASE_LDFLAGS"
    99 EXTRA_LDFLAGS="$BASE_LDFLAGS"
    93 ## These are common directories to find software packages
   100 ## These are common directories to find software packages
    94 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
   101 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do