aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-12-28 00:29:34 +0000
committerK. Richard Pixley <rich@cygnus>1991-12-28 00:29:34 +0000
commite488e5811826aaabe7ee3756e4b09ff6bd045f9e (patch)
treebd158af42d4569a8ecb5cedda0979a5fbf46d397 /configure
parent0065bc396832fb9e894df0110fc7c9ad79cb64dc (diff)
downloadgdb-e488e5811826aaabe7ee3756e4b09ff6bd045f9e.zip
gdb-e488e5811826aaabe7ee3756e4b09ff6bd045f9e.tar.gz
gdb-e488e5811826aaabe7ee3756e4b09ff6bd045f9e.tar.bz2
Be less sensitive to spaces in Makefile.in. Kills bug #556.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index b2ad602..f91c851 100755
--- a/configure
+++ b/configure
@@ -658,27 +658,27 @@ for host in ${hosts} ; do
mv Makefile.tem ${Makefile}
# set srcdir
- sed "s@^srcdir = \.@srcdir = ${srcdir}@" ${Makefile} > Makefile.tem
+ sed "s@^srcdir[ ]*=.*$@srcdir = ${srcdir}@" ${Makefile} > Makefile.tem
mv Makefile.tem ${Makefile}
# set prefix
if [ -n "${prefix}" ] ; then
- sed "s:^prefix =.*$:prefix = ${prefix}:" ${Makefile} > Makefile.tem
+ sed "s:^prefix[ ]*=.*$:prefix = ${prefix}:" ${Makefile} > Makefile.tem
mv Makefile.tem ${Makefile}
fi
# set datadir
if [ -n "${datadir}" ] ; then
- sed "s:^datadir =.*$:datadir = ${datadir}:" ${Makefile} > Makefile.tem
+ sed "s:^datadir[ ]*=.*$:datadir = ${datadir}:" ${Makefile} > Makefile.tem
mv Makefile.tem ${Makefile}
fi
# reset SUBDIRS
- sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem
+ sed "s:^SUBDIRS[ ]*=.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem
mv Makefile.tem ${Makefile}
# reset NONSUBDIRS
- sed "s:^NONSUBDIRS =.*$:NONSUBDIRS = ${noconfigdirs}:" ${Makefile} > Makefile.tem
+ sed "s:^NONSUBDIRS[ ]*=.*$:NONSUBDIRS = ${noconfigdirs}:" ${Makefile} > Makefile.tem
mv Makefile.tem ${Makefile}
# remove any form feeds.