1 # Additional editing of Makefiles
2 /@GMSGFMT@/ s,\$GMSGFMT,msgfmt,
3 /@MSGFMT@/ s,\$MSGFMT,msgfmt,
4 /@XGETTEXT@/ s,\$XGETTEXT,xgettext,
5 /ac_given_INSTALL=/,/^CEOF/ {
7 # DJGPP specific Makefile changes.\
8 /^aliaspath[ ]*=/s,:,";",g\
10 lispdir = \\$(prefix)/gnu/emacs/site-lisp\
11 /TEXINPUTS[ ]*=/s,:,";",g\
15 s,\\.tab\\.c,_tab.c,g\
16 s,\\.tab\\.h,_tab.h,g\
17 s,\\([1-9]\\)\\.html\\.in,\\1hi,g\
18 s,\\([1-9]\\)\\.html,\\1-html,g\
19 s,\\([1-9]\\)\\.in,\\1-in,g\
20 s,\\.sh\\.in,.sh-in,g\
21 s,config\\.h\\.in,config.h-in
\r,g\
22 s,COPYING.LIB-2.0,COPYING_LIB.20
\r,g\
23 s,COPYING.LIB-2.1,COPYING_LIB.21
\r,g\
24 s,gettext_1.html,gettext.1-html
\r,g\
25 s,gettext_10.html,gettext.10-html
\r,g\
26 s,gettext_11.html,gettext.11-html
\r,g\
27 s,gettext_12.html,gettext.12-html
\r,g\
28 s,gettext_13.html,gettext.13-html
\r,g\
29 s,gettext_14.html,gettext.14-html
\r,g\
30 s,gettext_15.html,gettext.15-html
\r,g\
31 s,gettext_16.html,gettext.16-html
\r,g\
32 s,gettext_2.html,gettext.2-html
\r,g\
33 s,gettext_3.html,gettext.3-html
\r,g\
34 s,gettext_4.html,gettext.4-html
\r,g\
35 s,gettext_5.html,gettext.5-html
\r,g\
36 s,gettext_6.html,gettext.6-html
\r,g\
37 s,gettext_7.html,gettext.7-html
\r,g\
38 s,gettext_8.html,gettext.8-html
\r,g\
39 s,gettext_9.html,gettext.9-html
\r,g\
40 s,gettext_foot.html,gettext.foot-html
\r,g\
41 s,gettext_toc.html,gettext.toc-html
\r,g\
42 s,javacomp\\.sh\\.in,javacomp.sh-in
\r,g\
43 s,javaexec\\.sh\\.in,javaexec.sh-in
\r,g\
44 s,stdbool\\.h\\.in,stdbool.h-in
\r,g\
45 s,gettext.1.in,gettext.1-in
\r,g\
46 s,ngettext.1.in,ngettext.1-in
\r,g\
47 s,gettext.3.in,gettext.3-in
\r,g\
48 s,ngettext.3.in,ngettext.3-in
\r,g\
49 s,textdomain.3.in,textdomain.3-in
\r,g\
50 s,bindtextdomain.3.in,bindtextdomain.3-in
\r,g\
51 s,bind_textdomain_codeset.3.in,bind_textdomain_codeset.3-in
\r,g\
52 s,gettext.1.html.in,gettext.1hin
\r,g\
53 s,ngettext.1.html.in,ngettext.1hin
\r,g\
54 s,msgcmp.1.html,msgcmp.1-html
\r,g\
55 s,msgfmt.1.html,msgfmt.1-html
\r,g\
56 s,msgmerge.1.html,msgmerge.1-html
\r,g\
57 s,msgunfmt.1.html,msgunfmt.1-html
\r,g\
58 s,xgettext.1.html,xgettext.1-html
\r,g\
59 s,msgattrib.1.html,msgattrib.1-html
\r,g\
60 s,msgcat.1.html,msgcat.1-html
\r,g\
61 s,msgcomm.1.html,msgcomm.1-html
\r,g\
62 s,msgconv.1.html,msgconv.1-html
\r,g\
63 s,msgen.1.html,msgen.1-html
\r,g\
64 s,msgexec.1.html,msgexec.1-html
\r,g\
65 s,msgfilter.1.html,msgfilter.1-html
\r,g\
66 s,msggrep.1.html,msggrep.1-html
\r,g\
67 s,msginit.1.html,msginit.1-html
\r,g\
68 s,msguniq.1.html,msguniq.1-html
\r,g\
69 s,gettext.3.html,gettext.3-html
\r,g\
70 s,ngettext.3.html,ngettext.3-html
\r,g\
71 s,textdomain.3.html,textdomain.3-html
\r,g\
72 s,bindtextdomain.3.html,bindtextdomain.3-html
\r,g\
73 s,bind_textdomain_codeset.3.html,bind_textdomain_codeset.3-html
\r,g\
74 s,Makefile\\.in\\.in,Makefile.in-in
\r,g\
75 s,format-librep.c,format_librep.c
\r,g\
76 s,format-pascal.c,format_pascal.c
\r,g\
77 s,blue-ball.gif,b-ball.gif
\r,g\
78 s,cyan-ball.gif,c-ball.gif
\r,g\
79 s,green-ball.gif,g-ball.gif
\r,g\
80 s,magenta-ball.gif,m-ball.gif
\r,g\
81 s,red-ball.gif,r-ball.gif
\r,g\
82 s,yellow-ball.gif,y-ball.gif
\r,g\
83 s,constructors.gif,ctors.gif
\r,g\
84 s,variables.gif,vars.gif
\r,g\
85 s,package-frame.html,package_frame.html
\r,g\
86 s,package-tree.html,package_tree.html
\r,g\
87 s,gettext-1,gettext.1
\r,g\
88 s,gettext-2,gettext.2
\r,g\
89 s,msgattrib-1,msgattrib.1
\r,g\
90 s,msgattrib-2,msgattrib.2
\r,g\
91 s,msgattrib-3,msgattrib.3
\r,g\
92 s,msgattrib-4,msgattrib.4
\r,g\
93 s,msgattrib-5,msgattrib.5
\r,g\
94 s,msgattrib-6,msgattrib.6
\r,g\
95 s,msgattrib-7,msgattrib.7
\r,g\
96 s,msgattrib-8,msgattrib.8
\r,g\
97 s,msgattrib-9,msgattrib.9
\r,g\
98 s,msgattrib-10,msgattrib.10
\r,g\
99 s,msgattrib-11,msgattrib.11
\r,g\
100 s,msgattrib-12,msgattrib.12
\r,g\
101 s,msgattrib-13,msgattrib.13
\r,g\
102 s,msgattrib-14,msgattrib.14
\r,g\
103 s,msgcat-1,msgcat.1
\r,g\
104 s,msgcat-2,msgcat.2
\r,g\
105 s,msgcat-3,msgcat.3
\r,g\
106 s,msgcat-4,msgcat.4
\r,g\
107 s,msgcat-5,msgcat.5
\r,g\
108 s,msgcat-6,msgcat.6
\r,g\
109 s,msgcat-7,msgcat.7
\r,g\
110 s,msgcmp-1,msgcmp.1
\r,g\
111 s,msgcmp-2,msgcmp.2
\r,g\
112 s,msgcomm-1,msgcomm.1
\r,g\
113 s,msgcomm-2,msgcomm.2
\r,g\
114 s,msgcomm-3,msgcomm.3
\r,g\
115 s,msgcomm-4,msgcomm.4
\r,g\
116 s,msgcomm-5,msgcomm.5
\r,g\
117 s,msgcomm-6,msgcomm.6
\r,g\
118 s,msgcomm-7,msgcomm.7
\r,g\
119 s,msgcomm-8,msgcomm.8
\r,g\
120 s,msgcomm-9,msgcomm.9
\r,g\
121 s,msgcomm-10,msgcomm.10
\r,g\
122 s,msgcomm-11,msgcomm.11
\r,g\
123 s,msgcomm-12,msgcomm.12
\r,g\
124 s,msgcomm-13,msgcomm.13
\r,g\
125 s,msgcomm-14,msgcomm.14
\r,g\
126 s,msgcomm-15,msgcomm.15
\r,g\
127 s,msgcomm-16,msgcomm.16
\r,g\
128 s,msgcomm-17,msgcomm.17
\r,g\
129 s,msgcomm-18,msgcomm.18
\r,g\
130 s,msgcomm-19,msgcomm.19
\r,g\
131 s,msgcomm-20,msgcomm.20
\r,g\
132 s,msgcomm-21,msgcomm.21
\r,g\
133 s,msgcomm-22,msgcomm.22
\r,g\
134 s,msgcomm-23,msgcomm.23
\r,g\
135 s,msgconv-1,msgconv.1
\r,g\
136 s,msgconv-2,msgconv.2
\r,g\
137 s,msgconv-3,msgconv.3
\r,g\
138 s,msgen-1,msgen.1
\r,g\
139 s,msgexec-1,msgexec.1
\r,g\
140 s,msgexec-2,msgexec.2
\r,g\
141 s,msgfilter-1,msgfilter.1
\r,g\
142 s,msgfilter-2,msgfilter.2
\r,g\
143 s,msgfmt-1,msgfmt.1
\r,g\
144 s,msgfmt-2,msgfmt.2
\r,g\
145 s,msgfmt-3,msgfmt.3
\r,g\
146 s,msgfmt-4,msgfmt.4
\r,g\
147 s,msgfmt-5,msgfmt.5
\r,g\
148 s,msgfmt-6,msgfmt.6
\r,g\
149 s,msgfmt-7,msgfmt.7
\r,g\
150 s,msgfmt-8,msgfmt.8
\r,g\
151 s,msgfmt-9,msgfmt.9
\r,g\
152 s,msgfmt-10,msgfmt.10
\r,g\
153 s,msggrep-1,msggrep.1
\r,g\
154 s,msggrep-2,msggrep.2
\r,g\
155 s,msggrep-3,msggrep.3
\r,g\
156 s,msggrep-4,msggrep.4
\r,g\
157 s,msgmerge-1,msgmerge.1
\r,g\
158 s,msgmerge-2,msgmerge.2
\r,g\
159 s,msgmerge-3,msgmerge.3
\r,g\
160 s,msgmerge-4,msgmerge.4
\r,g\
161 s,msgmerge-5,msgmerge.5
\r,g\
162 s,msgmerge-6,msgmerge.6
\r,g\
163 s,msgmerge-7,msgmerge.7
\r,g\
164 s,msgmerge-8,msgmerge.8
\r,g\
165 s,msgmerge-9,msgmerge.9
\r,g\
166 s,msgmerge-10,msgmerge.10
\r,g\
167 s,msgmerge-11,msgmerge.11
\r,g\
168 s,msgmerge-12,msgmerge.12
\r,g\
169 s,msgmerge-13,msgmerge.13
\r,g\
170 s,msgmerge-14,msgmerge.14
\r,g\
171 s,msgmerge-15,msgmerge.15
\r,g\
172 s,msgmerge-16,msgmerge.16
\r,g\
173 s,msgmerge-17,msgmerge.17
\r,g\
174 s,msgmerge-18,msgmerge.18
\r,g\
175 s,msgmerge-19,msgmerge.19
\r,g\
176 s,msgmerge-20,msgmerge.20
\r,g\
177 s,msgunfmt-1,msgunfmt.1
\r,g\
178 s,msguniq-1,msguniq.1
\r,g\
179 s,msguniq-2,msguniq.2
\r,g\
180 s,msguniq-3,msguniq.3
\r,g\
181 s,xgettext-1,xgettext.1
\r,g\
182 s,xgettext-2,xgettext.2
\r,g\
183 s,xgettext-3,xgettext.3
\r,g\
184 s,xgettext-4,xgettext.4
\r,g\
185 s,xgettext-5,xgettext.5
\r,g\
186 s,xgettext-6,xgettext.6
\r,g\
187 s,xgettext-7,xgettext.7
\r,g\
188 s,xgettext-8,xgettext.8
\r,g\
189 s,xgettext-9,xgettext.9
\r,g\
190 s,xgettext-10,xgettext.10
\r,g\
191 s,xgettext-11,xgettext.11
\r,g\
192 s,xgettext-12,xgettext.12
\r,g\
193 s,xgettext-13,xgettext.13
\r,g\
194 s,xgettext-14,xgettext.14
\r,g\
195 s,xgettext-15,xgettext.15
\r,g\
196 s,xgettext-16,xgettext.16
\r,g\
197 s,xgettext-17,xgettext.17
\r,g\
198 s,format-c-1,format/c.1
\r,g\
199 s,format-c-2,format/c.2
\r,g\
200 s,format-elisp-1,format/elisp.1
\r,g\
201 s,format-elisp-2,format/elisp.2
\r,g\
202 s,format-java-1,format/java.1
\r,g\
203 s,format-java-2,format/java.2
\r,g\
204 s,format-librep-1,format/librep.1
\r,g\
205 s,format-librep-2,format/librep.2
\r,g\
206 s,format-lisp-1,format/lisp.1
\r,g\
207 s,format-lisp-2,format/lisp.2
\r,g\
208 s,format-python-1,format/python.1
\r,g\
209 s,format-python-2,format/python.2
\r,g\
210 s,format-pascal-1,format/pascal.1
\r,g\
211 s,format-pascal-2,format/pascal.2
\r,g\
212 s,format-ycp-1,format/ycp.1
\r,g\
213 s,format-ycp-2,format/ycp.2
\r,g\
214 s,lang-c++,lang-cxx
\r,g\
215 s,rpath-1a,rpath/1a
\r,g\
216 s,rpath-1b,rpath/1b
\r,g\
217 s,rpath-2aaa,rpath/2aaa
\r,g\
218 s,rpath-2aab,rpath/2aab
\r,g\
219 s,rpath-2aac,rpath/2aac
\r,g\
220 s,rpath-2aad,rpath/2aad
\r,g\
221 s,rpath-2aba,rpath/2aba
\r,g\
222 s,rpath-2abb,rpath/2abb
\r,g\
223 s,rpath-2abc,rpath/2abc
\r,g\
224 s,rpath-2abd,rpath/2abd
\r,g\
225 s,rpath-2baa,rpath/2baa
\r,g\
226 s,rpath-2bab,rpath/2bab
\r,g\
227 s,rpath-2bac,rpath/2bac
\r,g\
228 s,rpath-2bad,rpath/2bad
\r,g\
229 s,rpath-2bba,rpath/2bba
\r,g\
230 s,rpath-2bbb,rpath/2bbb
\r,g\
231 s,rpath-2bbc,rpath/2bbc
\r,g\
232 s,rpath-2bbd,rpath/2bbd
\r,g\
233 s,xg-test1.ok.po,xg-test1.ok-po
\r,g\
234 s,rpath-1,rpath/1
\r,g\
235 s,rpath-2_a,rpath/2_a
\r,g\
236 s,rpath-2_b,rpath/2_b
\r,g\
237 s,rpath-2.README,rpath/2.README
\r,g\
238 s,rpathcfg.sh,rpathcfg.sh
\r,g\
239 s,gettext_\\*\\.,gettext.*-,g\
240 s,format-librep,format_librep,g\
241 s,format-pascal,format_pascal,g\
242 /^TESTS[ ]*=/,/^$/ s,plural-\\([1-9]\\+\\),plural.\\1,g\
243 /^install-info-am:/,/^$/ {\
244 /@list=/ s,\\\$(INFO_DEPS),& gettext.i,\
245 s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
247 /^iso-639\\.texi[ ]*:.*$/ {\
248 s,iso-639,\\$(srcdir)/&,g\
249 s,ISO_639,\\$(srcdir)/&,\
251 /^iso-3166\\.texi[ ]*:.*$/ {\
252 s,iso-3166,\\$(srcdir)/&,g\
253 s,ISO_3166,\\$(srcdir)/&,\
255 /^# Some rules for yacc handling\\./,$ {\
257 -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
258 -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
260 /^POTFILES:/,/^$/ s,\\\$@-t,t-\\$@,g\
262 s,po-gram-gen2\\.h,po-gram_gen2.h,g\
263 /^Makefile[ ]*:/,/^$/ {\
264 /CONFIG_FILES=/ s,\\\$(subdir)/\\\$@\\.in,&:\\$(subdir)/\\$@.in-in,\
266 /html:/ s,split$,monolithic,g\
267 /^TEXI2HTML[ ]*=/ s,=[ ]*,&-,
270 # javacomp.sh is renamed to javacomp.sh-in,
271 # javaexec.sh is renamed to javaexec.sh-in,
272 # Makefile.in.in is renamed to Makefile.in-in...
273 /^CONFIG_FILES=/,/^EOF/ {
274 s|lib/javacomp\.sh|&:lib/javacomp.sh-in|
275 s|lib/javaexec\.sh|&:lib/javaexec.sh-in|
276 s|po/Makefile\.in|&:po/Makefile.in-in|
279 # ...and config.h.in into config.h-in
280 /^ *CONFIG_HEADERS=/,/^EOF/ {
281 s|config\.h|&:config.h-in|
284 # The same as above but this time
285 # for configure scripts created with Autoconf 2.14a.
286 /^config_files="\\\\/,/^$/ {
287 s|po/Makefile\.in|&:po/Makefile.in-in|
289 /^config_headers="\\\\/,/^$/ {
290 s|config\.h|&:config.h-in|
292 /# Handling of arguments./,/^$/ {
293 s|po/Makefile\.in|&:po/Makefile.in-in|2
294 s|config\.h|&:config.h-in|2
297 # Replace `(command) > /dev/null` with `command > /dev/null`, since
298 # parenthesized commands always return zero status in the ported Bash,
299 # even if the named command doesn't exist
300 /if [^{].*null/,/ then/ {
307 # DOS-style absolute file names should be supported as well
308 /\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
309 /\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
310 /\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
312 # Switch the order of the two Sed commands, since DOS path names
313 # could include a colon
314 /ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
316 # Prevent the spliting of conftest.subs.
317 # The sed script: conftest.subs is split into 48 or 90 lines long files.
318 # This will produce sed scripts called conftest.s1, conftest.s2, etc.
319 # that will not work if conftest.subs contains a multi line sed command
320 # at line #90. In this case the first part of the sed command will be the
321 # last line of conftest.s1 and the rest of the command will be the first lines
322 # of conftest.s2. So both script will not work properly.
323 # This matches the configure script produced by Autoconf 2.12
324 /ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
325 # This matches the configure script produced by Autoconf 2.14a
326 /ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
328 # The following two items are changes needed for configuring
329 # and compiling across partitions.
330 # 1) The given srcdir value is always translated from the
331 # "x:" syntax into "/dev/x" syntax while we run configure.
332 /^[ ]*-srcdir=\*.*$/ a\
333 ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
334 /set X `ls -Lt \$srcdir/ i\
335 if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
336 srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
339 # 2) We need links across partitions, so we will use "cp -pf" instead of "ln".
340 /# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
341 s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
344 # Let libtool use _libs all the time.
345 /objdir=/s,\.libs,_libs,
347 # Stock djdev203 does not provide an unsetenv() function,
348 # so we will use djdev204 CVS tree's one.
349 /^LTLIBOBJS=/ s,|, unsetenv.c |,
351 # Stock djdev203 does not provide pw_gecos,
352 # so we will use djdev204 CVS tree's one.
353 /^LTLIBOBJS=/ s,|, getpwnam.c |,