]> Savannah Git Hosting - gnulib.git/commitdiff
Find 'ar' program that fits with --host argument.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Sep 2011 20:00:24 +0000 (22:00 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Sep 2011 20:00:24 +0000 (22:00 +0200)
* m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.

ChangeLog
m4/gnulib-common.m4

index b2d7cb1c72fd2c1b112ca2e583a0f9ad96d192de..f2a4eaac3bd2cf796d6e322e567b501c7382572d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-02  Bruno Haible  <bruno@clisp.org>
+
+       Find 'ar' program that fits with --host argument.
+       * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
+
 2011-09-02  Bruno Haible  <bruno@clisp.org>
 
        tests: init.sh: Support any non-GNU diff.
index 9dc8fbe8e467526095bf57529fbb401a1a252bf7..1e87b11e884ecda8a4117ae59428321d70470193 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 29
+# gnulib-common.m4 serial 30
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -230,8 +230,9 @@ Amsterdam
      ARFLAGS='-o'
      RANLIB=':'
     ],
-    [dnl Use the Automake-documented default values for AR and ARFLAGS.
-     AR='ar'
+    [dnl Use the Automake-documented default values for AR and ARFLAGS,
+     dnl but prefer ${host}-ar over ar (useful for cross-compiling).
+     AC_CHECK_TOOL([AR], [ar], [ar])
      ARFLAGS='cru'
      dnl Use the ranlib program if it is available.
      AC_PROG_RANLIB