diff options
author | Adrian Thurston <thurston@colm.net> | 2021-11-18 09:09:13 -0800 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2021-11-18 09:09:13 -0800 |
commit | e95d542de51e76121c9a7740bf8efcb235662040 (patch) | |
tree | a67a42fc48d93a05ac50467cf1dd4f663bffca6e /configure.ac | |
parent | 2554e934d31e50c2cc72a2ca2a0a3dd85f62c17d (diff) | |
download | colm-e95d542de51e76121c9a7740bf8efcb235662040.tar.gz |
enforce manual build dependencies only if manual is requested
If the manual is requested, then check for asciidoc and pygmentize. Fail
configuration if either are not present. refs #132
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 836ab9f0..aa127b68 100644 --- a/configure.ac +++ b/configure.ac @@ -79,9 +79,6 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debug statements]), AC_DEFINE([DEBUG], [1], [enable debug statements])) -AC_CHECK_PROG([ASCIIDOC], [asciidoc], [asciidoc]) -AC_CHECK_PROG([PYGMENTIZE], [pygmentize], [pygmentize]) -AM_CONDITIONAL([BUILD_MANUAL], [test "x$ASCIIDOC" != x && test "x$PYGMENTIZE" != x]) dnl Do not build the manual by default. Most of the time the dependencies are dnl not available, as they can be quite big installs. @@ -95,8 +92,13 @@ AC_ARG_ENABLE(manual, [ if test "x$enableval" = "xyes"; then build_manual=yes; - else - build_manual=no; + + AC_CHECK_PROG([ASCIIDOC], [asciidoc], [asciidoc]) + AC_CHECK_PROG([PYGMENTIZE], [pygmentize], [pygmentize]) + + if [test "x$ASCIIDOC" == x || test "x$PYGMENTIZE" == x]; then + AC_ERROR([must have both asciidoc and pygmentize to build the manual]) + fi fi ], ) |