diff options
author | Daniel Jacobowitz <dan@codesourcery.com> | 2005-10-06 15:24:09 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@gcc.gnu.org> | 2005-10-06 15:24:09 +0000 |
commit | d739199abbc65d6c08a804d45de89db4530ddc53 (patch) | |
tree | 19a11f25e2e72b6d1f92ac4cea42b0a8e1751c97 /gcc/acinclude.m4 | |
parent | 88217f448d7633b1cb958a4c782129ad6ddac443 (diff) | |
download | gcc-d739199abbc65d6c08a804d45de89db4530ddc53.tar.gz |
Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET.
./ * Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET.
* Makefile.tpl (BASE_TARGET_EXPORTS): Add OBJDUMP.
(OBJDUMP_FOR_TARGET, CONFIGURED_OBJDUMP_FOR_TARGET)
(USUAL_OBJDUMP_FOR_TARGET): New.
(EXTRA_TARGET_FLAGS): Add OBJDUMP.
* configure.in: Check for $OBJDUMP_FOR_TARGET.
* configure, Makefile: Regenerated.
gcc/
* acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
here. Use AC_PATH_PROG for environment variables instead of
test -x.
* configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
objdump also.
* configure: Regenerated.
From-SVN: r105038
Diffstat (limited to 'gcc/acinclude.m4')
-rw-r--r-- | gcc/acinclude.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index 763178463a7..3893b458a5a 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -561,6 +561,15 @@ AC_REQUIRE([gcc_AC_BUILD_EXEEXT]) dnl shut up useless "checking for..." messages dnl we can still read them in config.log exec AS_MESSAGE_FD([])>/dev/null + +# First try the environment variables. Handle full paths or basenames. +if test "x[$]$1" = x && test -n "[$]$4"; then + AC_PATH_PROG($1, [$]$4) +fi +if test "x[$]$1" = x && test -n "[$]$5" && test x$host = x$target; then + AC_PATH_PROG($1, [$]$5) +fi + if test "x[$]$1" = x; then # The AC_PATH_PROGS macro doesn't work properly when its 4th argument # is empty. |