From f33c49f72de45c7143fcb80415e0d33be4843e89 Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Mon, 29 Jun 2015 10:58:40 +0200 Subject: [PATCH] configure: Enable spice-gtk when have all necessary spice packages When neither --with-spice-gtk=yes nor --with-spice-gtk=no is used, spice-gtk is supposed to be automatically enabled/disabled depending on its availability. However, this is not perfectly working as once spice-gtk has been detected as available, configure will fail if spice-protocol or spice-controller are too old. In this case, spice-gtk support should just be disabled rather than configure failing --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3399129..df0053d 100644 --- a/configure.ac +++ b/configure.ac @@ -180,7 +180,8 @@ AC_ARG_WITH([spice-gtk], AS_IF([test "x$with_spice_gtk" != "xno"], [PKG_CHECK_MODULES(SPICE_GTK, - [spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED], + [spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED + spice-controller spice-protocol >= $SPICE_PROTOCOL_REQUIRED], [have_spice_gtk=yes], [have_spice_gtk=no])], [have_spice_gtk=no])