]> git.proxmox.com Git - qemu.git/commitdiff
qemu-ga: build it even if !system
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 31 Jul 2013 10:22:07 +0000 (14:22 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 2 Aug 2013 14:02:08 +0000 (18:02 +0400)
Move qemu-ga build check out of if softmmu.. into its own section.
We want to build qemu-ga for _guest_ even if system build isn't
done.  It is controlled separately using --enable-guest-agent.
Additionally, give error message if guest agent is requested but
not supported.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
configure

index f0761ea862c01ddae753f128900bec2b74a85103..293f1677e6f38250373e06f421a5c6be83acf2af 100755 (executable)
--- a/configure
+++ b/configure
@@ -231,7 +231,7 @@ libusb=""
 usb_redir=""
 glx=""
 zlib="yes"
-guest_agent="yes"
+guest_agent=""
 want_tools="yes"
 libiscsi=""
 coroutine=""
@@ -3444,10 +3444,15 @@ if test "$softmmu" = yes ; then
       virtfs=no
     fi
   fi
+fi
+if [ "$guest_agent" != "no" ]; then
   if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
-    if [ "$guest_agent" = "yes" ]; then
       tools="qemu-ga\$(EXESUF) $tools"
-    fi
+      guest_agent=yes
+  elif [ "$guest_agent" != yes ]; then
+      guest_agent=no
+  else
+      error_exit "Guest agent is not supported on this platform"
   fi
 fi