]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
autoconf: add variable for pass arbitrary options to qemu upstream
authorFabio Fantoni <fabio.fantoni@m2r.biz>
Fri, 9 May 2014 12:06:46 +0000 (14:06 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 15 May 2014 15:08:36 +0000 (16:08 +0100)
Added configure options for pass arbitrary configure options to qemu
upstream build.

Usage example:
./configure --with-extra-qemuu-configure-args="--enable-spice --enable-usb-redir"

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
config/Tools.mk.in
tools/Makefile
tools/configure
tools/configure.ac

index 18f3b8ab2b3996401d776fc468ecc813ab7310cd..84b261211a2dd55cf4b951a1dddc6b0efccf79b5 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_QEMU_TRAD    := @qemu_traditional@
 CONFIG_QEMU_XEN     := @qemu_xen@
 CONFIG_BLKTAP1      := @blktap1@
 CONFIG_VTPM         := @vtpm@
+CONFIG_QEMUU_EXTRA_ARGS:= @EXTRA_QEMUU_CONFIGURE_ARGS@
 
 #System options
 ZLIB                := @zlib@
index 3675515eb87ac3e29c65a41768c9d8aa34501383..992fe3e8e8f9494823f5c9b962d4abef7bd11c25 100644 (file)
@@ -203,6 +203,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
                --disable-docs \
                --disable-guest-agent \
                --python=$(PYTHON) \
+               $(CONFIG_QEMUU_EXTRA_ARGS) \
                $(IOEMU_CONFIGURE_CROSS); \
        $(MAKE) all
 
index e1eeff423008f48f1f367a56341d7625c496a2b5..d4a7919745721a71b947405e48511fa8ba31f766 100755 (executable)
@@ -683,6 +683,7 @@ APPEND_LIB
 APPEND_INCLUDES
 PREPEND_LIB
 PREPEND_INCLUDES
+EXTRA_QEMUU_CONFIGURE_ARGS
 ovmf_path
 seabios_path
 qemu_xen
@@ -767,6 +768,7 @@ enable_qemu_traditional
 with_system_qemu
 with_system_seabios
 with_system_ovmf
+with_extra_qemuu_configure_args
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1440,6 +1442,9 @@ Optional Packages:
   --with-system-ovmf[=PATH]
                           Use system supplied OVMF PATH instead of building
                           and installing our own version
+  --with-extra-qemuu-configure-args[="--ARG1 ..."]
+                          List of additional configure options for upstream
+                          qemu
 
 Some influential environment variables:
   CC          C compiler command
@@ -3825,6 +3830,19 @@ fi
 
 
 
+# Check whether --with-extra-qemuu-configure-args was given.
+if test "${with_extra_qemuu_configure_args+set}" = set; then :
+  withval=$with_extra_qemuu_configure_args;
+    case $withval in
+        no) EXTRA_QEMUU_CONFIGURE_ARGS= ;;
+        *)  EXTRA_QEMUU_CONFIGURE_ARGS=$withval ;;
+    esac
+
+fi
+
+
+
+
 
 
 
index 00fb47bae9e50ae8380512ed4416cd335dd7007b..25d7ca389ca3f647ed8a8084a4531bb1e34ee528 100644 (file)
@@ -118,6 +118,16 @@ AC_ARG_WITH([system-ovmf],
 ],[])
 AC_SUBST(ovmf_path)
 
+AC_ARG_WITH([extra-qemuu-configure-args],
+    AS_HELP_STRING([--with-extra-qemuu-configure-args@<:@="--ARG1 ..."@:>@],
+       [List of additional configure options for upstream qemu]),[
+    case $withval in
+        no) EXTRA_QEMUU_CONFIGURE_ARGS= ;;
+        *)  EXTRA_QEMUU_CONFIGURE_ARGS=$withval ;;
+    esac
+],[])
+AC_SUBST(EXTRA_QEMUU_CONFIGURE_ARGS)
+
 AC_ARG_VAR([PREPEND_INCLUDES],
     [List of include folders to prepend to CFLAGS (without -I)])
 AC_ARG_VAR([PREPEND_LIB],