]> skyeroc.xyz Git - dgamelaunch/commitdiff
Update configure.ac for autoconf 2.71
authorRon Nazarov <ron@noisytoot.org>
Mon, 25 Nov 2024 16:45:45 +0000 (16:45 +0000)
committerRon Nazarov <ron@noisytoot.org>
Mon, 25 Nov 2024 16:45:45 +0000 (16:45 +0000)
configure.ac

index d4b5578d5b2c7d29ad9b0a4a7b2f99c7839a9d37..5008dc927749847f7f3e235f11bbd87b7f59a23d 100644 (file)
@@ -1,16 +1,15 @@
-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
@@ -91,7 +90,7 @@ AC_SEARCH_LIBS(initscr, [ncursesw cursesw], [], [
 
 
 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
@@ -101,11 +100,11 @@ fi
 
 
 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
@@ -120,7 +119,7 @@ fi
 
 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
@@ -136,7 +135,7 @@ fi
 
 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
@@ -152,7 +151,7 @@ fi
 
 
 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
@@ -167,7 +166,7 @@ fi
 
 
 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.])