All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [PATCH 1/2] alsa configure option
Date: Wed, 17 Oct 2007 11:14:43 -0500	[thread overview]
Message-ID: <20071017161443.GC27102@tapir> (raw)
In-Reply-To: <20071017161133.GB27102@tapir>

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 <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
---
 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/

  reply	other threads:[~2007-10-17 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17 16:11 [PATCH 0/2] add flags for conditional compilation of qemu dependencies Carlo Marcelo Arenas Belon
2007-10-17 16:14 ` Carlo Marcelo Arenas Belon [this message]
2007-10-17 16:16 ` [PATCH 2/2] vnc-tls configure flag Carlo Marcelo Arenas Belon
2007-10-17 16:55 ` [PATCH 0/2] add flags for conditional compilation of qemu dependencies Avi Kivity
     [not found]   ` <47163E66.5010501-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-18 18:04     ` Carlo Marcelo Arenas Belon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071017161443.GC27102@tapir \
    --to=carenas-kledwsohozojb6fo7hg9ng@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.