public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Matthieu Longo <matthieu.longo@arm.com>
To: <binutils@sourceware.org>
Cc: Richard Earnshaw <richard.earnshaw@arm.com>,
	Nick Clifton <nickc@redhat.com>,
	Matthieu Longo <matthieu.longo@arm.com>
Subject: [PATCH v0 02/10] autoupdate: replace obsolete macros AC_AIX, AC_MINIX, and AC_GNU_SOURCE
Date: Tue, 28 May 2024 10:49:41 +0100	[thread overview]
Message-ID: <20240528094949.1299120-3-matthieu.longo@arm.com> (raw)
In-Reply-To: <20240528094949.1299120-1-matthieu.longo@arm.com>

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]


- AC_AIX, AC_MINIX, and AC_GNU_SOURCE by AC_USE_SYSTEM_EXTENSIONS
  https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#index-AC_005fAIX
  https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#index-AC_005fMINIX-1
  https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#index-AC_005fGNU_005fSOURCE-1
---
 bfd/configure.ac               | 1 -
 binutils/configure.ac          | 1 -
 gas/configure.ac               | 1 -
 gold/configure.ac              | 2 --
 gprof/configure.ac             | 1 -
 ld/configure.ac                | 1 -
 libiberty/configure.ac         | 2 +-
 opcodes/configure.ac           | 1 -
 readline/readline/configure.ac | 3 +--
 9 files changed, 2 insertions(+), 11 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: v0-0002-autoupdate-replace-obsolete-macros-AC_AIX-AC_MINI.patch --]
[-- Type: text/x-patch; name="v0-0002-autoupdate-replace-obsolete-macros-AC_AIX-AC_MINI.patch", Size: 2845 bytes --]

diff --git a/bfd/configure.ac b/bfd/configure.ac
index 29ede92b993..3b65d8fed4a 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -36,7 +36,6 @@ dnl configure option --enable-shared.
 AC_DISABLE_SHARED
 
 AC_PROG_CC
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 
 LT_INIT([dlopen])
diff --git a/binutils/configure.ac b/binutils/configure.ac
index 19c5d7d7c34..0373a426495 100644
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -28,7 +28,6 @@ AM_INIT_AUTOMAKE
 AM_SILENT_RULES([yes])
 
 AC_PROG_CC
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 
 AC_C_BIGENDIAN
diff --git a/gas/configure.ac b/gas/configure.ac
index 7403ec71cd0..503635072cf 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -34,7 +34,6 @@ AM_INIT_AUTOMAKE
 AM_SILENT_RULES([yes])
 
 AC_PROG_CC
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 
 LT_INIT
diff --git a/gold/configure.ac b/gold/configure.ac
index 2c7a969b97f..0e622c7405a 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -313,8 +313,6 @@ AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_PROG_LN_S
 
-AC_GNU_SOURCE
-
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
diff --git a/gprof/configure.ac b/gprof/configure.ac
index 3202303e9fc..b2635680c15 100644
--- a/gprof/configure.ac
+++ b/gprof/configure.ac
@@ -32,7 +32,6 @@ dnl config.h, to avoid any possible confusion with the bfd config.h.
 AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
 
 AC_PROG_CC
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_INSTALL
 
diff --git a/ld/configure.ac b/ld/configure.ac
index 84f4044d5fc..cce094380de 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -31,7 +31,6 @@ AM_MAINTAINER_MODE
 AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_GREP
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_INSTALL
 PKG_PROG_PKG_CONFIG
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 0888e638896..4f76b62fcfd 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -172,7 +172,7 @@ AC_MSG_NOTICE([target_header_dir = $target_header_dir])
 
 GCC_NO_EXECUTABLES
 AC_PROG_CC
-AC_GNU_SOURCE
+AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
 AC_PROG_CPP_WERROR
 
diff --git a/opcodes/configure.ac b/opcodes/configure.ac
index d812ff54a95..31ab922440e 100644
--- a/opcodes/configure.ac
+++ b/opcodes/configure.ac
@@ -27,7 +27,6 @@ AM_INIT_AUTOMAKE
 AM_SILENT_RULES([yes])
 
 AC_PROG_CC
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 
 dnl These must be called before LT_INIT, because it may want
diff --git a/readline/readline/configure.ac b/readline/readline/configure.ac
index c800f1c8667..9ea2a6b4b5e 100644
--- a/readline/readline/configure.ac
+++ b/readline/readline/configure.ac
@@ -115,8 +115,7 @@ test -z "$CFLAGS" && want_auto_cflags=1
 
 AC_PROG_MAKE_SET
 AC_PROG_CC
-dnl AC_AIX
-AC_MINIX
+AC_USE_SYSTEM_EXTENSIONS
 
 # If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS
 if test -n "$want_auto_cflags" ; then

  parent reply	other threads:[~2024-05-28  9:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  9:49 [PATCH v0 00/10] Fix obsolescence warnings when regenerating build scripts with autoreconf-2.72 Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 01/10] autoupdate: replace obsolete macros AC_HELP_STRING Matthieu Longo
2024-05-28  9:49 ` Matthieu Longo [this message]
2024-05-28  9:49 ` [PATCH v0 03/10] autoupdate: replace obsolete macros AC_PROG_LIBTOOL Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 04/10] autoupdate: replace obsolete macros AC_CANONICAL_SYSTEM Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 05/10] autoupdate: replace obsolete macros AC_CONFIG_HEADER Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 06/10] autoupdate: replace old version of AC_INIT by the new one Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 07/10] autoupdate: add square brackets around argument of AC_PREREQ Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 08/10] autoupdate: add square brackets around arguments of AC_INIT Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 09/10] autoconf: delete obsolete unused m4 file Matthieu Longo
2024-05-28  9:49 ` [PATCH v0 10/10] autoupdate: diff after replacing obsolete macros with previous patches Matthieu Longo
2024-06-07  1:48 ` [PATCH v0 00/10] Fix obsolescence warnings when regenerating build scripts with autoreconf-2.72 Alan Modra
     [not found]   ` <87sexolp6t.fsf@tromey.com>
2024-06-07 22:42     ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240528094949.1299120-3-matthieu.longo@arm.com \
    --to=matthieu.longo@arm.com \
    --cc=binutils@sourceware.org \
    --cc=nickc@redhat.com \
    --cc=richard.earnshaw@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).