aboutsummaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2013-05-15 14:47:32 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-08-21 10:39:20 +0100
commit5c7cbadaccca8dbb47f2c42ab1b5a8afac9275e3 (patch)
tree0f3fa769942ff67d46cb9cd6fd5dc412c6cb6656 /tools/configure
parentb0f69ec5c71de1248d915c193b57c43e786857dd (diff)
downloadxen-5c7cbadaccca8dbb47f2c42ab1b5a8afac9275e3.tar.gz
xen-5c7cbadaccca8dbb47f2c42ab1b5a8afac9275e3.tar.bz2
xen-5c7cbadaccca8dbb47f2c42ab1b5a8afac9275e3.zip
tools: allow user to specify a system qemu-xen binary
If this option is given don't bother building qemu-xen ourselves. Likely to be handy for distros who have an existing qemu package which they want to reuse. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure41
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 739842381c..4be39fca34 100755
--- a/tools/configure
+++ b/tools/configure
@@ -654,6 +654,7 @@ APPEND_LIB
APPEND_INCLUDES
PREPEND_LIB
PREPEND_INCLUDES
+qemu_xen
qemu_traditional
blktap1
xend
@@ -736,6 +737,7 @@ enable_debug
enable_xend
enable_blktap1
enable_qemu_traditional
+with_system_qemu
'
ac_precious_vars='build_alias
host_alias
@@ -1400,6 +1402,14 @@ Optional Features:
Enable qemu traditional device model, (DEFAULT is on
for x86, otherwise off)
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-system-qemu[=PATH]
+ Use system supplied qemu PATH or qemu (taken from
+ $PATH) as qemu-xen device model instead of building
+ and installing our own version
+
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
@@ -3686,6 +3696,37 @@ fi
+# Check whether --with-system-qemu was given.
+if test "${with_system_qemu+set}" = set; then :
+ withval=$with_system_qemu;
+ case $withval in
+ yes) qemu_xen=n ; qemu_xen_path=qemu ;;
+ no) qemu_xen=y ; qemu_xen_path= ;;
+ *) qemu_xen=n ; qemu_xen_path=$withval ;;
+ esac
+
+else
+
+ case "$host_cpu" in
+ i[3456]86|x86_64)
+ qemu_xen=y;;
+ *) qemu_xen=n;;
+ esac
+
+fi
+
+if test "x$qemu_xen" = "xn"; then :
+
+
+cat >>confdefs.h <<_ACEOF
+#define QEMU_XEN_PATH "$qemu_xen_path"
+_ACEOF
+
+
+fi
+
+
+