diff mbox

PATCH RFA: Correct toplevel configury

Message ID mcrbowmvnu5.fsf@coign.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor July 22, 2011, 6:20 a.m. UTC
One of my recent patches broke the toplevel configury.  I moved a test
of $configdirs to a point before nonexistent directories have been
removed from configdirs.  The test was for whether gcc is being
configured.  The test is fine in the gcc repository, but not in the src
repository.

This patch fixes the problem.  If the gcc directory exists, we assume
that we are going to build it.  This only matters for setting the
default value for --enable-bootstrap.

Bootstrapped on x86_64-unknown-linux-gnu.  OK for mainline?

Ian


2011-07-21  Ian Lance Taylor  <iant@google.com>

	* configure.ac: Set have_compiler based on whether gcc directory
	exists, rather than on whether gcc is in configdirs.
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 176515)
+++ configure.ac	(working copy)
@@ -1139,10 +1139,11 @@  AC_ARG_ENABLE([bootstrap],
 enable_bootstrap=default)
 
 # Issue errors and warnings for invalid/strange bootstrap combinations.
-case "$configdirs" in
-  *gcc*) have_compiler=yes ;;
-  *) have_compiler=no ;;
-esac
+if test -r $srcdir/gcc/configure; then
+  have_compiler=yes
+else
+  have_compiler=no ;;
+fi
 
 case "$have_compiler:$host:$target:$enable_bootstrap" in
   *:*:*:no) ;;