aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>1997-09-17 19:55:13 -0400
committerBrendan Kehoe <brendan@gcc.gnu.org>1997-09-17 19:55:13 -0400
commit4e8a434e98c9e4cd58f03c3ab1f27e0e8907d3a4 (patch)
tree668b435e0ed217ea2c4e9723f36923cb40d97338
parent4415850727878f0da8f32498f6b38cc8cf934df3 (diff)
downloadgcc-4e8a434e98c9e4cd58f03c3ab1f27e0e8907d3a4.zip
gcc-4e8a434e98c9e4cd58f03c3ab1f27e0e8907d3a4.tar.gz
gcc-4e8a434e98c9e4cd58f03c3ab1f27e0e8907d3a4.tar.bz2
configure.in, configure: Make sure to create the stage* and include symbolic links in each subdirectory...
* configure.in, configure: Make sure to create the stage* and include symbolic links in each subdirectory, as we do in configure.lang for non-autoconf configurations. fixes cp 3stage problem From-SVN: r15528
-rwxr-xr-xgcc/configure13
-rw-r--r--gcc/configure.in13
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index 532750e..e3b38f6 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -5111,6 +5111,19 @@ case x$CONFIG_HEADERS in
xconfig.h:config.in)
echo > cstamp-h ;;
esac
+# Make sure we create things so -Bstage1/ will work.
+for d in .. ${subdirs} ; do
+ if [ $d != .. ]; then
+ STARTDIR=`pwd`
+ cd $d
+ for t in stage1 stage2 stage3 stage4 include
+ do
+ rm -f $t
+ $symbolic_link ../$t $t 2>/dev/null
+ done
+ cd $STARTDIR
+ fi
+done
exit 0
EOF
diff --git a/gcc/configure.in b/gcc/configure.in
index 605cb60..4d991f9 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -3147,6 +3147,19 @@ case x$CONFIG_HEADERS in
xconfig.h:config.in)
echo > cstamp-h ;;
esac
+# Make sure we create things so -Bstage1/ will work.
+for d in .. ${subdirs} ; do
+ if [ $d != .. ]; then
+ STARTDIR=`pwd`
+ cd $d
+ for t in stage1 stage2 stage3 stage4 include
+ do
+ rm -f $t
+ $symbolic_link ../$t $t 2>/dev/null
+ done
+ cd $STARTDIR
+ fi
+done
],
[
host='${host}'