Mercurial > hg > early-roguelike
comparison srogue/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([SRogue],[9.0], [yendor@rogueforge.net], [srogue]) | 5 AC_INIT([Super-Rogue],[9.0],[elwin@sdf.org],[srogue]) |
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 |
19 AC_TYPE_SIZE_T | 19 AC_TYPE_SIZE_T |
20 AC_STRUCT_TM | 20 AC_STRUCT_TM |
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_TYPE_SIGNAL | |
25 AC_FUNC_STAT | 24 AC_FUNC_STAT |
26 AC_FUNC_VPRINTF | 25 AC_FUNC_VPRINTF |
27 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid lrand48 random srand48 srandom]) | 26 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid lrand48 random srand48 srandom]) |
28 AC_PROG_INSTALL | 27 AC_PROG_INSTALL |
29 | 28 |
48 | 47 |
49 AC_SUBST(DOCS_GROFF) | 48 AC_SUBST(DOCS_GROFF) |
50 AC_SUBST(DOCS_NROFF) | 49 AC_SUBST(DOCS_NROFF) |
51 AC_SUBST(DOCS_NONE) | 50 AC_SUBST(DOCS_NONE) |
52 | 51 |
53 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="srogue"] ) | 52 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="srogue"] ) |
54 PROGRAM=$progname | 53 PROGRAM=$progname |
55 AC_SUBST(PROGRAM) | 54 AC_SUBST(PROGRAM) |
56 | 55 |
57 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 56 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
58 AC_MSG_CHECKING([if using setgid execute bit]) | 57 AC_MSG_CHECKING([if using setgid execute bit]) |
59 if test "x$enable_setgid" = "xno" ; then | 58 if test "x$enable_setgid" = "xno" ; then |
60 GROUPOWNER= | 59 GROUPOWNER= |
61 elif test "x$enable_setgid" = "xyes" ; then | 60 elif test "x$enable_setgid" = "xyes" ; then |
62 GROUPOWNER=games | 61 GROUPOWNER=games |
73 AC_MSG_RESULT([no]) | 72 AC_MSG_RESULT([no]) |
74 fi | 73 fi |
75 | 74 |
76 AC_SUBST(GROUPOWNER) | 75 AC_SUBST(GROUPOWNER) |
77 | 76 |
78 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | 77 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
79 AC_MSG_CHECKING([for scoreboard file]) | 78 AC_MSG_CHECKING([for scoreboard file]) |
80 if test "x$enable_scorefile" = "xno" ; then | 79 if test "x$enable_scorefile" = "xno" ; then |
81 SCOREFILE= | 80 SCOREFILE= |
82 elif test "x$enable_scorefile" = "xyes" ; then | 81 elif test "x$enable_scorefile" = "xyes" ; then |
83 SCOREFILE=$progname.scr | 82 SCOREFILE=$progname.scr |
94 AC_MSG_RESULT([disabled]) | 93 AC_MSG_RESULT([disabled]) |
95 fi | 94 fi |
96 | 95 |
97 AC_SUBST(SCOREFILE) | 96 AC_SUBST(SCOREFILE) |
98 | 97 |
99 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | 98 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[]) |
100 AC_MSG_CHECKING([for log file]) | 99 AC_MSG_CHECKING([for log file]) |
101 if test "x$enable_logfile" = "xno" ; then | 100 if test "x$enable_logfile" = "xno" ; then |
102 LOGFILE= | 101 LOGFILE= |
103 elif test "x$enable_logfile" = "xyes" ; then | 102 elif test "x$enable_logfile" = "xyes" ; then |
104 LOGFILE=$progname.log | 103 LOGFILE=$progname.log |
115 AC_MSG_RESULT([disabled]) | 114 AC_MSG_RESULT([disabled]) |
116 fi | 115 fi |
117 | 116 |
118 AC_SUBST(LOGFILE) | 117 AC_SUBST(LOGFILE) |
119 | 118 |
120 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) | 119 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"]) |
121 AC_MSG_CHECKING([for save directory]) | 120 AC_MSG_CHECKING([for save directory]) |
122 if test "x$enable_savedir" = "xno" ; then | 121 if test "x$enable_savedir" = "xno" ; then |
123 SAVEDIR= | 122 SAVEDIR= |
124 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then | 123 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then |
125 if test "x$GROUPOWNER" != "x"; then | 124 if test "x$GROUPOWNER" != "x"; then |
138 AC_MSG_RESULT([disabled]) | 137 AC_MSG_RESULT([disabled]) |
139 fi | 138 fi |
140 | 139 |
141 AC_SUBST(SAVEDIR) | 140 AC_SUBST(SAVEDIR) |
142 | 141 |
143 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 142 AC_ARG_ENABLE([wizardmode],[AS_HELP_STRING([--enable-wizardmode],[enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
144 AC_MSG_CHECKING([if wizard mode is enabled]) | 143 AC_MSG_CHECKING([if wizard mode is enabled]) |
145 if test "x$enable_wizardmode" = "xno" ; then | 144 if test "x$enable_wizardmode" = "xno" ; then |
146 AC_MSG_RESULT([no]) | 145 AC_MSG_RESULT([no]) |
147 elif test "x$enable_wizardmode" = "x" ; then | 146 elif test "x$enable_wizardmode" = "x" ; then |
148 AC_MSG_RESULT([no]) | 147 AC_MSG_RESULT([no]) |