mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fix SDL check
Original commit message from CVS: Fix SDL check Check for Overlay stuff, which isn't in SDL version 1.0
This commit is contained in:
parent
4a2d554cc8
commit
1f6482a012
1 changed files with 16 additions and 12 deletions
|
@ -578,27 +578,31 @@ else
|
||||||
HAVE_CSSAUTH="no"
|
HAVE_CSSAUTH="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for SDLlib
|
dnl Check for SDL library
|
||||||
AC_MSG_CHECKING(SDLlib)
|
AC_MSG_CHECKING(SDL library)
|
||||||
AC_CHECK_LIB(SDL, SDL_Init, HAVE_LIBSDL=yes, HAVE_LIBSDL=no, -L/usr/lib -L/usr/local/lib -lpthread)
|
HAVE_LIBSDL=no
|
||||||
AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
|
|
||||||
|
|
||||||
dnl Check for SDL
|
|
||||||
HAVE_LIBSDL="no"
|
|
||||||
AC_MSG_CHECKING(for SDL)
|
|
||||||
if sdl-config --libs > /dev/null 2>&1; then
|
if sdl-config --libs > /dev/null 2>&1; then
|
||||||
HAVE_LIBSDL="yes"
|
HAVE_LIBSDL=yes
|
||||||
AC_MSG_RESULT(found)
|
SDL_VERSION=`sdl-config --version`
|
||||||
|
AC_MSG_RESULT([found (version $SDL_VERSION)])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(not found)
|
AC_MSG_RESULT(not found)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SDL_LIBS="`sdl-config --libs`"
|
SDL_LIBS="`sdl-config --libs`"
|
||||||
SDL_CFLAGS="`sdl-config --cflags`"
|
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
|
||||||
|
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(
|
||||||
|
***** NOTE: These plugins won't be built: sdlvideosink
|
||||||
|
)])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
dnl Check for linux/cdrom.h
|
dnl Check for linux/cdrom.h
|
||||||
AC_CHECK_HEADER(linux/cdrom.h,
|
AC_CHECK_HEADER(linux/cdrom.h,
|
||||||
HAVE_LINUX_CDROM=yes, HAVE_LINUX_CDROM=no
|
HAVE_LINUX_CDROM=yes, HAVE_LINUX_CDROM=no
|
||||||
|
|
Loading…
Reference in a new issue