Mercurial > hg > early-roguelike
comparison rogue4/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 |
comparison
equal
deleted
inserted
replaced
| 293:9dcf3344d3fd | 294:fe6b7a1a6dfc |
|---|---|
| 34 AC_CHECK_PROG([NROFF], [nroff], [nroff],) | 34 AC_CHECK_PROG([NROFF], [nroff], [nroff],) |
| 35 AC_CHECK_PROG([GROFF], [groff], [groff],) | 35 AC_CHECK_PROG([GROFF], [groff], [groff],) |
| 36 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) | 36 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) |
| 37 AC_CHECK_PROG([TBL], [tbl], [tbl],) | 37 AC_CHECK_PROG([TBL], [tbl], [tbl],) |
| 38 | 38 |
| 39 if test "x$GROFF" != "x" ; then | |
| 40 DOCS_GROFF= | |
| 41 DOCS_NROFF=.no-nroff | |
| 42 DOCS_NONE=.none | |
| 43 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then | |
| 44 DOCS_GROFF=.no-groff | |
| 45 DOCS_NROFF= | |
| 46 DOCS_NONE=.none | |
| 47 else | |
| 48 DOCS_GROFF=.no-groff | |
| 49 DOCS_NROFF=.no-nroff | |
| 50 DOCS_NONE= | |
| 51 fi | |
| 52 | |
| 53 AC_SUBST(DOCS_GROFF) | |
| 54 AC_SUBST(DOCS_NROFF) | |
| 55 AC_SUBST(DOCS_NONE) | |
| 56 | |
| 39 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] ) | 57 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] ) |
| 40 PROGRAM=$progname | 58 PROGRAM=$progname |
| 41 AC_SUBST(PROGRAM) | 59 AC_SUBST(PROGRAM) |
| 42 | 60 |
| 43 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 61 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
