[gnome-nettool] New configure flag to switch GTK+ version
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nettool] New configure flag to switch GTK+ version
- Date: Wed, 28 Jul 2010 14:24:17 +0000 (UTC)
commit 15c9175038946f5a6ca10cd0f037aa1f58e1cbb1
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Jul 28 16:23:40 2010 +0200
New configure flag to switch GTK+ version
configure.ac | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bab284f..f695245 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,8 +33,27 @@ dnl ******************************************
GTK_REQUIRED=2.90.0
GCONF_REQUIRED=1.1.11
+AC_MSG_CHECKING([which gtk+ version to compile against])
+AC_ARG_WITH([gtk],
+ [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])],
+ [case "$with_gtk" in
+ 2.0|3.0) ;;
+ *) AC_MSG_ERROR([invalid gtk version specified]) ;;
+ esac],
+ [with_gtk=2.0])
+AC_MSG_RESULT([$with_gtk])
+
+case "$with_gtk" in
+ 2.0) GTK_API_VERSION=2.0
+ GTK_REQUIRED=2.19.7
+ ;;
+ 3.0) GTK_API_VERSION=3.0
+ GTK_REQUIRED=2.90.4
+ ;;
+esac
+
PKG_CHECK_MODULES(NETTOOL,
- gtk+-3.0 >= $GTK_REQUIRED
+ gtk+-$GTK_API_VERSION >= $GTK_REQUIRED
gconf-2.0 >= $GCONF_REQUIRED
gmodule-export-2.0
gnome-doc-utils
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]