summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-06-16 20:51:36 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-06-16 20:51:36 +0000
commit2b719752cd6e896e104e68cc67e34e59131f8fba (patch)
tree858be7737e4b61cfe858f6f53007813bc3a2860b /configure.ac
parentde7058e26c5dc28ffeb0ecdcfd2a475217fa92d0 (diff)
downloadpcsxr-2b719752cd6e896e104e68cc67e34e59131f8fba.tar.gz
dfsound, openal.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@67915 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a1ebc6fb..6df9af22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,11 +58,12 @@ AC_CHECK_LIB(umem, umem_alloc, [LIBS="$LIBS -lumem"], [])
AM_CONDITIONAL(SOUND_OSS, false)
AM_CONDITIONAL(SOUND_SDL, false)
+AM_CONDITIONAL(SOUND_OPENAL, false)
AM_CONDITIONAL(SOUND_NULL, false)
-dnl Check for ALSA 1.x, OSS, or PulseAudio
+dnl Check for ALSA 1.x, OSS, OpenAL or PulseAudio
-AC_ARG_ENABLE(sound, [ --enable-sound=... force selection of sound backend (alsa/null/oss/pulseaudio/sdl) (default: sdl)],
+AC_ARG_ENABLE(sound, [ --enable-sound=... force selection of sound backend (alsa/null/oss/pulseaudio/sdl/openal) (default: sdl)],
[ SOUND="$enableval" ],[ SOUND="sdl" ])
if test "x$SOUND" = xalsa; then
@@ -76,6 +77,8 @@ elif test "x$SOUND" = xoss; then
else
AM_CONDITIONAL(SOUND_OSS, true)
fi
+elif test "x$SOUND" = xopenal; then
+ PKG_CHECK_MODULES(OPENAL, openal >= 1.0.0, have_openal=yes)
elif test "x$SOUND" = xno; then
AM_CONDITIONAL(SOUND_NULL, true)
elif test "x$SOUND" = xnull; then
@@ -86,6 +89,8 @@ fi
AM_CONDITIONAL(SOUND_ALSA, test "x$have_alsa" = xyes)
AC_SUBST(ALSA_LIBS)
+AM_CONDITIONAL(SOUND_OPENAL, test "x$have_openal" = xyes)
+AC_SUBST(OPENAL_LIBS)
AM_CONDITIONAL(SOUND_PULSEAUDIO, test "x$have_pulseaudio" = xyes)
AC_SUBST(PULSEAUDIO_CFLAGS)
AC_SUBST(PULSEAUDIO_LIBS)