openal32: Add support for Mac OS X's OpenAL.framework.
diff --git a/configure.ac b/configure.ac
index adec95f..ba9a454 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@
AC_ARG_WITH(nas, AS_HELP_STRING([--without-nas],[do not use the NAS sound support]),
[if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi])
AC_ARG_WITH(openal, AS_HELP_STRING([--without-openal],[do not use OpenAL]),
- [if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; fi])
+ [if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi])
AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL]))
AC_ARG_WITH(openssl, AS_HELP_STRING([--without-openssl],[do not use OpenSSL]),
[if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi])
@@ -303,6 +303,7 @@
DiskArbitration/DiskArbitration.h \
IOKit/IOKitLib.h \
IOKit/hid/IOHIDLib.h \
+ OpenAL/al.h \
alias.h \
alsa/asoundlib.h \
arpa/inet.h \
@@ -628,6 +629,11 @@
dnl CoreServices needed by AudioUnit
AC_SUBST(COREAUDIO,"-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI")
fi
+ if test "$ac_cv_header_OpenAL_al_h" = "yes"
+ then
+ AC_SUBST(LIBOPENAL,"-framework OpenAL")
+ ac_cv_lib_openal_alGetSource3i=yes
+ fi
if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
then
ac_save_LIBS="$LIBS"