Allow 'browse-url-emacs' to fetch URL in the selected window
[emacs.git] / msdos / sedlibmk.inp
blob9b66a4c36520c78fcb6388569381df04ebd3de0b
1 # -sedlibmk.inp-----------------------------------------------------------
2 # Configuration script for lib/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 2011-2018 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 # Checklist to add a new gnulib module:
21 #  . If a module appears in gnulib.mk.in that is not required for the
22 #    MSDOS build, disable its building by setting the corresponding
23 #    OMIT_GNULIB_MODULE_foo variable to true.
25 #  . If the module defines functions that need to replace DJGPP
26 #    functions, edit the appropriate REPLACE_foo variables to 1:
28 #     /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/1/
30 #    Note that this file already has a command to edit all the
31 #    REPLACE_foo variables to zero, so if some gnulib replacement
32 #    function is ever needed, the corresponding editing command such
33 #    as above should be placed before that catchall rule (search for
34 #    "REPLACE_" below).
36 #  . If the module generates a header from a .in.h file, edit the
37 #    corresponding variable to either an empty value or to the name of
38 #    the header.  Examples:
40 #       /^STDINT_H *=/s/@[^@\n]*@/stdint.h/  -- stdint.h is needed
41 #       /^STDDEF_H *=/s/@[^@\n]*@//          -- stddef.h is not needed
43 #  . Some of the headers are generated conditionally, and the
44 #    corresponding recipes are guarded by
45 #      ifneq (,$(GL_GENERATE_xxxx_H))
46 #    Depending on whether DJGPP uses the corresponding header, these
47 #    should be edited either to 1 (thus exposing the recipe) or
48 #    to nothing, which makes Make bypass the recipe away.  Example:
50 #       s/^@GL_GENERATE_STDBOOL_H@/1/
51 #       s/^@GL_GENERATE_STDINT_H@//
53 #  . Also edit the NEXT_foo_H and NEXT_AS_FIRST_DIRECTIVE_foo_H
54 #    variables as appropriately: to an empty value if the gnulib
55 #    header is not used, and to the corresponding DJGPP header name
56 #    otherwise.  Examples:
58 #     /^NEXT_STDDEF_H *=/s/@[^@\n]*@//
59 #     /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
60 #     /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
61 #     /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@//
63 #  . Note that some gnulib headers cannot be left unused: those for
64 #    which there's no corresponding foo_H variable in
65 #    lib/Makefile.in (example: stdio.h).  For these the "not
66 #    needed" path is not applicable.
68 #  . If the header is needed, edit all the variables it uses as
69 #    appropriate.  In general, if DJGPP has the corresponding feature,
70 #    the value of the corresponding HAVE_foo should be set to what
71 #    DJGPP has, and the corresponding GNULIB_foo variable should be
72 #    edited to zero.  If the feature is not available, the HAVE_foo
73 #    variable should be edited to zero and the corresponding
74 #    GNULIB_foo variable should be edited to 1 if the gnulib
75 #    replacement can work for DJGPP (a rare phenomenon), zero
76 #    otherwise.  Note that by default all HAVE_foo and GNULIB_foo
77 #    variables that don't have a specific editing rule will be edited
78 #    to zero.
80 #  . Some gnulib header files have more complex recipes in
81 #    msdos/autogen/Makefile.in than others.  The tell-tale sign of
82 #    such a recipe is that the input redirection from the .in.h file
83 #    is not present at the end of the command, like this:
85 #             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
86 #       } > $@-t && \
87 #       mv $@-t $@
89 #    as opposed to this:
91 #             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
92 #             < $(srcdir)/sys_stat.in.h; \
93 #       } > $@-t && \
94 #       mv $@-t $@
96 #    For those recipes that do _not_ have redirection at the end of
97 #    the command, add a block of Sed commands like this:
99 #     /^stdio\.h:/,/^   [       ]*mv /{
100 #       s/'\; \\ *$/' >> $@-t/
101 #     }
103 #    There's also a 3rd variety of script, which ends like this:
105 #             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
106 #             < $(srcdir)/string.in.h; \
107 #       } > $@-t && \
108 #       mv $@-t $@
110 #    For these, you will need Sed commands like those used for
111 #    string.h, see below.
113 #  . If the recipe for generating a header file uses 'cat', replace it with
115 #      sed -e ''
117 #    (if needed; there's already an edit command that should take care of
118 #     this).
120 # The following Awk script is useful for editing portions of
121 # msdos/autogen/Makefile.in into Sed commands that define the
122 # corresponding variables to zero (which is what is required in the
123 # absolute majority of cases):
125 #   { printf "/^%s *=/s/%s/0/\n",$1,$3}
127 # ----------------------------------------------------------------------
128 # Replace @..@ constants.
129 /^\# @configure_input@/s!@configure_input@!lib/Makefile.  Generated from Makefile.in by config.bat!
130 /^@SET_MAKE@$/s/@SET_MAKE@//
131 /^VPATH *=/s/@[^@\n]*@/./
132 s/@PACKAGE@/emacs/
133 /^@BUILDING_FOR_WINDOWSNT_TRUE@/s/@[^@\n]*@/#/
134 /^@BUILDING_FOR_WINDOWSNT_FALSE@/s/@[^@\n]*@//
135 /^ALLOCA *=/s/@[^@\n]*@//
136 /^ALSA_CFLAGS *=/s/@[^@\n]*@//
137 /^ALSA_LIBS *=/s/@[^@\n]*@//
138 /^AR *=/s/@[^@\n]*@/ar/
139 /^ARFLAGS *=/s/@[^@\n]*@/cru/
140 /^AWK *=/s/@[^@\n]*@/gawk/
141 /^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/
142 /^CANNOT_DUMP *=/s/@[^@\n]*@/no/
143 /^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
144 /^CPP *=/s/@[^@\n]*@/gcc -e/
145 /^CPPFLAGS *=/s/@[^@\n]*@//
146 /^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/
147 /^CFLAGS *=/s/@[^@\n]*@/-g -O2/
148 /^CYGPATH_W *=/s/@[^@\n]*@//
149 /^CYGWIN_OBJ *=/s/@[^@\n]*@//
150 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
151 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
152 /^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
153 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
154 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
155 /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@//
156 /^HYBRID_MALLOC *=/s/@HYBRID_MALLOC@//
157 /^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
158 /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
159 /^DEFS *=/s/@[^@\n]*@//
160 /^DEPDIR *=/s/@[^@\n]*@/deps/
161 /^ECHO_N *=/s/@[^@\n]*@/-n/
162 /^EXEEXT *=/s/@[^@\n]*@/.exe/
163 /^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/
164 /^GETOPT_H *=/s/@[^@\n]*@/getopt.h/
166 # Gnulib stuff
167 /^BITSIZEOF_PTRDIFF_T *=/s/@BITSIZEOF_PTRDIFF_T@/32/
168 /^BITSIZEOF_SIG_ATOMIC_T *=/s/@BITSIZEOF_SIG_ATOMIC_T@/32/
169 /^BITSIZEOF_SIZE_T *=/s/@BITSIZEOF_SIZE_T@/32/
170 /^BITSIZEOF_WCHAR_T *=/s/@BITSIZEOF_WCHAR_T@/16/
171 /^BITSIZEOF_WINT_T *=/s/@BITSIZEOF_WINT_T@/32/
172 /^APPLE_UNIVERSAL_BUILD *=/s/@APPLE_UNIVERSAL_BUILD@/0/
174 # Most GNULIB_* are replaced with zero even though DJGPP does not have
175 # these features.  That's because the gnulib replacements cannot
176 # possibly work for DJGPP, so we prefer to fail the link than have a
177 # subtly botched executable.  Those replacements that _are_ needed
178 # should be before the last catch-all rule.
179 /^GNULIB_ATOLL *=/s/@GNULIB_ATOLL@/1/
180 /^GNULIB_DUP3 *=/s/@GNULIB_DUP3@/1/
181 /^GNULIB_ENVIRON *=/s/@GNULIB_ENVIRON@/1/
182 /^GNULIB_FDATASYNC *=/s/@GNULIB_FDATASYNC@/1/
183 /^GNULIB_GETLOADAVG *=/s/@GNULIB_GETLOADAVG@/1/
184 /^GNULIB_GL_UNISTD_H_GETOPT *=/s/@GNULIB_GL_UNISTD_H_GETOPT@/1/
185 /^GNULIB_MEMRCHR *=/s/@GNULIB_MEMRCHR@/1/
186 /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/1/
187 /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/1/
188 /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/
189 /^GNULIB_TIMEGM *=/s/@GNULIB_TIMEGM@/1/
190 /^GNULIB_TIME_RZ *=/s/@GNULIB_TIME_RZ@/1/
191 /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/
192 /^GNULIB_[^ =]* *= *@/s/@[^@\n]*@/0/
193 /^GSETTINGS_CFLAGS *=/s/@[^@\n]*@//
194 /^GSETTINGS_LIBS *=/s/@[^@\n]*@//
196 # Edit the HAVE_foo variables
197 /^HAVE_ATOLL *=/s/@HAVE_ATOLL@/0/
198 /^HAVE_CHOWN *=/s/@HAVE_CHOWN@/1/
199 /^HAVE_CLOSEDIR *=/s/@HAVE_CLOSEDIR@/1/
200 /^HAVE_DECL_GETPAGESIZE *=/s/@HAVE_DECL_GETPAGESIZE@/1/
201 /^HAVE_DECL_SETENV *=/s/@HAVE_DECL_SETENV@/1/
202 /^HAVE_DECL_STRDUP *=/s/@HAVE_DECL_STRDUP@/1/
203 # The following two rely on msdos/inttypes.h redirections
204 /^HAVE_DECL_STRTOIMAX *=/s/@HAVE_DECL_STRTOIMAX@/1/
205 /^HAVE_DECL_STRTOUMAX *=/s/@HAVE_DECL_STRTOUMAX@/1/
206 /^HAVE_DIRENT_H *=/s/@HAVE_DIRENT_H@/1/
207 /^HAVE_DUP2 *=/s/@HAVE_DUP2@/1/
208 /^HAVE_FSYNC *=/s/@HAVE_FSYNC@/1/
209 /^HAVE_FTRUNCATE *=/s/@HAVE_FTRUNCATE@/1/
210 /^HAVE_GETHOSTNAME *=/s/@HAVE_GETHOSTNAME@/1/
211 /^HAVE_GETLOGIN *=/s/@HAVE_GETLOGIN@/1/
212 /^HAVE_GETPAGESIZE *=/s/@HAVE_GETPAGESIZE@/1/
213 /^HAVE_INTTYPES_H *=/s/@HAVE_INTTYPES_H@/HAVE_INTTYPES_H/
214 /^HAVE_LINK *=/s/@HAVE_LINK@/1/
215 /^HAVE_LONG_LONG_INT *=/s/@HAVE_LONG_LONG_INT@/1/
216 /^HAVE_LSTAT *=/s/@HAVE_LSTAT@/HAVE_LSTAT/
217 /^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/
218 /^HAVE_MAX_ALIGN_T *=/s/@HAVE_MAX_ALIGN_T@/0/
219 /^HAVE_MEMCHR *=/s/@HAVE_MEMCHR@/1/
220 /^HAVE_MKFIFO *=/s/@HAVE_MKFIFO@/1/
221 /^HAVE_MKNOD *=/s/@HAVE_MKNOD@/1/
222 /^HAVE_MKSTEMP *=/s/@HAVE_MKSTEMP@/1/
223 /^HAVE_OPENDIR *=/s/@HAVE_OPENDIR@/1/
224 /^HAVE_PCLOSE *=/s/@HAVE_PCLOSE@/1/
225 /^HAVE_POPEN *=/s/@HAVE_POPEN@/1/
226 /^HAVE_POSIX_SIGNALBLOCKING *=/s/@HAVE_POSIX_SIGNALBLOCKING@/1/
227 /^HAVE_RANDOM_H *=/s/@HAVE_RANDOM_H@/1/
228 /^HAVE_RAISE *=/s/@HAVE_RAISE@/1/
229 /^HAVE_RANDOM *=/s/@HAVE_RANDOM@/1/
230 /^HAVE_READDIR *=/s/@HAVE_READDIR@/1/
231 /^HAVE_REWINDDIR *=/s/@HAVE_REWINDDIR@/1/
232 /^HAVE_SETENV *=/s/@HAVE_SETENV@/1/
233 /^HAVE_SIGACTION *=/s/@HAVE_SIGACTION@/1/
234 /^HAVE_SIGNED_SIG_ATOMIC_T *=/s/@HAVE_SIGNED_SIG_ATOMIC_T@/1/
235 /^HAVE_SIGNED_WINT_T *=/s/@HAVE_SIGNED_WINT_T@/1/
236 /^HAVE_SIGSET_T *=/s/@HAVE_SIGSET_T@/1/
237 /^HAVE_SLEEP *=/s/@HAVE_SLEEP@/1/
238 /^HAVE_STDINT_H *=/s/@HAVE_STDINT_H@/HAVE_STDINT_H/
239 /^HAVE_STRPBRK *=/s/@HAVE_STRPBRK@/1/
240 /^HAVE_STRSEP *=/s/@HAVE_STRSEP@/1/
241 /^HAVE_STRTOD *=/s/@HAVE_STRTOD@/1/
242 /^HAVE_STRTOLL *=/s/@HAVE_STRTOLL@/1/
243 /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/
244 /^HAVE_STRUCT_TIMEVAL *=/s/@HAVE_STRUCT_TIMEVAL@/1/
245 /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/
246 /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/
247 /^HAVE_SYS_TIME_H *=/s/@HAVE_SYS_TIME_H@/1/
248 /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/
249 /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/
250 /^HAVE_TYPE_VOLATILE_SIG_ATOMIC_T *=/s/@HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@/1/
251 /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/
252 /^HAVE_UNSIGNED_LONG_LONG_INT *=/s/@HAVE_UNSIGNED_LONG_LONG_INT@/1/
253 /^HAVE_USLEEP *=/s/@HAVE_USLEEP@/1/
254 /^HAVE_WCHAR_H *=/s/@HAVE_WCHAR_H@/1/
255 /^HAVE_WCHAR_T *=/s/@HAVE_WCHAR_T@/1/
256 /^HAVE__BOOL *=/s/@HAVE__BOOL@/1/
257 /^HAVE__EXIT *=/s/@HAVE__EXIT@/1/
258 /^HAVE_[^ =]* *= *@/s/@[^@\n]*@/0/
259 /^INCLUDE_NEXT *=/s/@INCLUDE_NEXT@/include_next/
260 /^INCLUDE_NEXT_AS_FIRST_DIRECTIVE *=/s/@[^@\n]*@/include_next/
261 /^LDFLAGS *=/s/@[^@\n]*@//
262 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
263 /^LIB_PTHREAD *=/s/@[^@\n]*@//
264 /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@//
265 /^LIBS *=/s/@[^@\n]*@//
266 /^MAKEINFO *=/s/@MAKEINFO@/makeinfo/
267 # MKDIR_P lines are edited further below
268 /^MKDIR_P *=/s/@MKDIR_P@//
269 /^NEXT_AS_FIRST_DIRECTIVE_DIRENT_H *=/s/@[^@\n]*@/<dirent.h>/
270 /^NEXT_AS_FIRST_DIRECTIVE_ERRNO_H *=/s/@[^@\n]*@//
271 /^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/
272 /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
273 /^NEXT_AS_FIRST_DIRECTIVE_LIMITS_H *=/s/@[^@\n]*@/<limits.h>/
274 /^NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/
275 /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/
276 /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
277 /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
278 /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
279 /^NEXT_AS_FIRST_DIRECTIVE_STRING_H *=/s/@[^@\n]*@/<string.h>/
280 /^NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H *=/s/@[^@\n]*@//
281 /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
282 /^NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H *=/s/@[^@\n]*@//
283 /^NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>!
284 /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/
285 /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
286 /^NEXT_DIRENT_H *=/s/@[^@\n]*@/<dirent.h>/
287 /^NEXT_ERRNO_H *=/s/@[^@\n]*@//
288 /^NEXT_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/
289 /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
290 /^NEXT_LIMITS_H *=/s/@[^@\n]*@/<limits.h>/
291 /^NEXT_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/
292 /^NEXT_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/
293 /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
294 /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
295 /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
296 /^NEXT_STRING_H *=/s/@[^@\n]*@/<string.h>/
297 /^NEXT_SYS_SELECT_H *=/s/@[^@\n]*@//
298 /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
299 /^NEXT_SYS_TIME_H *=/s/@[^@\n]*@//
300 /^NEXT_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>!
301 /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/
302 /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
303 /^OBJEXT *=/s/@[^@\n]*@/o/
304 /^PRAGMA_COLUMNS *=/s/@[^@\n]*@//
305 /^PRAGMA_SYSTEM_HEADER *=/s/@[^@\n]*@/\\\#pragma GCC system_header/
306 /^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
307 /^PTRDIFF_T_SUFFIX *=/s/@[^@\n]*@//
308 /^RANLIB *=/s/@[^@\n]*@/ranlib/
309 /^REPLACE_MKTIME *=/s/@[^@\n]*@/1/
310 # We don't want any other gnulib replacement functions
311 /^REPLACE_[^ =]* *= *@/s/@[^@\n]*@/0/
312 /^SIG_ATOMIC_T_SUFFIX *=/s/@SIG_ATOMIC_T_SUFFIX@//
313 /^SIZE_T_SUFFIX *=/s/@SIZE_T_SUFFIX@/u/
314 /^ALLOCA_H *=/s/@[^@\n]*@/alloca.h/
315 /^BYTESWAP_H *=/s/@[^@\n]*@/byteswap.h/
316 /^DIRENT_H *=/s/@[^@\n]*@//
317 /^ERRNO_H *=/s/@[^@\n]*@//
318 /^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/
319 /^GETOPT_CDEFS_H *=/s/@[^@\n]*@/getopt-cdefs.h/
320 /^LIMITS_H *=/s/@[^@\n]*@/limits.h/
321 /^STDALIGN_H *=/s/@[^@\n]*@/stdalign.h/
322 /^STDDEF_H *=/s/@[^@\n]*@/stddef.h/
323 /^STDINT_H *=/s/@[^@\n]*@/stdint.h/
324 /^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
325 /^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
326 /^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/
327 /^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/
328 /^UNISTD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
329 /^UNDEFINE_STRTOK_R *=/s/@UNDEFINE_STRTOK_R@/0/
330 /^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/
331 /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@//
332 /^WINDOWS_64_BIT_OFF_T *=/s/@WINDOWS_64_BIT_OFF_T@/0/
333 /^WINDOWS_64_BIT_ST_SIZE *=/s/@WINDOWS_64_BIT_ST_SIZE@/0/
334 /^WINDOWS_STAT_INODES *=/s/@WINDOWS_STAT_INODES@/0/
335 /^WINDOWS_STAT_TIMESPEC *=/s/@WINDOWS_STAT_TIMESPEC@/0/
336 # Tailor lists of files to what we need
337 /am__append_[1-9][0-9]* *=.*gettext\.h/s/@[^@\n]*@/\#/
338 /am__append_2 *=.*verify\.h/s/@[^@\n]*@//
339 /^@gl_GNULIB_ENABLED_tempname_TRUE@/s/@[^@\n]*@//
340 /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o memrchr.o sig2str.o time_r.o time_rz.o timegm.o mktime.o getloadavg.o pthread_sigmask.o mkostemp.o fpending.o fdatasync.o execinfo.o/
341 /^am__append_[1-9][0-9]* *=/,/^[^       ]/{
342   s/ *inttypes\.h//
343   s| *sys/select\.h||
344   s| *sys/time\.h||
346 /^am_libgnu_a_OBJECTS *=/,/^[^  ]/{
347   s/allocator\.\$(OBJEXT) //
348   s/careadlinkat\.\$(OBJEXT) //
349   s/pipe2\.\$(OBJEXT) //
350   s/acl-errno-valid\.\$(OBJEXT) //
351   s/acl-internal\.\$(OBJEXT) //
352   s/get-permissions\.\$(OBJEXT) //
353   s/set-permissions\.\$(OBJEXT) //
354   s/qcopy-acl\.\$(OBJEXT) //
355   s/openat-die\.\$(OBJEXT) //
356   s/save-cwd\.\$(OBJEXT) //
358 /^srcdir *=/s/@[^@\n]*@/./
359 /^top_srcdir *=/s/@[^@\n]*@/../
360 /^top_builddir *=/s/@[^@\n]*@/../
361 s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/
362 s/@PRAGMA_COLUMNS@//
363 /^SYSTEM_TYPE *=/s/@SYSTEM_TYPE@/msdos/
364 /^ifneq (\$(SYSTEM_TYPE),windows-nt)/,/^endif/d
365 /^DEPDIR *=/a\
366 AUTO_DEPEND = yes
368 # Delete the recipes we don't want to get in our way.
369 /^\.\.\/config.status:/,/^Makefile:/c\
370 Makefile: $(srcdir)/Makefile.in
372 # Remove the dependencies on $(top_builddir)/config.status
373 s/ \.\.\/config.status//
374 s/ \$(top_builddir)\/config.status//
376 # Fix the include-dependency lines
377 s/^@AMDEP_TRUE@//
378 s/^@AMDEP_FALSE@/\#/
379 s/@am__include@/include/
380 s/@am__quote@//g
381 s/^@am__fastdepCC_TRUE@//
382 s/^@am__fastdepCC_FALSE@/\#/
384 # Fix the *-clean rules, to not use a Unixy `test' command.  Empty
385 # lists are replaced with a dummy file, to avoid an error message from
386 # "rm -f" with no arguments.
387 /^CLEANFILES *= *$/c\
388 CLEANFILES = xyzzy
389 /^CONFIG_CLEAN_FILES *= *$/c\
390 CONFIG_CLEAN_FILES = xyzzy
391 /^CONFIG_CLEAN_VPATH_FILES *= *$/c\
392 CONFIG_CLEAN_VPATH_FILES = xyzzy
393 s/^     -*test -z.*|| rm/        -rm/
394 s/@echo /@djecho /
396 # Determine which headers to generate
397 s/= @GL_GENERATE_ALLOCA_H@/= 1/
398 s/= @GL_GENERATE_BYTESWAP_H@/= 1/
399 s/= @GL_GENERATE_EXECINFO_H@/= 1/
400 s/= @GL_GENERATE_STDALIGN_H@/= 1/
401 s/= @GL_GENERATE_STDDEF_H@/= 1/
402 s/= @GL_GENERATE_STDINT_H@/= 1/
403 s/= @GL_GENERATE_LIMITS_H@/= 1/
404 s/= @GL_GENERATE_ERRNO_H@/= /
405 s/= @GL_GENERATE_LIMITS_H@/= /
407 # Determine which modules to build and which to omit
408 /^noinst_LIBRARIES /a\
409 OMIT_GNULIB_MODULE_acl-permissions = true\
410 OMIT_GNULIB_MODULE_allocator = true\
411 OMIT_GNULIB_MODULE_at-internal = true\
412 OMIT_GNULIB_MODULE_careadlinkat = true\
413 OMIT_GNULIB_MODULE_cloexec = true\
414 OMIT_GNULIB_MODULE_dirent = true\
415 OMIT_GNULIB_MODULE_dirfd = true\
416 OMIT_GNULIB_MODULE_dup2 = true\
417 OMIT_GNULIB_MODULE_errno = true\
418 OMIT_GNULIB_MODULE_euidaccess = true\
419 OMIT_GNULIB_MODULE_faccessat = true\
420 OMIT_GNULIB_MODULE_fcntl = true\
421 OMIT_GNULIB_MODULE_fdopendir = true\
422 OMIT_GNULIB_MODULE_fstatat = true\
423 OMIT_GNULIB_MODULE_fsync = true\
424 OMIT_GNULIB_MODULE_getdtablesize = true\
425 OMIT_GNULIB_MODULE_getgroups = true\
426 OMIT_GNULIB_MODULE_gettimeofday = true\
427 OMIT_GNULIB_MODULE_group-member = true\
428 OMIT_GNULIB_MODULE_inttypes-incomplete = true\
429 OMIT_GNULIB_MODULE_localtime-buffer = true\
430 OMIT_GNULIB_MODULE_lstat = true\
431 OMIT_GNULIB_MODULE_open = true\
432 OMIT_GNULIB_MODULE_pipe2 = true\
433 OMIT_GNULIB_MODULE_pselect = true\
434 OMIT_GNULIB_MODULE_putenv = true\
435 OMIT_GNULIB_MODULE_qcopy-acl = true\
436 OMIT_GNULIB_MODULE_readlink = true\
437 OMIT_GNULIB_MODULE_readlinkat = true\
438 OMIT_GNULIB_MODULE_strtoimax = true\
439 OMIT_GNULIB_MODULE_strtoll = true\
440 OMIT_GNULIB_MODULE_symlink = true\
441 OMIT_GNULIB_MODULE_sys_select = true\
442 OMIT_GNULIB_MODULE_sys_time = true
443 /^arg-nonnull\.h:/,/^[  ][      ]*mv /c\
444 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h\
445         sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/build-aux/snippet/arg-nonnull.h > $@
446 /^cxxdefs\.h:/,/^[      ][      ]*mv /c\
447 cxxdefs.h: $(top_srcdir)/build-aux/snippet/cxxdefs.h\
448         sed -n -e '/_GL_CXXDEFS/,$$p' < $(top_srcdir)/build-aux/snippet/cxxdefs.h > $@
449 /^warn-on-use\.h:/,/^[  ][      ]*mv /c\
450 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h\
451         sed -n -e '/^.ifndef/,$$p' < $(top_srcdir)/build-aux/snippet/warn-on-use.h > $@
452 s/^     [       ]*{ echo \(.*\); \\/     djecho \1 > $@-t/
453 s/^     [       ]*{ echo \(.*\) && \\/   djecho \1 > $@-t/
454 s/^     [       ]*cat \(.*\); \\/        sed -e '' \1 >> $@-t/
455 s/^          sed -e/      sed -e/
456 s/ \&\& \\ *$//
457 s/\.in-h\;  *\\$/.in-h >> $@-t/
458 /^      [       ]*} /d
459 /^stdio\.h:/,/^ [       ]*mv /{
460   s/'\; \\ *$/' >> $@-t/
462 /^stdlib\.h:/,/^        [       ]*mv /{
463   s/'\; \\ *$/' >> $@-t/
465 /^unistd\.h:/,/^        [       ]*mv /{
466   s/'\; \\ *$/' >> $@-t/
468 /^string\.h:/,/^        [       ]*mv /{
469   s/'\; \\ *$/' >> $@-t/
470   /< \$(srcdir)\/string\.in-h >>/d
472 s!\$(MKDIR_P)[  ][      ]*sys!command.com /c "if not exist sys\\stat.h md sys"!
473 /^      @for dir in/,/^[^        ]/c\
474         -rm -rf $(MOSTLYCLEANDIRS)
475 /^       *-test . /d
477 # Fix the Automake verbosity stuff
478 /^       *\$(AM_V_at)/s/\$(AM_V_at)//
479 /^       *\$(AM_V_AR)/s/\$(AM_V_AR)//
480 /^       *\$(AM_V_CC)/s/\$(AM_V_CC)//