]> granicus.if.org Git - libnl/commitdiff
configure: Check for pygmentize when building docs
authorThomas Graf <tgraf@redhat.com>
Thu, 30 Aug 2012 11:36:23 +0000 (13:36 +0200)
committerThomas Graf <tgraf@redhat.com>
Thu, 30 Aug 2012 11:36:23 +0000 (13:36 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
configure.in

index 7bf3423e5865645939c1a001e46d2472753a25d8..8ea76cb0f4734745f5ada9bf4314299b356a80ce 100644 (file)
@@ -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])