Mercurial > hg > early-roguelike
diff rogue3/configure.ac @ 294:fe6b7a1a6dfc
Improve the documentation build process.
The choice between troff implementations is now made at configure time,
rather than using shell logic in the Makefile to choose while building.
author | John "Elwin" Edwards |
---|---|
date | Sat, 30 Dec 2017 14:15:52 -0500 |
parents | 0b3d1b38998f |
children | 029c1f5c5588 |
line wrap: on
line diff
--- a/rogue3/configure.ac Fri Dec 29 17:38:08 2017 -0500 +++ b/rogue3/configure.ac Sat Dec 30 14:15:52 2017 -0500 @@ -37,6 +37,24 @@ AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) AC_CHECK_PROG([TBL], [tbl], [tbl],) +if test "x$GROFF" != "x" ; then +DOCS_GROFF= +DOCS_NROFF=.no-nroff +DOCS_NONE=.none +elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then +DOCS_GROFF=.no-groff +DOCS_NROFF= +DOCS_NONE=.none +else +DOCS_GROFF=.no-groff +DOCS_NROFF=.no-nroff +DOCS_NONE= +fi + +AC_SUBST(DOCS_GROFF) +AC_SUBST(DOCS_NROFF) +AC_SUBST(DOCS_NONE) + AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue3"] ) PROGRAM=$progname AC_SUBST(PROGRAM)