[yelp-tools] configure.ac: Check for xmllint and xsltproc by binaries
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] configure.ac: Check for xmllint and xsltproc by binaries
- Date: Sun, 16 Jan 2011 23:34:49 +0000 (UTC)
commit 319f5e3580363d0b6f6dc389b40172f52b31bc10
Author: Shaun McCance <shaunm gnome org>
Date: Sun Jan 16 18:31:54 2011 -0500
configure.ac: Check for xmllint and xsltproc by binaries
Use pkg-config often means you need to installed devel packages
containing headers and such. But the binaries are often in the
base packages. No need to require devel.
configure.ac | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 900b033..4638d08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,10 +18,24 @@ AC_PROG_LN_S
AM_PATH_PYTHON([2.4])
+AC_CHECK_PROG(XMLLINT, xmllint, xmllint)
+if test x"$XMLLINT" = x; then
+ AC_MSG_ERROR([xmllint not found])
+fi
+if [ `$XMLLINT --version 2>&1 | head -n1 | cut -d' ' -f5` -lt 20612 ]; then
+ AC_MSG_ERROR([xmllint too old; 2.6.12 required])
+fi
+
+AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc)
+if test x"$XSLTPROC" = x; then
+ AC_MSG_ERROR([xsltproc not found])
+fi
+if [ `$XSLTPROC --version 2>&1 | head -n1 | cut -d' ' -f5` -lt 10108 ]; then
+ AC_MSG_ERROR([xsltproc too old; 1.1.8 required])
+fi
+
PKG_CHECK_MODULES(GNOME_DOC_UTILS,
[
- libxml-2.0 >= 2.6.12
- libxslt >= 1.1.8
yelp-xsl
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]