configure now accepts parameter --num-games=INT which will

set the maximum number of games dgamelaunch supports.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@400 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2008-01-01 21:41:17 +00:00
parent eb2fdc2629
commit eb4a08c8ea
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,14 @@ if test "$enable_sqlite" = yes; then
AC_DEFINE_UNQUOTED(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
fi
def_dgl_num_games=4
AC_ARG_WITH(num-games,
[AC_HELP_STRING([--num-games=INT], [Max. number of games this dgamelaunch supports per dgl installation.])],
[dgl_num_games=$withval], [dgl_num_games=$def_dgl_num_games])
AC_DEFINE_UNQUOTED(DIFF_GAMES, $dgl_num_games, [Max. number of games this dgamelaunch supports per dgl installation.])
AC_MSG_RESULT([Number of games this dgamelaunch supports: $dgl_num_games]);
AC_ARG_WITH(config-file,
[AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],

View File

@ -14,7 +14,7 @@
/* max # of different games playable from within this dgl */
#define DIFF_GAMES 4
/*#define DIFF_GAMES 4*/
typedef enum
{