configure: Update autoconf and libtool macro use to fix warnings.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 8 Jul 2022 22:22:24 +0000 (15:22 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 8 Jul 2022 22:47:59 +0000 (15:47 -0700)
acinclude.m4
configure.ac

index 8fba32f945a69da11e6dd1093a8fdd596ca80d06..8c1d2fd851c7e3c082956054ed931548700fbebf 100644 (file)
@@ -347,7 +347,7 @@ dnl PSPP_ENABLE_WERROR
 AC_DEFUN([PSPP_ENABLE_WERROR],
   [AC_ARG_ENABLE(
      [Werror],
-     [AC_HELP_STRING([--enable-Werror], [Add -Werror to CFLAGS])],
+     [AS_HELP_STRING([--enable-Werror], [Add -Werror to CFLAGS])],
      [], [enable_Werror=no])
    AC_CONFIG_COMMANDS_PRE(
      [if test "X$enable_Werror" = Xyes; then
index 9c6f57fe7cc220092cf9a0b89156bc05b17ec30c..b8e8b7ddce58d89d4cef4480ac643a45daefeae5 100644 (file)
@@ -25,19 +25,17 @@ AC_CONFIG_TESTDIR([tests])
 AM_INIT_AUTOMAKE([tar-ustar info-in-builddir])
 
 dnl Checks for programs.
-AC_GNU_SOURCE
+AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_CC
 gl_EARLY
 if test x"$cross_compiling" = x"yes"; then
    if test x"$srcdir" = x"."; then
-      AC_ERROR([Cross compiling must be done out of source.])
+      AC_MSG_ERROR([Cross compiling must be done out of source.])
    fi
 fi
 
 AM_PROG_CC_C_O
-AC_LIBTOOL_WIN32_DLL
-AC_LIBTOOL_DLOPEN
-AC_PROG_LIBTOOL
+LT_INIT([dlopen win32-dll])
 AC_HEADER_TIOCGWINSZ
 
 AC_CHECK_SIZEOF([ptrdiff_t])