]> granicus.if.org Git - transmission/commitdiff
use PKG_CHECK_EXISTS, rather than PKG_CHECK_MODULES, to test for GTK+ 2 and GTK+ 3.
authorJordan Lee <jordan@transmissionbt.com>
Tue, 11 Oct 2011 15:46:42 +0000 (15:46 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 11 Oct 2011 15:46:42 +0000 (15:46 +0000)
configure.ac

index 58d6d85907c4cdbba1aa6115bca719e15a18a896..0bf468da52b157bb987ba02f7fefe2046242db3b 100644 (file)
@@ -316,8 +316,8 @@ dnl  detection for the GTK+ client
 
 gtk_version="none"
 with_gtk_default="no"
-PKG_CHECK_MODULES([GTK2],[gtk+-2.0 >= $GTK2_MINIMUM],[gtk_version="2" with_gtk_default="yes"])
-PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_MINIMUM],[gtk_version="3" with_gtk_default="yes"])
+PKG_CHECK_EXISTS([gtk+-2.0 >= $GTK2_MINIMUM],[gtk_version="2" with_gtk_default="yes"])
+PKG_CHECK_EXISTS([gtk+-3.0 >= $GTK3_MINIMUM],[gtk_version="3" with_gtk_default="yes"])
 AC_ARG_WITH([gtk], AC_HELP_STRING([--with-gtk],[with Gtk]),
             [with_gtk=$withval],
             [with_gtk=$with_gtk_default])