summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-03-12 13:28:56 -0800
committerSam Lantinga <slouken@libsdl.org>2011-03-12 13:28:56 -0800
commita9d41506c3861f618db1183aa5ef820fbf1569b2 (patch)
tree701141cac2c49242dc827a41129b6028ce7982c4 /configure
parentfc9ee0c10f3ba3348cef232fac0aee029a30d960 (diff)
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...
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 2bdb6409..4e6c3432 100755
--- a/configure
+++ b/configure
@@ -15474,7 +15474,11 @@ done
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