If we leave the default SDL_config.h in place, it'll override the one generated by configure when building from a different directory. Argh...
authorSam Lantinga <slouken@libsdl.org>
Sat, 12 Mar 2011 13:28:56 -0800
changeset 54822c0477323626
parent 5481 22dfc3958dc3
child 5483 ccec742c9b7d
If we leave the default SDL_config.h in place, it'll override the one generated by configure when building from a different directory. Argh...
configure
configure.in
     1.1 --- a/configure	Sat Mar 12 13:21:57 2011 -0800
     1.2 +++ b/configure	Sat Mar 12 13:28:56 2011 -0800
     1.3 @@ -15474,7 +15474,11 @@
     1.4  
     1.5  INCLUDE="-I$srcdir/include"
     1.6  if test x$srcdir != x.; then
     1.7 -    # We want to include the generated SDL_config.h first
     1.8 +    # Remove SDL_config.h from the source directory, since it's the
     1.9 +    # default one, and we want to include the one that we generate.
    1.10 +    if test -f $srcdir/include/SDL_config.h; then
    1.11 +        rm $srcdir/include/SDL_config.h
    1.12 +    fi
    1.13      INCLUDE="-Iinclude $INCLUDE"
    1.14  fi
    1.15  case "$host" in
     2.1 --- a/configure.in	Sat Mar 12 13:21:57 2011 -0800
     2.2 +++ b/configure.in	Sat Mar 12 13:28:56 2011 -0800
     2.3 @@ -65,7 +65,11 @@
     2.4  dnl Set up the compiler and linker flags
     2.5  INCLUDE="-I$srcdir/include"
     2.6  if test x$srcdir != x.; then
     2.7 -    # We want to include the generated SDL_config.h first
     2.8 +    # Remove SDL_config.h from the source directory, since it's the
     2.9 +    # default one, and we want to include the one that we generate.
    2.10 +    if test -f $srcdir/include/SDL_config.h; then
    2.11 +        rm $srcdir/include/SDL_config.h
    2.12 +    fi
    2.13      INCLUDE="-Iinclude $INCLUDE"
    2.14  fi
    2.15  case "$host" in