Mercurial > hg > early-roguelike
comparison xrogue/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 | 0b3d1b38998f |
| 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([XRogue],[8.0.3], [yendor@rogueforge.net], [xrogue]) | 5 AC_INIT([XRogue],[8.0.3],[elwin@sdf.org],[xrogue]) |
| 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_STRUCT_TM | 19 AC_STRUCT_TM |
| 20 # Checks for library functions. | 20 # Checks for library functions. |
| 21 AC_FUNC_FORK | 21 AC_FUNC_FORK |
| 22 AC_PROG_GCC_TRADITIONAL | 22 AC_PROG_GCC_TRADITIONAL |
| 23 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | 23 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
| 24 AC_TYPE_SIGNAL | |
| 25 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr _spawnl spawnl getpwuid loadav strerror setgid setuid getuid getgid]) | 24 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr _spawnl spawnl getpwuid loadav strerror setgid setuid getuid getgid]) |
| 26 AC_PROG_INSTALL | 25 AC_PROG_INSTALL |
| 27 | 26 |
| 28 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="xrogue"] ) | 27 AC_ARG_WITH(program-name, AS_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="xrogue"] ) |
| 29 PROGRAM=$progname | 28 PROGRAM=$progname |
| 30 AC_SUBST(PROGRAM) | 29 AC_SUBST(PROGRAM) |
| 31 | 30 |
| 32 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) | 31 AC_ARG_ENABLE(setgid, AS_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@]),[],[]) |
| 33 AC_MSG_CHECKING([if using setgid execute bit]) | 32 AC_MSG_CHECKING([if using setgid execute bit]) |
| 34 if test "x$enable_setgid" = "xno" ; then | 33 if test "x$enable_setgid" = "xno" ; then |
| 35 GROUPOWNER= | 34 GROUPOWNER= |
| 36 elif test "x$enable_setgid" = "xyes" ; then | 35 elif test "x$enable_setgid" = "xyes" ; then |
| 37 GROUPOWNER=games | 36 GROUPOWNER=games |
| 48 AC_MSG_RESULT([no]) | 47 AC_MSG_RESULT([no]) |
| 49 fi | 48 fi |
| 50 | 49 |
| 51 AC_SUBST(GROUPOWNER) | 50 AC_SUBST(GROUPOWNER) |
| 52 | 51 |
| 53 AC_ARG_ENABLE([scorefile],[AC_HELP_STRING([--enable-scorefile=SCOREFILE], [enable scoreboard with given filename])],[],[]) | 52 AC_ARG_ENABLE([scorefile],[AS_HELP_STRING([--enable-scorefile=SCOREFILE],[enable scoreboard with given filename])],[],[]) |
| 54 AC_MSG_CHECKING([for scoreboard file]) | 53 AC_MSG_CHECKING([for scoreboard file]) |
| 55 if test "x$enable_scorefile" = "xno" ; then | 54 if test "x$enable_scorefile" = "xno" ; then |
| 56 SCOREFILE= | 55 SCOREFILE= |
| 57 elif test "x$enable_scorefile" = "xyes" ; then | 56 elif test "x$enable_scorefile" = "xyes" ; then |
| 58 SCOREFILE=$progname.scr | 57 SCOREFILE=$progname.scr |
| 69 AC_MSG_RESULT([disabled]) | 68 AC_MSG_RESULT([disabled]) |
| 70 fi | 69 fi |
| 71 | 70 |
| 72 AC_SUBST(SCOREFILE) | 71 AC_SUBST(SCOREFILE) |
| 73 | 72 |
| 74 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | 73 AC_ARG_ENABLE([logfile],[AS_HELP_STRING([--enable-logfile=LOGFILE],[enable logfile with given filename])],[],[]) |
| 75 AC_MSG_CHECKING([for log file]) | 74 AC_MSG_CHECKING([for log file]) |
| 76 if test "x$enable_logfile" = "xno" ; then | 75 if test "x$enable_logfile" = "xno" ; then |
| 77 LOGFILE= | 76 LOGFILE= |
| 78 elif test "x$enable_logfile" = "xyes" ; then | 77 elif test "x$enable_logfile" = "xyes" ; then |
| 79 LOGFILE=$progname.log | 78 LOGFILE=$progname.log |
| 90 AC_MSG_RESULT([disabled]) | 89 AC_MSG_RESULT([disabled]) |
| 91 fi | 90 fi |
| 92 | 91 |
| 93 AC_SUBST(LOGFILE) | 92 AC_SUBST(LOGFILE) |
| 94 | 93 |
| 95 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[enable_savedir="no"]) | 94 AC_ARG_ENABLE([savedir],[AS_HELP_STRING([--enable-savedir=SAVEDIR],[enable systemwide location for saved games])],[],[enable_savedir="no"]) |
| 96 AC_MSG_CHECKING([for save directory]) | 95 AC_MSG_CHECKING([for save directory]) |
| 97 if test "x$enable_savedir" = "xno" ; then | 96 if test "x$enable_savedir" = "xno" ; then |
| 98 SAVEDIR= | 97 SAVEDIR= |
| 99 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then | 98 elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then |
| 100 if test "x$GROUPOWNER" != "x"; then | 99 if test "x$GROUPOWNER" != "x"; then |
| 113 AC_MSG_RESULT([disabled]) | 112 AC_MSG_RESULT([disabled]) |
| 114 fi | 113 fi |
| 115 | 114 |
| 116 AC_SUBST(SAVEDIR) | 115 AC_SUBST(SAVEDIR) |
| 117 | 116 |
| 118 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 117 AC_ARG_ENABLE([wizardmode],[AS_HELP_STRING([--enable-wizardmode],[enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
| 119 AC_MSG_CHECKING([if wizard mode is enabled]) | 118 AC_MSG_CHECKING([if wizard mode is enabled]) |
| 120 if test "x$enable_wizardmode" = "xno" ; then | 119 if test "x$enable_wizardmode" = "xno" ; then |
| 121 AC_MSG_RESULT([no]) | 120 AC_MSG_RESULT([no]) |
| 122 elif test "x$enable_wizardmode" = "x" ; then | 121 elif test "x$enable_wizardmode" = "x" ; then |
| 123 AC_MSG_RESULT([no]) | 122 AC_MSG_RESULT([no]) |
| 124 else | 123 else |
| 125 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) | 124 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) |
| 126 AC_MSG_RESULT([yes]) | 125 AC_MSG_RESULT([yes]) |
| 127 fi | 126 fi |
| 128 | 127 |
| 129 AC_ARG_ENABLE([limitscore],[AC_HELP_STRING([--enable-limitscore], [limit scores to one per class per uid @<:@default=no@:>@])],[],[]) | 128 AC_ARG_ENABLE([limitscore],[AS_HELP_STRING([--enable-limitscore],[limit scores to one per class per uid @<:@default=no@:>@])],[],[]) |
| 130 AC_MSG_CHECKING([if limiting scores]) | 129 AC_MSG_CHECKING([if limiting scores]) |
| 131 if test "x$enable_limitscore" = "xno" ; then | 130 if test "x$enable_limitscore" = "xno" ; then |
| 132 AC_MSG_RESULT([no]) | 131 AC_MSG_RESULT([no]) |
| 133 elif test "x$enable_limitscore" = "x" ; then | 132 elif test "x$enable_limitscore" = "x" ; then |
| 134 AC_MSG_RESULT([no]) | 133 AC_MSG_RESULT([no]) |
