From 4df57f9baefd5454c4d447d940227a2dfb2c4d8f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 27 Sep 2020 14:49:21 +0200 Subject: [PATCH] extensions: Simplify last commit. * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require AC_GNU_SOURCE ever. --- ChangeLog | 8 +++++++- m4/extensions.m4 | 10 +--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c06171aa1..ec6ab91046 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,15 @@ +2020-09-27 Bruno Haible + + extensions: Simplify last commit. + * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require + AC_GNU_SOURCE ever. + 2020-09-26 Paul Eggert extensions: require AC_GNU_SOURCE only for <=2.63 Problem reported by Gavin Smith in: https://lists.gnu.org/r/autoconf/2020-09/msg00012.html - * m4/extensions.m4 ([gl_USE_SYSTEM_EXTENSIONS]): + * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it shouldn’t be needed after that, and Autoconf 2.70 complains about it being obsolete. diff --git a/m4/extensions.m4 b/m4/extensions.m4 index 22fdb03e31..31790801e5 100644 --- a/m4/extensions.m4 +++ b/m4/extensions.m4 @@ -1,4 +1,4 @@ -# serial 19 -*- Autoconf -*- +# serial 20 -*- Autoconf -*- # Enable extensions on systems that normally disable them. # Copyright (C) 2003, 2006-2020 Free Software Foundation, Inc. @@ -177,13 +177,5 @@ dnl configure.ac when using autoheader 2.62. # typically due to standards-conformance issues. AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], [ - dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. - dnl gnulib does not need it. But if it gets required by third-party macros - dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a - dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". - dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, - dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. - m4_version_prereq([2.64], [], [AC_REQUIRE([AC_GNU_SOURCE])]) - AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) ]) -- 2.39.5