source: trunk/third/gettext/djgpp/config.in @ 16931

Revision 16931, 4.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, which included commits to RCS files with non-trunk default branches.
Line 
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/ {
6  /^CEOF$/ i\
7# DJGPP specific Makefile changes.\
8  /^aliaspath[  ]*=/s,:,";",g\
9  /^lispdir[    ]*=/ c\\\\\
10lispdir = \\$(prefix)/gnu/emacs/site-lisp\
11  /TEXINPUTS[   ]*=/s,:,";",g\
12  /PATH[        ]*=/s,:,";",g\
13  s,\\.new\\.,_new.,g\
14  s,\\.old\\.,_old.,g\
15  s,\\.tab\\.c,_tab.c,g\
16  s,\\.tab\\.h,_tab.h,g\
17  s,\\([1-9]\\)\\.html,\\1-html,g\
18  s,\\([1-9]\\)\\.in,\\1-in,g\
19  s,gettext_\\*\\.,gettext.*-,g\
20  @append_list_of_renamed_files@
21  /^TESTS[      ]*=/ s,plural-\\([1-9]\\+\\),plural.\\1,g\
22  /^install-info-am:/,/^$/ {\
23    /@list=/ s,\\\$(INFO_DEPS),& gettext.i,\
24    s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
25  }\
26  /^iso-639\\.texi[     ]*:.*$/ {\
27    s,iso-639,\\$(srcdir)/&,g\
28    s,ISO_639,\\$(srcdir)/&,\
29  }\
30  /^iso-3166\\.texi[    ]*:.*$/ {\
31    s,iso-3166,\\$(srcdir)/&,g\
32    s,ISO_3166,\\$(srcdir)/&,\
33  }\
34  /^# Some rules for yacc handling\\./,$ {\
35    /\\\$(YACC)/ a\\\\\
36        -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
37        -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
38  }\
39  /^POTFILES:/,/^$/ s,\\\$@-t,t-\\$@,g\
40  s,basename\\.o,,g\
41  s,po-gram-gen2\\.h,po-gram_gen2.h,g\
42  /^Makefile[   ]*:/,/^$/ {\
43    /CONFIG_FILES=/ s,\\\$(subdir)/\\\$@\\.in,&:\\$(subdir)/\\$@.in-in,\
44  }\
45  /html:/ s,split$,monolithic,g\
46  /^TEXI2HTML[  ]*=/ s,=[       ]*,&-,
47}
48
49# Makefile.in.in is renamed to Makefile.in-in...
50/^CONFIG_FILES=/,/^EOF/ {
51  s|po/Makefile\.in|&:po/Makefile.in-in|
52}
53
54# ...and config.h.in into config.h-in
55/^ *CONFIG_HEADERS=/,/^EOF/ {
56  s|config\.h|&:config.h-in|
57}
58
59# The same as above but this time
60# for configure scripts created with Autoconf 2.14a.
61/^config_files="\\\\/,/^$/ {
62  s|po/Makefile\.in|&:po/Makefile.in-in|
63}
64/^config_headers="\\\\/,/^$/ {
65  s|config\.h|&:config.h-in|
66}
67/# Handling of arguments./,/^$/ {
68  s|po/Makefile\.in|&:po/Makefile.in-in|2
69  s|config\.h|&:config.h-in|2
70}
71
72# Replace `(command) > /dev/null` with `command > /dev/null`, since
73# parenthesized commands always return zero status in the ported Bash,
74# even if the named command doesn't exist
75/if [^{].*null/,/ then/ {
76  /test .*null/ {
77    s,(,,
78    s,),,
79  }
80}
81
82# DOS-style absolute file names should be supported as well
83/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
84/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
85/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
86
87# Switch the order of the two Sed commands, since DOS path names
88# could include a colon
89/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
90
91# Prevent the spliting of conftest.subs.
92# The sed script: conftest.subs is split into 48 or 90 lines long files.
93# This will produce sed scripts called conftest.s1, conftest.s2, etc.
94# that will not work if conftest.subs contains a multi line sed command
95# at line #90. In this case the first part of the sed command will be the
96# last line of conftest.s1 and the rest of the command will be the first lines
97# of conftest.s2. So both script will not work properly.
98# This matches the configure script produced by Autoconf 2.12
99/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
100# This matches the configure script produced by Autoconf 2.14a
101/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
102
103# The following two items are changes needed for configuring
104# and compiling across partitions.
105# 1) The given srcdir value is always translated from the
106#    "x:" syntax into "/dev/x" syntax while we run configure.
107/^[     ]*-srcdir=\*.*$/ a\
108    ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
109/set X `ls -Lt \$srcdir/ i\
110   if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
111     srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
112   fi
113
114#  2) We need links across partitions, so we will use "cp -pf" instead of "ln".
115/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
116  s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
117}
118
119# Let libtool use _libs all the time.
120/objdir=/s,\.libs,_libs,
Note: See TracBrowser for help on using the repository browser.