configure.in
changeset 5482 2c0477323626
parent 5475 9c07ec632b24
child 5512 56ab281d7d3e
--- a/configure.in	Sat Mar 12 13:21:57 2011 -0800
+++ b/configure.in	Sat Mar 12 13:28:56 2011 -0800
@@ -65,7 +65,11 @@
 dnl Set up the compiler and linker flags
 INCLUDE="-I$srcdir/include"
 if test x$srcdir != x.; then
-    # We want to include the generated SDL_config.h first
+    # Remove SDL_config.h from the source directory, since it's the
+    # default one, and we want to include the one that we generate.
+    if test -f $srcdir/include/SDL_config.h; then
+        rm $srcdir/include/SDL_config.h
+    fi
     INCLUDE="-Iinclude $INCLUDE"
 fi
 case "$host" in