aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/djgpp/config.sed
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2005-05-12 08:42:12 +0000
committerEli Zaretskii <eliz@gnu.org>2005-05-12 08:42:12 +0000
commitb41cde44099116d8d3984d787624c8913e1798fe (patch)
treefb35503286868687c814ab3bb0d9f0245d4fd716 /gdb/config/djgpp/config.sed
parent380d9419c99660cdfb1501be9a14630ad5e398cf (diff)
downloadfsf-binutils-gdb-b41cde44099116d8d3984d787624c8913e1798fe.zip
fsf-binutils-gdb-b41cde44099116d8d3984d787624c8913e1798fe.tar.gz
fsf-binutils-gdb-b41cde44099116d8d3984d787624c8913e1798fe.tar.bz2
* config/djgpp/config.sed: Adapt to latest Autoconf.
* config/djgpp/djconfig.sh: Add -Wpointer-arith and -Wuninitialized to the build warnings.
Diffstat (limited to 'gdb/config/djgpp/config.sed')
-rw-r--r--gdb/config/djgpp/config.sed27
1 files changed, 18 insertions, 9 deletions
diff --git a/gdb/config/djgpp/config.sed b/gdb/config/djgpp/config.sed
index 7ca2095..aef12eb 100644
--- a/gdb/config/djgpp/config.sed
+++ b/gdb/config/djgpp/config.sed
@@ -3,22 +3,31 @@ s|gdb\.c++|gdb.cxx|g
/ac_rel_source/s|ln -s|cp -p|
s|\.gdbinit|gdb.ini|g
-/^ac_given_INSTALL=/,/^CEOF/ {
- /^s%@prefix@%/a\
+# Edit Makefiles. This should go near the beginning of
+# the substitutions script, before the branch command that
+# skips any lines without @...@ in them.
+# Any commands that can match again after substitution must
+# do a conditional branch to next cycle (;t), or else Sed might hang.
+/(echo[ ]*':t/a\
s,\\([yp*]\\)\\.tab,\\1_tab,g\
- /^ @rm -f/s,\\$@-\\[0-9\\]\\[0-9\\],& *.i[1-9] *.i[1-9][0-9],\
+ s,\\$@\\.tmp,\\$@_tmp,g\
+ s,\\$@\\.new,\\$@_new,g\
+ /^ @rm -f/s,\\$@-\\[0-9\\]\\[0-9\\],& *.i[1-9] *.i[1-9][0-9],;t\
s,standards\\.info\\*,standard*.inf*,\
s,configure\\.info\\*,configur*.inf*,\
s,\\.info\\*,.inf* *.i[1-9] *.i[1-9][0-9],\
s,\\.gdbinit,gdb.ini,g\
- /TEXINPUTS=/s,:,';',g\
+ s,@PATH_SEPARATOR@,";",\
+ /TEXINPUTS=/s,:,";",g\
/VPATH *=/s,\\([^A-z]\\):,\\1;,g\
- /\\$\\$file-\\[0-9\\]/s,echo,& *.i[1-9] *.i[1-9][0-9],\
- /\\$\\$file-\\[0-9\\]/s,rm -f \\$\\$file,& \\${PACKAGE}.i[1-9] \\${PACKAGE}.i[1-9][0-9],\
- s,config\\.h\\.in,config.h-in,g\
- s,po2tbl\\.sed\\.in,po2tblsed.in,g
+ /\\$\\$file-\\[0-9\\]/s,echo,& *.i[1-9] *.i[1-9][0-9],;t\
+ /\\$\\$file-\\[0-9\\]/s,rm -f \\$\\$file,& \\${PACKAGE}.i[1-9] \\${PACKAGE}.i[1-9][0-9],;t\
+ s,config\\.h\\.in,config.h-in,g;t t\
+ s,po2tbl\\.sed\\.in,po2tblsed.in,g;t t
-}
+# Prevent splitting of config.status substitutions, because that
+# might break multi-line sed commands.
+/ac_max_sed_lines=[0-9]/s,=.*$,=`sed -n "$=" $tmp/subs.sed`,
/^ac_given_srcdir=/,/^CEOF/ {
/^s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%/a\