jed-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Deprecated autoconf macros


Dear JED developers,

In the Debian package for JED, we are applying the patch attached to this message, which copes with some deprecated autoconf macros in autoconf/configure.ac and autoconf/aclocal.m4.

Please, consider integrating this change in the next release tarball.

Best,

Rafael Laboissière
Description: Replace deprecated autoconf macros
 The obsolete autoconf macro AC_AIX is a platform-specific subset of
 AC_USE_SYSTEM_EXTENSIONS.
 .
 The obsolete AC_HELP_STRINGS has been replaced by AS_HELP_STRING.
 .
 AC_CONFIG_HEADER is an older macro that is less funcional than
 AC_CONFIG_HEADERS.
 .
 The obsolete macro AC_ISC_POSIX adds -lcposix to output variable LIBS
 if necessary for Posix facilities. Sun dropped support for the obsolete INTERACTIVE
 Systems Corporation Unix on 2006-07-23. New programs need not use
 this macro.
 . 
 See https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html
Author: Rafael Laboissière <rafael@xxxxxxxxxx>
Forwarded: no
Last-Update: 2021-09-20

--- a/autoconf/aclocal.m4
+++ b/autoconf/aclocal.m4
@@ -352,7 +352,7 @@ dnl#}}}
 AC_DEFUN([JD_GCC_WARNINGS], dnl#{{{
 [
 AC_ARG_ENABLE(warnings,
-	      AC_HELP_STRING([--enable-warnings],[turn on GCC compiler warnings]),
+	      AS_HELP_STRING([--enable-warnings],[turn on GCC compiler warnings]),
 	      [gcc_warnings=$enableval])
 if test -n "$GCC"
 then
@@ -536,11 +536,10 @@
 
 AC_DEFUN([JD_ANSI_CC], dnl#{{{
 [
-AC_AIX
+AC_USE_SYSTEM_EXTENSIONS
 AC_REQUIRE([AC_PROG_CC])
 AC_REQUIRE([AC_PROG_CPP])
 AC_REQUIRE([AC_PROG_GCC_TRADITIONAL])
-AC_ISC_POSIX
 
 dnl #This stuff came from Yorick config script
 dnl
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -138,7 +138,7 @@
 #---------------------------------------------------------------------------
 AC_DEFUN([WITH_GTK],[
   AC_ARG_WITH( [gtk],
-               AC_HELP_STRING([--with-gtk=PATH], [Directory where the pkg-config file gtk+-2.0.pc can be found. This is often /usr/lib/pkgconfig, /usr/lib64/pkgconfig or in a default garnome build of gnome $HOME/garnome/lib/pkgconfig]),
+               AS_HELP_STRING([--with-gtk=PATH],[Directory where the pkg-config file gtk+-2.0.pc can be found. This is often /usr/lib/pkgconfig, /usr/lib64/pkgconfig or in a default garnome build of gnome $HOME/garnome/lib/pkgconfig]),
 	       GTK_DIR="$withval", GTK_DIR="" )
   PKG_CONFIG_PATH="$GTK_DIR"
   export PKG_CONFIG_PATH
@@ -176,7 +176,7 @@
 dnl JD_GET_MODULES(src/modules.unx)
 dnl JD_CREATE_MODULE_ORULES
 
-AC_CONFIG_HEADER(src/sysconf.h:src/config.hin)
+AC_CONFIG_HEADERS([src/sysconf.h:src/config.hin])
 AC_CONFIG_FILES([Makefile:autoconf/Makefile.in src/Makefile])
 AC_OUTPUT
 

[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]