From: Thomas Graf Date: Thu, 30 Aug 2012 11:36:23 +0000 (+0200) Subject: configure: Check for pygmentize when building docs X-Git-Tag: libnl3_2_12~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=929bd0150f33887ba25a9490937659dac89a44b5;p=libnl configure: Check for pygmentize when building docs Signed-off-by: Thomas Graf --- diff --git a/configure.in b/configure.in index 7bf3423..8ea76cb 100644 --- a/configure.in +++ b/configure.in @@ -132,6 +132,16 @@ if test "x$generate_doc" != "xno"; then fi fi + AC_CHECK_PROG(HAVE_PYGMENTIZE, [pygmentize], yes, no) + if test "x$HAVE_PYGMENTIZE" = "xno"; then + if test "x$generate_doc" = "xyes"; then + AC_MSG_ERROR([*** pygmentize package required to generate documentation]) + else + AC_MSG_WARN([*** Disabling building of guides]) + HAVE_ASCIIDOC=no + fi + fi + link_doc=yes if test "x$HAVE_DOXYGEN" = "xno"; then AC_MSG_WARN([*** Disabling API linking due to missing doxygen package])