1 # -sedlibmk.inp-----------------------------------------------------------
2 # Configuration script for lib/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 2011 Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
9 # This file is free software; as a special exception, the author gives
10 # unlimited permission to copy and/or distribute it, with or without
11 # modifications, as long as this notice is preserved.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 # ----------------------------------------------------------------------
19 # Replace @..@ constants.
20 /^\# @configure_input@/s!@configure_input@!lib/Makefile. Generated from Makefile.in by config.bat!
21 /^@SET_MAKE@$/s/@SET_MAKE@//
22 /^VPATH *=/s/@[^@\n]*@/./
26 /^ALLOCA *=/s/@[^@\n]*@//
27 /^ALSA_CFLAGS *=/s/@[^@\n]*@//
28 /^ALSA_LIBS *=/s/@[^@\n]*@//
29 /^AWK *=/s/@[^@\n]*@/gawk/
30 /^CANNOT_DUMP *=/s/@[^@\n]*@/no/
31 /^CC *=/s/@[^@\n]*@/gcc/
32 /^CPP *=/s/@[^@\n]*@/gcc -e/
33 /^CPPFLAGS *=/s/@[^@\n]*@//
34 /^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/
35 /^CFLAGS *=/s/@[^@\n]*@/-g -O2/
36 /^CYGPATH_W *=/s/@[^@\n]*@//
37 /^CYGWIN_OBJ *=/s/@[^@\n]*@//
38 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
39 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
40 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
41 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
42 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
43 /^DEFS *=/s/@[^@\n]*@/-DHAVE_CONFIG_H/
44 /^DEPDIR *=/s/@[^@\n]*@/deps/
45 /^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/
46 /^ECHO_N *=/s/@[^@\n]*@/-n/
47 /^EXEEXT *=/s/@[^@\n]*@/.exe/
48 /^GETOPT_H *=/s/@[^@\n]*@/getopt.h/
51 /^BITSIZEOF_PTRDIFF_T *=/s/@BITSIZEOF_PTRDIFF_T@/32/
52 /^BITSIZEOF_SIG_ATOMIC_T *=/s/@BITSIZEOF_SIG_ATOMIC_T@/32/
53 /^BITSIZEOF_SIZE_T *=/s/@BITSIZEOF_SIZE_T@/32/
54 /^BITSIZEOF_WCHAR_T *=/s/@BITSIZEOF_WCHAR_T@/16/
55 /^BITSIZEOF_WINT_T *=/s/@BITSIZEOF_WINT_T@/32/
56 /^APPLE_UNIVERSAL_BUILD *=/s/@APPLE_UNIVERSAL_BUILD@/0/
58 # Some GNULIB_* are replaced with zero even though DJGPP does not have
59 # these features. That's because the gnulib replacements cannot
60 # possibly work for DJGPP, so we prefer to fail the link than have a
61 # subtly botched executable.
62 /^GNULIB_ATOLL *=/s/@GNULIB_ATOLL@/1/
63 /^GNULIB_CALLOC_POSIX *=/s/@GNULIB_CALLOC_POSIX@/0/
64 /^GNULIB_CANONICALIZE_FILE_NAME *=/s/@GNULIB_CANONICALIZE_FILE_NAME@/0/
65 /^GNULIB_CHOWN *=/s/@GNULIB_CHOWN@/0/
66 /^GNULIB_CLOSE *=/s/@GNULIB_CLOSE@/0/
67 /^GNULIB_DUP2 *=/s/@GNULIB_DUP2@/0/
68 /^GNULIB_DUP3 *=/s/@GNULIB_DUP3@/1/
69 /^GNULIB_ENVIRON *=/s/@GNULIB_ENVIRON@/0/
70 /^GNULIB_EUIDACCESS *=/s/@GNULIB_EUIDACCESS@/0/
71 /^GNULIB_FACCESSAT *=/s/@GNULIB_FACCESSAT@/0/
72 /^GNULIB_FCHDIR *=/s/@GNULIB_FCHDIR@/0/
73 /^GNULIB_FCHOWNAT *=/s/@GNULIB_FCHOWNAT@/0/
74 /^GNULIB_FCHMODAT *=/s/@GNULIB_FCHMODAT@/0/
75 /^GNULIB_FSTATAT *=/s/@GNULIB_FSTATAT@/0/
76 /^GNULIB_FSYNC *=/s/@GNULIB_FSYNC@/0/
77 /^GNULIB_FTRUNCATE *=/s/@GNULIB_FTRUNCATE@/0/
78 /^GNULIB_FUTIMENS *=/s/@GNULIB_FUTIMENS@/0/
79 /^GNULIB_GETCWD *=/s/@GNULIB_GETCWD@/0/
80 /^GNULIB_GETDOMAINNAME *=/s/@GNULIB_GETDOMAINNAME@/0/
81 /^GNULIB_GETDTABLESIZE *=/s/@GNULIB_GETDTABLESIZE@/0/
82 /^GNULIB_GETGROUPS *=/s/@GNULIB_GETGROUPS@/0/
83 /^GNULIB_GETHOSTNAME *=/s/@GNULIB_GETHOSTNAME@/0/
84 /^GNULIB_GETLOADAVG *=/s/@GNULIB_GETLOADAVG@/1/
85 /^GNULIB_GETLOGIN *=/s/@GNULIB_GETLOGIN@/0/
86 /^GNULIB_GETLOGIN_R *=/s/@GNULIB_GETLOGIN_R@/0/
87 /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/
88 /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/
89 /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/
90 /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/
91 /^GNULIB_LCHMOD *=/s/@GNULIB_LCHMOD@/0/
92 /^GNULIB_LCHOWN *=/s/@GNULIB_LCHOWN@/0/
93 /^GNULIB_LINK *=/s/@GNULIB_LINK@/0/
94 /^GNULIB_LINKAT *=/s/@GNULIB_LINKAT@/0/
95 /^GNULIB_LSEEK *=/s/@GNULIB_LSEEK@/0/
96 /^GNULIB_LSTAT *=/s/@GNULIB_LSTAT@/0/
97 /^GNULIB_MALLOC_POSIX *=/s/@GNULIB_MALLOC_POSIX@/0/
98 /^GNULIB_MBTOWC *=/s/@GNULIB_MBTOWC@/0/
99 /^GNULIB_MKDIRAT *=/s/@GNULIB_MKDIRAT@/0/
100 /^GNULIB_MKDTEMP *=/s/@GNULIB_MKDTEMP@/0/
101 /^GNULIB_MKFIFO *=/s/@GNULIB_MKFIFO@/0/
102 /^GNULIB_MKFIFOAT *=/s/@GNULIB_MKFIFOAT@/0/
103 /^GNULIB_MKNOD *=/s/@GNULIB_MKNOD@/0/
104 /^GNULIB_MKNODAT *=/s/@GNULIB_MKNODAT@/0/
105 /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/0/
106 /^GNULIB_MKOSTEMPS *=/s/@GNULIB_MKOSTEMPS@/0/
107 /^GNULIB_MKSTEMP *=/s/@GNULIB_MKSTEMP@/0/
108 /^GNULIB_MKSTEMPS *=/s/@GNULIB_MKSTEMPS@/0/
109 /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/0/
110 /^GNULIB_NANOSLEEP *=/s/@GNULIB_NANOSLEEP@/0/
111 /^GNULIB_PIPE *=/s/@GNULIB_PIPE@/0/
112 /^GNULIB_PIPE2 *=/s/@GNULIB_PIPE2@/0/
113 /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/
114 /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/
115 /^GNULIB_PUTENV *=/s/@GNULIB_PUTENV@/0/
116 /^GNULIB_PWRITE *=/s/@GNULIB_PWRITE@/0/
117 /^GNULIB_RANDOM_R *=/s/@GNULIB_RANDOM_R@/0/
118 /^GNULIB_READLINK *=/s/@GNULIB_READLINK@/0/
119 /^GNULIB_READLINKAT *=/s/@GNULIB_READLINKAT@/0/
120 /^GNULIB_REALLOC_POSIX *=/s/@GNULIB_REALLOC_POSIX@/0/
121 /^GNULIB_REALPATH *=/s/@GNULIB_REALPATH@/0/
122 /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/
123 /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/
124 /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/
125 /^GNULIB_SLEEP *=/s/@GNULIB_SLEEP@/0/
126 /^GNULIB_STAT *=/s/@GNULIB_STAT@/0/
127 /^GNULIB_STRPTIME *=/s/@GNULIB_STRPTIME@/0/
128 /^GNULIB_STRTOD *=/s/@GNULIB_STRTOD@/0/
129 /^GNULIB_STRTOLL *=/s/@GNULIB_STRTOLL@/0/
130 /^GNULIB_STRTOULL *=/s/@GNULIB_STRTOULL@/0/
131 /^GNULIB_SYMLINK *=/s/@GNULIB_SYMLINK@/0/
132 /^GNULIB_SYMLINKAT *=/s/@GNULIB_SYMLINKAT@/0/
133 /^GNULIB_SYSTEM_POSIX *=/s/@GNULIB_SYSTEM_POSIX@/0/
134 /^GNULIB_TIMEGM *=/s/@GNULIB_TIMEGM@/0/
135 /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/
136 /^GNULIB_TTYNAME_R *=/s/@GNULIB_TTYNAME_R@/0/
137 /^GNULIB_UNISTD_H_GETOPT *=/s/@GNULIB_UNISTD_H_GETOPT@/1/
138 /^GNULIB_UNISTD_H_SIGPIPE *=/s/@GNULIB_UNISTD_H_SIGPIPE@/0/
139 /^GNULIB_UNLINK *=/s/@GNULIB_UNLINK@/0/
140 /^GNULIB_UNLINKAT *=/s/@GNULIB_UNLINKAT@/0/
141 /^GNULIB_UNLOCKPT *=/s/@GNULIB_UNLOCKPT@/0/
142 /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/
143 /^GNULIB_USLEEP *=/s/@GNULIB_USLEEP@/0/
144 /^GNULIB_UTIMENSAT *=/s/@GNULIB_UTIMENSAT@/0/
145 /^GNULIB_WCTOMB *=/s/@GNULIB_WCTOMB@/0/
146 /^GNULIB_WRITE *=/s/@GNULIB_WRITE@/0/
147 /^GNULIB__EXIT *=/s/@GNULIB__EXIT@/0/
148 /^HAVE_ATOLL *=/s/@HAVE_ATOLL@/0/
149 /^HAVE_CANONICALIZE_FILE_NAME *=/s/@HAVE_CANONICALIZE_FILE_NAME@/0/
150 /^HAVE_CHOWN *=/s/@HAVE_CHOWN@/1/
151 /^HAVE_DECL_ENVIRON *=/s/@HAVE_DECL_ENVIRON@/1/
152 /^HAVE_DECL_FCHDIR *=/s/@HAVE_DECL_FCHDIR@/0/
153 /^HAVE_DECL_GETDOMAINNAME *=/s/@HAVE_DECL_GETDOMAINNAME@/0/
154 /^HAVE_DECL_GETLOADAVG *=/s/@HAVE_DECL_GETLOADAVG@/0/
155 /^HAVE_DECL_GETLOGIN_R *=/s/@HAVE_DECL_GETLOGIN_R@/0/
156 /^HAVE_DECL_GETPAGESIZE *=/s/@HAVE_DECL_GETPAGESIZE@/1/
157 /^HAVE_DECL_GETUSERSHELL *=/s/@HAVE_DECL_GETUSERSHELL@/0/
158 /^HAVE_DECL_LOCALTIME_R *=/s/@HAVE_DECL_LOCALTIME_R@/0/
159 /^HAVE_DECL_SETENV *=/s/@HAVE_DECL_SETENV@/1/
160 /^HAVE_DECL_TTYNAME_R *=/s/@HAVE_DECL_TTYNAME_R@/0/
161 /^HAVE_DECL_UNSETENV *=/s/@HAVE_DECL_UNSETENV@/0/
162 /^HAVE_DUP2 *=/s/@HAVE_DUP2@/1/
163 /^HAVE_DUP3 *=/s/@HAVE_DUP3@/0/
164 /^HAVE_EUIDACCESS *=/s/@HAVE_EUIDACCESS@/0/
165 /^HAVE_FACCESSAT *=/s/@HAVE_FACCESSAT@/0/
166 /^HAVE_FCHDIR *=/s/@HAVE_FCHDIR@/0/
167 /^HAVE_FCHMODAT *=/s/@HAVE_FCHMODAT@/0/
168 /^HAVE_FCHOWNAT *=/s/@HAVE_FCHOWNAT@/0/
169 /^HAVE_FSTATAT *=/s/@HAVE_FSTATAT@/0/
170 /^HAVE_FSYNC *=/s/@HAVE_FSYNC@/1/
171 /^HAVE_FTRUNCATE *=/s/@HAVE_FTRUNCATE@/1/
172 /^HAVE_FUTIMENS *=/s/@HAVE_FUTIMENS@/0/
173 /^HAVE_GETDTABLESIZE *=/s/@HAVE_GETDTABLESIZE@/0/
174 /^HAVE_GETGROUPS *=/s/@HAVE_GETGROUPS@/0/
175 /^HAVE_GETHOSTNAME *=/s/@HAVE_GETHOSTNAME@/1/
176 /^HAVE_GETLOGIN *=/s/@HAVE_GETLOGIN@/1/
177 /^HAVE_GETOPT_H *=/s/@HAVE_GETOPT_H@/0/
178 /^HAVE_GETPAGESIZE *=/s/@HAVE_GETPAGESIZE@/1/
179 /^HAVE_GETSUBOPT *=/s/@HAVE_GETSUBOPT@/0/
180 /^HAVE_GRANTPT *=/s/@HAVE_GRANTPT@/0/
181 /^HAVE_LCHOWN *=/s/@HAVE_LCHOWN@/0/
182 /^HAVE_INTTYPES_H *=/s/@HAVE_INTTYPES_H@/HAVE_INTTYPES_H/
183 /^HAVE_LCHMOD *=/s/@HAVE_LCHMOD@/0/
184 /^HAVE_LINK *=/s/@HAVE_LINK@/1/
185 /^HAVE_LINKAT *=/s/@HAVE_LINKAT@/0/
186 /^HAVE_LONG_LONG_INT *=/s/@HAVE_LONG_LONG_INT@/1/
187 /^HAVE_LSTAT *=/s/@HAVE_LSTAT@/HAVE_LSTAT/
188 /^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/
189 /^HAVE_MKDIRAT *=/s/@HAVE_MKDIRAT@/0/
190 /^HAVE_MKDTEMP *=/s/@HAVE_MKDTEMP@/0/
191 /^HAVE_MKFIFO *=/s/@HAVE_MKFIFO@/1/
192 /^HAVE_MKFIFOAT *=/s/@HAVE_MKFIFOAT@/0/
193 /^HAVE_MKNOD *=/s/@HAVE_MKNOD@/1/
194 /^HAVE_MKNODAT *=/s/@HAVE_MKNODAT@/0/
195 /^HAVE_MKOSTEMP *=/s/@HAVE_MKOSTEMP@/0/
196 /^HAVE_MKOSTEMPS *=/s/@HAVE_MKOSTEMPS@/0/
197 /^HAVE_MKSTEMP *=/s/@HAVE_MKSTEMP@/1/
198 /^HAVE_MKSTEMPS *=/s/@HAVE_MKSTEMPS@/0/
199 /^HAVE_NANOSLEEP *=/s/@HAVE_NANOSLEEP@/0/
200 /^HAVE_OS_H *=/s/@HAVE_OS_H@/0/
201 /^HAVE_PIPE *=/s/@HAVE_PIPE@/0/
202 /^HAVE_PIPE2 *=/s/@HAVE_PIPE2@/0/
203 /^HAVE_PREAD *=/s/@HAVE_PREAD@/0/
204 /^HAVE_PTSNAME *=/s/@HAVE_PTSNAME@/0/
205 /^HAVE_PWRITE *=/s/@HAVE_PWRITE@/0/
206 /^HAVE_RANDOM_H *=/s/@HAVE_RANDOM_H@/1/
207 /^HAVE_RANDOM_R *=/s/@HAVE_RANDOM_R@/0/
208 /^HAVE_READLINK *=/s/@HAVE_READLINK@/0/
209 /^HAVE_READLINKAT *=/s/@HAVE_READLINKAT@/0/
210 /^HAVE_REALPATH *=/s/@HAVE_REALPATH@/0/
211 /^HAVE_RPMATCH *=/s/@HAVE_RPMATCH@/0/
212 /^HAVE_SETENV *=/s/@HAVE_SETENV@/1/
213 /^HAVE_SIGNED_SIG_ATOMIC_T *=/s/@HAVE_SIGNED_SIG_ATOMIC_T@/1/
214 /^HAVE_SIGNED_WCHAR_T *=/s/@HAVE_SIGNED_WCHAR_T@/0/
215 /^HAVE_SIGNED_WINT_T *=/s/@HAVE_SIGNED_WINT_T@/1/
216 /^HAVE_SLEEP *=/s/@HAVE_SLEEP@/1/
217 /^HAVE_STDINT_H *=/s/@HAVE_STDINT_H@/HAVE_STDINT_H/
218 /^HAVE_STRPTIME *=/s/@HAVE_STRPTIME@/0/
219 /^HAVE_STRTOD *=/s/@HAVE_STRTOD@/1/
220 /^HAVE_STRTOLL *=/s/@HAVE_STRTOLL@/1/
221 /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/
222 /^HAVE_STRUCT_RANDOM_DATA *=/s/@HAVE_STRUCT_RANDOM_DATA@/0/
223 /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/
224 /^HAVE_SYMLINKAT *=/s/@HAVE_SYMLINKAT@/0/
225 /^HAVE_SYS_BITYPES_H *=/s/@HAVE_SYS_BITYPES_H@/0/
226 /^HAVE_SYS_INTTYPES_H *=/s/@HAVE_SYS_INTTYPES_H@/0/
227 /^HAVE_SYS_LOADAVG_H *=/s/@HAVE_SYS_LOADAVG_H@/0/
228 /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/
229 /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/
230 /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/
231 /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/
232 /^HAVE_UNLINKAT *=/s/@HAVE_UNLINKAT@/0/
233 /^HAVE_UNLOCKPT *=/s/@HAVE_UNLOCKPT@/0/
234 /^HAVE_UNSIGNED_LONG_LONG_INT *=/s/@HAVE_UNSIGNED_LONG_LONG_INT@/1/
235 /^HAVE_USLEEP *=/s/@HAVE_USLEEP@/1/
236 /^HAVE_UTIMENSAT *=/s/@HAVE_UTIMENSAT@/0/
237 /^HAVE_WCHAR_H *=/s/@HAVE_WCHAR_H@/1/
238 /^HAVE_WCHAR_T *=/s/@HAVE_WCHAR_T@/1/
239 /^HAVE_XSERVER *=/s/@HAVE_XSERVER@/0/
240 /^HAVE__BOOL *=/s/@HAVE__BOOL@/1/
241 /^HAVE__EXIT *=/s/@HAVE__EXIT@/1/
242 /^INCLUDE_NEXT *=/s/@INCLUDE_NEXT@/include_next/
243 /^INCLUDE_NEXT_AS_FIRST_DIRECTIVE *=/s/@[^@\n]*@/include_next/
244 /^LDFLAGS *=/s/@[^@\n]*@//
245 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
246 /^LIBS *=/s/@[^@\n]*@//
247 /^MAKEINFO *=/s/@MAKEINFO@/makeinfo/
248 # MKDIR_P lines are edited further below
249 /^MKDIR_P *=/s/@MKDIR_P@//
250 /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
251 /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@//
252 /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
253 /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
254 /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
255 /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/
256 /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
257 /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
258 /^NEXT_STDDEF_H *=/s/@[^@\n]*@//
259 /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
260 /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
261 /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
262 /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/
263 /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
264 /^OBJEXT *=/s/@[^@\n]*@/o/
265 /^PRAGMA_COLUMNS *=/s/@[^@\n]*@//
266 /^PRAGMA_SYSTEM_HEADER *=/s/@[^@\n]*@/\\\#pragma GCC system_header/
267 /^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
268 /^RANLIB *=/s/@[^@\n]*@/ranlib/
269 /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/
270 /^REPLACE_CANONICALIZE_FILE_NAME *=/s/@REPLACE_CANONICALIZE_FILE_NAME@/0/
271 /^REPLACE_CHOWN *=/s/@REPLACE_CHOWN@/0/
272 /^REPLACE_CLOSE *=/s/@REPLACE_CLOSE@/0/
273 /^REPLACE_DUP *=/s/@REPLACE_DUP@/0/
274 /^REPLACE_DUP2 *=/s/@REPLACE_DUP2@/0/
275 /^REPLACE_FCHOWNAT *=/s/@REPLACE_FCHOWNAT@/0/
276 /^REPLACE_FSTAT *=/s/@REPLACE_FSTAT@/0/
277 /^REPLACE_GETCWD *=/s/@REPLACE_GETCWD@/0/
278 /^REPLACE_GETDOMAINNAME *=/s/@REPLACE_GETDOMAINNAME@/0/
279 /^REPLACE_GETGROUPS *=/s/@REPLACE_GETGROUPS@/0/
280 /^REPLACE_GETLOGIN_R *=/s/@REPLACE_GETLOGIN_R@/0/
281 /^REPLACE_GETPAGESIZE *=/s/@REPLACE_GETPAGESIZE@/0/
282 /^REPLACE_LCHOWN *=/s/@REPLACE_LCHOWN@/0/
283 /^REPLACE_LINK *=/s/@REPLACE_LINK@/0/
284 /^REPLACE_LINKAT *=/s/@REPLACE_LINKAT@/0/
285 /^REPLACE_LOCALTIME_R *=/s/@REPLACE_LOCALTIME_R@/0/
286 /^REPLACE_LSEEK *=/s/@REPLACE_LSEEK@/0/
287 /^REPLACE_LSTAT *=/s/@REPLACE_LSTAT@/0/
288 /^REPLACE_MALLOC *=/s/@REPLACE_MALLOC@/0/
289 /^REPLACE_MBTOWC *=/s/@REPLACE_MBTOWC@/0/
290 /^REPLACE_MKDIR *=/s/@REPLACE_MKDIR@/0/
291 /^REPLACE_MKFIFO *=/s/@REPLACE_MKFIFO@/0/
292 /^REPLACE_MKNOD *=/s/@REPLACE_MKNOD@/0/
293 /^REPLACE_MKSTEMP *=/s/@REPLACE_MKSTEMP@/0/
294 /^REPLACE_MKTIME *=/s/@REPLACE_MKTIME@/0/
295 /^REPLACE_NANOSLEEP *=/s/@REPLACE_NANOSLEEP@/0/
296 /^REPLACE_NULL *=/s/@REPLACE_NULL@/0/
297 /^REPLACE_PREAD *=/s/@REPLACE_PREAD@/0/
298 /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/
299 /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/
300 /^REPLACE_READLINK *=/s/@REPLACE_READLINK@/0/
301 /^REPLACE_REALLOC *=/s/@REPLACE_REALLOC@/0/
302 /^REPLACE_REALPATH *=/s/@REPLACE_REALPATH@/0/
303 /^REPLACE_RMDIR *=/s/@REPLACE_RMDIR@/0/
304 /^REPLACE_SETENV *=/s/@REPLACE_SETENV@/0/
305 /^REPLACE_SLEEP *=/s/@REPLACE_SLEEP@/0/
306 /^REPLACE_STAT *=/s/@REPLACE_STAT@/0/
307 /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/
308 /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/
309 /^REPLACE_TIMEGM *=/s/@REPLACE_TIMEGM@/0/
310 /^REPLACE_TTYNAME_R *=/s/@REPLACE_TTYNAME_R@/0/
311 /^REPLACE_UNLINK *=/s/@REPLACE_UNLINK@/0/
312 /^REPLACE_UNLINKAT *=/s/@REPLACE_UNLINKAT@/0/
313 /^REPLACE_UNSETENV *=/s/@REPLACE_UNSETENV@/0/
314 /^REPLACE_USLEEP *=/s/@REPLACE_USLEEP@/0/
315 /^REPLACE_UTIMENSAT *=/s/@REPLACE_UTIMENSAT@/0/
316 /^REPLACE_WCTOMB *=/s/@REPLACE_WCTOMB@/0/
317 /^REPLACE_WRITE *=/s/@REPLACE_WRITE@/0/
318 /^SIG_ATOMIC_T_SUFFIX *=/s/@SIG_ATOMIC_T_SUFFIX@//
319 /^SIZE_T_SUFFIX *=/s/@SIZE_T_SUFFIX@/u/
320 /^STDBOOL_H *=/s/@[^@\n]*@//
321 /^STDDEF_H *=/s/@[^@\n]*@//
322 /^STDINT_H *=/s/@[^@\n]*@/stdint.h/
323 /^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
324 /^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
325 /^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/
326 /^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/
327 /^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/
328 /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@//
329 /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o md5.o filemode.o/
330 /^srcdir *=/s/@[^@\n]*@/./
331 /^top_srcdir *=/s/@[^@\n]*@/../
332 /^top_builddir *=/s/@[^@\n]*@/../
333 s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/
336 # Delete the recipes we don't want to get in our way.
337 /^\$(srcdir)\/Makefile\.in:/,/^[ ][ ]*\$(AUTOMAKE)/d
338 /^Makefile:/,/^[ ][ ]*esac/d
339 /^\$(top_srcdir)\/configure:/,/^\$(ACLOCAL_M4)/d
341 # Fix the include-dependency lines
344 s/@am__include@/include/
346 s/^@am__fastdepCC_TRUE@//
347 s/^@am__fastdepCC_FALSE/\#/
349 # Fix the *-clean rules, to not use a Unixy `test' command. Empty
350 # lists are replaced with a dummy file, to avoid an error message from
351 # "rm -f" with no arguments.
352 /^CONFIG_CLEAN_FILES *= *$/c\
353 CONFIG_CLEAN_FILES = xyzzy
354 /^CONFIG_CLEAN_VPATH_FILES *= *$/c\
355 CONFIG_CLEAN_VPATH_FILES = xyzzy
356 s/^ -*test -z.*|| rm/ -rm/
359 # Fix the recipes for header files
360 /^arg-nonnull\.h:/,/^[ ][ ]*mv /c\
361 arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h\
362 sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/./arg-nonnull.h > $@
363 /^cxxdefs\.h:/,/^[ ][ ]*mv /c\
364 cxxdefs.h: $(top_srcdir)/./cxxdefs.h\
365 sed -n -e '/_GL_CXXDEFS/,$$p' < $(top_srcdir)/./cxxdefs.h > $@
366 s/^ [ ]*{ echo \(.*\); \\/ djecho \1 > $@-t/
367 s/^ [ ]*{ echo \(.*\) && \\/ djecho \1 > $@-t/
369 s/\.in-h\; *\\$/.in-h >> $@-t/
371 /^stdlib\.h:/,/^ [ ]*mv /{
372 s/'\; \\ *$/' >> $@-t/
374 /^unistd\.h:/,/^ [ ]*mv /{
375 s/'\; \\ *$/' >> $@-t/
377 s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\stat.h md sys"!