aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-03-31 17:04:49 +0300
committerEli Zaretskii2013-03-31 17:04:49 +0300
commita74b0e1bdf0f2f49bce82dd7e15264c5c548d980 (patch)
tree298164fad366b018ea71d2b0c791dd3442b43f02
parent65d72c1bf862d339d72d760e7ac8ccbc4837f06b (diff)
downloademacs-a74b0e1bdf0f2f49bce82dd7e15264c5c548d980.tar.gz
emacs-a74b0e1bdf0f2f49bce82dd7e15264c5c548d980.zip
Added nt/gnulib.mk and removed kludges from ms-w32.h and ntlib.h.
-rw-r--r--configure.ac11
-rw-r--r--lib-src/Makefile.in12
-rw-r--r--lib-src/ntlib.c14
-rw-r--r--lib/Makefile.am4
-rw-r--r--nt/gnulib.mk858
-rw-r--r--nt/inc/ms-w32.h14
6 files changed, 876 insertions, 37 deletions
diff --git a/configure.ac b/configure.ac
index c41a0914607..72aa43c29e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -599,6 +599,11 @@ else
599 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" 599 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
600fi 600fi
601 601
602dnl This is used in lib/Makefile.am to use nt/gnulib.mk, the
603dnl alternative to lib/gnulib.mk, so as to avoid generating header files
604dnl that clash with MinGW.
605AM_CONDITIONAL([BUILDING_FOR_WINDOWSNT], [test "x$opsys" = "xmingw32"])
606
602# Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, 607# Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
603# as we don't use them. 608# as we don't use them.
604AC_DEFUN([gl_FCNTL_O_FLAGS]) 609AC_DEFUN([gl_FCNTL_O_FLAGS])
@@ -1027,7 +1032,7 @@ AC_SUBST(C_SWITCH_SYSTEM)
1027 1032
1028LIBS_SYSTEM= 1033LIBS_SYSTEM=
1029LIB_WSOCK32= 1034LIB_WSOCK32=
1030NTLIB_O= 1035NTLIB=
1031case "$opsys" in 1036case "$opsys" in
1032 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2. 1037 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
1033 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;; 1038 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
@@ -1043,13 +1048,13 @@ case "$opsys" in
1043 1048
1044 mingw32) LIBS_SYSTEM="-lcomctl32" 1049 mingw32) LIBS_SYSTEM="-lcomctl32"
1045 LIB_WSOCK32="$LIB_WSOCK32 -lwsock32" 1050 LIB_WSOCK32="$LIB_WSOCK32 -lwsock32"
1046 NTLIB_O="ntlib.$ac_objext" 1051 NTLIB="ntlib.$ac_objext"
1047 ;; 1052 ;;
1048esac 1053esac
1049 1054
1050AC_SUBST(LIBS_SYSTEM) 1055AC_SUBST(LIBS_SYSTEM)
1051AC_SUBST(LIB_WSOCK32) 1056AC_SUBST(LIB_WSOCK32)
1052AC_SUBST(NTLIB_O) 1057AC_SUBST(NTLIB)
1053 1058
1054### Make sure subsequent tests use flags consistent with the build flags. 1059### Make sure subsequent tests use flags consistent with the build flags.
1055 1060
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 903dbfcf7b9..5e40c2555cf 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -171,7 +171,7 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \
171 $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV) 171 $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV)
172 172
173## Extra object files for linking emacsclient 173## Extra object files for linking emacsclient
174NTLIB_O = @NTLIB_O@ 174NTLIB = @NTLIB@
175 175
176## Some systems define this to request special libraries. 176## Some systems define this to request special libraries.
177LIBS_SYSTEM = @LIBS_SYSTEM@ 177LIBS_SYSTEM = @LIBS_SYSTEM@
@@ -331,15 +331,15 @@ make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(config_h)
331 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ 331 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \
332 -o make-docfile${EXEEXT} 332 -o make-docfile${EXEEXT}
333 333
334movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB_O) $(config_h) 334movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h)
335 $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ 335 $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \
336 $(NTLIB_O) $(LIB_WSOCK32) $(LOADLIBES) $(LIBS_MOVE) \ 336 $(NTLIB) $(LIB_WSOCK32) $(LOADLIBES) $(LIBS_MOVE) \
337 -o movemail${EXEEXT} 337 -o movemail${EXEEXT}
338 338
339pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h) 339pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h)
340 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c 340 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
341 341
342emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB_O) $(config_h) 342emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h)
343 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ 343 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \
344 -DVERSION="\"${version}\"" $(LIB_WSOCK32) \ 344 -DVERSION="\"${version}\"" $(LIB_WSOCK32) \
345 $(LOADLIBES) $(LIB_FDATASYNC) -o emacsclient${EXEEXT} 345 $(LOADLIBES) $(LIB_FDATASYNC) -o emacsclient${EXEEXT}
@@ -350,9 +350,9 @@ ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h
350hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h) 350hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h)
351 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl${EXEEXT} 351 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl${EXEEXT}
352 352
353update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB_O) $(config_h) 353update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h)
354 $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ 354 $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
355 ${srcdir}/update-game-score.c $(NTLIB_O) $(LOADLIBES) \ 355 ${srcdir}/update-game-score.c $(NTLIB) $(LOADLIBES) \
356 -o update-game-score${EXEEXT} 356 -o update-game-score${EXEEXT}
357 357
358## Makefile ends here. 358## Makefile ends here.
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 9dbfda90e00..41b4e3a0cbc 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -20,20 +20,6 @@ GNU General Public License for more details.
20You should have received a copy of the GNU General Public License 20You should have received a copy of the GNU General Public License
21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23#ifdef __MINGW32__
24/* A kludge to avoid including header files in lib/. They cannot be
25 configured-out, and their stuff interferes with what we have
26 defined in this header and in other headers in nt/inc. Yuck! */
27#define __need_system_fcntl_h
28#define _GL_FCNTL_H
29#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
30#define _GL_ALREADY_INCLUDING_SIGNAL_H
31#define _GL_ALREADY_INCLUDING_STDIO_H
32#define __need_system_stdlib_h
33#define _GL_TIME_H
34#define __need_system_sys_stat_h
35#endif
36
37#include <windows.h> 23#include <windows.h>
38#include <stdlib.h> 24#include <stdlib.h>
39#include <stdio.h> 25#include <stdio.h>
diff --git a/lib/Makefile.am b/lib/Makefile.am
index a341609e895..2893dd42d9d 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -7,6 +7,10 @@ noinst_LIBRARIES =
7AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) 7AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
8DEFAULT_INCLUDES = -I. -I$(top_srcdir)/lib -I../src -I$(top_srcdir)/src 8DEFAULT_INCLUDES = -I. -I$(top_srcdir)/lib -I../src -I$(top_srcdir)/src
9 9
10if BUILDING_FOR_WINDOWSNT
11include ../nt/gnulib.mk
12else
10include gnulib.mk 13include gnulib.mk
11 14
12libgnu_a_SOURCES += openat-die.c save-cwd.c 15libgnu_a_SOURCES += openat-die.c save-cwd.c
16endif
diff --git a/nt/gnulib.mk b/nt/gnulib.mk
new file mode 100644
index 00000000000..d0fa88239dc
--- /dev/null
+++ b/nt/gnulib.mk
@@ -0,0 +1,858 @@
1## This file is an edited copy if ../lib/gnulib.mk.
2##
3## The purpose of the edits is to avoid generating any headers
4## which would conflict with either the headers we have in nt/inc,
5## or with MinGW system headers and subsequent redirection of some
6## functions in nt/inc/ms-w32.h.
7##
8## In general, do NOT remove anything from ../lib/gnulib.mk that
9## doesn't need to be removed, to minimize the differences from
10## upstream gnulib.mk and thus make the maintenance easier. Every
11## header file whose generation is controlled by configure-time tests
12## does NOT need to be removed; instead, force the configure script to
13## accept whatever MinGW has to offer, by defining the appropriate
14## Autoconf variable in the nt/mingw-cfg.site file. Headers that are
15## generated conditionally have the tell-tale "if GL_GENERATE_foo_H"
16## condition before their Makefile snippet in this file. Likewise, do
17## NOT remove gnulib modules which introduce header files that don't
18## exist in MinGW and in nt/inc/, since they cannot possibly clash
19## with anything. Gnulib modules that introduce source *.c files also
20## need not be removed; if they define functions that could clash with
21## the w32 substitutes in Emacs, disable their compilation by defining
22## suitable variables in nt/mingw-cfg.site.
23##
24## Process this file with automake to produce Makefile.in.
25# Copyright (C) 2002-2013 Free Software Foundation, Inc.
26#
27# This file is free software; you can redistribute it and/or modify
28# it under the terms of the GNU General Public License as published by
29# the Free Software Foundation; either version 3 of the License, or
30# (at your option) any later version.
31#
32# This file is distributed in the hope that it will be useful,
33# but WITHOUT ANY WARRANTY; without even the implied warranty of
34# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35# GNU General Public License for more details.
36#
37# You should have received a copy of the GNU General Public License
38# along with this file. If not, see <http://www.gnu.org/licenses/>.
39#
40# As a special exception to the GNU General Public License,
41# this file may be distributed as part of a program that
42# contains a configuration script generated by Autoconf, under
43# the same distribution terms as the rest of that program.
44#
45# Generated by gnulib-tool.
46# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=dup --avoid=errno --avoid=fchdir --avoid=fcntl --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-ctype c-strcase careadlinkat close-stream crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings memrchr mktime pselect pthread_sigmask putenv readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv utimens warnings
47
48
49MOSTLYCLEANFILES += core *.stackdump
50
51noinst_LIBRARIES += libgnu.a
52
53libgnu_a_SOURCES =
54libgnu_a_LIBADD = $(gl_LIBOBJS)
55libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
56EXTRA_libgnu_a_SOURCES =
57
58## begin gnulib module alloca-opt
59
60BUILT_SOURCES += $(ALLOCA_H)
61
62# We need the following in order to create <alloca.h> when the system
63# doesn't have one that works with the given compiler.
64if GL_GENERATE_ALLOCA_H
65alloca.h: alloca.in.h $(top_builddir)/config.status
66 $(AM_V_GEN)rm -f $@-t $@ && \
67 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
68 cat $(srcdir)/alloca.in.h; \
69 } > $@-t && \
70 mv -f $@-t $@
71else
72alloca.h: $(top_builddir)/config.status
73 rm -f $@
74endif
75MOSTLYCLEANFILES += alloca.h alloca.h-t
76
77EXTRA_DIST += alloca.in.h
78
79## end gnulib module alloca-opt
80
81## begin gnulib module c-ctype
82
83libgnu_a_SOURCES += c-ctype.h c-ctype.c
84
85## end gnulib module c-ctype
86
87## begin gnulib module c-strcase
88
89libgnu_a_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
90
91## end gnulib module c-strcase
92
93## begin gnulib module close-stream
94
95libgnu_a_SOURCES += close-stream.c
96
97EXTRA_DIST += close-stream.h
98
99## end gnulib module close-stream
100
101## begin gnulib module crypto/md5
102
103libgnu_a_SOURCES += md5.c
104
105EXTRA_DIST += md5.h
106
107## end gnulib module crypto/md5
108
109## begin gnulib module crypto/sha1
110
111libgnu_a_SOURCES += sha1.c
112
113EXTRA_DIST += sha1.h
114
115## end gnulib module crypto/sha1
116
117## begin gnulib module crypto/sha256
118
119libgnu_a_SOURCES += sha256.c
120
121EXTRA_DIST += sha256.h
122
123## end gnulib module crypto/sha256
124
125## begin gnulib module crypto/sha512
126
127libgnu_a_SOURCES += sha512.c
128
129EXTRA_DIST += sha512.h
130
131## end gnulib module crypto/sha512
132
133## begin gnulib module dosname
134
135if gl_GNULIB_ENABLED_dosname
136
137endif
138EXTRA_DIST += dosname.h
139
140## end gnulib module dosname
141
142## begin gnulib module dtoastr
143
144libgnu_a_SOURCES += dtoastr.c
145
146EXTRA_DIST += ftoastr.c ftoastr.h
147
148EXTRA_libgnu_a_SOURCES += ftoastr.c
149
150## end gnulib module dtoastr
151
152## begin gnulib module dtotimespec
153
154libgnu_a_SOURCES += dtotimespec.c
155
156## end gnulib module dtotimespec
157
158## begin gnulib module dup2
159
160
161EXTRA_DIST += dup2.c
162
163EXTRA_libgnu_a_SOURCES += dup2.c
164
165## end gnulib module dup2
166
167## begin gnulib module euidaccess
168
169if gl_GNULIB_ENABLED_euidaccess
170
171endif
172EXTRA_DIST += euidaccess.c
173
174EXTRA_libgnu_a_SOURCES += euidaccess.c
175
176## end gnulib module euidaccess
177
178## begin gnulib module execinfo
179
180BUILT_SOURCES += $(EXECINFO_H)
181
182# We need the following in order to create <execinfo.h> when the system
183# doesn't have one that works.
184if GL_GENERATE_EXECINFO_H
185execinfo.h: execinfo.in.h $(top_builddir)/config.status
186 $(AM_V_GEN)rm -f $@-t $@ && \
187 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
188 cat $(srcdir)/execinfo.in.h; \
189 } > $@-t && \
190 mv $@-t $@
191else
192execinfo.h: $(top_builddir)/config.status
193 rm -f $@
194endif
195MOSTLYCLEANFILES += execinfo.h execinfo.h-t
196
197EXTRA_DIST += execinfo.c execinfo.in.h
198
199EXTRA_libgnu_a_SOURCES += execinfo.c
200
201## end gnulib module execinfo
202
203## begin gnulib module faccessat
204
205
206EXTRA_DIST += at-func.c faccessat.c
207
208EXTRA_libgnu_a_SOURCES += at-func.c faccessat.c
209
210## end gnulib module faccessat
211
212## begin gnulib module fdatasync
213
214
215EXTRA_DIST += fdatasync.c
216
217EXTRA_libgnu_a_SOURCES += fdatasync.c
218
219## end gnulib module fdatasync
220
221## begin gnulib module fdopendir
222
223
224EXTRA_DIST += fdopendir.c
225
226EXTRA_libgnu_a_SOURCES += fdopendir.c
227
228## end gnulib module fdopendir
229
230## begin gnulib module filemode
231
232libgnu_a_SOURCES += filemode.c
233
234EXTRA_DIST += filemode.h
235
236## end gnulib module filemode
237
238## begin gnulib module fpending
239
240
241EXTRA_DIST += fpending.c fpending.h
242
243EXTRA_libgnu_a_SOURCES += fpending.c
244
245## end gnulib module fpending
246
247## begin gnulib module fstatat
248
249
250EXTRA_DIST += at-func.c fstatat.c
251
252EXTRA_libgnu_a_SOURCES += at-func.c fstatat.c
253
254## end gnulib module fstatat
255
256## begin gnulib module fsync
257
258
259EXTRA_DIST += fsync.c
260
261EXTRA_libgnu_a_SOURCES += fsync.c
262
263## end gnulib module fsync
264
265## begin gnulib module getgroups
266
267if gl_GNULIB_ENABLED_getgroups
268
269endif
270EXTRA_DIST += getgroups.c
271
272EXTRA_libgnu_a_SOURCES += getgroups.c
273
274## end gnulib module getgroups
275
276## begin gnulib module getloadavg
277
278
279EXTRA_DIST += getloadavg.c
280
281EXTRA_libgnu_a_SOURCES += getloadavg.c
282
283## end gnulib module getloadavg
284
285## begin gnulib module getopt-posix
286
287BUILT_SOURCES += $(GETOPT_H)
288
289# We need the following in order to create <getopt.h> when the system
290# doesn't have one that works with the given compiler.
291getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
292 $(AM_V_GEN)rm -f $@-t $@ && \
293 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
294 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
295 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
296 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
297 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
298 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
299 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
300 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
301 < $(srcdir)/getopt.in.h; \
302 } > $@-t && \
303 mv -f $@-t $@
304MOSTLYCLEANFILES += getopt.h getopt.h-t
305
306EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
307
308EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
309
310## end gnulib module getopt-posix
311
312## begin gnulib module gettext-h
313
314if gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36
315libgnu_a_SOURCES += gettext.h
316
317endif
318## end gnulib module gettext-h
319
320## begin gnulib module gettime
321
322libgnu_a_SOURCES += gettime.c
323
324## end gnulib module gettime
325
326## begin gnulib module gettimeofday
327
328
329EXTRA_DIST += gettimeofday.c
330
331EXTRA_libgnu_a_SOURCES += gettimeofday.c
332
333## end gnulib module gettimeofday
334
335## begin gnulib module group-member
336
337if gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1
338
339endif
340EXTRA_DIST += group-member.c
341
342EXTRA_libgnu_a_SOURCES += group-member.c
343
344## end gnulib module group-member
345
346## begin gnulib module ignore-value
347
348
349EXTRA_DIST += ignore-value.h
350
351## end gnulib module ignore-value
352
353## begin gnulib module intprops
354
355
356EXTRA_DIST += intprops.h
357
358## end gnulib module intprops
359
360## begin gnulib module lstat
361
362
363EXTRA_DIST += lstat.c
364
365EXTRA_libgnu_a_SOURCES += lstat.c
366
367## end gnulib module lstat
368
369## begin gnulib module memrchr
370
371
372EXTRA_DIST += memrchr.c
373
374EXTRA_libgnu_a_SOURCES += memrchr.c
375
376## end gnulib module memrchr
377
378## begin gnulib module mktime
379
380
381EXTRA_DIST += mktime-internal.h mktime.c
382
383EXTRA_libgnu_a_SOURCES += mktime.c
384
385## end gnulib module mktime
386
387## begin gnulib module openat-h
388
389if gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7
390
391endif
392EXTRA_DIST += openat.h
393
394## end gnulib module openat-h
395
396## begin gnulib module pathmax
397
398if gl_GNULIB_ENABLED_pathmax
399
400endif
401EXTRA_DIST += pathmax.h
402
403## end gnulib module pathmax
404
405## begin gnulib module pselect
406
407
408EXTRA_DIST += pselect.c
409
410EXTRA_libgnu_a_SOURCES += pselect.c
411
412## end gnulib module pselect
413
414## begin gnulib module pthread_sigmask
415
416
417EXTRA_DIST += pthread_sigmask.c
418
419EXTRA_libgnu_a_SOURCES += pthread_sigmask.c
420
421## end gnulib module pthread_sigmask
422
423## begin gnulib module putenv
424
425
426EXTRA_DIST += putenv.c
427
428EXTRA_libgnu_a_SOURCES += putenv.c
429
430## end gnulib module putenv
431
432## begin gnulib module readlink
433
434
435EXTRA_DIST += readlink.c
436
437EXTRA_libgnu_a_SOURCES += readlink.c
438
439## end gnulib module readlink
440
441## begin gnulib module readlinkat
442
443
444EXTRA_DIST += at-func.c readlinkat.c
445
446EXTRA_libgnu_a_SOURCES += at-func.c readlinkat.c
447
448## end gnulib module readlinkat
449
450## begin gnulib module root-uid
451
452if gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c
453
454endif
455EXTRA_DIST += root-uid.h
456
457## end gnulib module root-uid
458
459## begin gnulib module sig2str
460
461
462EXTRA_DIST += sig2str.c sig2str.h
463
464EXTRA_libgnu_a_SOURCES += sig2str.c
465
466## end gnulib module sig2str
467
468## begin gnulib module snippet/_Noreturn
469
470# Because this Makefile snippet defines a variable used by other
471# gnulib Makefile snippets, it must be present in all Makefile.am that
472# need it. This is ensured by the applicability 'all' defined above.
473
474_NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
475
476EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
477
478## end gnulib module snippet/_Noreturn
479
480## begin gnulib module snippet/arg-nonnull
481
482# The BUILT_SOURCES created by this Makefile snippet are not used via #include
483# statements but through direct file reference. Therefore this snippet must be
484# present in all Makefile.am that need it. This is ensured by the applicability
485# 'all' defined above.
486
487BUILT_SOURCES += arg-nonnull.h
488# The arg-nonnull.h that gets inserted into generated .h files is the same as
489# build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
490# off.
491arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
492 $(AM_V_GEN)rm -f $@-t $@ && \
493 sed -n -e '/GL_ARG_NONNULL/,$$p' \
494 < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
495 > $@-t && \
496 mv $@-t $@
497MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
498
499ARG_NONNULL_H=arg-nonnull.h
500
501EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
502
503## end gnulib module snippet/arg-nonnull
504
505## begin gnulib module snippet/c++defs
506
507# The BUILT_SOURCES created by this Makefile snippet are not used via #include
508# statements but through direct file reference. Therefore this snippet must be
509# present in all Makefile.am that need it. This is ensured by the applicability
510# 'all' defined above.
511
512BUILT_SOURCES += c++defs.h
513# The c++defs.h that gets inserted into generated .h files is the same as
514# build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
515c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
516 $(AM_V_GEN)rm -f $@-t $@ && \
517 sed -n -e '/_GL_CXXDEFS/,$$p' \
518 < $(top_srcdir)/build-aux/snippet/c++defs.h \
519 > $@-t && \
520 mv $@-t $@
521MOSTLYCLEANFILES += c++defs.h c++defs.h-t
522
523CXXDEFS_H=c++defs.h
524
525EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
526
527## end gnulib module snippet/c++defs
528
529## begin gnulib module snippet/warn-on-use
530
531BUILT_SOURCES += warn-on-use.h
532# The warn-on-use.h that gets inserted into generated .h files is the same as
533# build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
534# off.
535warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
536 $(AM_V_GEN)rm -f $@-t $@ && \
537 sed -n -e '/^.ifndef/,$$p' \
538 < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
539 > $@-t && \
540 mv $@-t $@
541MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
542
543WARN_ON_USE_H=warn-on-use.h
544
545EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
546
547## end gnulib module snippet/warn-on-use
548
549## begin gnulib module stat
550
551if gl_GNULIB_ENABLED_stat
552
553endif
554EXTRA_DIST += stat.c
555
556EXTRA_libgnu_a_SOURCES += stat.c
557
558## end gnulib module stat
559
560## begin gnulib module stat-time
561
562libgnu_a_SOURCES += stat-time.c
563
564EXTRA_DIST += stat-time.h
565
566## end gnulib module stat-time
567
568## begin gnulib module stdalign
569
570BUILT_SOURCES += $(STDALIGN_H)
571
572# We need the following in order to create <stdalign.h> when the system
573# doesn't have one that works.
574if GL_GENERATE_STDALIGN_H
575stdalign.h: stdalign.in.h $(top_builddir)/config.status
576 $(AM_V_GEN)rm -f $@-t $@ && \
577 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
578 cat $(srcdir)/stdalign.in.h; \
579 } > $@-t && \
580 mv $@-t $@
581else
582stdalign.h: $(top_builddir)/config.status
583 rm -f $@
584endif
585MOSTLYCLEANFILES += stdalign.h stdalign.h-t
586
587EXTRA_DIST += stdalign.in.h
588
589## end gnulib module stdalign
590
591## begin gnulib module stdarg
592
593BUILT_SOURCES += $(STDARG_H)
594
595# We need the following in order to create <stdarg.h> when the system
596# doesn't have one that works with the given compiler.
597if GL_GENERATE_STDARG_H
598stdarg.h: stdarg.in.h $(top_builddir)/config.status
599 $(AM_V_GEN)rm -f $@-t $@ && \
600 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
601 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
602 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
603 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
604 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
605 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
606 < $(srcdir)/stdarg.in.h; \
607 } > $@-t && \
608 mv $@-t $@
609else
610stdarg.h: $(top_builddir)/config.status
611 rm -f $@
612endif
613MOSTLYCLEANFILES += stdarg.h stdarg.h-t
614
615EXTRA_DIST += stdarg.in.h
616
617## end gnulib module stdarg
618
619## begin gnulib module stdbool
620
621BUILT_SOURCES += $(STDBOOL_H)
622
623# We need the following in order to create <stdbool.h> when the system
624# doesn't have one that works.
625if GL_GENERATE_STDBOOL_H
626stdbool.h: stdbool.in.h $(top_builddir)/config.status
627 $(AM_V_GEN)rm -f $@-t $@ && \
628 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
629 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
630 } > $@-t && \
631 mv $@-t $@
632else
633stdbool.h: $(top_builddir)/config.status
634 rm -f $@
635endif
636MOSTLYCLEANFILES += stdbool.h stdbool.h-t
637
638EXTRA_DIST += stdbool.in.h
639
640## end gnulib module stdbool
641
642## begin gnulib module stddef
643
644BUILT_SOURCES += $(STDDEF_H)
645
646# We need the following in order to create <stddef.h> when the system
647# doesn't have one that works with the given compiler.
648if GL_GENERATE_STDDEF_H
649stddef.h: stddef.in.h $(top_builddir)/config.status
650 $(AM_V_GEN)rm -f $@-t $@ && \
651 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
652 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
653 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
654 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
655 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
656 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
657 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
658 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
659 < $(srcdir)/stddef.in.h; \
660 } > $@-t && \
661 mv $@-t $@
662else
663stddef.h: $(top_builddir)/config.status
664 rm -f $@
665endif
666MOSTLYCLEANFILES += stddef.h stddef.h-t
667
668EXTRA_DIST += stddef.in.h
669
670## end gnulib module stddef
671
672## begin gnulib module stdint
673
674BUILT_SOURCES += $(STDINT_H)
675
676# We need the following in order to create <stdint.h> when the system
677# doesn't have one that works with the given compiler.
678if GL_GENERATE_STDINT_H
679stdint.h: stdint.in.h $(top_builddir)/config.status
680 $(AM_V_GEN)rm -f $@-t $@ && \
681 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
682 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
683 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
684 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
685 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
686 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
687 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
688 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
689 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
690 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
691 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
692 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
693 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
694 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
695 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
696 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
697 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
698 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
699 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
700 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
701 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
702 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
703 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
704 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
705 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
706 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
707 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
708 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
709 < $(srcdir)/stdint.in.h; \
710 } > $@-t && \
711 mv $@-t $@
712else
713stdint.h: $(top_builddir)/config.status
714 rm -f $@
715endif
716MOSTLYCLEANFILES += stdint.h stdint.h-t
717
718EXTRA_DIST += stdint.in.h
719
720## end gnulib module stdint
721
722## begin gnulib module strftime
723
724libgnu_a_SOURCES += strftime.c
725
726EXTRA_DIST += strftime.h
727
728## end gnulib module strftime
729
730## begin gnulib module strtoimax
731
732
733EXTRA_DIST += strtoimax.c
734
735EXTRA_libgnu_a_SOURCES += strtoimax.c
736
737## end gnulib module strtoimax
738
739## begin gnulib module strtoll
740
741if gl_GNULIB_ENABLED_strtoll
742
743endif
744EXTRA_DIST += strtol.c strtoll.c
745
746EXTRA_libgnu_a_SOURCES += strtol.c strtoll.c
747
748## end gnulib module strtoll
749
750## begin gnulib module strtoull
751
752if gl_GNULIB_ENABLED_strtoull
753
754endif
755EXTRA_DIST += strtol.c strtoul.c strtoull.c
756
757EXTRA_libgnu_a_SOURCES += strtol.c strtoul.c strtoull.c
758
759## end gnulib module strtoull
760
761## begin gnulib module strtoumax
762
763
764EXTRA_DIST += strtoimax.c strtoumax.c
765
766EXTRA_libgnu_a_SOURCES += strtoimax.c strtoumax.c
767
768## end gnulib module strtoumax
769
770## begin gnulib module symlink
771
772
773EXTRA_DIST += symlink.c
774
775EXTRA_libgnu_a_SOURCES += symlink.c
776
777## end gnulib module symlink
778
779## begin gnulib module time_r
780
781
782EXTRA_DIST += time_r.c
783
784EXTRA_libgnu_a_SOURCES += time_r.c
785
786## end gnulib module time_r
787
788## begin gnulib module timespec
789
790libgnu_a_SOURCES += timespec.c
791
792EXTRA_DIST += timespec.h
793
794## end gnulib module timespec
795
796## begin gnulib module timespec-add
797
798libgnu_a_SOURCES += timespec-add.c
799
800## end gnulib module timespec-add
801
802## begin gnulib module timespec-sub
803
804libgnu_a_SOURCES += timespec-sub.c
805
806## end gnulib module timespec-sub
807
808## begin gnulib module u64
809
810libgnu_a_SOURCES += u64.c
811
812EXTRA_DIST += u64.h
813
814## end gnulib module u64
815
816## begin gnulib module unsetenv
817
818
819EXTRA_DIST += unsetenv.c
820
821EXTRA_libgnu_a_SOURCES += unsetenv.c
822
823## end gnulib module unsetenv
824
825## begin gnulib module utimens
826
827libgnu_a_SOURCES += utimens.c
828
829EXTRA_DIST += utimens.h
830
831## end gnulib module utimens
832
833## begin gnulib module verify
834
835if gl_GNULIB_ENABLED_verify
836
837endif
838EXTRA_DIST += verify.h
839
840## end gnulib module verify
841
842## begin gnulib module xalloc-oversized
843
844if gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec
845
846endif
847EXTRA_DIST += xalloc-oversized.h
848
849## end gnulib module xalloc-oversized
850
851
852mostlyclean-local: mostlyclean-generic
853 @for dir in '' $(MOSTLYCLEANDIRS); do \
854 if test -n "$$dir" && test -d $$dir; then \
855 echo "rmdir $$dir"; rmdir $$dir; \
856 fi; \
857 done; \
858 :
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index ce2b5662775..6fca448db07 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -133,20 +133,6 @@ typedef unsigned short mode_t;
133extern char *getenv (); 133extern char *getenv ();
134#endif 134#endif
135 135
136#ifdef __MINGW32__
137/* A kludge to avoid including header files in lib/. They cannot be
138 configured-out, and their stuff interferes with what we have
139 defined in this header and in other headers in nt/inc. Yuck! */
140#define __need_system_fcntl_h
141#define _GL_FCNTL_H
142#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
143#define _GL_ALREADY_INCLUDING_SIGNAL_H
144#define _GL_ALREADY_INCLUDING_STDIO_H
145#define __need_system_stdlib_h
146#define _GL_TIME_H
147#define __need_system_sys_stat_h
148#endif
149
150/* Prevent accidental use of features unavailable in older Windows 136/* Prevent accidental use of features unavailable in older Windows
151 versions we still support. MinGW64 defines this to a higher value 137 versions we still support. MinGW64 defines this to a higher value
152 in its system headers, and is not really compatible with values 138 in its system headers, and is not really compatible with values