* configure.in: Pull definition of is_cross_compiler earlier.
This commit is contained in:
parent
333dcaabe5
commit
79188d5fa9
|
@ -1,5 +1,7 @@
|
||||||
2002-06-19 Nathanael Nerode <neroden@twcny.rr.com>
|
2002-06-19 Nathanael Nerode <neroden@twcny.rr.com>
|
||||||
|
|
||||||
|
* configure.in: Pull definition of is_cross_compiler earlier.
|
||||||
|
|
||||||
* configure.in: Rearrange a little.
|
* configure.in: Rearrange a little.
|
||||||
|
|
||||||
* configure.in: Remove references to librx.
|
* configure.in: Remove references to librx.
|
||||||
|
|
25
configure.in
25
configure.in
|
@ -119,6 +119,14 @@ appdirs=""
|
||||||
|
|
||||||
# per-target:
|
# per-target:
|
||||||
|
|
||||||
|
# Define is_cross_compiler to save on calls to 'test'.
|
||||||
|
is_cross_compiler=
|
||||||
|
if test x"${host}" = x"${target}" ; then
|
||||||
|
is_cross_compiler=no
|
||||||
|
else
|
||||||
|
is_cross_compiler=yes
|
||||||
|
fi
|
||||||
|
|
||||||
# Don't use libstdc++-v3's flags to configure/build itself.
|
# Don't use libstdc++-v3's flags to configure/build itself.
|
||||||
libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
|
libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
|
||||||
|
|
||||||
|
@ -426,19 +434,10 @@ esac
|
||||||
# toolchains, we add some directories that should only be useful in a
|
# toolchains, we add some directories that should only be useful in a
|
||||||
# cross-compiler.
|
# cross-compiler.
|
||||||
|
|
||||||
is_cross_compiler=
|
case $is_cross_compiler in
|
||||||
|
no) skipdirs="${skipdirs} ${cross_only}" ;;
|
||||||
if test x"${host}" = x"${target}" ; then
|
yes) skipdirs="${skipdirs} ${native_only}" ;;
|
||||||
# when doing a native toolchain, don't build the targets
|
esac
|
||||||
# that are in the 'cross only' list
|
|
||||||
skipdirs="${skipdirs} ${cross_only}"
|
|
||||||
is_cross_compiler=no
|
|
||||||
else
|
|
||||||
# similarly, don't build the targets in the 'native only'
|
|
||||||
# list when building a cross compiler
|
|
||||||
skipdirs="${skipdirs} ${native_only}"
|
|
||||||
is_cross_compiler=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We always want to use the same name for this directory, so that dejagnu
|
# We always want to use the same name for this directory, so that dejagnu
|
||||||
# can reliably find it.
|
# can reliably find it.
|
||||||
|
|
Loading…
Reference in New Issue