From 717fabc4692790e46059a0d2e65899ca8eda5fe8 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Thu, 30 Aug 2012 13:15:45 +0200 Subject: [PATCH] configure: Check for graphviz and source-highlight before building documentation Signed-off-by: Thomas Graf --- configure.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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/]) -- 2.40.0