aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@twcny.rr.com>2002-06-19 23:39:42 +0000
committerDJ Delorie <dj@gcc.gnu.org>2002-06-19 19:39:42 -0400
commite1848dde7a6c5ed3d2da2e83a91b28d237faa931 (patch)
tree88e5900c97840ee371dd0e5173b2f87c3b4b8264
parent8bc2fff1203005cbe433cd22cea65cfe7a4fd237 (diff)
downloadgcc-e1848dde7a6c5ed3d2da2e83a91b28d237faa931.zip
gcc-e1848dde7a6c5ed3d2da2e83a91b28d237faa931.tar.gz
gcc-e1848dde7a6c5ed3d2da2e83a91b28d237faa931.tar.bz2
* configure.in: Pull definition of is_cross_compiler earlier.
From-SVN: r54807
-rw-r--r--ChangeLog2
-rw-r--r--configure.in25
2 files changed, 14 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e8d57f..a842b61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
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: Remove references to librx.
diff --git a/configure.in b/configure.in
index 33d1a9c..e3974bd 100644
--- a/configure.in
+++ b/configure.in
@@ -119,6 +119,14 @@ appdirs=""
# 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.
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
# cross-compiler.
-is_cross_compiler=
-
-if test x"${host}" = x"${target}" ; then
- # when doing a native toolchain, don't build the targets
- # 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
+case $is_cross_compiler in
+ no) skipdirs="${skipdirs} ${cross_only}" ;;
+ yes) skipdirs="${skipdirs} ${native_only}" ;;
+esac
# We always want to use the same name for this directory, so that dejagnu
# can reliably find it.