Automatically enable --unique=.text for elf32-hppa.
[binutils-gdb.git] / configure
index 5bb72227d9f2717d2857ec976ff74da795ea0114..dfc176263cfed1e44f9529701c4e8844ef4a7004 100755 (executable)
--- 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.