aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-12-12 06:30:17 +0000
committerK. Richard Pixley <rich@cygnus>1991-12-12 06:30:17 +0000
commit475576aef95369eab6f8960aaf28f11cf73d9d9c (patch)
treeb98a05a8eb55aa15d532788d0af3b2987984f83c /configure
parent9a9e8e7f4b4a84bac766fca0ebdb62b14d33e851 (diff)
downloadgdb-475576aef95369eab6f8960aaf28f11cf73d9d9c.zip
gdb-475576aef95369eab6f8960aaf28f11cf73d9d9c.tar.gz
gdb-475576aef95369eab6f8960aaf28f11cf73d9d9c.tar.bz2
config.sub & config.subr merge
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 8168c10..d764560 100755
--- a/configure
+++ b/configure
@@ -117,12 +117,12 @@ else
PATH=$PATH:${PWD} ; export PATH
fi
-configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
+configsubr=`echo ${progname} | sed 's/configure$/config.subr/'`
-if ${configsub} none >/dev/null 2>&1 ; then
+if ${configsubr} none >/dev/null 2>&1 ; then
true
else
- echo '***' cannot find config.sub.
+ echo '***' cannot find config.subr.
echo 1
fi
@@ -425,7 +425,7 @@ for host in ${hosts} ; do
host_alias=${host}
- result=`${configsub} ${host}`
+ result=`${configsubr} ${host}`
host_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -441,7 +441,7 @@ for host in ${hosts} ; do
for target in ${targets} ; do
target_alias=${target}
- result=`${configsub} ${target}`
+ result=`${configsubr} ${target}`
target_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
@@ -756,8 +756,8 @@ ${progname}" ${arguments} "
### figure out what to do with srcdir
case "${srcdir}" in
".") ;; # do nothing. We're building in place.
- "..") srcdiroption="-srcdir=../../${configdir}" ;;
- *) srcdiroption="-srcdir=${srcdir}/${configdir}" ;;
+ /*) srcdiroption="-srcdir=${srcdir}/${configdir}" ;; # absolute path
+ *) srcdiroption="-srcdir=../${srcdir}/${configdir}" ;; # otherwise relative
esac
### The recursion line is here.