configure.in
branchSDL-ryan-multiple-audio-device
changeset 3823 c562b1a12f82
parent 3785 da2ea0694d11
child 3825 76c5a414b996
     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"