]> www.infradead.org Git - mtd-utils.git/commitdiff
Add missing autoconf check for AR
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 14 Feb 2024 12:58:36 +0000 (13:58 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 14 Feb 2024 12:59:36 +0000 (13:59 +0100)
After removing libtool, there is no more cross-check for AR. Because
some slightly older versions of autoconf don't have AC_PROG_AR, simply
insert the implementation one-liner.

We already tried bumping the minimum autoconf version once in the past,
but apparently that is an issue for a number of distros.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
configure.ac

index cd48bb08fb73b9c7215ab6f9b60e3742a88b41c5..7448b3e2d855f0b6d4b0f19dda65c04f0bc99945 100644 (file)
@@ -21,6 +21,8 @@ AM_INIT_AUTOMAKE([foreign subdir-objects dist-bzip2])
 AM_SILENT_RULES([yes])
 AC_PROG_CC
 AC_PROG_INSTALL
+# autoconf <= 2.63 doesn't have AC_PROG_AR
+AC_CHECK_TOOL(AR, ar, :)
 AC_PROG_RANLIB
 AC_SYS_LARGEFILE