Mercurial > hg > early-roguelike
annotate arogue5/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 |
rev | line source |
---|---|
99 | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.56) | |
5 AC_INIT([ARogue],[5.8.2], [yendor@rogueforge.net]) | |
6 AC_CONFIG_HEADERS([config.h]) | |
7 # May not be needed for the documentation | |
8 AC_CONFIG_FILES([Makefile]) | |
9 | |
10 # Checks for programs. | |
11 AC_PROG_CC | |
12 # Checks for libraries. | |
13 MP_WITH_CURSES | |
14 # Checks for header files. | |
15 AC_HEADER_STDC | |
122 | 16 AC_CHECK_HEADERS([pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h sys/utsname.h termios.h unistd.h utmp.h term.h ncurses/term.h process.h]) |
99 | 17 |
18 # Checks for typedefs, structures, and compiler characteristics. | |
19 AC_TYPE_SIZE_T | |
20 AC_STRUCT_TM | |
21 # Checks for library functions. | |
22 AC_FUNC_FORK | |
23 AC_PROG_GCC_TRADITIONAL | |
24 AC_FUNC_LSTAT | |
25 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | |
26 AC_TYPE_SIGNAL | |
27 AC_FUNC_STAT | |
28 AC_FUNC_VPRINTF | |
29 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) | |
30 AC_PROG_INSTALL | |
31 | |
32 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue5"] ) | |
33 PROGRAM=$progname | |
34 AC_SUBST(PROGRAM) | |
35 | |
36 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@])],[],[]) | |
37 AC_MSG_CHECKING([if using setgid execute bit]) | |
38 if test "x$enable_setgid" = "xno" ; then | |
39 GROUPOWNER= | |
40 elif test "x$enable_setgid" = "xyes" ; then | |
41 GROUPOWNER=games | |
42 elif test "x$enable_setgid" = "x" ; then | |
43 GROUPOWNER= | |
44 else | |
45 GROUPOWNER=$enable_setgid | |
46 fi | |
47 | |
48 if test "x$GROUPOWNER" != "x" ; then | |
49 AC_DEFINE_UNQUOTED([GROUPOWNER],[$GROUPOWNER], [Define to group owner of setgid executable]) | |
50 AC_MSG_RESULT([$GROUPOWNER]) | |
51 else | |
52 AC_MSG_RESULT([no]) | |
53 fi | |
54 | |
55 AC_SUBST(GROUPOWNER) | |
56 | |
57 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | |
58 AC_MSG_CHECKING([for scoreboard file]) | |
59 if test "x$enable_scorefile" = "xno" ; then | |
60 SCOREFILE= | |
61 elif test "x$enable_scorefile" = "xyes" ; then | |
62 SCOREFILE=$progname.scr | |
63 elif test "x$enable_scorefile" = "x" ; then | |
64 SCOREFILE=$progname.scr | |
65 else | |
66 SCOREFILE=$enable_scorefile | |
67 fi | |
68 | |
69 if test "x$SCOREFILE" != "x" ; then | |
70 AC_DEFINE_UNQUOTED([SCOREFILE], ["$SCOREFILE"], [Define to file to use for scoreboard]) | |
71 AC_MSG_RESULT([$SCOREFILE]) | |
72 else | |
73 AC_MSG_RESULT([disabled]) | |
74 fi | |
75 | |
76 AC_SUBST(SCOREFILE) | |
77 | |
78 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | |
79 AC_MSG_CHECKING([for log file]) | |
80 if test "x$enable_logfile" = "xno" ; then | |
81 LOGFILE= | |
82 elif test "x$enable_logfile" = "xyes" ; then | |
83 LOGFILE=$progname.log | |
84 elif test "x$enable_logfile" = "x" ; then | |
85 LOGFILE=$progname.log | |
86 else | |
87 LOGFILE=$enable_logfile | |
88 fi | |
89 | |
90 if test "x$LOGFILE" != "x" ; then | |
91 AC_DEFINE_UNQUOTED([LOGFILE], ["$LOGFILE"], [Define to file to use for log]) | |
92 AC_MSG_RESULT([$LOGFILE]) | |
93 else | |
94 AC_MSG_RESULT([disabled]) | |
95 fi | |
dfeed24bb616
arogue5: port to autoconf.
John "Elwin" Edwards |