From 20b9d598ea4d927b19843045224dcae0a08e2fe7 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 23 Jul 2000 17:42:34 +0000 Subject: * configure (topsrcdir): Don't use dirname. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') 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. -- cgit v1.2.3