mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
More tidyup to SDL check.
Original commit message from CVS: More tidyup to SDL check.
This commit is contained in:
parent
1f6482a012
commit
1559a54b1d
1 changed files with 12 additions and 9 deletions
|
@ -580,26 +580,29 @@ fi
|
||||||
|
|
||||||
dnl Check for SDL library
|
dnl Check for SDL library
|
||||||
AC_MSG_CHECKING(SDL library)
|
AC_MSG_CHECKING(SDL library)
|
||||||
HAVE_LIBSDL=no
|
HAVE_LIBSDL=yes
|
||||||
if sdl-config --libs > /dev/null 2>&1; then
|
if sdl-config --libs > /dev/null 2>&1; then
|
||||||
HAVE_LIBSDL=yes
|
|
||||||
SDL_VERSION=`sdl-config --version`
|
SDL_VERSION=`sdl-config --version`
|
||||||
AC_MSG_RESULT([found (version $SDL_VERSION)])
|
AC_MSG_RESULT([found (version $SDL_VERSION)])
|
||||||
|
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)
|
||||||
|
AC_CHECK_FUNC(SDL_CreateYUVOverlay, :, HAVE_LIBSDL=no)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(not found)
|
AC_MSG_RESULT(not found)
|
||||||
|
HAVE_LIBSDL=no
|
||||||
|
SDL_LIBS=
|
||||||
|
SDL_CFLAGS=
|
||||||
fi
|
fi
|
||||||
SDL_LIBS="`sdl-config --libs`"
|
|
||||||
SDL_CFLAGS="`sdl-config --cflags`"
|
|
||||||
AC_SUBST(SDL_LIBS)
|
AC_SUBST(SDL_LIBS)
|
||||||
AC_SUBST(SDL_CFLAGS)
|
AC_SUBST(SDL_CFLAGS)
|
||||||
|
|
||||||
if test "x$HAVE_LIBSDL" == "xyes"; then
|
if test "x$HAVE_LIBSDL" == "xno"; then
|
||||||
AC_CHECK_LIB(SDL, SDL_Init, :, HAVE_LIBSDL=no, $SDL_LIBS)
|
|
||||||
AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
|
|
||||||
AC_CHECK_FUNC(SDL_CreateYUVOverlay, :, [HAVE_LIBSDL=no
|
|
||||||
AC_MSG_WARN(
|
AC_MSG_WARN(
|
||||||
***** NOTE: These plugins won't be built: sdlvideosink
|
***** NOTE: These plugins won't be built: sdlvideosink
|
||||||
)])
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue