Look for NAS libraries in normal paths (where Ubuntu installs them). SDL-ryan-multiple-audio-device
authorRyan C. Gordon <icculus@icculus.org>
Sat, 07 Oct 2006 06:18:15 +0000
branchSDL-ryan-multiple-audio-device
changeset 3823 c562b1a12f82
parent 3822 748707e2ddd1
child 3824 25052dd25810
Look for NAS libraries in normal paths (where Ubuntu installs them).
configure.in
--- a/configure.in	Sat Oct 07 06:17:54 2006 +0000
+++ b/configure.in	Sat Oct 07 06:18:15 2006 +0000
@@ -513,7 +513,14 @@
     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
         AC_MSG_CHECKING(for NAS audio support)
         have_nas=no
-        if test -r /usr/X11R6/include/audio/audiolib.h; then
+        AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes)
+        AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes)
+
+        if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
+            have_nas=yes
+            NAS_LIBS="-laudio"
+
+        elif test -r /usr/X11R6/include/audio/audiolib.h; then
             have_nas=yes
             NAS_CFLAGS="-I/usr/X11R6/include/"
             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"