comparison rogue3/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
2 # Process this file with autoconf to produce a configure script. 2 # Process this file with autoconf to produce a configure script.
3 3
4 AC_PREREQ(2.56) 4 AC_PREREQ(2.56)
5 AC_INIT([Rogue],[3.6.4], [yendor@rogueforge.net]) 5 AC_INIT([Rogue],[3.6.4], [yendor@rogueforge.net])
6 AC_CONFIG_HEADERS([config.h]) 6 AC_CONFIG_HEADERS([config.h])
7 # May not be needed for the documentation
8 AC_CONFIG_FILES([Makefile rogue.6 rogue.r]) 7 AC_CONFIG_FILES([Makefile rogue.6 rogue.r])
9 8
10 # Checks for programs. 9 # Checks for programs.
11 AC_PROG_CC 10 AC_PROG_CC
12 # Checks for libraries. 11 # Checks for libraries.
35 # Programs to process the documentation 34 # Programs to process the documentation
36 AC_CHECK_PROG([NROFF], [nroff], [nroff],) 35 AC_CHECK_PROG([NROFF], [nroff], [nroff],)
37 AC_CHECK_PROG([GROFF], [groff], [groff],) 36 AC_CHECK_PROG([GROFF], [groff], [groff],)
38 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) 37 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
39 AC_CHECK_PROG([TBL], [tbl], [tbl],) 38 AC_CHECK_PROG([TBL], [tbl], [tbl],)
40 AC_CHECK_PROG([SED], [sed], [sed],)
41 39
42 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue3"] ) 40 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue3"] )
43 PROGRAM=$progname 41 PROGRAM=$progname
44 AC_SUBST(PROGRAM) 42 AC_SUBST(PROGRAM)
45 43