aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-09-11 13:20:39 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2012-09-11 13:20:39 -0300
commit8ca9e258af2921d41214b0b644bdaeedab0f7f64 (patch)
tree21973df930ee1bff414b15a42088dd97e256543c
parent1d7ad2975016b6459e853145d1a872bf95723604 (diff)
parent4b1c11fd20e8901f04a2d9c225cd10fc05a762ff (diff)
Merge commit '4b1c11fd20e8901f04a2d9c225cd10fc05a762ff' into upstream-merge
* commit '4b1c11fd20e8901f04a2d9c225cd10fc05a762ff': Add ability to force enable/disable of tools build Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rwxr-xr-xconfigure21
1 files changed, 15 insertions, 6 deletions
diff --git a/configure b/configure
index be9d7e2f9..b67be2ce7 100755
--- a/configure
+++ b/configure
@@ -226,6 +226,7 @@ usb_redir=""
opengl=""
zlib="yes"
guest_agent="yes"
+want_tools="yes"
libiscsi=""
coroutine=""
seccomp=""
@@ -877,6 +878,10 @@ for opt do
;;
--disable-guest-agent) guest_agent="no"
;;
+ --enable-tools) want_tools="yes"
+ ;;
+ --disable-tools) want_tools="no"
+ ;;
--enable-seccomp) seccomp="yes"
;;
--disable-seccomp) seccomp="no"
@@ -3052,9 +3057,14 @@ fi
qemu_confdir=$sysconfdir$confsuffix
qemu_datadir=$datadir$confsuffix
-tools=
-if test "$softmmu" = yes ; then
+tools=""
+if test "$want_tools" = "yes" ; then
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
+ if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
+ tools="qemu-nbd\$(EXESUF) $tools"
+ fi
+fi
+if test "$softmmu" = yes ; then
if test "$virtfs" != no ; then
if test "$cap" = yes && test "$linux" = yes && test "$attr" = yes ; then
virtfs=yes
@@ -3068,14 +3078,13 @@ if test "$softmmu" = yes ; then
fi
fi
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
- tools="qemu-nbd\$(EXESUF) $tools"
if [ "$guest_agent" = "yes" ]; then
tools="qemu-ga\$(EXESUF) $tools"
fi
fi
-fi
-if test "$smartcard_nss" = "yes" ; then
- tools="vscclient\$(EXESUF) $tools"
+ if test "$smartcard_nss" = "yes" ; then
+ tools="vscclient\$(EXESUF) $tools"
+ fi
fi
# Mac OS X ships with a broken assembler