Mercurial > hg > early-roguelike
comparison rogue5/configure.ac @ 34:655c317b6237
rogue5: add savedir, logfile, bugfixes
author | elwin |
---|---|
date | Mon, 24 May 2010 20:16:15 +0000 |
parents | f502bf60e6e4 |
children | 2a59cf36ae38 |
comparison
equal
deleted
inserted
replaced
33:f502bf60e6e4 | 34:655c317b6237 |
---|---|
84 AC_MSG_RESULT([disabled]) | 84 AC_MSG_RESULT([disabled]) |
85 fi | 85 fi |
86 | 86 |
87 AC_SUBST(SCOREFILE) | 87 AC_SUBST(SCOREFILE) |
88 | 88 |
89 AC_ARG_ENABLE([logfile],[AC_HELP_STRING([--enable-logfile=LOGFILE], [enable logfile with given filename])],[],[]) | |
90 AC_MSG_CHECKING([for log file]) | |
91 if test "x$enable_logfile" = "xno" ; then | |
92 LOGFILE= | |
93 elif test "x$enable_logfile" = "xyes" ; then | |
94 LOGFILE=$progname.log | |
95 elif test "x$enable_logfile" = "x" ; then | |
96 LOGFILE=$progname.log | |
97 else | |
98 LOGFILE=$enable_logfile | |
99 fi | |
100 | |
101 if test "x$LOGFILE" != "x" ; then | |
102 AC_DEFINE_UNQUOTED([LOGFILE], ["$LOGFILE"], [Define to file to use for log]) | |
103 AC_MSG_RESULT([$LOGFILE]) | |
104 else | |
105 AC_MSG_RESULT([disabled]) | |
106 fi | |
107 | |
108 AC_SUBST(LOGFILE) | |
109 | |
89 AC_ARG_ENABLE([lockfile],[AC_HELP_STRING([--enable-lockfile=LOCKFILE], [enable scoreboard lockfile with given filename])],[],[]) | 110 AC_ARG_ENABLE([lockfile],[AC_HELP_STRING([--enable-lockfile=LOCKFILE], [enable scoreboard lockfile with given filename])],[],[]) |
90 AC_MSG_CHECKING([for scoreboard lockfile file]) | 111 AC_MSG_CHECKING([for scoreboard lockfile file]) |
91 if test "x$enable_lockfile" = "xno" ; then | 112 if test "x$enable_lockfile" = "xno" ; then |
92 LOCKFILE= | 113 LOCKFILE= |
93 elif test "x$enable_lockfile" = "xyes" ; then | 114 elif test "x$enable_lockfile" = "xyes" ; then |
104 else | 125 else |
105 AC_MSG_RESULT([disabled]) | 126 AC_MSG_RESULT([disabled]) |
106 fi | 127 fi |
107 | 128 |
108 AC_SUBST(LOCKFILE) | 129 AC_SUBST(LOCKFILE) |
130 | |
131 AC_ARG_ENABLE([savedir],[AC_HELP_STRING([--enable-savedir=SAVEDIR], [enable systemwide location for saved games])],[],[]) | |
132 AC_MSG_CHECKING([for save directory]) | |
133 if test "x$enable_savedir" = "xno" ; then | |
134 SAVEDIR= | |
135 elif test "x$enable_savedir" = "xyes" ; then | |
136 SAVEDIR=$progname/ | |
137 elif test "x$enable_savedir" = "x" ; then | |
138 SAVEDIR=$progname/ | |
139 else | |
140 SAVEDIR=$enable_savedir | |
141 fi | |
142 | |
143 if test "x$SAVEDIR" != "x" ; then | |
144 AC_DEFINE_UNQUOTED([SAVEDIR], ["$SAVEDIR"], [Define to systemwide directory for storing saved games]) | |
145 AC_MSG_RESULT([$SAVEDIR]) | |
146 else | |
147 AC_MSG_RESULT([disabled]) | |
148 fi | |
149 | |
150 AC_SUBST(SAVEDIR) | |
109 | 151 |
110 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) | 152 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) |
111 AC_MSG_CHECKING([if wizard mode is enabled]) | 153 AC_MSG_CHECKING([if wizard mode is enabled]) |
112 if test "x$enable_wizardmode" = "xno" ; then | 154 if test "x$enable_wizardmode" = "xno" ; then |
113 AC_MSG_RESULT([no]) | 155 AC_MSG_RESULT([no]) |