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