[evolution-rss/evolution-rss-0-2-0] fix gtkhtml detection
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss/evolution-rss-0-2-0] fix gtkhtml detection
- Date: Sun, 5 Dec 2010 11:55:12 +0000 (UTC)
commit 3207ce4bf15334c3abdb91ada7e814aa2f6184ea
Author: Lucian Langa <lucilanga gnome org>
Date: Sun Dec 5 10:25:13 2010 +0200
fix gtkhtml detection
configure.ac | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a14e77e..7f062c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,19 @@ SOUP="-$SOUP"
fi
fi
+dnl locate gtkhtml package
+GTKHTML=
+PKG_CHECK_MODULES([GTKHTML], libgtkhtml-3.14, [GH=3.14], [GH=])
+if test "x$GH" != "x3.14"; then
+ AC_MSG_ERROR([libgtkhtml-3.14 devel headers required])
+else
+if test "x$GH" == "x"; then
+ PKG_CHECK_MODULES(GTKHTML, libgtkhtml, [GH=], [])
+else
+GTKHTML="-$GH"
+fi
+fi
+
dnl base packages and versions
LIBGLIB_REQUIRED=2.16.2
LIBGTK_REQUIRED=2.12.0
@@ -86,9 +99,6 @@ EVOLUTION_REQUIRED=2.4.1
LIBSOUP_REQUIRED=2.2
LIBGTKHTML_REQUIRED=3.18.3
-GTKHTML_VERSION="libgtkhtml-3.14"
-GTKHTML_EDITOR_VERSION="gtkhtml-editor-3.14"
-
PKG_CHECK_MODULES(EVOLUTION_RSS_EPLUGIN,
[ glib-2.0 >= $LIBGLIB_REQUIRED dnl
gtk+-2.0 >= $LIBGTK_REQUIRED dnl
@@ -98,10 +108,10 @@ PKG_CHECK_MODULES(EVOLUTION_RSS_EPLUGIN,
libebook-1.2 dnl
libgnomecanvas-2.0 dnl
dnl evolution-data-server-1.2 dnl
- $GTKHTML_VERSION >= $LIBGTKHTML_REQUIRED
+ libgtkhtml$GTKHTML >= $LIBGTKHTML_REQUIRED
])
-PKG_CHECK_MODULES([GTKHTML_EDITOR], $GTKHTML_EDITOR_VERSION, [GTKHTMLEDITOR=yes], [GTKHTMLEDITOR=no])
+PKG_CHECK_MODULES([GTKHTML_EDITOR], libgtkhtml$GTKHTML, [GTKHTMLEDITOR=yes], [GTKHTMLEDITOR=no])
if test "x$GTKHTMLEDITOR" == "xyes"; then
AC_DEFINE_UNQUOTED(HAVE_GTKHTMLEDITOR, 1, [gthtml editor component present])
AC_SUBST(HAVE_GTKHTMLEDITOR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]