aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>2000-07-23 17:41:56 +0000
committerJeff Law <law@gcc.gnu.org>2000-07-23 11:41:56 -0600
commit1adcd149387a1c8138b3de3f07027522be681940 (patch)
tree9361f4ce7f3e276dd83e608f124f98b10889036c
parent4eeaee5d0744aa39b340be11d3ff4589d1e37082 (diff)
downloadgcc-1adcd149387a1c8138b3de3f07027522be681940.zip
gcc-1adcd149387a1c8138b3de3f07027522be681940.tar.gz
gcc-1adcd149387a1c8138b3de3f07027522be681940.tar.bz2
* configure (topsrcdir): Don't use dirname.
From-SVN: r35207
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 71f92e4..d0f664a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
+
+ * configure (topsrcdir): Don't use dirname.
+
2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
* MAINTAINERS: Add self to Write After Approval list.
diff --git a/configure b/configure
index 553a089..9de3cc4 100755
--- a/configure
+++ b/configure
@@ -86,7 +86,7 @@ subdirs=
target_alias=NOTARGET
target_makefile_frag=
undefs=NOUNDEFS
-version="$Revision: 1.24 $"
+version="$Revision: 1.26 $"
x11=default
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
@@ -518,7 +518,8 @@ fi
configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
-topsrcdir=`cd \`dirname ${progname}\`; pwd`
+## the sed command below emulates the dirname command
+topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; pwd`
# this is a hack. sun4 must always be a valid host alias or this will fail.