Code

configure: Also check for xmlto (in addition to xsltproc).
authorSebastian Harl <sh@tokkee.org>
Mon, 4 Mar 2013 18:05:47 +0000 (19:05 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 4 Mar 2013 18:05:47 +0000 (19:05 +0100)
This is also needed by the asciidoc tool-chain (in our situation?).

README
configure.ac

diff --git a/README b/README
index 55a8be8f983d92bb0b6deecde500f8bcadd3fce1..e7054c9a90378b0a9e28c8ba5bdfed64d8274400 100644 (file)
--- a/README
+++ b/README
@@ -21,7 +21,7 @@ Prerequisites
 
   * A POSIX + Single UNIX Specification compatible C library.
 
 
   * A POSIX + Single UNIX Specification compatible C library.
 
-  * asciidoc, xsltproc:
+  * asciidoc, xsltproc, xmlto:
     The AsciiDoc text document format is used to write the manpages.
 
 Configuring / Compiling / Installing
     The AsciiDoc text document format is used to write the manpages.
 
 Configuring / Compiling / Installing
index 148b76dbf5089f2710a9a5f153a3ad551014ae18..dfcb64fad94b97f47c03271adbe277b43fef08c7 100644 (file)
@@ -206,6 +206,13 @@ AM_CONDITIONAL([BUILD_WITH_LIBDBI], test "x$with_libdbi" = "xyes")
 dnl Feature checks.
 build_documentation="yes"
 
 dnl Feature checks.
 build_documentation="yes"
 
+have_xmlto="yes"
+AC_PATH_PROG([XMLTO], [xmlto])
+if test "x$XMLTO" = "x"; then
+       have_xmlto="no"
+       build_documentation="no (missing xmlto)"
+fi
+
 have_xsltproc="yes"
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 if test "x$XSLTPROC" = "x"; then
 have_xsltproc="yes"
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 if test "x$XSLTPROC" = "x"; then
@@ -259,7 +266,7 @@ AC_MSG_RESULT([  build date: $BUILD_DATE])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  Tools:])
 AC_MSG_RESULT([    AsciiDoc (a2x): . . . . . . $have_a2x])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  Tools:])
 AC_MSG_RESULT([    AsciiDoc (a2x): . . . . . . $have_a2x])
-AC_MSG_RESULT([    xsltproc: . . . . . . . . . $have_xsltproc])
+AC_MSG_RESULT([    xmlto / xsltproc: . . . . . $have_xmlto / $have_xsltproc])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  Features:])
 AC_MSG_RESULT([    documentation:  . . . . . . $build_documentation])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  Features:])
 AC_MSG_RESULT([    documentation:  . . . . . . $build_documentation])