From ab0f563ddc6720dea444c25c967a9c07b4e96190 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Tue, 11 Oct 2011 15:46:42 +0000 Subject: [PATCH] use PKG_CHECK_EXISTS, rather than PKG_CHECK_MODULES, to test for GTK+ 2 and GTK+ 3. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 58d6d8590..0bf468da5 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 2.40.0