[gedit-plugins] Bug 618243 - Build with gtk+-3.0 if it's available



commit 2f8442419dddcda44fd93afee5b046ca63ea4804
Author: Garrett Regier <alias301 gmail com>
Date:   Mon May 10 02:41:02 2010 -0700

    Bug 618243 - Build with gtk+-3.0 if it's available

 configure.ac |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 29ae94f..a64c83d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,10 +60,23 @@ AM_GLIB_GNU_GETTEXT
 # Start of pkg-config checks
 # ================================================================
 
+# Dependencies
+GTK_REQUIRED=
+GTK_REQUIRED_VERSION=
+
+PKG_CHECK_EXISTS([gtk+-3.0 >= 2.90],
+		 [
+		 	GTK_REQUIRED=gtk+-3.0
+		 	GTK_REQUIRED_VERSION=2.90.0
+		 ],[
+		 	GTK_REQUIRED=gtk+-2.0
+		 	GTK_REQUIRED_VERSION=2.13.0
+		 ])
+
 PKG_CHECK_MODULES(GEDIT, [
 	glib-2.0 >= 2.13.0
 	gio-2.0 >= 2.25.4
-	gtk+-2.0 >= 2.13.0
+	$GTK_REQUIRED >= $GTK_REQUIRED_VERSION
 	gconf-2.0 >= 1.1.11
 	gtksourceview-2.0 >= 2.9.1
 	gedit-3.0 >= 2.31.1



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