diff options
author | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-20 21:00:07 +0000 |
---|---|---|
committer | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-20 21:00:07 +0000 |
commit | 512912f367f2db7a9dc3a8c7a6a6dfc8609d20e2 (patch) | |
tree | 710084ace61a8fe46725464c2d119a728d8cd1bc /configure.in | |
parent | c89e85ef3be1bbaa5bcc32dd01eaf929b6120eb3 (diff) | |
download | gcc-512912f367f2db7a9dc3a8c7a6a6dfc8609d20e2.tar.gz |
2002-09-20 Nathanael Nerode <neroden@doctor.moo.mud.org>
* configure.in: Rearrange.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/configure.in b/configure.in index a945dcb2432..697e1094b78 100644 --- a/configure.in +++ b/configure.in @@ -1127,25 +1127,6 @@ if test -n "${host_makefile_frag}" ; then host_makefile_frag=mh-frag fi -# If we aren't going to be using gcc, see if we can extract a definition -# of CC from the fragment. -# Actually, use the 'pre-extracted' version above. -if test -z "${CC}" && test "${build}" = "${host}" ; then - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" - found= - for dir in $PATH; do - test -z "$dir" && dir=. - if test -f $dir/gcc; then - found=yes - break - fi - done - IFS="$save_ifs" - if test -z "${found}" && test -n "${tentative_cc}" ; then - CC=$tentative_cc - fi -fi - case "${target}" in v810*) target_makefile_frag="config/mt-v810" @@ -1282,6 +1263,25 @@ case "${host}" in ;; esac +# If we aren't going to be using gcc, see if we can extract a definition +# of CC from the fragment. +# Actually, use the 'pre-extracted' version above. +if test -z "${CC}" && test "${build}" = "${host}" ; then + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + found= + for dir in $PATH; do + test -z "$dir" && dir=. + if test -f $dir/gcc; then + found=yes + break + fi + done + IFS="$save_ifs" + if test -z "${found}" && test -n "${tentative_cc}" ; then + CC=$tentative_cc + fi +fi + # post-target: # Make sure that the compiler is able to generate an executable. If it |