As I seem to have hit a wall with the ES1370 driver in qemu not working 
on Solaris, I have modified configure to allow Solaris to use OpenSoundSystems
audio.

Is there any interest in having a default audio setting for SDL so that
you won't have to always put QEMU_SDL_AUDIO=oss before you start 
qemu?

Ben
diff -ruN qemu-ORIG/configure qemu/configure
--- qemu-ORIG/configure	2007-02-15 17:58:18.000000000 -0500
+++ qemu/configure	2007-02-25 20:26:11.270139000 -0500
@@ -221,6 +221,8 @@
   ;;
   --fmod-inc=*) fmod_inc="$optarg"
   ;;
+  --enable-oss) oss="yes"
+  ;;
   --enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" ; linux_user="no"
   ;;
   --disable-slirp) slirp="no"
@@ -289,6 +291,7 @@
 echo "  --enable-coreaudio       enable Coreaudio audio driver"
 echo "  --enable-alsa            enable ALSA audio driver"
 echo "  --enable-fmod            enable FMOD audio driver"
+echo "  --enable-oss             enable OSS audio driver"
 echo "  --enabled-dsound         enable DirectSound audio driver"
 echo "  --enable-system          enable all system emulation targets"
 echo "  --disable-system         disable all system emulation targets"
@@ -619,6 +622,16 @@
     fmod_support=""
 fi
 echo "FMOD support      $fmod $fmod_support"
+if test "$oss" = "yes"; then
+    if test "$solaris" = "yes" && ! test -f /usr/include/sys/soundcard.h ; then
+        echo
+        echo "Error: /usr/include/sys/soundcard.h not found"
+        echo "Error: You must install OSS to use the oss module"
+        echo
+        exit 1
+    fi
+fi
+echo "OSS support       $oss"
 echo "kqemu support     $kqemu"
 echo "Documentation     $build_docs"
 [ ! -z "$uname_release" ] && \
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to