mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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:
parent
434d40d4c5
commit
0c8050e3ba
1 changed files with 5 additions and 3 deletions
|
@ -587,9 +587,11 @@ if sdl-config --libs > /dev/null 2>&1; then
|
||||||
SDL_LIBS="`sdl-config --libs`"
|
SDL_LIBS="`sdl-config --libs`"
|
||||||
SDL_CFLAGS="`sdl-config --cflags`"
|
SDL_CFLAGS="`sdl-config --cflags`"
|
||||||
AC_CHECK_LIB(SDL, SDL_Init, :, HAVE_LIBSDL=no, $SDL_LIBS)
|
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
|
dnl FIXME: CPPFLAGS should be set from SDL_CFLAGS for the next check
|
||||||
AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
|
CFLAGS="$sdlcheck_save_CFLAGS"
|
||||||
dnl AC_CHECK_FUNC(SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no)
|
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)
|
AC_CHECK_LIB(SDL, SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no, $SDL_LIBS)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(not found)
|
AC_MSG_RESULT(not found)
|
||||||
|
|
Loading…
Reference in a new issue