Add an --enable-alsa option to conditionally add support for alsa so that
QEMU_AUDIO_DRV=alsa is supported.

This makes the dependency to alsa conditional and explicit.

Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
 configure |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index d9292fe..8c6d340 100755
--- a/configure
+++ b/configure
@@ -4,6 +4,7 @@ prefix=/usr/local
 kerneldir=/lib/modules/$(uname -r)/build
 want_module=1
 qemu_cc=$(ls /usr/bin/gcc3* /usr/bin/gcc-3* 2>/dev/null | tail -n1)
+enable_alsa=
 disable_gcc_check=
 
 usage() {
@@ -16,6 +17,7 @@ usage() {
            --with-patched-kernel  don't use external module
            --kerneldir=DIR        kernel build directory ($kerneldir)
            --qemu-cc="$qemu_cc"   compiler for qemu (needs gcc3.x) ($qemu_cc)
+           --enable-alsa          enable alsa support for qemu
            --disable-gcc-check    don't insist on gcc-3.x
                                    - this will break running without kvm
 EOF
@@ -50,6 +52,9 @@ while [[ "$1" = -* ]]; do
        --qemu-cc)
            qemu_cc="$arg"
            ;;
+       --enable-alsa)
+           enable_alsa=1
+           ;;
        --disable-gcc-check)
            disable_gcc_check=1
            ;;
@@ -85,7 +90,7 @@ target_cpu() {
     --disable-kqemu --extra-cflags="-I $PWD/../user" \
     --extra-ldflags="-L $PWD/../user" \
     --enable-kvm --kernel-path="$libkvm_kerneldir" \
-    --enable-alsa \
+    ${enable_alsa:+"--enable-alsa"} \
     ${disable_gcc_check:+"--disable-gcc-check"} \
     --prefix="$prefix"
 )
-- 
1.5.2.5


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to