[PATCH] libgloss: switch to AM_PROG_AR

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.