[seahorse/gnome-3-0] Build with GTK+3 by default.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/gnome-3-0] Build with GTK+3 by default.
- Date: Mon, 25 Apr 2011 06:56:46 +0000 (UTC)
commit 072e0510b781811b71b3c3535e0a481eb7af2298
Author: Stef Walter <stefw collabora co uk>
Date: Mon Apr 25 08:52:11 2011 +0200
Build with GTK+3 by default.
* Accept arguments like --with-gtk=2 and --with-gtk=3 instead
of strict --with-gtk=3.0.
configure.in | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/configure.in b/configure.in
index 7eba909..f3aac7b 100644
--- a/configure.in
+++ b/configure.in
@@ -47,24 +47,26 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
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)])],
+ [AS_HELP_STRING([--with-gtk=2|3],[which GTK+ version to compile against (default: 3)])],
[case "$with_gtk" in
- 2.0|3.0) ;;
+ 2*|3*) ;;
*) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
esac],
- [with_gtk=2.0])
+ [with_gtk=3])
AC_MSG_RESULT([$with_gtk])
case "$with_gtk" in
- 2.0)
+ 2*)
GCR_LIBRARY=gcr-0
GTK_API_VERSION=2.0
GTK_REQUIRED=2.20.0
+ with_gtk=2.0
;;
- 3.0)
+ 3*)
GCR_LIBRARY=gcr-3
GTK_API_VERSION=3.0
GTK_REQUIRED=2.90.0
+ with_gtk=3.0
;;
esac
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]