$OpenBSD: patch-configure_in,v 1.3 2002/10/06 21:03:18 naddy Exp $
--- configure.in.orig	Thu May 16 14:21:17 1996
+++ configure.in	Sun Oct  6 22:45:37 2002
@@ -22,10 +22,12 @@ if test "$d" != "" ; then
 		echo "'$d' is not a directory"
 		exit 1
 	fi
-	V_LIB_GSM=$d/lib/libgsm.a
-	if test ! -r $V_LIB_GSM ; then
-		echo "can't find libgsm.a in $d/lib"
-		exit 1
+	if test x"$V_LIB_GSM" == x""; then
+	    V_LIB_GSM=$d/lib/libgsm.a
+	    if test ! -r $V_LIB_GSM ; then
+		    echo "can't find libgsm.a in $d/lib"
+		    exit 1
+	    fi
 	fi
 	V_INCLUDE_GSM=-I$d/inc
 	if test ! -r $d/inc/private.h ; then
@@ -59,21 +61,23 @@ AC_SUBST(V_INCLUDE_GSM)
 
 AC_ARG_WITH(af,	--with-af=path	specify a pathname for AudioFile, d=$withval, d="")
 if test "$d" != "" ; then
-	if test ! -d $d ; then 
-		echo "'$d' is not a directory"
-		exit 1
-	fi
-	if test ! -r $d/AF/lib/AF/libAF.a ; then
-		echo "can't find libAF.a in $d/AF/lib/AF"
-		exit 1
+	if test "$d" != "no"; then
+	    if test ! -d $d ; then 
+		    echo "'$d' is not a directory"
+		    exit 1
+	    fi
+	    if test ! -r $d/AF/lib/AF/libAF.a ; then
+		    echo "can't find libAF.a in $d/AF/lib/AF"
+		    exit 1
+	    fi
+	    if test ! -r $d/AF/lib/AF/AFlib.h ; then
+		    echo "can't find AFlib.h in $d/AF/lib/AF"
+		    exit 1
+	    fi
+	    V_LIB="$V_LIB $d/AF/lib/AF/libAF.a"
+	    V_INCLUDE="$V_INCLUDE -I$d/AF/lib -I$d/AF"
+	    V_OBJ_AUDIO="$V_OBJ_AUDIO audio-af.o"
 	fi
-	if test ! -r $d/AF/lib/AF/AFlib.h ; then
-		echo "can't find AFlib.h in $d/AF/lib/AF"
-		exit 1
-	fi
-	V_LIB="$V_LIB $d/AF/lib/AF/libAF.a"
-	V_INCLUDE="$V_INCLUDE -I$d/AF/lib -I$d/AF"
-	V_OBJ_AUDIO="$V_OBJ_AUDIO audio-af.o"
 else
 	echo "checking for AudioFile"
 	places="../AudioFile-3.1 \
@@ -150,6 +154,12 @@ sparc-sun-sunos*)
 	V_OBJ_AUDIO="$V_OBJ_AUDIO audio-voxware.o"
 	V_TARCMD="tar cfL"
 	V_CCOPT="-O2 -m486"
+	;;
+*-*-openbsd*)
+	V_DEFINE="$V_DEFINE -DSIGARGS=int"
+	V_OBJ_AUDIO="audio-voxware.o"
+	V_TARCMD="tar -h -c -f"
+	V_LIB="$V_LIB -lossaudio -L/usr/local/lib"
 	;;
 *-*-freebsd*)
 	V_OBJ_AUDIO="$V_OBJ_AUDIO audio-voxware.o"
