From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 6443B3858402 for ; Fri, 25 Feb 2022 04:44:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6443B3858402 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 88216342E66; Fri, 25 Feb 2022 04:44:54 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] libgloss: switch to AM_PROG_AR Date: Thu, 24 Feb 2022 23:44:55 -0500 Message-Id: <20220225044455.27816-1-vapier@gentoo.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2022 04:45:03 -0000 Now that we require Automake 1.15, we can use this macro rather than set the tool up ourselves. The current code doesn't properly search for a prefixed ar tool as-is. --- libgloss/Makefile.in | 1 + libgloss/aarch64/aclocal.m4 | 112 ++++++++++++++++++++++ libgloss/aarch64/configure | 176 +++++++++++++++++++++++++++++++++- libgloss/aarch64/configure.ac | 3 +- libgloss/aclocal.m4 | 60 ++++++++++++ libgloss/arm/aclocal.m4 | 112 ++++++++++++++++++++++ libgloss/arm/configure | 176 +++++++++++++++++++++++++++++++++- libgloss/arm/configure.ac | 3 +- libgloss/configure | 144 ++++++++++++++++++++++++++-- libgloss/configure.ac | 4 +- 10 files changed, 776 insertions(+), 15 deletions(-) diff --git a/libgloss/aarch64/configure.ac b/libgloss/aarch64/configure.ac index cd91c2212d05..d691f11a714c 100644 --- a/libgloss/aarch64/configure.ac +++ b/libgloss/aarch64/configure.ac @@ -11,8 +11,7 @@ AC_PROG_INSTALL AC_NO_EXECUTABLES AC_PROG_CC AM_PROG_AS -AR=${AR-ar} -AC_SUBST(AR) +AM_PROG_AR LD=${LD-ld} AC_SUBST(LD) AC_PROG_RANLIB diff --git a/libgloss/arm/configure.ac b/libgloss/arm/configure.ac index 2affeb9716c9..44f5f73962e4 100644 --- a/libgloss/arm/configure.ac +++ b/libgloss/arm/configure.ac @@ -31,8 +31,7 @@ AC_PROG_INSTALL AC_NO_EXECUTABLES AC_PROG_CC AM_PROG_AS -AR=${AR-ar} -AC_SUBST(AR) +AM_PROG_AR LD=${LD-ld} AC_SUBST(LD) AC_PROG_RANLIB diff --git a/libgloss/configure.ac b/libgloss/configure.ac index a656fe1853fb..43e7916631e0 100644 --- a/libgloss/configure.ac +++ b/libgloss/configure.ac @@ -251,9 +251,7 @@ AM_CONDITIONAL(CONFIG_LIBNOSYS, test x$config_libnosys = xtrue) AC_PROG_CC AM_PROG_AS -AC_CHECK_PROG(AR, ar, ar, :) -AR=${AR-ar} -AC_SUBST(AR) +AM_PROG_AR LD=${LD-ld} AC_SUBST(LD) AC_PROG_RANLIB -- 2.34.1