-dnl Use autoconf 2.53
+dnl Use autoconf 2.71
dnl (Things tend to break across versions, they're neither upwards nor
dnl downward compatible. Blame GNU.)
-AC_INIT(dgamelaunch, [1.6.0-hdf])
-AC_PREREQ(2.53)
+AC_INIT([dgamelaunch],[1.6.0-hdf])
+AC_PREREQ([2.71])
-AC_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS([config.h])
AC_PROG_CC(cc gcc)
-AC_STDC_HEADERS
-AC_PROG_LEX
+AC_PROG_LEX(noyywrap)
if test -z "$LEX"; then
AC_MSG_ERROR([lex or flex not found.])
fi
AC_ARG_ENABLE(debugfile,
-[AC_HELP_STRING([--enable-debugfile], [Enable debugging output to a file.])],
+[AS_HELP_STRING([--enable-debugfile],[Enable debugging output to a file.])],
[], [])
if test "$enable_debugfile" = yes; then
AC_ARG_ENABLE(sqlite,
-[AC_HELP_STRING([--enable-sqlite], [Use SQLite for the database instead of flat text file.])],
+[AS_HELP_STRING([--enable-sqlite],[Use SQLite for the database instead of flat text file.])],
[], [])
AC_ARG_WITH(sqlite-db,
-[AC_HELP_STRING([--with-sqlite-db=PATH], [Define the path and filename of the SQLite database.])],
+[AS_HELP_STRING([--with-sqlite-db=PATH],[Define the path and filename of the SQLite database.])],
[dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
if test "$enable_sqlite" = yes; then
dgl_rlimit_core_default=157286400
AC_ARG_WITH(rlimit-core,
-[AC_HELP_STRING([--with-rlimit-core=SIZE], [Enable and set the core dump maximum size.])],
+[AS_HELP_STRING([--with-rlimit-core=SIZE],[Enable and set the core dump maximum size.])],
[dgl_rlimit_core=$withval; enable_rlimit=yes], [dgl_rlimit_core=$dgl_rlimit_core_default])
if test "$enable_rlimit" = yes; then
dgl_rlimit_as_default=104857600
AC_ARG_WITH(rlimit-as,
-[AC_HELP_STRING([--with-rlimit-as=SIZE], [Enable and set the maximum memory usage.])],
+[AS_HELP_STRING([--with-rlimit-as=SIZE],[Enable and set the maximum memory usage.])],
[dgl_rlimit_as=$withval; enable_rlimit=yes], [dgl_rlimit_as=$dgl_rlimit_as_default])
if test "$enable_rlimit" = yes; then
AC_ARG_ENABLE(shmem,
-[AC_HELP_STRING([--enable-shmem], [Use a shared memory block to show number of watchers.])],
+[AS_HELP_STRING([--enable-shmem],[Use a shared memory block to show number of watchers.])],
[enable_shmem=yes], [])
if test "$enable_shmem" = yes; then
AC_ARG_WITH(config-file,
-[AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
+[AS_HELP_STRING([--with-config-file=PATH],[Define the path to the default configuration file.])],
[configfile=$withval], [configfile="/etc/dgamelaunch.conf"])
AC_DEFINE_UNQUOTED(DEFCONFIG, "$configfile", [Path to the default config file.])