Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
If we leave the default SDL_config.h in place, it'll override the one…
Browse files Browse the repository at this point in the history
… generated by configure when building from a different directory. Argh...
  • Loading branch information
slouken committed Mar 12, 2011
1 parent 9ccb93c commit 6fbbe09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion configure
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion configure.in
Expand Up @@ -65,7 +65,11 @@ AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
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
Expand Down

0 comments on commit 6fbbe09

Please sign in to comment.