From: Ian Lance Taylor Date: Tue, 7 Nov 1995 20:21:37 +0000 (+0000) Subject: * configure.in: Call AC_CHECK_PROG to find and cache AR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a46885044f50e044be0cd0a50c5205798801b5a;p=binutils-gdb.git * configure.in: Call AC_CHECK_PROG to find and cache AR. * configure: Rebuilt. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b199e067954..e803efc375c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ Tue Nov 7 13:48:58 1995 Ian Lance Taylor + * configure.in: Call AC_CHECK_PROG to find and cache AR. + * configure: Rebuilt. + * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it is defined in the environment. diff --git a/bfd/configure b/bfd/configure index 564810701f7..3ba179d2abe 100755 --- a/bfd/configure +++ b/bfd/configure @@ -589,7 +589,33 @@ rm -f conftest* -AR=${AR-ar} +# Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AR="ar" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":" +fi +fi +AR="$ac_cv_prog_AR" +if test -n "$AR"; then + echo "$ac_t""$AR" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 @@ -687,7 +713,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <&6 # Put a plausible default for CC_FOR_BUILD in Makefile. -if test "x$cross_compiling" = "xno"; then - CC_FOR_BUILD='$(CC)' -else - CC_FOR_BUILD=gcc +if test -z "$CC_FOR_BUILD"; then + if test "x$cross_compiling" = "xno"; then + CC_FOR_BUILD='$(CC)' + else + CC_FOR_BUILD=gcc + fi fi @@ -726,7 +754,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error @@ -740,7 +768,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error @@ -773,7 +801,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -809,7 +837,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -844,7 +872,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < @@ -941,7 +969,7 @@ if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -1232,7 +1260,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return 0; } @@ -1518,7 +1546,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < + + * configure.in: Call AC_CHECK_PROG to find and cache AR. + * configure: Rebuilt. + Mon Nov 6 17:39:47 1995 Harry Dolan * configure.in: Add case for bfd_i860_arch.