comparison urogue/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([UltraRogue],[1.07], [yendor@rogueforge.net], [urogue]) 5 AC_INIT([UltraRogue],[1.07],[elwin@sdf.org],[urogue])
6 AC_CONFIG_HEADERS([config.h]) 6 AC_CONFIG_HEADERS([config.h])
7 AC_CONFIG_FILES([Makefile]) 7 AC_CONFIG_FILES([Makefile])
8 8
9 # Checks for programs. 9 # Checks for programs.
10 AC_PROG_CC 10 AC_PROG_CC
21 # Checks for library functions. 21 # Checks for library functions.
22 AC_FUNC_FORK 22 AC_FUNC_FORK
23 AC_PROG_GCC_TRADITIONAL 23 AC_PROG_GCC_TRADITIONAL
24 AC_FUNC_LSTAT 24 AC_FUNC_LSTAT
25 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK 25 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
26 AC_TYPE_SIGNAL
27 AC_FUNC_STAT 26 AC_FUNC_STAT
28 AC_FUNC_VPRINTF 27 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]) 28 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 29 AC_PROG_INSTALL
31 30
50 49
51 AC_SUBST(DOCS_GROFF) 50 AC_SUBST(DOCS_GROFF)
52 AC_SUBST(DOCS_NROFF) 51 AC_SUBST(DOCS_NROFF)
53 AC_SUBST(DOCS_NONE) 52 AC_SUBST(DOCS_NONE)
54 53
55 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="urogue"] ) 54 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="urogue"] )
56 PROGRAM=$progname 55 PROGRAM=$progname
57 AC_SUBST(PROGRAM) 56 AC_SUBST(PROGRAM)
58 57
59 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) 58 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[])
60 AC_MSG_CHECKING([if using setgid execute bit]) 59 AC_MSG_CHECKING([if using setgid execute bit])
61 if test "x$enable_setgid" = "xno" ; then 60 if test "x$enable_setgid" = "xno" ; then
62 GROUPOWNER= 61 GROUPOWNER=
63 elif test "x$enable_setgid" = "xyes" ; then 62 elif test "x$enable_setgid" = "xyes" ; then
64 GROUPOWNER=games 63 GROUPOWNER=games
75 AC_MSG_RESULT([no]) 74 AC_MSG_RESULT([no])
76 fi 75 fi
77 76
78 AC_SUBST(GROUPOWNER) 77 AC_SUBST(GROUPOWNER)
79 78
80 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) 79 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[])
81 AC_MSG_CHECKING([for scoreboard file]) 80 AC_MSG_CHECKING([for scoreboard file])
82 if test "x$enable_scorefile" = "xno" ; then 81 if test "x$enable_scorefile" = "xno" ; then
83 SCOREFILE= 82 SCOREFILE=
84 elif test "x$enable_scorefile" = "xyes" ; then 83 elif test "x$enable_scorefile" = "xyes" ; then
85 SCOREFILE=$progname.scr 84 SCOREFILE=$progname.scr
96 AC_MSG_RESULT([disabled]) 95 AC_MSG_RESULT([disabled])
97 fi 96 fi
98 97
99 AC_SUBST(SCOREFILE) 98 AC_SUBST(SCOREFILE)
100 99
101 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) 100 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[])
102 AC_MSG_CHECKING([for log file]) 101 AC_MSG_CHECKING([for log file])
103 if test "x$enable_logfile" = "xno" ; then 102 if test "x$enable_logfile" = "xno" ; then
104 LOGFILE= 103 LOGFILE=
105 elif test "x$enable_logfile" = "xyes" ; then 104 elif test "x$enable_logfile" = "xyes" ; then
106 LOGFILE=$progname.log 105 LOGFILE=$progname.log
117 AC_MSG_RESULT([disabled]) 116 AC_MSG_RESULT([disabled])
118 fi 117 fi
119 118
120 AC_SUBST(LOGFILE) 119 AC_SUBST(LOGFILE)
121 120
122 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) 121 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"])
123 AC_MSG_CHECKING([for save directory]) 122 AC_MSG_CHECKING([for save directory])
124 if test "x$enable_savedir" = "xno" ; then 123 if test "x$enable_savedir" = "xno" ; then
125 SAVEDIR= 124 SAVEDIR=
126 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then 125 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then
127 if test "x$GROUPOWNER" != "x"; then 126 if test "x$GROUPOWNER" != "x"; then
140 AC_MSG_RESULT([disabled]) 139 AC_MSG_RESULT([disabled])
141 fi 140 fi
142 141
143 AC_SUBST(SAVEDIR) 142 AC_SUBST(SAVEDIR)
144 143
145 AC_ARG_ENABLE([chardir],[AC_HELP_STRING([--enable-chardir=CHARDIR], [enable systemwide location for character files])],[],[enable_chardir="no"]) 144 AC_ARG_ENABLE([chardir],[AS_HELP_STRING([--enable-chardir=CHARDIR],[enable systemwide location for character files])],[],[enable_chardir="no"])
146 AC_MSG_CHECKING([for character directory]) 145 AC_MSG_CHECKING([for character directory])
147 if test "x$enable_chardir" = "xno" ; then 146 if test "x$enable_chardir" = "xno" ; then
148 CHARDIR= 147 CHARDIR=
149 elif test "x$enable_chardir" = "xyes" -o "x$enable_chardir" = "x"; then 148 elif test "x$enable_chardir" = "xyes" -o "x$enable_chardir" = "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(CHARDIR) 165 AC_SUBST(CHARDIR)
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])
174 else 173 else
175 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) 174 AC_DEFINE([WIZARD], [], [Define to include wizard mode])
176 AC_MSG_RESULT([yes]) 175 AC_MSG_RESULT([yes])
177 fi 176 fi
178 177
179 AC_ARG_ENABLE([memdebug],[AC_HELP_STRING([--enable-memdebug], [enable built-in memory checking @<:@default=no@:>@])],[],[]) 178 AC_ARG_ENABLE([memdebug],[AS_HELP_STRING([--enable-memdebug],[enable built-in memory checking @<:@default=no@:>@])],[],[])
180 AC_MSG_CHECKING([if memory checking is enabled]) 179 AC_MSG_CHECKING([if memory checking is enabled])
181 if test "x$enable_memdebug" = "xno" ; then 180 if test "x$enable_memdebug" = "xno" ; then
182 AC_MSG_RESULT([no]) 181 AC_MSG_RESULT([no])
183 elif test "x$enable_memdebug" = "x" ; then 182 elif test "x$enable_memdebug" = "x" ; then
184 AC_MSG_RESULT([no]) 183 AC_MSG_RESULT([no])