1.1 --- a/configure.in Wed Feb 25 08:50:22 2009 +0000
1.2 +++ b/configure.in Sat Feb 28 06:26:48 2009 +0000
1.4 AS_HELP_STRING( [--with-esd], [Build with support for the ESounD audio system]) )
1.6 AS_HELP_STRING( [--with-pulse], [Build with support for the PulseAudio audio system]) )
1.8 + AS_HELP_STRING( [--with-sdl], [Build with support for SDL audio]) )
1.11 dnl ------------ Check if we're building on Darwin --------------
1.13 @@ -240,6 +243,20 @@
1.14 AC_DEFINE([HAVE_CORE_AUDIO], 1, [Have Apple CoreAudio support]) ],[true ])
1.15 AM_CONDITIONAL( AUDIO_OSX, [test "$HAVE_CORE_AUDIO" = 'yes'] )
1.17 +dnl Check for SDL (only used for audio at the moment)
1.18 +if test "x$with_sdl" != "xno"; then
1.19 + PKG_CHECK_MODULES(SDL, [sdl], [
1.21 + AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
1.22 + AC_DEFINE([HAVE_SDL],1,[Have SDL support])
1.24 + if test "x$with_sdl" = "xyes"; then
1.25 + AC_MSG_FAILURE( ["SDL libraries could not be found (but were required)] )
1.29 +AM_CONDITIONAL( AUDIO_SDL, [test "$HAVE_SDL" = 'yes'] )
1.31 dnl Check for pulseaudio
1.32 if test "x$with_pulse" != "xno"; then
1.33 PKG_CHECK_MODULES(PULSE, [libpulse-simple], [