mirror of
https://github.com/qemu/qemu.git
synced 2025-08-08 08:05:17 +00:00
guest agent: add --enable-guest-agent config option
QAPI will require glib/python, but for now the guest agent is the only user. For now, make these dependencies an explicit guest agent one, and give users the option to disable it if need be. Once QAPI is adopted in core QEMU code, we would basically revert this patch. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9af8025e24
commit
d138cee907
22
configure
vendored
22
configure
vendored
@ -181,6 +181,7 @@ smartcard_nss=""
|
|||||||
usb_redir=""
|
usb_redir=""
|
||||||
opengl=""
|
opengl=""
|
||||||
zlib="yes"
|
zlib="yes"
|
||||||
|
guest_agent="yes"
|
||||||
|
|
||||||
# parse CC options first
|
# parse CC options first
|
||||||
for opt do
|
for opt do
|
||||||
@ -757,6 +758,10 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-zlib-test) zlib="no"
|
--disable-zlib-test) zlib="no"
|
||||||
;;
|
;;
|
||||||
|
--enable-guest-agent) guest_agent="yes"
|
||||||
|
;;
|
||||||
|
--disable-guest-agent) guest_agent="no"
|
||||||
|
;;
|
||||||
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1034,6 +1039,8 @@ echo " --disable-smartcard-nss disable smartcard nss support"
|
|||||||
echo " --enable-smartcard-nss enable smartcard nss support"
|
echo " --enable-smartcard-nss enable smartcard nss support"
|
||||||
echo " --disable-usb-redir disable usb network redirection support"
|
echo " --disable-usb-redir disable usb network redirection support"
|
||||||
echo " --enable-usb-redir enable usb network redirection support"
|
echo " --enable-usb-redir enable usb network redirection support"
|
||||||
|
echo " --disable-guest-agent disable building of the QEMU Guest Agent"
|
||||||
|
echo " --enable-guest-agent enable building of the QEMU Guest Agent"
|
||||||
echo ""
|
echo ""
|
||||||
echo "NOTE: The object files are built at the place where configure is launched"
|
echo "NOTE: The object files are built at the place where configure is launched"
|
||||||
exit 1
|
exit 1
|
||||||
@ -1093,11 +1100,13 @@ if test "$solaris" = "yes" ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if has $python; then
|
if test "$guest_agent" != "no" ; then
|
||||||
|
if has $python; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
echo "Python not found. Use --python=/path/to/python"
|
echo "Python not found. Use --python=/path/to/python"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$target_list" ; then
|
if test -z "$target_list" ; then
|
||||||
@ -1835,14 +1844,16 @@ fi
|
|||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# glib support probe
|
# glib support probe
|
||||||
if $pkg_config --modversion glib-2.0 > /dev/null 2>&1 ; then
|
if test "$guest_agent" != "no" ; then
|
||||||
|
if $pkg_config --modversion glib-2.0 > /dev/null 2>&1 ; then
|
||||||
glib_cflags=`$pkg_config --cflags glib-2.0 2>/dev/null`
|
glib_cflags=`$pkg_config --cflags glib-2.0 2>/dev/null`
|
||||||
glib_libs=`$pkg_config --libs glib-2.0 2>/dev/null`
|
glib_libs=`$pkg_config --libs glib-2.0 2>/dev/null`
|
||||||
libs_softmmu="$glib_libs $libs_softmmu"
|
libs_softmmu="$glib_libs $libs_softmmu"
|
||||||
libs_tools="$glib_libs $libs_tools"
|
libs_tools="$glib_libs $libs_tools"
|
||||||
else
|
else
|
||||||
echo "glib-2.0 required to compile QEMU"
|
echo "glib-2.0 required to compile QEMU"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
@ -2602,7 +2613,9 @@ if test "$softmmu" = 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
|
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
|
||||||
tools="qemu-nbd\$(EXESUF) $tools"
|
tools="qemu-nbd\$(EXESUF) $tools"
|
||||||
|
if [ "$guest_agent" = "yes" ]; then
|
||||||
tools="qemu-ga\$(EXESUF) $tools"
|
tools="qemu-ga\$(EXESUF) $tools"
|
||||||
|
fi
|
||||||
if [ "$check_utests" = "yes" ]; then
|
if [ "$check_utests" = "yes" ]; then
|
||||||
tools="check-qint check-qstring check-qdict check-qlist $tools"
|
tools="check-qint check-qstring check-qdict check-qlist $tools"
|
||||||
tools="check-qfloat check-qjson $tools"
|
tools="check-qfloat check-qjson $tools"
|
||||||
@ -2704,6 +2717,7 @@ echo "xfsctl support $xfs"
|
|||||||
echo "nss used $smartcard_nss"
|
echo "nss used $smartcard_nss"
|
||||||
echo "usb net redir $usb_redir"
|
echo "usb net redir $usb_redir"
|
||||||
echo "OpenGL support $opengl"
|
echo "OpenGL support $opengl"
|
||||||
|
echo "build guest agent $guest_agent"
|
||||||
|
|
||||||
if test "$sdl_too_old" = "yes"; then
|
if test "$sdl_too_old" = "yes"; then
|
||||||
echo "-> Your SDL version is too old - please upgrade to have SDL support"
|
echo "-> Your SDL version is too old - please upgrade to have SDL support"
|
||||||
|
Loading…
Reference in New Issue
Block a user