summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belon <carenas@sajinet.com.pe>2007-10-17 11:14:43 -0500
committerAvi Kivity <avi@qumranet.com>2007-10-17 18:52:34 +0200
commitd3bcc58f74b29df8496933c441640d9c739ba674 (patch)
tree94cc8756cb81c87983dc82b65bcaa679f35112c8 /configure
parentc4ed427fc46670d559e80966d82a198e09d6112d (diff)
kvm: configure: qemu alsa configure option
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@sajinet.com.pe> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 6c01b125..9ac8f831 100755
--- a/configure
+++ b/configure
@@ -6,6 +6,7 @@ want_module=1
qemu_cc=
qemu_cflags=
qemu_ldflags=
+enable_alsa=
disable_gcc_check=
cross_prefix=
arch=`uname -m`
@@ -24,6 +25,7 @@ usage() {
--qemu-cc=CC specify compiler for qemu (must be gcc-3.x)
--qemu-cflags=CFLAGS CFLAGS to add to qemu configuration
--qemu-ldflags=LDFLAGS LDFLAGS to add to qemu configuration
+ --enable-alsa enable alsa support for qemu
--disable-gcc-check don't insist on gcc-3.x
CAUTION: this will break running without kvm
EOF
@@ -56,6 +58,9 @@ while [[ "$1" = -* ]]; do
--qemu-ldflags)
qemu_ldflags="$arg"
;;
+ --enable-alsa)
+ enable_alsa=1
+ ;;
--disable-gcc-check)
disable_gcc_check=1
;;
@@ -87,10 +92,8 @@ if [[ $arch = i?86 ]]; then
fi
#set parameters compiling
-qemu_opts=
if [ "$arch" = "i386" -o "$arch" = "x86_64" ]; then
target_exec="x86_64-softmmu"
- qemu_opts+=" --enable-alsa"
fi
#configure user dir
@@ -103,11 +106,11 @@ fi
--disable-kqemu --extra-cflags="-I $PWD/../user $qemu_cflags" \
--extra-ldflags="-L $PWD/../user $qemu_ldflags" \
--enable-kvm --kernel-path="$libkvm_kerneldir" \
+ ${enable_alsa:+"--enable-alsa"} \
${disable_gcc_check:+"--disable-gcc-check"} \
--prefix="$prefix" \
${qemu_cc:+"--cc=$qemu_cc"} \
${cross_prefix:+"--cross-prefix=$cross_prefix --cpu=$arch"} \
- $qemu_opts
)