Improve SDL check: use correct CFLAGS when searching for header.

Original commit message from CVS:
Improve SDL check: use correct CFLAGS when searching for header.
This commit is contained in:
Richard Boulton 2001-06-02 02:05:21 +00:00
parent 434d40d4c5
commit 0c8050e3ba

View file

@ -587,9 +587,11 @@ if sdl-config --libs > /dev/null 2>&1; then
SDL_LIBS="`sdl-config --libs`"
SDL_CFLAGS="`sdl-config --cflags`"
AC_CHECK_LIB(SDL, SDL_Init, :, HAVE_LIBSDL=no, $SDL_LIBS)
dnl FIXME: CPPFLAGS should be set from SDL_CFLAGS for the next two checks
AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
dnl AC_CHECK_FUNC(SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no)
dnl FIXME: CPPFLAGS should be set from SDL_CFLAGS for the next check
CFLAGS="$sdlcheck_save_CFLAGS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
AC_CHECK_HEADER(SDL.h, :, HAVE_LIBSDL=no)
sdlcheck_save_CFLAGS="$CFLAGS"
AC_CHECK_LIB(SDL, SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no, $SDL_LIBS)
else
AC_MSG_RESULT(not found)