summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2006-11-14 12:03:15 +0000
committerAvi Kivity <avi@qumranet.com>2006-11-14 12:03:15 +0000
commit3c3b242902e1075dee3e2ce9ff2570c168ca0782 (patch)
treed517645d51031660c3894f14b28dcce615defbd2 /configure
parentdf993e2f2ba2cf86587088416e6b0eeb9cccdc64 (diff)
kvm: merge fixes from release branch (revs 3615, 3632, 3643, 3648, 3721-2)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index 9e983a6b..23e7ed9f 100755
--- a/configure
+++ b/configure
@@ -53,8 +53,16 @@ if (( want_module )); then
libkvm_kerneldir=$(readlink -f kernel)
fi
+target_cpu() {
+ if [[ $(uname -m) = i?86 ]]; then
+ echo i386
+ else
+ uname -m
+ fi
+}
+
(cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir")
-(cd qemu; ./configure --target-list=$(uname -i)-softmmu --cc="$qemu_cc" \
+(cd qemu; ./configure --target-list=$(target_cpu)-softmmu --cc="$qemu_cc" \
--disable-kqemu --extra-cflags="-I $PWD/../user" \
--extra-ldflags="-L $PWD/../user" \
--enable-kvm --kernel-path="$libkvm_kerneldir" \