aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-03-22 15:06:32 +0200
committerAvi Kivity <avi@redhat.com>2009-03-22 15:06:32 +0200
commit10ebc211e321a529db239d84ac82a210d482dc38 (patch)
treebf8c036d56c3d6b0d3590f6bf7236abadf500a6f
parent0b4e8e8e9c90be10ccdfab371e223f95130c6cee (diff)
kvm: configure: avoid building the external module if kernel/Makefile is not present
Signed-off-by: Avi Kivity <avi@redhat.com>
-rwxr-xr-xkvm/configure4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvm/configure b/kvm/configure
index 48a8bbb65..b9419c079 100755
--- a/kvm/configure
+++ b/kvm/configure
@@ -21,6 +21,10 @@ if [ -z "TMPDIR" ] ; then
TMPDIR=.
fi
+if [ ! -e kernel/Makefile ]; then
+ want_module=
+fi
+
usage() {
cat <<-EOF
Usage: $0 [options]