summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-08-30 13:15:45 +0200
committerThomas Graf <tgraf@redhat.com>2012-08-30 13:15:45 +0200
commit717fabc4692790e46059a0d2e65899ca8eda5fe8 (patch)
tree602e919791b2b8b4382bc64a990f75af01b5a2a4
parent5eee974e034be5bd0614dd907a603b71869646ef (diff)
downloadlibnl-717fabc4692790e46059a0d2e65899ca8eda5fe8.tar.gz
configure: Check for graphviz and source-highlight before building documentation
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--configure.in20
1 files changed, 20 insertions, 0 deletions
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/])