$OpenBSD: patch-configure,v 1.21 2010/01/12 11:19:06 jakemsr Exp $
--- configure.orig	Sun Dec 30 21:09:39 2007
+++ configure	Tue Jan 12 02:48:55 2010
@@ -25411,6 +25411,20 @@ _ACEOF
     fi
 }
 
+
+CheckSndio()
+{
+	if [ x"$WITH_SNDIO" = x"Yes" ]; then
+
+                cat >>confdefs.h <<\_ACEOF
+#define SDL_AUDIO_DRIVER_SNDIO 1
+_ACEOF
+                SOURCES="$SOURCES $srcdir/src/audio/libsndio/*.c"
+		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsndio"
+	fi
+}
+
+
 CheckPulseAudio()
 {
     # Check whether --enable-pulseaudio was given.
@@ -26333,9 +26347,6 @@ echo "${ECHO_T}$CompileNASM_ret" >&6; }
               win32)
                   NASMFLAGS="-f win32"
                   ;;
-              openbsd)
-                  NASMFLAGS="-f aoutb"
-                  ;;
               macosx)
                   NASMFLAGS="-f macho"
                   ;;
@@ -33577,6 +33588,7 @@ _ACEOF
         CheckALSA
         CheckARTSC
         CheckESD
+        CheckSndio
         CheckPulseAudio
         CheckNAS
         CheckX11
@@ -33610,7 +33622,7 @@ _ACEOF
                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
                 have_audio=yes
             ;;
-            netbsd|openbsd)
+            netbsd)
                 cat >>confdefs.h <<\_ACEOF
 #define SDL_AUDIO_DRIVER_BSD 1
 _ACEOF