Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-23 21:42:34 +0400
committerJeff Law <law@redhat.com>2000-07-23 21:42:34 +0400
commit20b9d598ea4d927b19843045224dcae0a08e2fe7 (patch)
tree58011fea5fdeeabe5f0df0501c7fc3923e90aeee /configure
parent9fb628fc5720d1014192a97538ba92d33c9c36ca (diff)
* configure (topsrcdir): Don't use dirname.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 5bb72227d..dfc176263 100755
--- a/configure
+++ b/configure
@@ -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.