Moved the host_os checks...

...to a place where they get called even if sdl_test is disabled.
This commit is contained in:
Jon Daniel 2005-03-11 23:25:18 +00:00
parent b0dfd6de49
commit e980537b03

View file

@ -251,14 +251,6 @@ AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
SDL_CFLAGS=`$SDL_CONFIG --cflags`
SDL_LIBS=`$SDL_CONFIG --libs`
case ${host_os} in
darwin*)
SDL_LIBS="-framework Carbon $SDL_LIBS"
esac
case ${host_os} in
mingw32*)
SDL_LIBS="-lunicows $SDL_LIBS"
esac
sdl_major_version=`$SDL_CONFIG --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sdl_minor_version=`$SDL_CONFIG --version | \
@ -413,6 +405,14 @@ if test -n "$LDPREFIX" -a -r `$SDL_CONFIG --prefix`/lib/libSDL.la
then SDL_LIBS=`$SDL_CONFIG --prefix`/lib/libSDL.la
else SDL_LIBS=`$SDL_CONFIG --libs`
fi
case $host_os in
darwin*)
SDL_LIBS="-framework Carbon $SDL_LIBS"
esac
case $host_os in
mingw32*)
SDL_LIBS="-lunicows $SDL_LIBS"
esac
OLD_LIBS=$LIBS
LIBS="$LIBS $SDL_LIBS"