aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-03-11 06:07:29 +0000
committerK. Richard Pixley <rich@cygnus>1992-03-11 06:07:29 +0000
commitc9b0df66be7f6f87aafd2cfe482fc9690ed04698 (patch)
tree455a62a5c3f7de5ccf93d02613fa9a45616fdc6a /configure
parent9d98d2ac35289fee5506b0a0634d6e0bd1b697fc (diff)
downloadgdb-c9b0df66be7f6f87aafd2cfe482fc9690ed04698.zip
gdb-c9b0df66be7f6f87aafd2cfe482fc9690ed04698.tar.gz
gdb-c9b0df66be7f6f87aafd2cfe482fc9690ed04698.tar.bz2
remove trailing slashes from srcdir so gdb-mode won't get cranky
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index 61c0dc9..2061182 100755
--- a/configure
+++ b/configure
@@ -108,7 +108,8 @@ do
exec_prefixoption="-exec_prefix=${exec_prefix}"
next_exec_prefix=
elif [ -n "${next_site}" ] ; then site=${arg} ; next_site=
- elif [ -n "${next_srcdir}" ] ; then srcdir=${arg} ; next_srcdir=
+ # remove any possible trailing slash from srcdir. See note below.
+ elif [ -n "${next_srcdir}" ] ; then srcdir=`echo ${arg} | sed -e 's:/$::'` ; next_srcdir=
elif [ -n "${next_program_prefix}" ] ; then
program_prefix=${arg}
program_prefixoption="-program_prefix=${program_prefix}"
@@ -185,8 +186,12 @@ do
-site | --site | --sit)
next_site=yes
;;
+ # remove trailing slashes. Otherwise, when the file name gets
+ # bolted into an object file as debug info, it has two slashes in
+ # it. Ordinarily this is ok, but emacs takes double slash to
+ # mean "forget the first part".
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=`echo ${arg} | sed 's/^[-a-z]*=//'`
+ srcdir=`echo ${arg} | sed 's/^[-a-z]*=//' | sed -e 's:/$::'`
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
next_srcdir=yes