From: Sebastian Harl Date: Mon, 4 Mar 2013 18:05:47 +0000 (+0100) Subject: configure: Also check for xmlto (in addition to xsltproc). X-Git-Tag: sysdb-0.1.0~438^2~1 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=25fd28ea404f11cd68e399eb1b0f3fe5de5034e5;ds=sidebyside configure: Also check for xmlto (in addition to xsltproc). This is also needed by the asciidoc tool-chain (in our situation?). --- diff --git a/README b/README index 55a8be8..e7054c9 100644 --- a/README +++ b/README @@ -21,7 +21,7 @@ Prerequisites * 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 diff --git a/configure.ac b/configure.ac index 148b76d..dfcb64f 100644 --- a/configure.ac +++ b/configure.ac @@ -206,6 +206,13 @@ AM_CONDITIONAL([BUILD_WITH_LIBDBI], test "x$with_libdbi" = "xyes") 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 @@ -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([ 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])