summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-08-30 13:36:23 +0200
committerThomas Graf <tgraf@redhat.com>2012-08-30 13:36:23 +0200
commit929bd0150f33887ba25a9490937659dac89a44b5 (patch)
tree432fc632bd7029975667c6fc5cce3220852f59d4
parent5eeb3d3ea683152476af4c4068cd3f8312f88766 (diff)
downloadlibnl-929bd0150f33887ba25a9490937659dac89a44b5.tar.gz
configure: Check for pygmentize when building docs
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
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])