> > If someone wishes to submit a patch for that bug for 4.0 branch, I expect > it could be considered for 4.0.2 but might be too risky for 4.0.1 now. >
Like so? Tested by building outside the source directory and attempting to build in the source directory. Did we want something like this for mainline too? -eric 2005-06-21 Eric Christopher <[EMAIL PROTECTED]> * configure.in: Reject building in the source directory. Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.341.2.4 diff -u -p -w -r1.341.2.4 configure.in --- configure.in 6 Jun 2005 06:59:11 -0000 1.341.2.4 +++ configure.in 21 Jun 2005 22:15:20 -0000 @@ -70,6 +70,11 @@ progname=$0 # if PWD already has a value, it is probably wrong. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi +# If we're building in the source directory, error. +if test "${srcdir}" = "." ; then + AC_MSG_ERROR([Building in the source directory is not supported. See http://gcc.gnu.org/install/configure.html for more details.]) +fi + # Export original configure arguments for use by sub-configures. These # will be expanded by make, so quote '$'. tmp="$progname $@"