From 961546f850db8061e4fff66fc88335286f020dc9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 4 Feb 2023 14:40:00 +0200 Subject: [PATCH 31/31] configure: Use AC_PROG_AR() when available autoconf-2.72 will introduce AC_PROG_AC(). Prefer that over existing AM_PROG_AR() See osdn #46511 Signed-off-by: Marko Lindqvist --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c6c91b14f9..24b66b4c11 100644 --- a/configure.ac +++ b/configure.ac @@ -628,10 +628,15 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_LN_S AC_DISABLE_SHARED -AM_PROG_AR + +dnl AC_PROG_AR() added in autoconf-2.72 +m4_ifdef([AC_PROG_AR], + [AC_PROG_AR], [AM_PROG_AR]) + if test -z $AR; then - AC_MSG_ERROR([*** 'ar' missing. Install binutils, fix your \$PATH, or set \$AR manually. ***]) + AC_MSG_ERROR([*** 'ar' missing. Install binutils, fix your \$PATH, or set \$AR manually. ***]) fi + LT_INIT AM_PROG_CC_C_O -- 2.39.1