$NetBSD: patch-ab,v 1.2 2006/01/13 02:02:50 joerg Exp $

--- configure.orig	1998-05-11 07:02:12.000000000 +0000
+++ configure
@@ -1810,9 +1810,15 @@ if test -n "$sound-type"; then
     *linux*) 
 	sound_type=native
 	;;
+    *dragonfly*)
+	sound_type=native
+	;;
     *freebsd*)
         sound_type=native
 	;;
+    *netbsd*)
+        sound_type=native
+	;;
     *sunos*)
         sound_type=native
         ;;
@@ -1839,7 +1845,7 @@ EOF
 EOF
 
 	;;
-      *freebsd*)
+      *freebsd* | *dragonfly*)
         SOUNDSERVER=xgal.sndsrv.freebsd
 	cat >> confdefs.h <<\EOF
 #define SOUNDDEV "/dev/dsp"
@@ -1850,8 +1856,18 @@ EOF
 EOF
 
 	;;
+      *netbsd*)
+	SOUNDSERVER=xgal.sndsrv.linux
+	cat >> confdefs.h <<\EOF
+#define SOUNDDEV "/dev/audio"
+EOF
+	cat >> confdefs.h <<\EOF
+#define SOUND 1
+EOF
+
+	;;
       *sunos*)
-        SOUNDSERVER=xgal.sndsrv.sun.c
+        SOUNDSERVER=xgal.sndsrv.sun
 	cat >> confdefs.h <<\EOF
 #define SOUNDDEV "/dev/audio"
 EOF
@@ -1862,7 +1878,7 @@ EOF
 
 	;;
       *solaris*)
-        SOUNDSERVER=xgal.sndsrv.sun.c
+        SOUNDSERVER=xgal.sndsrv.sun
 	cat >> confdefs.h <<\EOF
 #define SOUNDDEV "/dev/audio"
 EOF
