diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-07 14:42:17 +0000 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-01-07 14:42:17 +0000 |
commit | 0d354fe9d8eaee1b3abc9dee7824021edb9f4976 (patch) | |
tree | 2e9e62a90e43e3a13d4c5115f836010ea885be04 /configure | |
parent | 642da8f56ebcb3cc468bcf1fac2cb98057eb19ed (diff) |
kvm: configure: support --disable-gcc-check
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) +disable_gcc_check= usage() { cat <<-EOF @@ -15,6 +16,8 @@ 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) + --disable-gcc-check don't insist on gcc-3.x + - this will break running without kvm EOF exit 1 } @@ -39,6 +42,9 @@ while [[ "$1" = -* ]]; do --qemu-cc) qemu_cc="$arg" ;; + --disable-gcc-check) + disable_gcc_check=1 + ;; --help) usage ;; @@ -72,6 +78,7 @@ target_cpu() { --extra-ldflags="-L $PWD/../user" \ --enable-kvm --kernel-path="$libkvm_kerneldir" \ --enable-alsa \ + ${disable_gcc_check:+"--disable-gcc-check"} \ --prefix="$prefix" ) |