diff options
author | Jeff Law <law@redhat.com> | 2000-07-23 17:42:34 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-23 17:42:34 +0000 |
commit | 4316b40ad54f23fd6e367e151a1768144b5ff93b (patch) | |
tree | 04219a7bb09ca5543ee61f5046ac0ed085c4cf4e /configure | |
parent | c8f39e9fc341d78a4fde48a82456b8e06f254163 (diff) | |
download | gdb-4316b40ad54f23fd6e367e151a1768144b5ff93b.tar.gz |
* configure (topsrcdir): Don't use dirname.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure index 5bb72227d9f..dfc176263cf 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. |