diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-09-22 18:00:15 +0000 |
---|---|---|
committer | Ralf Wildenhues <rwild@gcc.gnu.org> | 2009-09-22 18:00:15 +0000 |
commit | 0db770bd0ab539d3da6680d0228c27b9b26e47cb (patch) | |
tree | d2797a65aa730a63ee7c838a3cee61a977254c58 /configure | |
parent | 7c5c5c6e00ceac09690cc2f4284a20c2a0c46b03 (diff) | |
download | gcc-0db770bd0ab539d3da6680d0228c27b9b26e47cb.zip gcc-0db770bd0ab539d3da6680d0228c27b9b26e47cb.tar.gz gcc-0db770bd0ab539d3da6680d0228c27b9b26e47cb.tar.bz2 |
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.
From-SVN: r152037
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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= |