OSDN Git Service

* configure.ac: Set have_compiler based on whether gcc directory
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2011 18:44:11 +0000 (18:44 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2011 18:44:11 +0000 (18:44 +0000)
exists, rather than on whether gcc is in configdirs.
* configure: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176800 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure
configure.ac

index 6a27fb7..2b062cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-26  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.
+       * configure: Rebuild.
+
 2011-07-21  Joseph Myers  <joseph@codesourcery.com>
 
        * MAINTAINERS (Global Reviewers): Add self.
index facf3e4..5366d71 100755 (executable)
--- a/configure
+++ b/configure
@@ -4992,10 +4992,11 @@ fi
 
 
 # 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) ;;
index e64e577..4cf1160 100644 (file)
@@ -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) ;;