summaryrefslogtreecommitdiff
path: root/config/acx.m4
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2007-07-02 18:06:53 +0000
committerMike Stump <mrs@apple.com>2007-07-02 18:06:53 +0000
commit1dbdd4f70428194bc3d2dbbcb25368c3accae253 (patch)
treea34d6b0068b56ad15eaa8359b17b4888a97f9728 /config/acx.m4
parent517e62ea7ef0deee8ddcbda43bdbfdf85ef55270 (diff)
downloadgdb-1dbdd4f70428194bc3d2dbbcb25368c3accae253.tar.gz
* acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fixup logic for cross
builds. * acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Fix incremental builds. (ACX_HAVE_GCC_FOR_TARGET): Likewise.
Diffstat (limited to 'config/acx.m4')
-rw-r--r--config/acx.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/config/acx.m4 b/config/acx.m4
index a70d4077c33..c8a32c9f9ed 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -211,6 +211,8 @@ if test -z "$ac_cv_prog_$1" ; then
else
$1="${ncn_target_tool_prefix}[$]2"
fi], [$1="$3"])
+else
+ $1="$ac_cv_prog_$1"
fi
]) []dnl # NCN_STRICT_CHECK_TARGET_TOOLS
@@ -324,8 +326,8 @@ if test -z "$ac_cv_path_$1" ; then
fi
elif test $build != $host && test $have_gcc_for_target = yes; then
$1=`$GCC_FOR_TARGET --print-prog-name=$2`
- test [$]$1=$2 && $1=
- ac_cv_path_$1=[$]$1
+ test [$]$1 = $2 && $1=
+ test -n "[$]$1" && ac_cv_path_$1=[$]$1
fi
fi
if test -z "$ac_cv_path_$1" && test -n "$gcc_cv_tool_dirs"; then