comparison rogue4/configure.ac @ 223:0e99eade579c

Generate text documentation from the troff source files. This is done by make, in the 'docs' target, which is now part of the normal build process. Unfortunately, not all the games include troff sources. Getting decent HTML output from groff is still a difficult process which will not be attempted at this time. There are a few bugs in the 'install' and 'uninstall' rules. Not to mention that the documentation is sometimes inaccurate.
author John "Elwin" Edwards
date Sun, 21 Feb 2016 20:47:12 -0500
parents 5238b835d661
children c222f9d56776
comparison
equal deleted inserted replaced
222:a666e4a034ed 223:0e99eade579c
3 3
4 AC_PREREQ(2.56) 4 AC_PREREQ(2.56)
5 AC_INIT([Rogue],[5.2.2], [yendor@rogueforge.net]) 5 AC_INIT([Rogue],[5.2.2], [yendor@rogueforge.net])
6 AC_CONFIG_SRCDIR([armor.c]) 6 AC_CONFIG_SRCDIR([armor.c])
7 AC_CONFIG_HEADERS([config.h]) 7 AC_CONFIG_HEADERS([config.h])
8 # May not be needed for the documentation
9 AC_CONFIG_FILES([Makefile rogue.6 rogue.me]) 8 AC_CONFIG_FILES([Makefile rogue.6 rogue.me])
10 9
11 # Checks for programs. 10 # Checks for programs.
12 AC_PROG_CC 11 AC_PROG_CC
13 # Checks for libraries. 12 # Checks for libraries.
34 # Programs to process the documentation 33 # Programs to process the documentation
35 AC_CHECK_PROG([NROFF], [nroff], [nroff],) 34 AC_CHECK_PROG([NROFF], [nroff], [nroff],)
36 AC_CHECK_PROG([GROFF], [groff], [groff],) 35 AC_CHECK_PROG([GROFF], [groff], [groff],)
37 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) 36 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
38 AC_CHECK_PROG([TBL], [tbl], [tbl],) 37 AC_CHECK_PROG([TBL], [tbl], [tbl],)
39 AC_CHECK_PROG([SED], [sed], [sed],)
40 38
41 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] ) 39 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] )
42 PROGRAM=$progname 40 PROGRAM=$progname
43 AC_SUBST(PROGRAM) 41 AC_SUBST(PROGRAM)
44 42