Description: Update configure.ac for newer versions of autoconf and libtool.
Author: Thomas Uhle <thomas.uhle@mailbox.tu-dresden.de>
Bug-Debian: https://bugs.debian.org/1032032
Forwarded: no
Last-Update: 2023-03-12

--- a/agua-1.0/configure.ac
+++ b/agua-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([agua.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/exec-0.4a/configure.ac
+++ b/exec-0.4a/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([exec.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/fgfx-1.0/configure.ac
+++ b/fgfx-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([fgfx.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/fire-1.0/configure.ac
+++ b/fire-1.0/configure.ac
@@ -6,20 +6,15 @@
 
 AC_CONFIG_SRCDIR([fire.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
-AM_INIT_AUTOMAKE(no-dependencies)
 
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -40,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/fsock-1.0/configure.ac
+++ b/fsock-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([fsock.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/image-1.0/configure.ac
+++ b/image-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([image.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/mixer-1.0/configure.ac
+++ b/mixer-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([mixer.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -46,8 +42,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/mpeg-1.0/configure.ac
+++ b/mpeg-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([mpeg.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -45,8 +41,7 @@
 AC_CHECK_LIB(SDL_mixer, main,, AC_MSG_ERROR([*** SDL_mixer library not found!]))
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/net-1.0/configure.ac
+++ b/net-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([net.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -40,8 +36,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/tcpsock-2.0/configure.ac
+++ b/tcpsock-2.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([tcpsock.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -39,8 +35,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
--- a/ttf-1.0/configure.ac
+++ b/ttf-1.0/configure.ac
@@ -6,7 +6,7 @@
 
 AC_CONFIG_SRCDIR([ttf.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
 
@@ -14,11 +14,7 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_LIBTOOL_WIN32_DLL
-
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen win32-dll])
 
 AM_MAINTAINER_MODE
 
@@ -43,8 +39,7 @@
 AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])
 
 # Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([memory.h stdlib.h])
+AC_CHECK_HEADERS([memory.h stdlib.h], [], [], [AC_INCLUDES_DEFAULT])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
