# HG changeset patch # User Ryan C. Gordon # Date 1160201895 0 # Node ID c562b1a12f82ea4195ecfd8756f32b8472d1ccba # Parent 748707e2ddd1f209289deafc9859cb980ffab6dc Look for NAS libraries in normal paths (where Ubuntu installs them). diff -r 748707e2ddd1 -r c562b1a12f82 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"