[gnome-boxes] Add HAVE_USBREDIR configuration



commit e812e71a79d96f9be502a3825fdda48872eb6b22
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Nov 5 12:20:42 2012 +0100

    Add HAVE_USBREDIR configuration
    
    If this is set we assume that everything works with usb redirection
    in qemu, including usb device migration to/from disk etc. The default
    is no, since only the unreleased qemu 1.3 and F18 qemu 1.2 supports
    this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672268

 configure.ac    |    7 +++++++
 src/config.vapi |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ef6ab8d..70d409c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,13 @@ LIBGD_INIT([
   vapi
 ])
 
+AC_ARG_ENABLE(usbredir,
+	AS_HELP_STRING([--enable-usbredir],[Enable usb redirection (requires qemu 1.3)]),,
+        enable_usbredir=no)
+AS_IF([test "x$enable_usbredir" = "xyes"],
+      [AC_DEFINE([HAVE_USBREDIR], [1], [Qemu supports usbredir])],
+      [AC_DEFINE([HAVE_USBREDIR], [0], [Qemu supports usbredir])])
+
 dnl Strict compiler
 AC_ARG_ENABLE([strict-cc],
   AS_HELP_STRING([--enable-strict-cc],[Enable strict C compiler]))
diff --git a/src/config.vapi b/src/config.vapi
index 1d94e77..01ccc6b 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -9,4 +9,5 @@ namespace Config {
         public const string DATADIR;
         public const string PACKAGE_BUGREPORT;
         public const string PACKAGE_URL;
+        public const bool HAVE_USBREDIR;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]