configure.in (auto-build.h): Use target_alias and build_alias when running configure.

* configure.in (auto-build.h): Use target_alias and build_alias
	when running configure.
	(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
	(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
	* configure: Regenerate.

From-SVN: r52020
This commit is contained in:
Alan Modra 2002-04-08 08:53:48 +00:00 committed by Alan Modra
parent 3f7fe9b9cf
commit 534d0cc0d4
3 changed files with 54 additions and 54 deletions

View File

@ -1,3 +1,11 @@
2002-04-08 Alan Modra <amodra@bigpond.net.au>
* configure.in (auto-build.h): Use target_alias and build_alias
when running configure.
(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
* configure: Regenerate.
2002-04-07 David S. Miller <davem@redhat.com>
* config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.

74
gcc/configure vendored

File diff suppressed because one or more lines are too long

View File

@ -882,7 +882,7 @@ else
saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
${realsrcdir}/configure \
--target=$target --host=$build --build=$build
--target=$target_alias --host=$build_alias --build=$build_alias
CFLAGS="${saved_CFLAGS}"
# We just finished tests for the build machine, so rename
@ -1222,7 +1222,7 @@ changequote(,)dnl
changequote([,])dnl
fi
if test "x$gcc_cv_as" = x -a x$build = x$host; then
if test "x$gcc_cv_as" = x; then
# Search the same directories that the installed compiler will
# search. Else we may find the wrong assembler and lose. If we
# do not find a suitable assembler binary, then try the user's
@ -1318,7 +1318,7 @@ changequote(,)dnl
changequote([,])dnl
fi
if test "x$gcc_cv_ld" = x -a x$build = x$host; then
if test "x$gcc_cv_ld" = x; then
# Search the same directories that the installed compiler will
# search. Else we may find the wrong linker and lose. If we
# do not find a suitable linker binary, then try the user's
@ -1387,12 +1387,10 @@ fi
AC_MSG_CHECKING(what nm to use)
if test -x nm$host_exeext; then
gcc_cv_nm=./nm$host_exeext
elif test x$build = x$host; then
if test "x$program_prefix" != xNONE; then
gcc_cv_nm=${program_prefix}nm$host_exeext
else
gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
fi
elif test "x$program_prefix" != xNONE; then
gcc_cv_nm=${program_prefix}nm$host_exeext
else
gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
fi
AC_MSG_RESULT($gcc_cv_nm)
@ -1400,12 +1398,10 @@ AC_MSG_RESULT($gcc_cv_nm)
AC_MSG_CHECKING(what objdump to use)
if test -x objdump$host_exeext; then
gcc_cv_objdump=./objdump$host_exeext
elif test x$build = x$host; then
if test "x$program_prefix" != xNONE; then
gcc_cv_objdump=${program_prefix}objdump$host_exeext
else
gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
fi
elif test "x$program_prefix" != xNONE; then
gcc_cv_objdump=${program_prefix}objdump$host_exeext
else
gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
fi
AC_MSG_RESULT($gcc_cv_objdump)