f657edae32
default anyway.
90 lines
2.3 KiB
Text
90 lines
2.3 KiB
Text
$NetBSD: patch-ac,v 1.3 2013/10/28 23:45:28 joerg Exp $
|
|
|
|
--- configure.orig 2001-11-06 08:03:13.000000000 +0000
|
|
+++ configure
|
|
@@ -2499,6 +2499,59 @@ fi
|
|
done
|
|
|
|
;;
|
|
+NetBSD)
|
|
+SYS_DEFS=-DIS_NBSD
|
|
+
|
|
+for ac_header in soundcard.h
|
|
+do
|
|
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
+echo "$as_me:2508: checking for $ac_header" >&5
|
|
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+#line 2514 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <$ac_header>
|
|
+_ACEOF
|
|
+if { (eval echo "$as_me:2518: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
+ ac_status=$?
|
|
+ egrep -v '^ *\+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
+ echo "$as_me:2524: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); } >/dev/null; then
|
|
+ if test -s conftest.err; then
|
|
+ ac_cpp_err=$ac_c_preproc_warn_flag
|
|
+ else
|
|
+ ac_cpp_err=
|
|
+ fi
|
|
+else
|
|
+ ac_cpp_err=yes
|
|
+fi
|
|
+if test -z "$ac_cpp_err"; then
|
|
+ eval "$as_ac_Header=yes"
|
|
+else
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ eval "$as_ac_Header=no"
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_ext
|
|
+fi
|
|
+echo "$as_me:2543: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
+ cat >>confdefs.h <<EOF
|
|
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
+EOF
|
|
+ SOUND=sys/oss/oss.o
|
|
+fi
|
|
+done
|
|
+
|
|
+OSS_LIB="$OSS_LIB -lossaudio"
|
|
+;;
|
|
esac
|
|
|
|
test "$SOUND" || SOUND=sys/dummy/nosound.o
|
|
@@ -3227,17 +3280,6 @@ case `uname -m` in
|
|
i?86) CFLAGS="$CFLAGS -DALLOW_UNALIGNED_IO" ;;
|
|
esac
|
|
|
|
-#case `$CC --version` in
|
|
-#2.9*|3.*)
|
|
-CFLAGS="$CFLAGS -fstrength-reduce -fthread-jumps \
|
|
- -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \
|
|
- -fexpensive-optimizations -fforce-mem -fforce-addr"
|
|
-#;;
|
|
-#*)
|
|
-#AC_MSG_WARN(your compiler is too old for fancy optimizations)
|
|
-#;;
|
|
-#esac
|
|
-
|
|
if test "$enable_debug" != yes -a "$enable_profile" != yes ; then
|
|
CFLAGS="$CFLAGS -fomit-frame-pointer"
|
|
LDFLAGS="$LDFLAGS -s"
|
|
@@ -3679,6 +3723,7 @@ s,@SDL_LIBS@,$SDL_LIBS,;t t
|
|
s,@TARGETS@,$TARGETS,;t t
|
|
s,@XINCS@,$XINCS,;t t
|
|
s,@XLIBS@,$XLIBS,;t t
|
|
+s,@OSS_LIB@,$OSS_LIB,;t t
|
|
CEOF
|
|
|
|
EOF
|