From: Thomas Graf Date: Thu, 30 Aug 2012 11:15:45 +0000 (+0200) Subject: configure: Check for graphviz and source-highlight before building documentation X-Git-Tag: libnl3_2_12~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=717fabc4692790e46059a0d2e65899ca8eda5fe8;p=libnl configure: Check for graphviz and source-highlight before building documentation Signed-off-by: Thomas Graf --- diff --git a/configure.in b/configure.in index ad6fad3..7bf3423 100644 --- a/configure.in +++ b/configure.in @@ -91,6 +91,16 @@ if test "x$generate_doc" != "xno"; then AC_MSG_ERROR([*** doxygen package required to generate documentation]) fi + AC_CHECK_PROG(HAVE_DOT, [dot], yes, no) + if test "x$HAVE_DOT" = "xno"; then + if test "x$generate_doc" = "xyes"; then + AC_MSG_ERROR([*** graphviz package required to generate documentation]) + else + AC_MSG_WARN([*** graphviz not found, disabling building of API reference]) + HAVE_DOXYGEN=no + fi + fi + AC_CHECK_PROG(HAVE_ASCIIDOC, [asciidoc], yes, no) if test "x$HAVE_ASCIIDOC" = "xno"; then if test "x$generate_doc" = "xyes"; then @@ -100,6 +110,16 @@ if test "x$generate_doc" != "xno"; then fi fi + AC_CHECK_PROG(HAVE_SOURCE_HIGHLIGHT, [source-highlight], yes, no) + if test "x$HAVE_SOURCE_HIGHLIGHT" = "xno"; then + if test "x$generate_doc" = "xyes"; then + AC_MSG_ERROR([*** source-highlight required to generate documentation]) + else + AC_MSG_WARN([*** source-highlight not found, disabling building of guides]) + HAVE_ASCIIDOC=no + fi + fi + AC_CHECK_PROG(HAVE_MSCGEN, [mscgen], yes, no) if test "x$HAVE_MSCGEN" = "xno"; then AC_MSG_WARN([*** mscgen not found, get it at http://www.mcternan.me.uk/mscgen/])