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 3823c562b1a12f82
parent 3822 748707e2ddd1
child 3824 25052dd25810
Look for NAS libraries in normal paths (where Ubuntu installs them).
configure.in
     1.1 --- a/configure.in	Sat Oct 07 06:17:54 2006 +0000
     1.2 +++ b/configure.in	Sat Oct 07 06:18:15 2006 +0000
     1.3 @@ -513,7 +513,14 @@
     1.4      if test x$enable_audio = xyes -a x$enable_nas = xyes; then
     1.5          AC_MSG_CHECKING(for NAS audio support)
     1.6          have_nas=no
     1.7 -        if test -r /usr/X11R6/include/audio/audiolib.h; then
     1.8 +        AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes)
     1.9 +        AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes)
    1.10 +
    1.11 +        if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
    1.12 +            have_nas=yes
    1.13 +            NAS_LIBS="-laudio"
    1.14 +
    1.15 +        elif test -r /usr/X11R6/include/audio/audiolib.h; then
    1.16              have_nas=yes
    1.17              NAS_CFLAGS="-I/usr/X11R6/include/"
    1.18              NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"