From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH 1/2] alsa configure option Date: Wed, 17 Oct 2007 11:14:43 -0500 Message-ID: <20071017161443.GC27102@tapir> References: <20071017161133.GB27102@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel Return-path: Content-Disposition: inline In-Reply-To: <20071017161133.GB27102@tapir> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 --- 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/