Mercurial > hg > early-roguelike
comparison rogue4/configure.ac @ 312:029c1f5c5588
Update the Autoconf files.
These are mostly automatic updates for obsolete macros.
author | John "Elwin" Edwards |
---|---|
date | Tue, 11 May 2021 22:30:03 -0400 |
parents | fe6b7a1a6dfc |
children | aab761616489 |
comparison
equal
deleted
inserted
replaced
311:28e22fb35989 | 312:029c1f5c5588 |
---|---|
1 # -*- Autoconf -*- | 1 # -*- Autoconf -*- |
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.69]) |
5 AC_INIT([Rogue],[5.2.2], [yendor@rogueforge.net], [rogue4]) | 5 AC_INIT([Rogue],[5.2.2],[elwin@sdf.org],[rogue4]) |
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 AC_CONFIG_FILES([Makefile rogue.6 rogue.me]) | 8 AC_CONFIG_FILES([Makefile rogue.6 rogue.me]) |
9 | 9 |
10 # Checks for programs. | 10 # Checks for programs. |
22 # Checks for library functions. | 22 # Checks for library functions. |
23 AC_FUNC_FORK | 23 AC_FUNC_FORK |
24 AC_PROG_GCC_TRADITIONAL | 24 AC_PROG_GCC_TRADITIONAL |
25 AC_FUNC_LSTAT | 25 AC_FUNC_LSTAT |
26 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | 26 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
27 AC_TYPE_SIGNAL | |
28 AC_FUNC_STAT | 27 AC_FUNC_STAT |
29 AC_FUNC_VPRINTF | 28 AC_FUNC_VPRINTF |
30 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) | 29 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid]) |
31 AC_PROG_INSTALL | 30 AC_PROG_INSTALL |
32 | 31 |
52 | 51 |
53 AC_SUBST(DOCS_GROFF) | 52 AC_SUBST(DOCS_GROFF) |
54 AC_SUBST(DOCS_NROFF) | 53 AC_SUBST(DOCS_NROFF) |
55 AC_SUBST(DOCS_NONE) | 54 AC_SUBST(DOCS_NONE) |
56 | 55 |
57 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] ) | 56 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue4"] ) |
58 PROGRAM=$progname | 57 PROGRAM=$progname |
59 AC_SUBST(PROGRAM) | 58 AC_SUBST(PROGRAM) |
60 | 59 |
61 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 60 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
62 AC_MSG_CHECKING([if using setgid execute bit]) | 61 AC_MSG_CHECKING([if using setgid execute bit]) |
63 if test "x$enable_setgid" = "xno" ; then | 62 if test "x$enable_setgid" = "xno" ; then |
64 GROUPOWNER= | 63 GROUPOWNER= |
65 elif test "x$enable_setgid" = "xyes" ; then | 64 elif test "x$enable_setgid" = "xyes" ; then |
66 GROUPOWNER=games | 65 GROUPOWNER=games |
77 AC_MSG_RESULT([no]) | 76 AC_MSG_RESULT([no]) |
78 fi | 77 fi |
79 | 78 |
80 AC_SUBST(GROUPOWNER) | 79 AC_SUBST(GROUPOWNER) |
81 | 80 |
82 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | 81 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
83 AC_MSG_CHECKING([for scoreboard file]) | 82 AC_MSG_CHECKING([for scoreboard file]) |
84 if test "x$enable_scorefile" = "xno" ; then | 83 if test "x$enable_scorefile" = "xno" ; then |
85 SCOREFILE= | 84 SCOREFILE= |
86 elif test "x$enable_scorefile" = "xyes" ; then | 85 elif test "x$enable_scorefile" = "xyes" ; then |
87 SCOREFILE=$progname.scr | 86 SCOREFILE=$progname.scr |
98 AC_MSG_RESULT([disabled]) | 97 AC_MSG_RESULT([disabled]) |
99 fi | 98 fi |
100 | 99 |
101 AC_SUBST(SCOREFILE) | 100 AC_SUBST(SCOREFILE) |
102 | 101 |
103 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | 102 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[]) |
104 AC_MSG_CHECKING([for log file]) | 103 AC_MSG_CHECKING([for log file]) |
105 if test "x$enable_logfile" = "xno" ; then | 104 if test "x$enable_logfile" = "xno" ; then |
106 LOGFILE= | 105 LOGFILE= |
107 elif test "x$enable_logfile" = "xyes" ; then | 106 elif test "x$enable_logfile" = "xyes" ; then |
108 LOGFILE=$progname.log | 107 LOGFILE=$progname.log |
119 AC_MSG_RESULT([disabled]) | 118 AC_MSG_RESULT([disabled]) |
120 fi | 119 fi |
121 | 120 |
122 AC_SUBST(LOGFILE) | 121 AC_SUBST(LOGFILE) |
123 | 122 |
124 AC_ARG_ENABLE([lockfile],[AC_HELP_STRING([--enable-lockfile=LOCKFILE], [enable scoreboard lockfile with given filename])],[],[]) | 123 AC_ARG_ENABLE([lockfile],[AS_HELP_STRING([--enable-lockfile=LOCKFILE],[enable scoreboard lockfile with given filename])],[],[]) |
125 AC_MSG_CHECKING([for scoreboard lockfile file]) | 124 AC_MSG_CHECKING([for scoreboard lockfile file]) |
126 if test "x$enable_lockfile" = "xno" ; then | 125 if test "x$enable_lockfile" = "xno" ; then |
127 LOCKFILE= | 126 LOCKFILE= |
128 elif test "x$enable_lockfile" = "xyes" ; then | 127 elif test "x$enable_lockfile" = "xyes" ; then |
129 LOCKFILE=$progname.lck | 128 LOCKFILE=$progname.lck |
140 AC_MSG_RESULT([disabled]) | 139 AC_MSG_RESULT([disabled]) |
141 fi | 140 fi |
142 | 141 |
143 AC_SUBST(LOCKFILE) | 142 AC_SUBST(LOCKFILE) |
144 | 143 |
145 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) | 144 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"]) |
146 AC_MSG_CHECKING([for save directory]) | 145 AC_MSG_CHECKING([for save directory]) |
147 if test "x$enable_savedir" = "xno" ; then | 146 if test "x$enable_savedir" = "xno" ; then |
148 SAVEDIR= | 147 SAVEDIR= |
149 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then | 148 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then |
150 if test "x$GROUPOWNER" != "x"; then | 149 if test "x$GROUPOWNER" != "x"; then |
163 AC_MSG_RESULT([disabled]) | 162 AC_MSG_RESULT([disabled]) |
164 fi | 163 fi |
165 | 164 |
166 AC_SUBST(SAVEDIR) | 165 AC_SUBST(SAVEDIR) |
167 | 166 |
168 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 167 AC_ARG_ENABLE([wizardmode],[AS_HELP_STRING([--enable-wizardmode],[enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
169 AC_MSG_CHECKING([if wizard mode is enabled]) | 168 AC_MSG_CHECKING([if wizard mode is enabled]) |
170 if test "x$enable_wizardmode" = "xno" ; then | 169 if test "x$enable_wizardmode" = "xno" ; then |
171 AC_MSG_RESULT([no]) | 170 AC_MSG_RESULT([no]) |
172 elif test "x$enable_wizardmode" = "x" ; then | 171 elif test "x$enable_wizardmode" = "x" ; then |
173 AC_MSG_RESULT([no]) | 172 AC_MSG_RESULT([no]) |
177 AC_DEFINE_UNQUOTED([PASSWD],["$enable_wizardmode"], [Define crypt(3) wizard mode password]) | 176 AC_DEFINE_UNQUOTED([PASSWD],["$enable_wizardmode"], [Define crypt(3) wizard mode password]) |
178 fi | 177 fi |
179 AC_MSG_RESULT([yes]) | 178 AC_MSG_RESULT([yes]) |
180 fi | 179 fi |
181 | 180 |
182 AC_ARG_ENABLE([checktime],[AC_HELP_STRING([--enable-checktime], [enable checktime @<:@default=no@:>@])],[],[]) | 181 AC_ARG_ENABLE([checktime],[AS_HELP_STRING([--enable-checktime],[enable checktime @<:@default=no@:>@])],[],[]) |
183 AC_MSG_CHECKING([if checktime is enabled]) | 182 AC_MSG_CHECKING([if checktime is enabled]) |
184 if test "x$enable_checktime" = "xyes" ; then | 183 if test "x$enable_checktime" = "xyes" ; then |
185 AC_DEFINE([CHECKTIME], [1], [Define if checktime feature should be enabled]) | 184 AC_DEFINE([CHECKTIME], [1], [Define if checktime feature should be enabled]) |
186 AC_MSG_RESULT([yes]) | 185 AC_MSG_RESULT([yes]) |
187 else | 186 else |
188 AC_MSG_RESULT([no]) | 187 AC_MSG_RESULT([no]) |
189 fi | 188 fi |
190 | 189 |
191 AC_ARG_ENABLE([maxload],[AC_HELP_STRING([--enable-maxload], [enable maxload @<:@default=no@:>@])],[],[]) | 190 AC_ARG_ENABLE([maxload],[AS_HELP_STRING([--enable-maxload],[enable maxload @<:@default=no@:>@])],[],[]) |
192 AC_MSG_CHECKING([runtime execution limit (maximum system load average)]) | 191 AC_MSG_CHECKING([runtime execution limit (maximum system load average)]) |
193 if test "x$enable_maxload" = "xyes" ; then | 192 if test "x$enable_maxload" = "xyes" ; then |
194 AC_DEFINE([MAXLOAD], [100], [Define if maxload feature should be enabled]) | 193 AC_DEFINE([MAXLOAD], [100], [Define if maxload feature should be enabled]) |
195 AC_MSG_RESULT([100]) | 194 AC_MSG_RESULT([100]) |
196 elif test "x$enable_maxload" = "x" ; then | 195 elif test "x$enable_maxload" = "x" ; then |
200 else | 199 else |
201 AC_DEFINE_UNQUOTED([MAXLOAD], [$enable_maxload], [Define if maxload feature should be enabled]) | 200 AC_DEFINE_UNQUOTED([MAXLOAD], [$enable_maxload], [Define if maxload feature should be enabled]) |
202 AC_MSG_RESULT([$enable_maxload]) | 201 AC_MSG_RESULT([$enable_maxload]) |
203 fi | 202 fi |
204 | 203 |
205 AC_ARG_ENABLE([maxusers],[AC_HELP_STRING([--enable-maxusers], [enable maxuser @<:@default=no@:>@])],[],[]) | 204 AC_ARG_ENABLE([maxusers],[AS_HELP_STRING([--enable-maxusers],[enable maxuser @<:@default=no@:>@])],[],[]) |
206 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) | 205 AC_MSG_CHECKING([runtime execution limit (maximum online system users)]) |
207 if test "x$enable_maxusers" = "xyes" ; then | 206 if test "x$enable_maxusers" = "xyes" ; then |
208 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) | 207 AC_DEFINE([MAXUSERS], [100], [Define if maxusers feature should be enabled]) |
209 AC_MSG_RESULT([100]) | 208 AC_MSG_RESULT([100]) |
210 elif test "x$enable_maxusers" = "x" ; then | 209 elif test "x$enable_maxusers" = "x" ; then |