gnulib: adjust to upstream _HEADERS change
[bpt/emacs.git] / lib / gnulib.mk
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
4 #
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License. As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
10 #
11 # Generated by gnulib-tool.
12 # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files dtoastr getopt-gnu ignore-value mktime strftime
13
14
15 MOSTLYCLEANFILES += core *.stackdump
16
17 noinst_LIBRARIES += libgnu.a
18
19 libgnu_a_SOURCES =
20 libgnu_a_LIBADD = $(gl_LIBOBJS)
21 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
22 EXTRA_libgnu_a_SOURCES =
23
24 ## begin gnulib module arg-nonnull
25
26 nodist_pkginclude_HEADERS += arg-nonnull.h
27
28 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
29 # statements but through direct file reference. Therefore this snippet must be
30 # present in all Makefile.am that need it. This is ensured by the applicability
31 # 'all' defined above.
32
33 BUILT_SOURCES += arg-nonnull.h
34 # The arg-nonnull.h that gets inserted into generated .h files is the same as
35 # build-aux/arg-nonnull.h, except that it has the copyright header cut off.
36 arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
37 $(AM_V_GEN)rm -f $@-t $@ && \
38 sed -n -e '/GL_ARG_NONNULL/,$$p' \
39 < $(top_srcdir)/./arg-nonnull.h \
40 > $@-t && \
41 mv $@-t $@
42 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
43
44 ARG_NONNULL_H=arg-nonnull.h
45
46 EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
47
48 ## end gnulib module arg-nonnull
49
50 ## begin gnulib module c++defs
51
52 nodist_pkginclude_HEADERS += c++defs.h
53
54 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
55 # statements but through direct file reference. Therefore this snippet must be
56 # present in all Makefile.am that need it. This is ensured by the applicability
57 # 'all' defined above.
58
59 BUILT_SOURCES += c++defs.h
60 # The c++defs.h that gets inserted into generated .h files is the same as
61 # build-aux/c++defs.h, except that it has the copyright header cut off.
62 c++defs.h: $(top_srcdir)/./c++defs.h
63 $(AM_V_GEN)rm -f $@-t $@ && \
64 sed -n -e '/_GL_CXXDEFS/,$$p' \
65 < $(top_srcdir)/./c++defs.h \
66 > $@-t && \
67 mv $@-t $@
68 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
69
70 CXXDEFS_H=c++defs.h
71
72 EXTRA_DIST += $(top_srcdir)/./c++defs.h
73
74 ## end gnulib module c++defs
75
76 ## begin gnulib module dtoastr
77
78 libgnu_a_SOURCES += dtoastr.c
79
80 EXTRA_DIST += ftoastr.c ftoastr.h
81
82 EXTRA_libgnu_a_SOURCES += ftoastr.c
83
84 ## end gnulib module dtoastr
85
86 ## begin gnulib module getopt-posix
87
88 nodist_pkginclude_HEADERS += $(GETOPT_H)
89 EXTRA_HEADERS += getopt.h
90
91 BUILT_SOURCES += $(GETOPT_H)
92
93 # We need the following in order to create <getopt.h> when the system
94 # doesn't have one that works with the given compiler.
95 getopt.h: getopt.in.h $(ARG_NONNULL_H)
96 $(AM_V_GEN)rm -f $@-t $@ && \
97 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
98 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
99 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
100 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
101 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
102 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
103 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
104 < $(srcdir)/getopt.in.h; \
105 } > $@-t && \
106 mv -f $@-t $@
107 MOSTLYCLEANFILES += getopt.h getopt.h-t
108
109 EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
110
111 EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
112
113 ## end gnulib module getopt-posix
114
115 ## begin gnulib module gettext-h
116
117 libgnu_a_SOURCES += gettext.h
118
119 ## end gnulib module gettext-h
120
121 ## begin gnulib module ignore-value
122
123 libgnu_a_SOURCES += ignore-value.h
124
125 ## end gnulib module ignore-value
126
127 ## begin gnulib module intprops
128
129
130 EXTRA_DIST += intprops.h
131
132 ## end gnulib module intprops
133
134 ## begin gnulib module mktime
135
136
137 EXTRA_DIST += mktime-internal.h mktime.c
138
139 EXTRA_libgnu_a_SOURCES += mktime.c
140
141 ## end gnulib module mktime
142
143 ## begin gnulib module stdbool
144
145 nodist_pkginclude_HEADERS += $(STDBOOL_H)
146 EXTRA_HEADERS += stdbool.h
147
148 BUILT_SOURCES += $(STDBOOL_H)
149
150 # We need the following in order to create <stdbool.h> when the system
151 # doesn't have one that works.
152 stdbool.h: stdbool.in.h
153 $(AM_V_GEN)rm -f $@-t $@ && \
154 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
155 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
156 } > $@-t && \
157 mv $@-t $@
158 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
159
160 EXTRA_DIST += stdbool.in.h
161
162 ## end gnulib module stdbool
163
164 ## begin gnulib module stddef
165
166 nodist_pkginclude_HEADERS += $(STDDEF_H)
167 EXTRA_HEADERS += stddef.h
168
169 BUILT_SOURCES += $(STDDEF_H)
170
171 # We need the following in order to create <stddef.h> when the system
172 # doesn't have one that works with the given compiler.
173 stddef.h: stddef.in.h
174 $(AM_V_GEN)rm -f $@-t $@ && \
175 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
176 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
177 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
178 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
179 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
180 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
181 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
182 < $(srcdir)/stddef.in.h; \
183 } > $@-t && \
184 mv $@-t $@
185 MOSTLYCLEANFILES += stddef.h stddef.h-t
186
187 EXTRA_DIST += stddef.in.h
188
189 ## end gnulib module stddef
190
191 ## begin gnulib module strftime
192
193
194 EXTRA_DIST += strftime.c strftime.h
195
196 EXTRA_libgnu_a_SOURCES += strftime.c
197
198 ## end gnulib module strftime
199
200 ## begin gnulib module time
201
202 nodist_pkginclude_HEADERS += time.h
203
204 BUILT_SOURCES += time.h
205
206 # We need the following in order to create <time.h> when the system
207 # doesn't have one that works with the given compiler.
208 time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
209 $(AM_V_GEN)rm -f $@-t $@ && \
210 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
211 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
212 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
213 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
214 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
215 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
216 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
217 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
218 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
219 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
220 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
221 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
222 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
223 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
224 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
225 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
226 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
227 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
228 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
229 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
230 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
231 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
232 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
233 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
234 < $(srcdir)/time.in.h; \
235 } > $@-t && \
236 mv $@-t $@
237 MOSTLYCLEANFILES += time.h time.h-t
238
239 EXTRA_DIST += time.in.h
240
241 ## end gnulib module time
242
243 ## begin gnulib module time_r
244
245
246 EXTRA_DIST += time_r.c
247
248 EXTRA_libgnu_a_SOURCES += time_r.c
249
250 ## end gnulib module time_r
251
252 ## begin gnulib module unistd
253
254 nodist_pkginclude_HEADERS += unistd.h
255
256 BUILT_SOURCES += unistd.h
257
258 # We need the following in order to create an empty placeholder for
259 # <unistd.h> when the system doesn't have one.
260 unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
261 $(AM_V_GEN)rm -f $@-t $@ && \
262 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
263 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
264 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
265 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
266 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
267 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
268 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
269 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
270 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
271 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
272 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
273 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
274 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
275 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
276 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
277 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
278 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
279 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
280 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
281 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
282 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
283 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
284 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
285 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
286 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
287 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
288 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
289 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
290 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
291 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
292 -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \
293 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
294 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
295 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
296 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
297 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
298 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
299 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
300 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
301 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
302 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
303 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
304 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
305 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
306 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
307 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
308 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
309 < $(srcdir)/unistd.in.h | \
310 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
311 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
312 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
313 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
314 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
315 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
316 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
317 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
318 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
319 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
320 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
321 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
322 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
323 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
324 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
325 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
326 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
327 -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
328 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
329 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
330 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
331 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
332 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
333 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
334 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
335 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
336 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
337 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
338 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
339 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
340 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
341 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
342 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
343 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
344 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
345 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
346 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
347 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
348 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
349 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
350 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
351 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
352 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
353 -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
354 -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
355 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
356 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
357 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
358 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
359 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
360 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
361 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
362 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
363 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
364 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
365 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
366 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
367 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
368 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
369 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
370 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
371 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
372 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
373 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
374 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
375 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
376 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
377 } > $@-t && \
378 mv $@-t $@
379 MOSTLYCLEANFILES += unistd.h unistd.h-t
380
381 EXTRA_DIST += unistd.in.h
382
383 ## end gnulib module unistd
384
385 ## begin gnulib module warn-on-use
386
387 nodist_pkginclude_HEADERS += warn-on-use.h
388
389 BUILT_SOURCES += warn-on-use.h
390 # The warn-on-use.h that gets inserted into generated .h files is the same as
391 # build-aux/warn-on-use.h, except that it has the copyright header cut off.
392 warn-on-use.h: $(top_srcdir)/./warn-on-use.h
393 $(AM_V_GEN)rm -f $@-t $@ && \
394 sed -n -e '/^.ifndef/,$$p' \
395 < $(top_srcdir)/./warn-on-use.h \
396 > $@-t && \
397 mv $@-t $@
398 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
399
400 WARN_ON_USE_H=warn-on-use.h
401
402 EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
403
404 ## end gnulib module warn-on-use
405
406
407 mostlyclean-local: mostlyclean-generic
408 @for dir in '' $(MOSTLYCLEANDIRS); do \
409 if test -n "$$dir" && test -d $$dir; then \
410 echo "rmdir $$dir"; rmdir $$dir; \
411 fi; \
412 done; \
413 :