Skip to contentSkip to conversation

master - configure: search for (a possibly prefixed) ar

PATCH Zdenek Kabelac 1 participant 1 message Jun 9, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4b4a210e8397a37446fe7229242868055af9cd81
Commit:        4b4a210e8397a37446fe7229242868055af9cd81
Parent:        5ef20d2168176f598d13e0b7bcc658b976813d5c
Author:        Heiko Becker <[email protected]>
AuthorDate:    Thu Apr 13 09:07:49 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 9 22:49:39 2017 +0200

configure: search for (a possibly prefixed) ar

e.g. when cross compiling.

---
 configure.in |    1 +
 make.tmpl.in |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
configure.in +1 -0
index ae5baa5..2e5e015 100644
@@ -84,6 +84,7 @@ AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_MKDIR_P
 AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar)
 AC_PATH_TOOL(CFLOW_CMD, cflow)
 AC_PATH_TOOL(CSCOPE_CMD, cscope)
 AC_PATH_TOOL(CHMOD, chmod)
make.tmpl.in +1 -1
index a40eaaa..cb5953a 100644
@@ -44,7 +44,7 @@ EGREP = @EGREP@
 GREP = @GREP@
 SORT = @SORT@
 WC = @WC@
-AR = ar
+AR = @AR@
 RM = rm -f
 
 PYTHON2 = @PYTHON2@