Commit 5d9a9d6e authored by Sam Lantinga's avatar Sam Lantinga

Sort of fixed NAS detection on NetBSD - requires that /usr/pkg be in your...

Sort of fixed NAS detection on NetBSD - requires that /usr/pkg be in your include/linker/library path

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402466
parent c64b5ebf
...@@ -74,8 +74,8 @@ BUILD_CFLAGS="$CFLAGS $CPPFLAGS" ...@@ -74,8 +74,8 @@ BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
BUILD_LDFLAGS="$LDFLAGS" BUILD_LDFLAGS="$LDFLAGS"
EXTRA_LDFLAGS="$BASE_LDFLAGS" EXTRA_LDFLAGS="$BASE_LDFLAGS"
# I can't remember why I added this. I'm sure it'll come to me... ## These are common directories to find software packages
#for path in /usr/local; do #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
# if test -d $path/include; then # if test -d $path/include; then
# EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
# fi # fi
...@@ -576,29 +576,23 @@ CheckNAS() ...@@ -576,29 +576,23 @@ CheckNAS()
AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]), AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]),
, enable_nas=yes) , enable_nas=yes)
if test x$enable_audio = xyes -a x$enable_nas = xyes; then if test x$enable_audio = xyes -a x$enable_nas = xyes; then
AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes) save_LDFLAGS="$LDFLAGS"
AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes) LDFLAGS="$LDFLAGS -lXt -lm"
AC_CHECK_HEADER(audio/audiolib.h, have_audio_hdr=yes)
AC_CHECK_LIB(audio, AuOpenServer, have_audio_lib=yes)
AC_CHECK_HEADER(nas/audiolib.h, have_nas_hdr=yes)
AC_CHECK_LIB(nas, AuOpenServer, have_nas_lib=yes)
LDFLAGS="$save_LDFLAGS"
AC_MSG_CHECKING(for NAS audio support) AC_MSG_CHECKING(for NAS audio support)
have_nas=no have_nas=no
if test x$have_audio_hdr = xyes -a x$have_audio_lib = xyes; then
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 have_nas=yes
NAS_CFLAGS="-I/usr/X11R6/include/" NAS_LIBS="-laudio -lXt"
NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" elif test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
dnl On IRIX, the NAS includes are in a different directory,
dnl and libnas must be explicitly linked in
elif test -r /usr/freeware/include/nas/audiolib.h; then
have_nas=yes have_nas=yes
NAS_LIBS="-lnas -lXt" NAS_LIBS="-lnas -lXt"
fi fi
AC_MSG_RESULT($have_nas) AC_MSG_RESULT($have_nas)
if test x$have_nas = xyes; then if test x$have_nas = xyes; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment