Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- Makefile.target | 2 +- configure | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target index e15b1c4..8564a8f 100644 --- a/Makefile.target +++ b/Makefile.target @@ -186,7 +186,7 @@ endif #CONFIG_BSD_USER # System emulator target ifdef CONFIG_SOFTMMU -obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o +obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o virtagent.o virtagent-server.o virtagent-common.o # virtio has to be here due to weird dependency between PCI and virtio-net. # need to fix this properly obj-$(CONFIG_NO_PCI) += pci-stub.o diff --git a/configure b/configure index 438219b..4814351 100755 --- a/configure +++ b/configure @@ -1271,6 +1271,37 @@ EOF fi ########################################## +# xmlrpc-c probe + +discard_cmake_vars() { + echo "$@" | sed 's/@.*@//g' +} + +# Look for the xmlrpc-c config program +if test -n "$cross_prefix" && has ${cross_prefix}xmlrpc-c-config; then + xmlrpccconfig=${cross_prefix}xmlrpc-c-config +elif has xmlrpc-c-config; then + xmlrpccconfig=xmlrpc-c-config +else + feature_not_found "xmlrpc-c" +fi + +cat > $TMPC << EOF +#include <xmlrpc.h> +int main(void) { xmlrpc_env env; xmlrpc_env_init(&env); return 0; } +EOF +xmlrpc_cflags=`$xmlrpccconfig --cflags 2> /dev/null` +xmlrpc_cflags=`discard_cmake_vars $xmlrpc_cflags` +xmlrpc_libs=`$xmlrpccconfig client server-util --libs 2> /dev/null` +xmlrpc_libs=`discard_cmake_vars $xmlrpc_libs` +if compile_prog "$xmlrpc_cflags" "$xmlrpc_libs"; then + libs_softmmu="$xmlrpc_libs $libs_softmmu" + libs_tools="$xmlrpc_libs $libs_tools" +else + feature_not_found "xmlrpc-c" +fi + +########################################## # VNC TLS detection if test "$vnc_tls" != "no" ; then cat > $TMPC <<EOF @@ -2368,6 +2399,7 @@ if test "$softmmu" = 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" + tools="qemu-va\$(EXESUF) $tools" if [ "$check_utests" = "yes" ]; then tools="check-qint check-qstring check-qdict check-qlist $tools" tools="check-qfloat check-qjson $tools" -- 1.7.0.4