[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 00/12] audio patch queue
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PULL 00/12] audio patch queue |
Date: |
Wed, 10 Jun 2015 09:09:12 +0200 |
Hi,
> Right, but you can't break compilation. At a minimum, we
> need a configure test so we don't try to build the dsound
> backend unless the compile environment supports it.
Can you try whenever the attached patch works for you?
thanks,
Gerd
>From a3964a1c6f46ddb5631b7d397c7a7a628ad5c8cd Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <address@hidden>
Date: Wed, 10 Jun 2015 09:07:35 +0200
Subject: [PATCH] only enable dsound in case the header file is present
Signed-off-by: Gerd Hoffmann <address@hidden>
---
configure | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index ccf8dc7..222694f 100755
--- a/configure
+++ b/configure
@@ -435,6 +435,14 @@ EOF
compile_object
}
+check_include() {
+cat > $TMPC <<EOF
+#include <$1>
+int main(void) { return 0; }
+EOF
+ compile_object
+}
+
write_c_skeleton() {
cat > $TMPC <<EOF
int main(void) { return 0; }
@@ -568,7 +576,11 @@ CYGWIN*)
MINGW32*)
mingw32="yes"
audio_possible_drivers="dsound sdl"
- audio_drv_list="dsound"
+ if check_include dsound.h; then
+ audio_drv_list="dsound"
+ else
+ audio_drv_list=""
+ fi
;;
GNU/kFreeBSD)
bsd="yes"
--
1.8.3.1
- [Qemu-devel] [PULL 01/12] audio: remove esd backend, (continued)
- [Qemu-devel] [PULL 01/12] audio: remove esd backend, Gerd Hoffmann, 2015/06/09
- [Qemu-devel] [PULL 06/12] alsaaudio: do not use global variables, Gerd Hoffmann, 2015/06/09
- [Qemu-devel] [PULL 03/12] audio: remove winwave audio driver, Gerd Hoffmann, 2015/06/09
- [Qemu-devel] [PULL 10/12] dsoundaudio: do not use global variables, Gerd Hoffmann, 2015/06/09
- [Qemu-devel] [PULL 05/12] paaudio: do not use global variables, Gerd Hoffmann, 2015/06/09
- [Qemu-devel] [PULL 02/12] audio: remove fmod backend, Gerd Hoffmann, 2015/06/09
- Re: [Qemu-devel] [PULL 00/12] audio patch queue, Peter Maydell, 2015/06/09
- Re: [Qemu-devel] [PULL 00/12] audio patch queue, Gerd Hoffmann, 2015/06/10