summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Munger <bmunger@gmail.com>2019-03-12 18:41:27 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2019-03-13 17:02:26 +0100
commit5eff08777b643c0e112921eb6cb78381361acb68 (patch)
treeebd875ebef96c0ac495525fcb351cd4aa52ce594
parent90f96059c56035cf89de603b911b23e45f80bb6c (diff)
downloadcalcurse-5eff08777b643c0e112921eb6cb78381361acb68.tar.gz
calcurse-5eff08777b643c0e112921eb6cb78381361acb68.zip
Make AsciiDoc check more stringent
Add an additional check to configure.ac to error out if AsciiDoc is not found and pre-built documentation also does not exist. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b1480ec..c7db268 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,11 @@ if test x"$use_asciidoc" = x"auto"; then
if test -z "$ASCIIDOC"; then
have_asciidoc=no
AC_MSG_WARN([AsciiDoc not found - cannot rebuild documentation!])
+ if test -f "doc/manual.html" && test -f "doc/submitting-patches.html"; then
+ AC_MSG_WARN([Using pre-built documentation.])
+ else
+ AC_MSG_ERROR(Asciidoc is required to build documentation.)
+ fi
else
have_asciidoc=yes
fi
@@ -99,6 +104,11 @@ if test x"$use_asciidoc" = x"auto"; then
if test -z "$A2X"; then
have_a2x=no
AC_MSG_WARN([a2x not found - cannot rebuild man pages!])
+ if test -f "doc/calcurse.1"; then
+ AC_MSG_WARN([Using pre-built man pages.])
+ else
+ AC_MSG_ERROR(a2x is required to build man pages.)
+ fi
else
have_a2x=yes
fi