Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-22 22:00:40 +0400
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-22 22:00:40 +0400
commit8980b9ad03b7503b759bc45dd8640d791f9f6cd7 (patch)
treeb476702c64ff11b9ac3792b66153dee213db52e8
parent5e8d7527afc9dd1113ec6fbdcb091d87c6e32c1c (diff)
Error out if building separately but srcdir has build remnants.
/: PR bootstrap/32272 * configure.ac: Error out if $srcdir isn't '.' but contains host-${host_noncanonical}. * configure: Regenerate.
-rw-r--r--ChangeLog7
-rwxr-xr-xconfigure5
-rw-r--r--configure.ac5
3 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e3d0ce7f4..817ac56ee 100644
--- 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
diff --git a/configure b/configure
index 720fa239c..667b514b7 100755
--- 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=
diff --git a/configure.ac b/configure.ac
index 794a4191d..e7d44db83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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=