summaryrefslogtreecommitdiff
path: root/mbone/vat/patches/patch-aa
blob: 70e46ed213b80f705fd44f3b1319ecd9c48b87bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-aa,v 1.6 2000/01/26 22:14:26 jlam Exp $

--- configure.in.orig	Thu May 16 08:21:17 1996
+++ configure.in	Wed Jan 26 15:34:04 2000
@@ -33,22 +33,15 @@
 		exit 1
 	fi
 else
-	echo "checking for libgsm.a"
+	echo "checking for -lgsm"
 	V_LIB_GSM=FAIL
-	places="$PWD/../gsm-1.0-pl7 \
-		$PWD/../gsm-1.0 \
-		$PWD/../gsm \
-		/usr/src/local/gsm-1.0-pl7 \
-		/usr/src/local/gsm-1.0 \
-		/usr/src/local/gsm"
-	for dir in $places; do
-		if test -r $dir/lib/libgsm.a -a -r $dir/inc/private.h ; then
-			V_LIB_GSM=$dir/lib/libgsm.a
-			V_INCLUDE_GSM=-I$dir/inc
-			break
-		fi
-	done
-	if test "$V_LIB_GSM" = FAIL; then
+	V_INCLUDE_GSM=FAIL
+	AC_CHECK_LIB(gsm, gsm_create, V_LIB_GSM="-lgsm")
+	AC_CHECK_HEADERS(private.h)
+	if test "$ac_cv_header_private_h" = "yes"; then
+		V_INCLUDE_GSM=
+	fi
+	if test "$V_LIB_GSM" = FAIL || test "$V_INCLUDES_GSM" = FAIL ; then
 		echo "configure: can't find gsm library ... you can get it at"
 		echo "   http://www.cs.tu-berlin.de/~jutta/toast.html"
 		exit 1
@@ -165,7 +158,9 @@
 	;;
 *-*-netbsd*)
 	V_TARCMD="tar -h -c -f"
-	V_LIB="$V_LIB -L/usr/local/lib"
+	V_LIB="${LDFLAGS} $V_LIB -lossaudio"
+	V_OBJ_AUDIO="audio-voxware.o"
+	V_CCOPT="${CPPFLAGS}"
 	;;
 *-*-hpux*)
 	V_DEFINE="$V_DEFINE"