]> git.proxmox.com Git - mirror_qemu.git/commitdiff
audio: catch missing sdl support
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 20 Mar 2017 09:05:43 +0000 (10:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Mar 2017 16:01:51 +0000 (16:01 +0000)
sdl is probed before audio, so we can simply look at $sdl so see
whenever we have support or not.  Throw an error in case sdl audio
is requested without sdl being available.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1490000743-3615-1-git-send-email-kraxel@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
configure

index b9a30cfd7bb57fcd83c6513a7d9eeb2b701a1cf8..1e0d7a8253508c365be030f439154139e1532db5 100755 (executable)
--- a/configure
+++ b/configure
@@ -2888,6 +2888,12 @@ for drv in $audio_drv_list; do
     audio_pt_int="yes"
     ;;
 
+    sdl)
+    if test "$sdl" = "no"; then
+        error_exit "sdl not found or disabled, can not use sdl audio driver"
+    fi
+    ;;
+
     coreaudio)
       libs_softmmu="-framework CoreAudio $libs_softmmu"
     ;;
@@ -2901,8 +2907,8 @@ for drv in $audio_drv_list; do
       libs_softmmu="$oss_lib $libs_softmmu"
     ;;
 
-    sdl|wav)
-    # XXX: Probes for CoreAudio, DirectSound, SDL(?)
+    wav)
+    # XXX: Probes for CoreAudio, DirectSound
     ;;
 
     *)