24
37
m4_pattern_allow([^gl_ES$])dnl a valid locale name
25
38
m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26
39
m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27
AC_REQUIRE([AC_PROG_RANLIB])
28
# Code from module alignof:
40
AC_REQUIRE([gl_PROG_AR_RANLIB])
41
AC_REQUIRE([AM_PROG_CC_C_O])
29
42
# Code from module alloca-opt:
30
# Code from module arg-nonnull:
31
43
# Code from module arpa_inet:
32
44
# Code from module base64:
33
45
# Code from module btowc:
34
# Code from module c++defs:
35
# Code from module c-strtod:
36
# Code from module cloexec:
37
# Code from module close-hook:
38
46
# Code from module configmake:
39
47
# Code from module crypto/sha1:
40
48
# Code from module dirname:
41
49
# Code from module dirname-lgpl:
50
# Code from module dosname:
42
51
# Code from module double-slash-root:
43
# Code from module dup2:
44
52
# Code from module environ:
45
53
# Code from module errno:
46
54
# Code from module error:
47
55
# Code from module exitfail:
48
56
# Code from module extensions:
49
57
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
50
# Code from module fcntl:
51
# Code from module fcntl-h:
52
# Code from module fcntl-safer:
58
# Code from module extern-inline:
59
# Code from module fd-hook:
53
60
# Code from module float:
54
61
# Code from module floorf:
55
62
# Code from module fsusage:
56
63
# Code from module full-read:
57
# Code from module full-write:
58
64
# Code from module getaddrinfo:
59
# Code from module getdtablesize:
60
65
# Code from module gethostname:
61
66
# Code from module getloadavg:
62
# Code from module getopt:
63
67
# Code from module getopt-gnu:
64
68
# Code from module getopt-posix:
65
69
# Code from module gettext:
68
72
# Code from module hostent:
69
73
# Code from module include_next:
70
74
# Code from module inet_ntop:
71
# Code from module inline:
72
75
# Code from module intprops:
73
76
# Code from module langinfo:
77
# Code from module largefile:
78
AC_REQUIRE([AC_SYS_LARGEFILE])
74
79
# Code from module localcharset:
75
80
# Code from module locale:
76
# Code from module malloc:
81
# Code from module localeconv:
82
# Code from module lock:
83
# Code from module malloc-gnu:
77
84
# Code from module malloc-posix:
78
85
# Code from module malloca:
79
86
# Code from module math:
80
87
# Code from module mbrtowc:
81
88
# Code from module mbsinit:
89
# Code from module mbtowc:
82
90
# Code from module memchr:
83
91
# Code from module mktime:
92
# Code from module mktime-internal:
84
93
# Code from module mountlist:
94
# Code from module msvc-inval:
95
# Code from module msvc-nothrow:
85
96
# Code from module multiarch:
86
97
# Code from module netdb:
87
98
# Code from module netinet_in:
88
99
# Code from module nl_langinfo:
89
# Code from module open:
100
# Code from module nocrash:
101
# Code from module read:
90
102
# Code from module regex:
91
103
# Code from module safe-read:
92
# Code from module safe-write:
93
104
# Code from module servent:
94
105
# Code from module setenv:
95
106
# Code from module size_max:
107
# Code from module snippet/_Noreturn:
108
# Code from module snippet/arg-nonnull:
109
# Code from module snippet/c++defs:
110
# Code from module snippet/warn-on-use:
96
111
# Code from module snprintf:
112
# Code from module socketlib:
97
113
# Code from module sockets:
98
114
# Code from module socklen:
99
115
# Code from module ssize_t:
100
# Code from module stat:
116
# Code from module stdalign:
101
117
# Code from module stdbool:
102
118
# Code from module stddef:
103
119
# Code from module stdint:
104
120
# Code from module stdio:
105
121
# Code from module stdlib:
106
# Code from module strdup-posix:
107
122
# Code from module streq:
108
123
# Code from module strerror:
124
# Code from module strerror-override:
109
125
# Code from module string:
110
126
# Code from module strndup:
111
127
# Code from module strnlen:
112
128
# Code from module strsep:
113
129
# Code from module strstr-simple:
114
130
# Code from module sys_socket:
115
# Code from module sys_stat:
131
# Code from module sys_types:
132
# Code from module sys_uio:
133
# Code from module threadlib:
116
135
# Code from module time:
117
136
# Code from module time_r:
118
137
# Code from module timegm:
119
138
# Code from module unistd:
120
# Code from module unistd-safer:
121
139
# Code from module unsetenv:
122
140
# Code from module vasnprintf:
123
141
# Code from module vasprintf:
124
142
# Code from module verify:
125
143
# Code from module vsnprintf:
126
# Code from module warn-on-use:
127
144
# Code from module wchar:
128
145
# Code from module wcrtomb:
129
# Code from module wctype:
130
# Code from module write:
146
# Code from module wctype-h:
131
147
# Code from module xalloc:
132
148
# Code from module xalloc-die:
149
# Code from module xalloc-oversized:
133
150
# Code from module xsize:
134
151
# Code from module xstrndup:
150
167
m4_pushdef([gl_LIBSOURCES_DIR], [])
152
169
gl_source_base='gl'
153
# Code from module alignof:
154
# Code from module alloca-opt:
156
# Code from module arg-nonnull:
157
# Code from module arpa_inet:
158
171
gl_HEADER_ARPA_INET
160
# Code from module base64:
162
# Code from module btowc:
175
if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
164
179
gl_WCHAR_MODULE_INDICATOR([btowc])
165
# Code from module c++defs:
166
# Code from module c-strtod:
168
# Code from module cloexec:
170
gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
171
# Code from module close-hook:
172
# Code from module configmake:
173
# Code from module crypto/sha1:
175
# Code from module dirname:
177
183
gl_MODULE_INDICATOR([dirname])
178
# Code from module dirname-lgpl:
180
# Code from module double-slash-root:
181
185
gl_DOUBLE_SLASH_ROOT
182
# Code from module dup2:
184
gl_UNISTD_MODULE_INDICATOR([dup2])
185
# Code from module environ:
187
187
gl_UNISTD_MODULE_INDICATOR([environ])
188
# Code from module errno:
189
188
gl_HEADER_ERRNO_H
190
# Code from module error:
190
if test $ac_cv_lib_error_at_line = no; then
192
194
m4_ifdef([AM_XGETTEXT_OPTION],
193
195
[AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
194
196
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
195
# Code from module exitfail:
196
# Code from module extensions:
197
# Code from module fcntl:
199
gl_FCNTL_MODULE_INDICATOR([fcntl])
200
# Code from module fcntl-h:
202
# Code from module fcntl-safer:
204
gl_MODULE_INDICATOR([fcntl-safer])
205
# Code from module float:
197
AC_REQUIRE([gl_EXTERN_INLINE])
207
# Code from module floorf:
199
if test $REPLACE_FLOAT_LDBL = 1; then
202
if test $REPLACE_ITOLD = 1; then
206
if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then
209
209
gl_MATH_MODULE_INDICATOR([floorf])
210
# Code from module fsusage:
212
# Code from module full-read:
213
# Code from module full-write:
214
# Code from module getaddrinfo:
211
if test $gl_cv_fs_space = yes; then
213
gl_PREREQ_FSUSAGE_EXTRA
216
if test $HAVE_GETADDRINFO = 0; then
217
AC_LIBOBJ([getaddrinfo])
219
if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
220
AC_LIBOBJ([gai_strerror])
216
222
gl_NETDB_MODULE_INDICATOR([getaddrinfo])
217
# Code from module getdtablesize:
218
gl_FUNC_GETDTABLESIZE
219
gl_UNISTD_MODULE_INDICATOR([getdtablesize])
220
# Code from module gethostname:
221
223
gl_FUNC_GETHOSTNAME
224
if test $HAVE_GETHOSTNAME = 0; then
225
AC_LIBOBJ([gethostname])
226
gl_PREREQ_GETHOSTNAME
222
228
gl_UNISTD_MODULE_INDICATOR([gethostname])
223
# Code from module getloadavg:
224
gl_GETLOADAVG([$gl_source_base])
230
if test $HAVE_GETLOADAVG = 0; then
231
AC_LIBOBJ([getloadavg])
225
234
gl_STDLIB_MODULE_INDICATOR([getloadavg])
226
# Code from module getopt:
227
# Code from module getopt-gnu:
228
235
gl_FUNC_GETOPT_GNU
236
if test $REPLACE_GETOPT = 1; then
240
dnl Arrange for unistd.h to include getopt.h.
241
GNULIB_GL_UNISTD_H_GETOPT=1
243
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
229
244
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
230
# Code from module getopt-posix:
231
245
gl_FUNC_GETOPT_POSIX
232
# Code from module gettext:
246
if test $REPLACE_GETOPT = 1; then
250
dnl Arrange for unistd.h to include getopt.h.
251
GNULIB_GL_UNISTD_H_GETOPT=1
253
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
233
254
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
234
255
AM_GNU_GETTEXT_VERSION([0.18.1])
235
# Code from module gettext-h:
236
256
AC_SUBST([LIBINTL])
237
257
AC_SUBST([LTLIBINTL])
238
# Code from module havelib:
239
# Code from module hostent:
241
# Code from module include_next:
242
# Code from module inet_ntop:
243
259
gl_FUNC_INET_NTOP
260
if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
261
AC_LIBOBJ([inet_ntop])
244
264
gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
245
# Code from module inline:
247
# Code from module intprops:
248
# Code from module langinfo:
250
# Code from module localcharset:
266
AC_REQUIRE([gl_LARGEFILE])
252
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
268
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
253
269
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
254
# Code from module locale:
256
# Code from module malloc:
258
AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
259
# Code from module malloc-posix:
272
if test $REPLACE_LOCALECONV = 1; then
273
AC_LIBOBJ([localeconv])
276
gl_LOCALE_MODULE_INDICATOR([localeconv])
278
gl_MODULE_INDICATOR([lock])
280
if test $REPLACE_MALLOC = 1; then
283
gl_MODULE_INDICATOR([malloc-gnu])
260
284
gl_FUNC_MALLOC_POSIX
285
if test $REPLACE_MALLOC = 1; then
261
288
gl_STDLIB_MODULE_INDICATOR([malloc-posix])
262
# Code from module malloca:
264
# Code from module math:
266
# Code from module mbrtowc:
292
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
268
296
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
269
# Code from module mbsinit:
298
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
271
302
gl_WCHAR_MODULE_INDICATOR([mbsinit])
272
# Code from module memchr:
304
if test $REPLACE_MBTOWC = 1; then
308
gl_STDLIB_MODULE_INDICATOR([mbtowc])
310
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
274
314
gl_STRING_MODULE_INDICATOR([memchr])
275
# Code from module mktime:
316
if test $REPLACE_MKTIME = 1; then
277
320
gl_TIME_MODULE_INDICATOR([mktime])
278
# Code from module mountlist:
321
gl_FUNC_MKTIME_INTERNAL
322
if test $REPLACE_MKTIME = 1; then
280
# Code from module multiarch:
327
if test $gl_cv_list_mounted_fs = yes; then
328
AC_LIBOBJ([mountlist])
329
gl_PREREQ_MOUNTLIST_EXTRA
332
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
333
AC_LIBOBJ([msvc-inval])
336
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
337
AC_LIBOBJ([msvc-nothrow])
282
# Code from module netdb:
284
# Code from module netinet_in:
285
341
gl_HEADER_NETINET_IN
287
# Code from module nl_langinfo:
288
343
gl_FUNC_NL_LANGINFO
344
if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
345
AC_LIBOBJ([nl_langinfo])
289
347
gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
290
# Code from module open:
292
gl_FCNTL_MODULE_INDICATOR([open])
293
# Code from module regex:
349
if test $REPLACE_READ = 1; then
353
gl_UNISTD_MODULE_INDICATOR([read])
295
# Code from module safe-read:
297
# Code from module safe-write:
299
# Code from module servent:
355
if test $ac_use_included_regex = yes; then
301
# Code from module setenv:
362
if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
303
365
gl_STDLIB_MODULE_INDICATOR([setenv])
304
# Code from module size_max:
306
# Code from module snprintf:
308
368
gl_STDIO_MODULE_INDICATOR([snprintf])
309
# Code from module sockets:
369
gl_MODULE_INDICATOR([snprintf])
311
# Code from module socklen:
312
372
gl_TYPE_SOCKLEN_T
313
# Code from module ssize_t:
315
# Code from module stat:
317
gl_SYS_STAT_MODULE_INDICATOR([stat])
318
# Code from module stdbool:
320
# Code from module stddef:
322
# Code from module stdint:
324
# Code from module stdio:
326
# Code from module stdlib:
328
# Code from module strdup-posix:
330
gl_STRING_MODULE_INDICATOR([strdup])
331
# Code from module streq:
332
# Code from module strerror:
381
if test $REPLACE_STRERROR = 1; then
382
AC_LIBOBJ([strerror])
384
gl_MODULE_INDICATOR([strerror])
334
385
gl_STRING_MODULE_INDICATOR([strerror])
335
# Code from module string:
386
AC_REQUIRE([gl_HEADER_ERRNO_H])
387
AC_REQUIRE([gl_FUNC_STRERROR_0])
388
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
389
AC_LIBOBJ([strerror-override])
390
gl_PREREQ_SYS_H_WINSOCK2
336
392
gl_HEADER_STRING_H
337
# Code from module strndup:
394
if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
339
397
gl_STRING_MODULE_INDICATOR([strndup])
340
# Code from module strnlen:
399
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
342
403
gl_STRING_MODULE_INDICATOR([strnlen])
343
# Code from module strsep:
405
if test $HAVE_STRSEP = 0; then
345
409
gl_STRING_MODULE_INDICATOR([strsep])
346
# Code from module strstr-simple:
347
410
gl_FUNC_STRSTR_SIMPLE
411
if test $REPLACE_STRSTR = 1; then
348
414
gl_STRING_MODULE_INDICATOR([strstr])
349
# Code from module sys_socket:
350
415
gl_HEADER_SYS_SOCKET
352
# Code from module sys_stat:
355
# Code from module time:
357
# Code from module time_r:
424
if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
359
428
gl_TIME_MODULE_INDICATOR([time_r])
360
# Code from module timegm:
430
if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
362
434
gl_TIME_MODULE_INDICATOR([timegm])
363
# Code from module unistd:
365
# Code from module unistd-safer:
367
# Code from module unsetenv:
437
if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
438
AC_LIBOBJ([unsetenv])
369
441
gl_STDLIB_MODULE_INDICATOR([unsetenv])
370
# Code from module vasnprintf:
371
442
gl_FUNC_VASNPRINTF
372
# Code from module vasprintf:
373
443
gl_FUNC_VASPRINTF
374
444
gl_STDIO_MODULE_INDICATOR([vasprintf])
375
445
m4_ifdef([AM_XGETTEXT_OPTION],
376
446
[AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
377
447
AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
378
# Code from module verify:
379
# Code from module vsnprintf:
380
448
gl_FUNC_VSNPRINTF
381
449
gl_STDIO_MODULE_INDICATOR([vsnprintf])
382
# Code from module warn-on-use:
383
# Code from module wchar:
385
# Code from module wcrtomb:
452
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
387
456
gl_WCHAR_MODULE_INDICATOR([wcrtomb])
388
# Code from module wctype:
390
# Code from module write:
392
gl_UNISTD_MODULE_INDICATOR([write])
393
# Code from module xalloc:
395
# Code from module xalloc-die:
396
# Code from module xsize:
398
# Code from module xstrndup:
400
461
# End of code from modules
401
462
m4_ifval(gl_LIBSOURCES_LIST, [