]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
Error out if building separately but srcdir has build remnants.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 22 Sep 2009 18:00:40 +0000 (18:00 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 22 Sep 2009 18:00:40 +0000 (18:00 +0000)
/:
PR bootstrap/32272
* configure.ac: Error out if $srcdir isn't '.' but contains
host-${host_noncanonical}.
* configure: Regenerate.

ChangeLog
configure
configure.ac

index e3d0ce7f4d552423d5d48618086b141030217bf9..817ac56ee4405bf7a04d357d7b9cac10f5edf82d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR bootstrap/32272
+       * configure.ac: Error out if $srcdir isn't '.' but contains
+       host-${host_noncanonical}.
+       * configure: Regenerate.
+
 2009-09-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure.ac: If bootstrapping a combined tree with
index 720fa239c0527fad5ae1ef17577c3017b173a20a..667b514b72ccc38498dcfaa5b56e93b3b6eaa6ff 100755 (executable)
--- a/configure
+++ b/configure
@@ -2743,6 +2743,11 @@ fi
 # No prefix.
 target_subdir=${target_noncanonical}
 
+# Be sure to cover against remnants of an in-tree build.
+if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
+  as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
+Use a pristine source tree when building in a separate tree" "$LINENO" 5
+fi
 
 # Skipdirs are removed silently.
 skipdirs=
index 794a4191d56b2f6001385fd0f55257f0225fe1a1..e7d44db83dc086d0d461cacf6a1229fb2b00668a 100644 (file)
@@ -235,6 +235,11 @@ fi
 
 # Find the build and target subdir names.
 GCC_TOPLEV_SUBDIRS
+# Be sure to cover against remnants of an in-tree build.
+if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
+  AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonical}.
+Use a pristine source tree when building in a separate tree])
+fi
 
 # Skipdirs are removed silently.
 skipdirs=