]> Pileus Git - ~andy/gtk/commitdiff
configure.ac: Fix build if no XInput libraries are available.
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 15 Jun 2010 21:24:34 +0000 (23:24 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 15 Jun 2010 21:28:49 +0000 (23:28 +0200)
configure.ac

index 8db352d2f11ea2695ff5136471a71082e9f3b0c9..7f95a562a9fb601c3d6b64fc8c556b80bc9d1e0d 100644 (file)
@@ -1562,6 +1562,8 @@ if test "x$gdktarget" = "xx11"; then
 
   # set up things for XInput
   if test "x$with_xinput" != "xno" && $PKG_CONFIG --exists "xi" ; then
+    have_xinput=yes
+
     AC_DEFINE(XINPUT_XFREE, 1,
               [Define to 1 if XFree XInput should be used])
 
@@ -1574,7 +1576,7 @@ if test "x$gdktarget" = "xx11"; then
               [Define to 1 if no XInput should be used])
   fi
 
-  AM_CONDITIONAL(XINPUT_XFREE, test "x$with_xinput" != "xno")
+  AM_CONDITIONAL(XINPUT_XFREE, test "x$have_xinput" = "xyes")
   AM_CONDITIONAL(XINPUT_2,     test "x$have_xinput2" = "xyes")
 
   # Check for the RANDR extension