]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
AM_PROG_AR: require before AC_PROG_AR
authorMike Frysinger <vapier@gentoo.org>
Mon, 31 Jan 2022 07:40:14 +0000 (02:40 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 1 Feb 2022 02:40:32 +0000 (21:40 -0500)
The new autoconf AC_PROG_AR macro has similar logic to what we have in
AM_PROG_AR, but less than what we need (since autoconf doesn't support
the MS archiver), so make sure we are run before AC_PROG_AR.

* m4/ar-lib.m4: Call AC_BEFORE for AC_PROG_AR.

m4/ar-lib.m4

index 0bd2f6bf9f88f7ddbe08b6d69c8104a6240a4674..1b5a0272aec7db44015fe9ee3cb45d09d398d40e 100644 (file)
@@ -13,6 +13,7 @@
 AC_DEFUN([AM_PROG_AR],
 [AC_BEFORE([$0], [LT_INIT])dnl
 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
+AC_BEFORE([$0], [AC_PROG_AR])dnl
 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 AC_REQUIRE_AUX_FILE([ar-lib])dnl
 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])