From 4c921b3be2ed973aa971f30e70f7d9658407c825 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 26 Feb 2013 17:22:41 +0100 Subject: added option to build manuals as HTML using Groff * will be useful for Windows builds since Windows users usally do not have a man-page formatter/reader --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4ad2a28..7756500 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,9 @@ if [[ x$READLINK = x ]]; then AC_MSG_ERROR([Required tool readlink not found!]) fi +# not necessarily required (depends on --enable-html-manual) +AC_CHECK_PROG(GROFF, groff, groff) + # not necessarily required (depends on --enable-developer-doc) AC_CHECK_PROG(DOXYGEN, doxygen, doxygen) AC_CHECK_PROG(DOT, dot, dot) @@ -172,6 +175,16 @@ AC_ARG_WITH(teco-integer, [TECO_INTEGER=$withval], [TECO_INTEGER=64]) AC_DEFINE_UNQUOTED(TECO_INTEGER, $TECO_INTEGER, [Storage size of TECO integers]) +AC_ARG_ENABLE(html-manual, + AS_HELP_STRING([--enable-html-manual], + [Generate and install HTML manuals using Groff [default=no]]), + [html_man=$enableval], [html_man=no]) +if [[ $html_man = yes -a x$GROFF = x ]]; then + AC_MSG_ERROR([Enabled generating HTML manuals, but Groff cannot be found! + Try --disable-html-manual.]) +fi +AM_CONDITIONAL(BUILD_HTMLMAN, [test $html_man = yes]) + AC_ARG_ENABLE(developer-doc, AS_HELP_STRING([--enable-developer-doc], [Generate developer documentation using Doxygen [default=no]]), -- cgit v1.2.3