[gtkhtml] compatibility with gtk2. bump api versions when compiled gtk-3.



commit 49eb8d852f76e119782e59651be7c31b5bd9ac67
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Mon Jun 28 20:40:59 2010 +0530

    compatibility with gtk2. bump api versions when compiled gtk-3.

 configure.ac |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a56a9cf..4002b51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,19 +16,27 @@ m4_define([gnome_icon_theme_minimum_version], [2.22.0])
 dnl **********************************
 dnl GTK version
 dnl **********************************
-if $PKG_CONFIG --exists gtk+-3.0; then
+
+AC_ARG_ENABLE([gtk+-3],
+	AS_HELP_STRING([--enable-gtk3],
+	[Attempt to use gtk+-3]),
+	[enable_gtk3=$enableval],[enable_gtk3=no])
+
+if test "x${enable_gtk3}" = "xyes"; then
 	GTK_PACKAGE="gtk+-3.0"
 	gtk_minimum_version="2.90.5"
+	GTKHTML_API_VERSION=4.0
+	EDITOR_API_VERSION=4.0
 else	
 	GTK_PACKAGE="gtk+-2.0"
 	gtk_minimum_version="2.20.0"
+	GTKHTML_API_VERSION=3.14
+	EDITOR_API_VERSION=3.14
 fi
 
-GTKHTML_API_VERSION=3.14
 AC_DEFINE_UNQUOTED(GTKHTML_API_VERSION, "${GTKHTML_API_VERSION}", [GtkHTML API Version])
 AC_SUBST(GTKHTML_API_VERSION)
 
-EDITOR_API_VERSION=3.14
 AC_DEFINE_UNQUOTED(EDITOR_API_VERSION, "${EDITOR_API_VERSION}", [Editor API Version])
 AC_SUBST(EDITOR_API_VERSION)
 



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