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