From 51f9897c2ceb3ff0aa5f1c1c719bad5e55046d92 Mon Sep 17 00:00:00 2001
From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 12 May 1999 08:39:23 +0000
Subject: [PATCH] 	* configure.in (compiler_name): Don't do the
 skip-this-dir thing 	if we're reconfiguring.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26899 138bc75d-0d04-0410-961f-82ee72b054a4
---
 libio/ChangeLog        | 5 +++++
 libio/configure.in     | 4 +++-
 libstdc++/ChangeLog    | 5 +++++
 libstdc++/configure.in | 4 +++-
 4 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/libio/ChangeLog b/libio/ChangeLog
index 15095d836d37..aa546a46c4cb 100644
--- a/libio/ChangeLog
+++ b/libio/ChangeLog
@@ -1,3 +1,8 @@
+1999-05-12  Jason Merrill  <jason@yorick.cygnus.com>
+
+	* configure.in (compiler_name): Don't do the skip-this-dir thing
+	if we're reconfiguring.
+
 1999-04-29  Nathan Sidwell  <nathan@acm.org>
 
 	* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
diff --git a/libio/configure.in b/libio/configure.in
index b2568e5a6bec..084e901aabf6 100644
--- a/libio/configure.in
+++ b/libio/configure.in
@@ -18,9 +18,11 @@ esac
 # does, we do not build anything. Note, $r is set by the top-level Makefile.
 # Note that when we look for the compiler, we search both with and without
 # extension to handle cross and canadian cross builds. 
+# Note that if $norecursion is set we're being called from config.status,
+# so don't check for the compiler; we might be doing a make clean.
 compiler_name=cc1plus
 rm -f skip-this-dir
-if test -n "$r"; then
+if test -n "$r" && [ -z "$norecursion" ] ; then
   if test -d "$r"/gcc; then
     if test -f "$r"/gcc/$compiler_name \
        || test -f "$r"/gcc/$compiler_name$EXEEXT; then
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog
index a75920e12ef7..731a4404a2e7 100644
--- a/libstdc++/ChangeLog
+++ b/libstdc++/ChangeLog
@@ -1,3 +1,8 @@
+1999-05-12  Jason Merrill  <jason@yorick.cygnus.com>
+
+	* configure.in (compiler_name): Don't do the skip-this-dir thing
+	if we're reconfiguring.
+
 1999-05-07  Ulrich Drepper  <drepper@cygnus.com>
 
 	* std/bastring.h (class basic_string::Rep): Make release member
diff --git a/libstdc++/configure.in b/libstdc++/configure.in
index 0f556cac551c..c0c701398f10 100644
--- a/libstdc++/configure.in
+++ b/libstdc++/configure.in
@@ -18,9 +18,11 @@ esac
 # does, we do not build anything. Note, $r is set by the top-level Makefile.
 # Note that when we look for the compiler, we search both with and without
 # extension to handle cross and canadian cross builds. 
+# Note that if $norecursion is set we're being called from config.status,
+# so don't check for the compiler; we might be doing a make clean.
 compiler_name=cc1plus
 rm -f skip-this-dir
-if test -n "$r"; then
+if test -n "$r" && [ -z "$norecursion" ] ; then
   if test -d "$r"/gcc; then
     if test -f "$r"/gcc/$compiler_name \
        || test -f "$r"/gcc/$compiler_name$EXEEXT; then
-- 
GitLab