diff options
author | Sam Lantinga <slouken@libsdl.org> | 2011-03-12 13:28:56 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2011-03-12 13:28:56 -0800 |
commit | a9d41506c3861f618db1183aa5ef820fbf1569b2 (patch) | |
tree | 701141cac2c49242dc827a41129b6028ce7982c4 /configure | |
parent | fc9ee0c10f3ba3348cef232fac0aee029a30d960 (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-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |