summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-01-02 22:02:42 -0800
committerKeith Packard <keithp@keithp.com>2019-01-02 22:02:42 -0800
commitecf40a3a190fb2f7d7d2654c1e87daddf0362b0c (patch)
treea20cc1ed7c49da0a5ff6207904dcc9cddb7223b8 /configure.ac
parent4e9e0bf99d6b71086110038fa1e3231d00bb2496 (diff)
doc: Skip .pdf generation when asciidoctor-pdf is missing
Not available in debian unstable yet Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ee175dbe..abaec2cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,6 +386,12 @@ if test "x$HAVE_NICKLE" = "xno"; then
AC_MSG_ERROR([Please install nickle to build AltOs])
fi
+AC_CHECK_PROG([HAVE_ASCIIDOCTOR_PDF], [asciidoctor-pdf], yes, no)
+if test "x$HAVE_ASCIIDOCTOR_PDF" = "xno"; then
+ AC_MSG_WARN([asciidoctor-pdf not found, PDF docs will not be built])
+fi
+AM_CONDITIONAL([ASCIIDOCTOR_PDF], [test x$HAVE_ASCIIDOCTOR_PDF != xno])
+
PKG_CHECK_MODULES([JANSSON], [jansson])
AC_ARG_WITH([readline],