2010-08-19 06:01:43 +00:00
|
|
|
dnl SDL/SDL-GL checks
|
2021-12-20 05:48:02 +00:00
|
|
|
AC_ARG_ENABLE(sdl, AS_HELP_STRING([--enable-sdl], [enable checking for SDL]))
|
2010-08-19 06:01:43 +00:00
|
|
|
|
2021-04-01 11:07:37 +00:00
|
|
|
if test "x$enable_sdl" = xyes; then
|
2012-11-29 02:16:06 +00:00
|
|
|
if test "x$PKG_CONFIG" != "x"; then
|
|
|
|
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], HAVE_SDL=yes, HAVE_SDL=no)
|
|
|
|
else
|
|
|
|
AM_PATH_SDL(1.2.0, HAVE_SDL=yes, HAVE_SDL=no)
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
|
|
|
SDL_LIBS=`echo $SDL_LIBS | sed -e 's/-mwindows//'`
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl SDL-AUDIO checks
|
|
|
|
AC_ARG_ENABLE(sdl-audio,
|
2021-12-20 05:48:02 +00:00
|
|
|
AS_HELP_STRING([ --disable-sdl-audio], [disable checking for SDL-AUDIO]))
|
2010-08-19 06:01:43 +00:00
|
|
|
|
|
|
|
if test "x$enable_sdl_audio" != xno; then
|
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
HAVE_SDL_AUDIO=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl SDL-CD checks
|
|
|
|
AC_ARG_ENABLE(sdl-cd,
|
2021-12-20 05:48:02 +00:00
|
|
|
AS_HELP_STRING([--disable-sdl-cd], [disable checking for SDL-CD]))
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$enable_sdl_cd" != xno; then
|
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
HAVE_SDL_CD=yes
|
|
|
|
fi
|
|
|
|
fi
|