Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2006-02-14 12:22:15 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2006-02-14 12:22:15 +0300
commit207258c87d0a0fd76b3aaccb3c8915f57e68be20 (patch)
treedf3cd6246a518a8f2e1da075b96d77f44b6122c4 /config/acx.m4
parent49bc9a6939415778b76f722305c51d29c785ec20 (diff)
2006-02-14 Paolo Bonzini <bonzini@gnu.org>
Andreas Schwab <schwab@suse.de> * configure: Regenerate. config: 2006-02-14 Paolo Bonzini <bonzini@gnu.org> Andreas Schwab <schwab@suse.de> * acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Use correct program name. (ACX_CHECK_INSTALLED_TARGET_TOOL): Likewise, and always set $1.
Diffstat (limited to 'config/acx.m4')
-rw-r--r--config/acx.m418
1 files changed, 12 insertions, 6 deletions
diff --git a/config/acx.m4 b/config/acx.m4
index 9f0dd1e00..7c4c21386 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -138,8 +138,8 @@ AC_DEFUN([NCN_STRICT_CHECK_TARGET_TOOLS],
if test -n "$with_build_time_tools"; then
for ncn_progname in $2; do
AC_MSG_CHECKING([for ${ncn_progname} in $with_build_time_tools])
- if test -x $with_build_time_tools/$1; then
- ac_cv_prog_$1=$with_build_time_tools/$1
+ if test -x $with_build_time_tools/${ncn_progname}; then
+ ac_cv_prog_$1=$with_build_time_tools/${ncn_progname}
AC_MSG_RESULT(yes)
break
else
@@ -271,10 +271,14 @@ AC_REQUIRE([ACX_TOOL_DIRS])
AC_REQUIRE([ACX_HAVE_GCC_FOR_TARGET])
if test -z "$ac_cv_path_$1" ; then
if test -n "$with_build_time_tools"; then
- AC_MSG_CHECKING([for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools])
- $1=`cd $with_build_time_tools && pwd`/$1
- ac_cv_path_$1=[$]$1
- AC_MSG_RESULT([$ac_cv_path_$1])
+ AC_MSG_CHECKING([for $2 in $with_build_time_tools])
+ if test -x $with_build_time_tools/$2; then
+ $1=`cd $with_build_time_tools && pwd`/$2
+ ac_cv_path_$1=[$]$1
+ AC_MSG_RESULT([$ac_cv_path_$1])
+ else
+ AC_MSG_RESULT(no)
+ fi
elif test $build != $host && test $have_gcc_for_target = yes; then
$1=`$GCC_FOR_TARGET --print-prog-name=$2`
test [$]$1=$2 && $1=
@@ -286,6 +290,8 @@ if test -z "$ac_cv_path_$1" ; then
fi
if test -z "$ac_cv_path_$1" ; then
NCN_STRICT_CHECK_TARGET_TOOLS([$1], [$2])
+else
+ $1=$ac_cv_path_$1
fi
]) []dnl # ACX_CHECK_INSTALLED_TARGET_TOOL