Add ability to force enable/disable of tools build
The qemu-img, qemu-nbd and qemu-io tools are built conditionally
based on whether any softmmu target is enabled. These are useful
self-contained tools which can be used in many other scenarios.
Add new --enable-tools/--disable-tools args to configure to allow
the user to explicitly turn on / off their build. The default
behaviour is now to build these tools are all times, regardless
of whether any softmmu target is enabled
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 4b1c11fd20
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Roth
parent
5af6b07ab0
commit
b5701820f8
21
configure
vendored
21
configure
vendored
@@ -215,6 +215,7 @@ usb_redir=""
|
|||||||
opengl=""
|
opengl=""
|
||||||
zlib="yes"
|
zlib="yes"
|
||||||
guest_agent="yes"
|
guest_agent="yes"
|
||||||
|
want_tools="yes"
|
||||||
libiscsi=""
|
libiscsi=""
|
||||||
coroutine=""
|
coroutine=""
|
||||||
seccomp=""
|
seccomp=""
|
||||||
@@ -847,6 +848,10 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-guest-agent) guest_agent="no"
|
--disable-guest-agent) guest_agent="no"
|
||||||
;;
|
;;
|
||||||
|
--enable-tools) want_tools="yes"
|
||||||
|
;;
|
||||||
|
--disable-tools) want_tools="no"
|
||||||
|
;;
|
||||||
--enable-seccomp) seccomp="yes"
|
--enable-seccomp) seccomp="yes"
|
||||||
;;
|
;;
|
||||||
--disable-seccomp) seccomp="no"
|
--disable-seccomp) seccomp="no"
|
||||||
@@ -3007,9 +3012,14 @@ fi
|
|||||||
qemu_confdir=$sysconfdir$confsuffix
|
qemu_confdir=$sysconfdir$confsuffix
|
||||||
qemu_datadir=$datadir$confsuffix
|
qemu_datadir=$datadir$confsuffix
|
||||||
|
|
||||||
tools=
|
tools=""
|
||||||
if test "$softmmu" = yes ; then
|
if test "$want_tools" = "yes" ; then
|
||||||
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
|
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 "$virtfs" != no ; then
|
||||||
if test "$cap" = yes && test "$linux" = yes && test "$attr" = yes ; then
|
if test "$cap" = yes && test "$linux" = yes && test "$attr" = yes ; then
|
||||||
virtfs=yes
|
virtfs=yes
|
||||||
@@ -3023,14 +3033,13 @@ if test "$softmmu" = yes ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
|
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
|
||||||
tools="qemu-nbd\$(EXESUF) $tools"
|
|
||||||
if [ "$guest_agent" = "yes" ]; then
|
if [ "$guest_agent" = "yes" ]; then
|
||||||
tools="qemu-ga\$(EXESUF) $tools"
|
tools="qemu-ga\$(EXESUF) $tools"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
if test "$smartcard_nss" = "yes" ; then
|
||||||
if test "$smartcard_nss" = "yes" ; then
|
tools="vscclient\$(EXESUF) $tools"
|
||||||
tools="vscclient\$(EXESUF) $tools"
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mac OS X ships with a broken assembler
|
# Mac OS X ships with a broken assembler
|
||||||
|
Reference in New Issue
Block a user