46 lines
1009 B
Diff
46 lines
1009 B
Diff
|
From 16b728f9a5bb138386fa770de817ec244a158be5 Mon Sep 17 00:00:00 2001
|
||
|
From: David Seifert <soap@gentoo.org>
|
||
|
Date: Sat, 12 Jun 2021 22:15:06 +0200
|
||
|
Subject: Use `AM_PROG_AR` over `AC_CHECK_TOOLS`
|
||
|
|
||
|
* `AM_PROG_AR` is the canonical way to detect the archiver
|
||
|
and includes workarounds for Cygwin.
|
||
|
|
||
|
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
|
||
|
---
|
||
|
.gitignore | 1 +
|
||
|
configure.ac | 3 +--
|
||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/.gitignore b/.gitignore
|
||
|
index 0df9347..5dc334d 100644
|
||
|
--- a/.gitignore
|
||
|
+++ b/.gitignore
|
||
|
@@ -2,6 +2,7 @@
|
||
|
*.o
|
||
|
/.deps/
|
||
|
/aclocal.m4
|
||
|
+/ar-lib
|
||
|
/autom4te.cache/
|
||
|
/compile
|
||
|
/config.guess
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 5b4f2cb..1cb7fd7 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -62,10 +62,9 @@ AM_PROG_AS
|
||
|
dnl Checks for programs
|
||
|
AC_PROG_CC
|
||
|
AC_PROG_RANLIB
|
||
|
+AM_PROG_AR
|
||
|
AC_PROG_GCC_TRADITIONAL
|
||
|
|
||
|
-AC_CHECK_TOOLS([AR], [ar gar], :)
|
||
|
-
|
||
|
AX_PTHREAD
|
||
|
|
||
|
AM_CONDITIONAL([RDRAND], [test $target_cpu = x86_64 -o $target_cpu = i686])
|
||
|
--
|
||
|
2.26.3
|
||
|
|