[libpeas] Always build against gtk+ 3 unless an option is given.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Always build against gtk+ 3 unless an option is given.
- Date: Wed, 16 Jun 2010 21:16:14 +0000 (UTC)
commit 5adf91a4cd4ccf9489c6ccedcbe2141a59ce91f4
Author: Steve Frécinaux <code istique net>
Date: Wed Jun 16 23:13:14 2010 +0200
Always build against gtk+ 3 unless an option is given.
This option is named --enable-gtk2-test-build to make it as explicit as
possible that this option is only intended for testing purposes and that
people should not distribute a build done using that option.
configure.ac | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 36128dc..f102ac9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,12 +98,14 @@ PKG_CHECK_MODULES(PEAS, [
gobject-introspection-1.0 >= 0.6.7
])
-AC_MSG_CHECKING([for Gtk+ 3.0 availability.])
-PKG_CHECK_EXISTS([gtk+-3.0 >= 2.90],[found_gtk3=yes],[found_gtk3=no])
-AC_MSG_RESULT([$found_gtk3])
-
-if test "$found_gtk3" = "yes"; then
- PKG_CHECK_MODULES(PEASUI, [gtk+-3.0 >= 2.90.0])
+dnl We currently allow building libpeas with Gtk+ 2.0 for testing purposes and
+dnl technology preview. but do *not* distribute such a version!
+AC_ARG_ENABLE(gtk2-test-build,
+ AS_HELP_STRING([--gtk2-test-build],[Link against gtk+ 2.0, for testing purpose]),
+ [use_gtk2=$enableval],
+ [use_gtk2=no])
+
+if test "$use_gtk2" != "yes"; then
GTK_TYPELIB=Gtk-3.0
GTK_PKG_REQUIREMENT="gtk+-3.0 >= 2.90"
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]