summaryrefslogtreecommitdiffstats
path: root/gl/m4/gnulib-comp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/gnulib-comp.m4')
-rw-r--r--gl/m4/gnulib-comp.m4601
1 files changed, 495 insertions, 106 deletions
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 9a4f5027..219b81e2 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -1,5 +1,5 @@
1# DO NOT EDIT! GENERATED AUTOMATICALLY! 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
2# Copyright (C) 2002-2013 Free Software Foundation, Inc. 2# Copyright (C) 2002-2021 Free Software Foundation, Inc.
3# 3#
4# This file is free software; you can redistribute it and/or modify 4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -12,7 +12,7 @@
12# GNU General Public License for more details. 12# GNU General Public License for more details.
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with this file. If not, see <http://www.gnu.org/licenses/>. 15# along with this file. If not, see <https://www.gnu.org/licenses/>.
16# 16#
17# As a special exception to the GNU General Public License, 17# As a special exception to the GNU General Public License,
18# this file may be distributed as part of a program that 18# this file may be distributed as part of a program that
@@ -37,50 +37,93 @@ AC_DEFUN([gl_EARLY],
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name 37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable 38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable 39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40
41 # Pre-early section.
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
40 AC_REQUIRE([gl_PROG_AR_RANLIB]) 43 AC_REQUIRE([gl_PROG_AR_RANLIB])
44
41 AC_REQUIRE([AM_PROG_CC_C_O]) 45 AC_REQUIRE([AM_PROG_CC_C_O])
46 # Code from module absolute-header:
42 # Code from module alloca-opt: 47 # Code from module alloca-opt:
43 # Code from module arpa_inet: 48 # Code from module arpa_inet:
49 # Code from module attribute:
44 # Code from module base64: 50 # Code from module base64:
51 # Code from module basename-lgpl:
45 # Code from module btowc: 52 # Code from module btowc:
46 # Code from module configmake: 53 # Code from module builtin-expect:
54 # Code from module byteswap:
55 # Code from module c99:
56 # Code from module calloc-gnu:
57 # Code from module calloc-posix:
58 # Code from module cloexec:
59 # Code from module close:
60 # Code from module crypto/af_alg:
47 # Code from module crypto/sha1: 61 # Code from module crypto/sha1:
62 # Code from module crypto/sha1-buffer:
48 # Code from module dirname: 63 # Code from module dirname:
49 # Code from module dirname-lgpl: 64 # Code from module dirname-lgpl:
50 # Code from module dosname:
51 # Code from module double-slash-root: 65 # Code from module double-slash-root:
66 # Code from module dup2:
67 # Code from module dynarray:
52 # Code from module environ: 68 # Code from module environ:
53 # Code from module errno: 69 # Code from module errno:
54 # Code from module error: 70 # Code from module error:
55 # Code from module exitfail: 71 # Code from module exitfail:
56 # Code from module extensions: 72 # Code from module extensions:
57 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
58 # Code from module extern-inline: 73 # Code from module extern-inline:
74 # Code from module fcntl:
75 # Code from module fcntl-h:
59 # Code from module fd-hook: 76 # Code from module fd-hook:
77 # Code from module fflush:
78 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
79 # Code from module filename:
60 # Code from module float: 80 # Code from module float:
61 # Code from module floorf: 81 # Code from module floorf:
82 # Code from module fopen:
83 # Code from module fopen-gnu:
84 # Code from module fpurge:
85 # Code from module freading:
86 # Code from module free-posix:
87 # Code from module fseek:
88 # Code from module fseeko:
89 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
90 # Code from module fstat:
62 # Code from module fsusage: 91 # Code from module fsusage:
63 # Code from module full-read: 92 # Code from module ftell:
93 # Code from module ftello:
94 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
64 # Code from module getaddrinfo: 95 # Code from module getaddrinfo:
96 # Code from module getdelim:
97 # Code from module getdtablesize:
65 # Code from module gethostname: 98 # Code from module gethostname:
99 # Code from module getline:
66 # Code from module getloadavg: 100 # Code from module getloadavg:
67 # Code from module getopt-gnu: 101 # Code from module getopt-gnu:
68 # Code from module getopt-posix: 102 # Code from module getopt-posix:
103 # Code from module getprogname:
69 # Code from module gettext: 104 # Code from module gettext:
70 # Code from module gettext-h: 105 # Code from module gettext-h:
106 # Code from module hard-locale:
71 # Code from module havelib: 107 # Code from module havelib:
72 # Code from module hostent: 108 # Code from module hostent:
109 # Code from module ialloc:
73 # Code from module idpriv-droptemp: 110 # Code from module idpriv-droptemp:
111 # Code from module idx:
74 # Code from module include_next: 112 # Code from module include_next:
75 # Code from module inet_ntop: 113 # Code from module inet_ntop:
76 # Code from module intprops: 114 # Code from module intprops:
115 # Code from module inttypes-incomplete:
77 # Code from module langinfo: 116 # Code from module langinfo:
78 # Code from module largefile: 117 # Code from module largefile:
79 AC_REQUIRE([AC_SYS_LARGEFILE]) 118 AC_REQUIRE([AC_SYS_LARGEFILE])
119 AC_REQUIRE([gl_YEAR2038_EARLY])
120 # Code from module libc-config:
121 # Code from module limits-h:
80 # Code from module localcharset: 122 # Code from module localcharset:
81 # Code from module locale: 123 # Code from module locale:
82 # Code from module localeconv: 124 # Code from module localeconv:
83 # Code from module lock: 125 # Code from module lock:
126 # Code from module lseek:
84 # Code from module malloc-gnu: 127 # Code from module malloc-gnu:
85 # Code from module malloc-posix: 128 # Code from module malloc-posix:
86 # Code from module malloca: 129 # Code from module malloca:
@@ -89,6 +132,7 @@ AC_DEFUN([gl_EARLY],
89 # Code from module mbsinit: 132 # Code from module mbsinit:
90 # Code from module mbtowc: 133 # Code from module mbtowc:
91 # Code from module memchr: 134 # Code from module memchr:
135 # Code from module minmax:
92 # Code from module mktime: 136 # Code from module mktime:
93 # Code from module mktime-internal: 137 # Code from module mktime-internal:
94 # Code from module mountlist: 138 # Code from module mountlist:
@@ -99,11 +143,15 @@ AC_DEFUN([gl_EARLY],
99 # Code from module netinet_in: 143 # Code from module netinet_in:
100 # Code from module nl_langinfo: 144 # Code from module nl_langinfo:
101 # Code from module nocrash: 145 # Code from module nocrash:
102 # Code from module read: 146 # Code from module open:
147 # Code from module pathmax:
148 # Code from module realloc-gnu:
149 # Code from module realloc-posix:
150 # Code from module reallocarray:
103 # Code from module regex: 151 # Code from module regex:
104 # Code from module safe-read:
105 # Code from module servent: 152 # Code from module servent:
106 # Code from module setenv: 153 # Code from module setenv:
154 # Code from module setlocale-null:
107 # Code from module size_max: 155 # Code from module size_max:
108 # Code from module snippet/_Noreturn: 156 # Code from module snippet/_Noreturn:
109 # Code from module snippet/arg-nonnull: 157 # Code from module snippet/arg-nonnull:
@@ -114,6 +162,9 @@ AC_DEFUN([gl_EARLY],
114 # Code from module sockets: 162 # Code from module sockets:
115 # Code from module socklen: 163 # Code from module socklen:
116 # Code from module ssize_t: 164 # Code from module ssize_t:
165 # Code from module stat:
166 # Code from module stat-time:
167 # Code from module std-gnu11:
117 # Code from module stdalign: 168 # Code from module stdalign:
118 # Code from module stdbool: 169 # Code from module stdbool:
119 # Code from module stddef: 170 # Code from module stddef:
@@ -128,11 +179,10 @@ AC_DEFUN([gl_EARLY],
128 # Code from module strerror-override: 179 # Code from module strerror-override:
129 # Code from module string: 180 # Code from module string:
130 # Code from module strings: 181 # Code from module strings:
131 # Code from module strndup:
132 # Code from module strnlen:
133 # Code from module strsep: 182 # Code from module strsep:
134 # Code from module strstr-simple: 183 # Code from module strstr-simple:
135 # Code from module sys_socket: 184 # Code from module sys_socket:
185 # Code from module sys_stat:
136 # Code from module sys_types: 186 # Code from module sys_types:
137 # Code from module sys_uio: 187 # Code from module sys_uio:
138 # Code from module threadlib: 188 # Code from module threadlib:
@@ -141,6 +191,7 @@ AC_DEFUN([gl_EARLY],
141 # Code from module time_r: 191 # Code from module time_r:
142 # Code from module timegm: 192 # Code from module timegm:
143 # Code from module unistd: 193 # Code from module unistd:
194 # Code from module unlocked-io-internal:
144 # Code from module unsetenv: 195 # Code from module unsetenv:
145 # Code from module vasnprintf: 196 # Code from module vasnprintf:
146 # Code from module vasprintf: 197 # Code from module vasprintf:
@@ -149,11 +200,14 @@ AC_DEFUN([gl_EARLY],
149 # Code from module wchar: 200 # Code from module wchar:
150 # Code from module wcrtomb: 201 # Code from module wcrtomb:
151 # Code from module wctype-h: 202 # Code from module wctype-h:
203 # Code from module windows-mutex:
204 # Code from module windows-once:
205 # Code from module windows-recmutex:
206 # Code from module windows-rwlock:
152 # Code from module xalloc: 207 # Code from module xalloc:
153 # Code from module xalloc-die: 208 # Code from module xalloc-die:
154 # Code from module xalloc-oversized: 209 # Code from module xalloc-oversized:
155 # Code from module xsize: 210 # Code from module xsize:
156 # Code from module xstrndup:
157]) 211])
158 212
159# This macro should be invoked from ./configure.ac, in the section 213# This macro should be invoked from ./configure.ac, in the section
@@ -170,10 +224,13 @@ AC_DEFUN([gl_INIT],
170 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) 224 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
171 m4_pushdef([gl_LIBSOURCES_LIST], []) 225 m4_pushdef([gl_LIBSOURCES_LIST], [])
172 m4_pushdef([gl_LIBSOURCES_DIR], []) 226 m4_pushdef([gl_LIBSOURCES_DIR], [])
227 m4_pushdef([GL_MACRO_PREFIX], [gl])
228 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
173 gl_COMMON 229 gl_COMMON
174 gl_source_base='gl' 230 gl_source_base='gl'
175 gl_FUNC_ALLOCA 231 gl_FUNC_ALLOCA
176 gl_HEADER_ARPA_INET 232 gl_ARPA_INET_H
233 gl_ARPA_INET_H_REQUIRE_DEFAULTS
177 AC_PROG_MKDIR_P 234 AC_PROG_MKDIR_P
178 gl_FUNC_BASE64 235 gl_FUNC_BASE64
179 gl_FUNC_BTOWC 236 gl_FUNC_BTOWC
@@ -182,24 +239,61 @@ AC_DEFUN([gl_INIT],
182 gl_PREREQ_BTOWC 239 gl_PREREQ_BTOWC
183 fi 240 fi
184 gl_WCHAR_MODULE_INDICATOR([btowc]) 241 gl_WCHAR_MODULE_INDICATOR([btowc])
185 gl_CONFIGMAKE_PREP 242 gl___BUILTIN_EXPECT
243 gl_BYTESWAP
244 gl_FUNC_CALLOC_GNU
245 if test $REPLACE_CALLOC = 1; then
246 AC_LIBOBJ([calloc])
247 fi
248 gl_FUNC_CALLOC_POSIX
249 if test $REPLACE_CALLOC = 1; then
250 AC_LIBOBJ([calloc])
251 fi
252 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
253 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
254 gl_FUNC_CLOSE
255 if test $REPLACE_CLOSE = 1; then
256 AC_LIBOBJ([close])
257 fi
258 gl_UNISTD_MODULE_INDICATOR([close])
259 gl_AF_ALG
260 AC_REQUIRE([AC_C_RESTRICT])
186 gl_SHA1 261 gl_SHA1
187 gl_DIRNAME
188 gl_MODULE_INDICATOR([dirname]) 262 gl_MODULE_INDICATOR([dirname])
189 gl_DIRNAME_LGPL
190 gl_DOUBLE_SLASH_ROOT 263 gl_DOUBLE_SLASH_ROOT
264 gl_FUNC_DUP2
265 if test $REPLACE_DUP2 = 1; then
266 AC_LIBOBJ([dup2])
267 gl_PREREQ_DUP2
268 fi
269 gl_UNISTD_MODULE_INDICATOR([dup2])
270 AC_PROG_MKDIR_P
191 gl_ENVIRON 271 gl_ENVIRON
192 gl_UNISTD_MODULE_INDICATOR([environ]) 272 gl_UNISTD_MODULE_INDICATOR([environ])
193 gl_HEADER_ERRNO_H 273 gl_HEADER_ERRNO_H
194 gl_ERROR 274 gl_ERROR
195 if test $ac_cv_lib_error_at_line = no; then 275 AS_IF([test "$ac_cv_lib_error_at_line" = no], [
196 AC_LIBOBJ([error]) 276 AC_LIBOBJ([error])
197 gl_PREREQ_ERROR 277 gl_PREREQ_ERROR
198 fi 278 ])
199 m4_ifdef([AM_XGETTEXT_OPTION], 279 m4_ifdef([AM_XGETTEXT_OPTION],
200 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) 280 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
201 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) 281 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
202 AC_REQUIRE([gl_EXTERN_INLINE]) 282 AC_REQUIRE([gl_EXTERN_INLINE])
283 gl_FUNC_FCNTL
284 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
285 AC_LIBOBJ([fcntl])
286 fi
287 gl_FCNTL_MODULE_INDICATOR([fcntl])
288 gl_FCNTL_H
289 gl_FCNTL_H_REQUIRE_DEFAULTS
290 gl_FUNC_FFLUSH
291 if test $REPLACE_FFLUSH = 1; then
292 AC_LIBOBJ([fflush])
293 gl_PREREQ_FFLUSH
294 fi
295 gl_MODULE_INDICATOR([fflush])
296 gl_STDIO_MODULE_INDICATOR([fflush])
203 gl_FLOAT_H 297 gl_FLOAT_H
204 if test $REPLACE_FLOAT_LDBL = 1; then 298 if test $REPLACE_FLOAT_LDBL = 1; then
205 AC_LIBOBJ([float]) 299 AC_LIBOBJ([float])
@@ -212,25 +306,101 @@ AC_DEFUN([gl_INIT],
212 AC_LIBOBJ([floorf]) 306 AC_LIBOBJ([floorf])
213 fi 307 fi
214 gl_MATH_MODULE_INDICATOR([floorf]) 308 gl_MATH_MODULE_INDICATOR([floorf])
309 gl_FUNC_FOPEN
310 if test $REPLACE_FOPEN = 1; then
311 AC_LIBOBJ([fopen])
312 gl_PREREQ_FOPEN
313 fi
314 gl_STDIO_MODULE_INDICATOR([fopen])
315 gl_FUNC_FOPEN_GNU
316 if test $REPLACE_FOPEN = 1; then
317 AC_LIBOBJ([fopen])
318 gl_PREREQ_FOPEN
319 fi
320 gl_MODULE_INDICATOR([fopen-gnu])
321 gl_FUNC_FPURGE
322 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
323 AC_LIBOBJ([fpurge])
324 fi
325 gl_STDIO_MODULE_INDICATOR([fpurge])
326 gl_FUNC_FREADING
327 gl_FUNC_FREE
328 if test $REPLACE_FREE = 1; then
329 AC_LIBOBJ([free])
330 gl_PREREQ_FREE
331 fi
332 gl_STDLIB_MODULE_INDICATOR([free-posix])
333 gl_FUNC_FSEEK
334 if test $REPLACE_FSEEK = 1; then
335 AC_LIBOBJ([fseek])
336 fi
337 gl_STDIO_MODULE_INDICATOR([fseek])
338 gl_FUNC_FSEEKO
339 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
340 AC_LIBOBJ([fseeko])
341 gl_PREREQ_FSEEKO
342 fi
343 gl_STDIO_MODULE_INDICATOR([fseeko])
344 gl_FUNC_FSTAT
345 if test $REPLACE_FSTAT = 1; then
346 AC_LIBOBJ([fstat])
347 case "$host_os" in
348 mingw*)
349 AC_LIBOBJ([stat-w32])
350 ;;
351 esac
352 gl_PREREQ_FSTAT
353 fi
354 gl_SYS_STAT_MODULE_INDICATOR([fstat])
215 gl_FSUSAGE 355 gl_FSUSAGE
216 if test $gl_cv_fs_space = yes; then 356 if test $gl_cv_fs_space = yes; then
217 AC_LIBOBJ([fsusage]) 357 AC_LIBOBJ([fsusage])
218 gl_PREREQ_FSUSAGE_EXTRA 358 gl_PREREQ_FSUSAGE_EXTRA
219 fi 359 fi
360 gl_FUNC_FTELL
361 if test $REPLACE_FTELL = 1; then
362 AC_LIBOBJ([ftell])
363 fi
364 gl_STDIO_MODULE_INDICATOR([ftell])
365 gl_FUNC_FTELLO
366 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
367 AC_LIBOBJ([ftello])
368 gl_PREREQ_FTELLO
369 fi
370 gl_STDIO_MODULE_INDICATOR([ftello])
220 gl_GETADDRINFO 371 gl_GETADDRINFO
221 if test $HAVE_GETADDRINFO = 0; then 372 if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
222 AC_LIBOBJ([getaddrinfo]) 373 AC_LIBOBJ([getaddrinfo])
223 fi 374 fi
224 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then 375 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
225 AC_LIBOBJ([gai_strerror]) 376 AC_LIBOBJ([gai_strerror])
226 fi 377 fi
227 gl_NETDB_MODULE_INDICATOR([getaddrinfo]) 378 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
379 gl_FUNC_GETDELIM
380 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
381 AC_LIBOBJ([getdelim])
382 gl_PREREQ_GETDELIM
383 fi
384 gl_STDIO_MODULE_INDICATOR([getdelim])
385 gl_FUNC_GETDTABLESIZE
386 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
387 AC_LIBOBJ([getdtablesize])
388 gl_PREREQ_GETDTABLESIZE
389 fi
390 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
228 gl_FUNC_GETHOSTNAME 391 gl_FUNC_GETHOSTNAME
229 if test $HAVE_GETHOSTNAME = 0; then 392 if test $HAVE_GETHOSTNAME = 0; then
230 AC_LIBOBJ([gethostname]) 393 AC_LIBOBJ([gethostname])
231 gl_PREREQ_GETHOSTNAME 394 gl_PREREQ_GETHOSTNAME
232 fi 395 fi
233 gl_UNISTD_MODULE_INDICATOR([gethostname]) 396 gl_UNISTD_MODULE_INDICATOR([gethostname])
397 gl_FUNC_GETLINE
398 if test $REPLACE_GETLINE = 1; then
399 AC_LIBOBJ([getline])
400 gl_PREREQ_GETLINE
401 fi
402 gl_STDIO_MODULE_INDICATOR([getline])
403 AC_REQUIRE([AC_CANONICAL_HOST])
234 gl_GETLOADAVG 404 gl_GETLOADAVG
235 if test $HAVE_GETLOADAVG = 0; then 405 if test $HAVE_GETLOADAVG = 0; then
236 AC_LIBOBJ([getloadavg]) 406 AC_LIBOBJ([getloadavg])
@@ -238,28 +408,27 @@ AC_DEFUN([gl_INIT],
238 fi 408 fi
239 gl_STDLIB_MODULE_INDICATOR([getloadavg]) 409 gl_STDLIB_MODULE_INDICATOR([getloadavg])
240 gl_FUNC_GETOPT_GNU 410 gl_FUNC_GETOPT_GNU
241 if test $REPLACE_GETOPT = 1; then 411 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
242 AC_LIBOBJ([getopt]) 412 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
243 AC_LIBOBJ([getopt1]) 413 dnl done in the getopt-posix module.
244 gl_PREREQ_GETOPT
245 dnl Arrange for unistd.h to include getopt.h.
246 GNULIB_GL_UNISTD_H_GETOPT=1
247 fi
248 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
249 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
250 gl_FUNC_GETOPT_POSIX 414 gl_FUNC_GETOPT_POSIX
251 if test $REPLACE_GETOPT = 1; then 415 if test $REPLACE_GETOPT = 1; then
252 AC_LIBOBJ([getopt]) 416 AC_LIBOBJ([getopt])
253 AC_LIBOBJ([getopt1]) 417 AC_LIBOBJ([getopt1])
254 gl_PREREQ_GETOPT 418 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
255 dnl Arrange for unistd.h to include getopt.h. 419 gl_UNISTD_H_REQUIRE_DEFAULTS
256 GNULIB_GL_UNISTD_H_GETOPT=1 420 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
257 fi 421 fi
258 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) 422 gl_UNISTD_MODULE_INDICATOR([getopt-posix])
423 gl_FUNC_GETPROGNAME
259 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. 424 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
260 AM_GNU_GETTEXT_VERSION([0.18.1]) 425 AM_GNU_GETTEXT_VERSION([0.20])
261 AC_SUBST([LIBINTL]) 426 AC_SUBST([LIBINTL])
262 AC_SUBST([LTLIBINTL]) 427 AC_SUBST([LTLIBINTL])
428 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
429 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
430 AC_SUBST([LIB_HARD_LOCALE])
431 AC_DEFUN([gl_HAVE_MODULE_HAVELIB])
263 gl_HOSTENT 432 gl_HOSTENT
264 gl_IDPRIV 433 gl_IDPRIV
265 gl_FUNC_INET_NTOP 434 gl_FUNC_INET_NTOP
@@ -268,12 +437,19 @@ AC_DEFUN([gl_INIT],
268 gl_PREREQ_INET_NTOP 437 gl_PREREQ_INET_NTOP
269 fi 438 fi
270 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) 439 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
440 gl_INTTYPES_INCOMPLETE
441 gl_INTTYPES_H_REQUIRE_DEFAULTS
271 gl_LANGINFO_H 442 gl_LANGINFO_H
443 gl_LANGINFO_H_REQUIRE_DEFAULTS
272 AC_REQUIRE([gl_LARGEFILE]) 444 AC_REQUIRE([gl_LARGEFILE])
445 gl___INLINE
446 gl_LIMITS_H
273 gl_LOCALCHARSET 447 gl_LOCALCHARSET
274 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" 448 dnl For backward compatibility. Some packages still use this.
449 LOCALCHARSET_TESTS_ENVIRONMENT=
275 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) 450 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
276 gl_LOCALE_H 451 gl_LOCALE_H
452 gl_LOCALE_H_REQUIRE_DEFAULTS
277 gl_FUNC_LOCALECONV 453 gl_FUNC_LOCALECONV
278 if test $REPLACE_LOCALECONV = 1; then 454 if test $REPLACE_LOCALECONV = 1; then
279 AC_LIBOBJ([localeconv]) 455 AC_LIBOBJ([localeconv])
@@ -282,21 +458,31 @@ AC_DEFUN([gl_INIT],
282 gl_LOCALE_MODULE_INDICATOR([localeconv]) 458 gl_LOCALE_MODULE_INDICATOR([localeconv])
283 gl_LOCK 459 gl_LOCK
284 gl_MODULE_INDICATOR([lock]) 460 gl_MODULE_INDICATOR([lock])
461 gl_FUNC_LSEEK
462 if test $REPLACE_LSEEK = 1; then
463 AC_LIBOBJ([lseek])
464 fi
465 gl_UNISTD_MODULE_INDICATOR([lseek])
285 gl_FUNC_MALLOC_GNU 466 gl_FUNC_MALLOC_GNU
286 if test $REPLACE_MALLOC = 1; then 467 if test $REPLACE_MALLOC = 1; then
287 AC_LIBOBJ([malloc]) 468 AC_LIBOBJ([malloc])
288 fi 469 fi
289 gl_MODULE_INDICATOR([malloc-gnu]) 470 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
290 gl_FUNC_MALLOC_POSIX
291 if test $REPLACE_MALLOC = 1; then 471 if test $REPLACE_MALLOC = 1; then
292 AC_LIBOBJ([malloc]) 472 AC_LIBOBJ([malloc])
293 fi 473 fi
294 gl_STDLIB_MODULE_INDICATOR([malloc-posix]) 474 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
295 gl_MALLOCA 475 gl_MALLOCA
296 gl_MATH_H 476 gl_MATH_H
477 gl_MATH_H_REQUIRE_DEFAULTS
297 gl_FUNC_MBRTOWC 478 gl_FUNC_MBRTOWC
298 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 479 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
299 AC_LIBOBJ([mbrtowc]) 480 AC_LIBOBJ([mbrtowc])
481 if test $REPLACE_MBSTATE_T = 1; then
482 AC_LIBOBJ([lc-charset-dispatch])
483 AC_LIBOBJ([mbtowc-lock])
484 gl_PREREQ_MBTOWC_LOCK
485 fi
300 gl_PREREQ_MBRTOWC 486 gl_PREREQ_MBRTOWC
301 fi 487 fi
302 gl_WCHAR_MODULE_INDICATOR([mbrtowc]) 488 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
@@ -307,17 +493,18 @@ AC_DEFUN([gl_INIT],
307 fi 493 fi
308 gl_WCHAR_MODULE_INDICATOR([mbsinit]) 494 gl_WCHAR_MODULE_INDICATOR([mbsinit])
309 gl_FUNC_MBTOWC 495 gl_FUNC_MBTOWC
310 if test $REPLACE_MBTOWC = 1; then 496 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
311 AC_LIBOBJ([mbtowc]) 497 AC_LIBOBJ([mbtowc])
312 gl_PREREQ_MBTOWC 498 gl_PREREQ_MBTOWC
313 fi 499 fi
314 gl_STDLIB_MODULE_INDICATOR([mbtowc]) 500 gl_STDLIB_MODULE_INDICATOR([mbtowc])
315 gl_FUNC_MEMCHR 501 gl_FUNC_MEMCHR
316 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then 502 if test $REPLACE_MEMCHR = 1; then
317 AC_LIBOBJ([memchr]) 503 AC_LIBOBJ([memchr])
318 gl_PREREQ_MEMCHR 504 gl_PREREQ_MEMCHR
319 fi 505 fi
320 gl_STRING_MODULE_INDICATOR([memchr]) 506 gl_STRING_MODULE_INDICATOR([memchr])
507 gl_MINMAX
321 gl_FUNC_MKTIME 508 gl_FUNC_MKTIME
322 if test $REPLACE_MKTIME = 1; then 509 if test $REPLACE_MKTIME = 1; then
323 AC_LIBOBJ([mktime]) 510 AC_LIBOBJ([mktime])
@@ -325,7 +512,7 @@ AC_DEFUN([gl_INIT],
325 fi 512 fi
326 gl_TIME_MODULE_INDICATOR([mktime]) 513 gl_TIME_MODULE_INDICATOR([mktime])
327 gl_FUNC_MKTIME_INTERNAL 514 gl_FUNC_MKTIME_INTERNAL
328 if test $REPLACE_MKTIME = 1; then 515 if test $WANT_MKTIME_INTERNAL = 1; then
329 AC_LIBOBJ([mktime]) 516 AC_LIBOBJ([mktime])
330 gl_PREREQ_MKTIME 517 gl_PREREQ_MKTIME
331 fi 518 fi
@@ -334,55 +521,122 @@ AC_DEFUN([gl_INIT],
334 AC_LIBOBJ([mountlist]) 521 AC_LIBOBJ([mountlist])
335 gl_PREREQ_MOUNTLIST_EXTRA 522 gl_PREREQ_MOUNTLIST_EXTRA
336 fi 523 fi
337 gl_MSVC_INVAL 524 AC_REQUIRE([gl_MSVC_INVAL])
338 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 525 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
339 AC_LIBOBJ([msvc-inval]) 526 AC_LIBOBJ([msvc-inval])
340 fi 527 fi
341 gl_MSVC_NOTHROW 528 AC_REQUIRE([gl_MSVC_NOTHROW])
342 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 529 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
343 AC_LIBOBJ([msvc-nothrow]) 530 AC_LIBOBJ([msvc-nothrow])
344 fi 531 fi
532 gl_MODULE_INDICATOR([msvc-nothrow])
345 gl_MULTIARCH 533 gl_MULTIARCH
346 gl_HEADER_NETDB 534 gl_NETDB_H
535 gl_NETDB_H_REQUIRE_DEFAULTS
347 gl_HEADER_NETINET_IN 536 gl_HEADER_NETINET_IN
348 AC_PROG_MKDIR_P 537 AC_PROG_MKDIR_P
349 gl_FUNC_NL_LANGINFO 538 gl_FUNC_NL_LANGINFO
350 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 539 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
351 AC_LIBOBJ([nl_langinfo]) 540 AC_LIBOBJ([nl_langinfo])
352 fi 541 fi
542 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
543 AC_LIBOBJ([nl_langinfo-lock])
544 gl_PREREQ_NL_LANGINFO_LOCK
545 fi
353 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) 546 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
354 gl_FUNC_READ 547 gl_FUNC_OPEN
355 if test $REPLACE_READ = 1; then 548 if test $REPLACE_OPEN = 1; then
356 AC_LIBOBJ([read]) 549 AC_LIBOBJ([open])
357 gl_PREREQ_READ 550 gl_PREREQ_OPEN
551 fi
552 gl_FCNTL_MODULE_INDICATOR([open])
553 gl_PATHMAX
554 gl_FUNC_REALLOC_GNU
555 if test $REPLACE_REALLOC = 1; then
556 AC_LIBOBJ([realloc])
557 fi
558 gl_FUNC_REALLOC_POSIX
559 if test $REPLACE_REALLOC = 1; then
560 AC_LIBOBJ([realloc])
561 fi
562 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
563 gl_FUNC_REALLOCARRAY
564 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
565 AC_LIBOBJ([reallocarray])
566 gl_PREREQ_REALLOCARRAY
358 fi 567 fi
359 gl_UNISTD_MODULE_INDICATOR([read]) 568 gl_MODULE_INDICATOR([reallocarray])
569 gl_STDLIB_MODULE_INDICATOR([reallocarray])
360 gl_REGEX 570 gl_REGEX
361 if test $ac_use_included_regex = yes; then 571 if test $ac_use_included_regex = yes; then
362 AC_LIBOBJ([regex]) 572 AC_LIBOBJ([regex])
363 gl_PREREQ_REGEX 573 gl_PREREQ_REGEX
364 fi 574 fi
365 gl_PREREQ_SAFE_READ
366 gl_SERVENT 575 gl_SERVENT
367 gl_FUNC_SETENV 576 gl_FUNC_SETENV
368 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 577 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
369 AC_LIBOBJ([setenv]) 578 AC_LIBOBJ([setenv])
370 fi 579 fi
371 gl_STDLIB_MODULE_INDICATOR([setenv]) 580 gl_STDLIB_MODULE_INDICATOR([setenv])
581 gl_FUNC_SETLOCALE_NULL
582 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
583 AC_LIBOBJ([setlocale-lock])
584 gl_PREREQ_SETLOCALE_LOCK
585 fi
586 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
372 gl_SIZE_MAX 587 gl_SIZE_MAX
373 gl_FUNC_SNPRINTF 588 gl_FUNC_SNPRINTF
374 gl_STDIO_MODULE_INDICATOR([snprintf]) 589 gl_STDIO_MODULE_INDICATOR([snprintf])
375 gl_MODULE_INDICATOR([snprintf]) 590 gl_MODULE_INDICATOR([snprintf])
376 gl_SOCKETLIB 591 AC_REQUIRE([gl_SOCKETLIB])
377 gl_SOCKETS 592 AC_REQUIRE([gl_SOCKETS])
378 gl_TYPE_SOCKLEN_T 593 gl_TYPE_SOCKLEN_T
379 gt_TYPE_SSIZE_T 594 gt_TYPE_SSIZE_T
595 gl_FUNC_STAT
596 if test $REPLACE_STAT = 1; then
597 AC_LIBOBJ([stat])
598 case "$host_os" in
599 mingw*)
600 AC_LIBOBJ([stat-w32])
601 ;;
602 esac
603 gl_PREREQ_STAT
604 fi
605 gl_SYS_STAT_MODULE_INDICATOR([stat])
606 gl_STAT_TIME
607 gl_STAT_BIRTHTIME
380 gl_STDALIGN_H 608 gl_STDALIGN_H
381 AM_STDBOOL_H 609 AM_STDBOOL_H
382 gl_STDDEF_H 610 gl_STDDEF_H
611 gl_STDDEF_H_REQUIRE_DEFAULTS
383 gl_STDINT_H 612 gl_STDINT_H
384 gl_STDIO_H 613 gl_STDIO_H
614 gl_STDIO_H_REQUIRE_DEFAULTS
615 dnl No need to create extra modules for these functions. Everyone who uses
616 dnl <stdio.h> likely needs them.
617 gl_STDIO_MODULE_INDICATOR([fscanf])
618 gl_MODULE_INDICATOR([fscanf])
619 gl_STDIO_MODULE_INDICATOR([scanf])
620 gl_MODULE_INDICATOR([scanf])
621 gl_STDIO_MODULE_INDICATOR([fgetc])
622 gl_STDIO_MODULE_INDICATOR([getc])
623 gl_STDIO_MODULE_INDICATOR([getchar])
624 gl_STDIO_MODULE_INDICATOR([fgets])
625 gl_STDIO_MODULE_INDICATOR([fread])
626 dnl No need to create extra modules for these functions. Everyone who uses
627 dnl <stdio.h> likely needs them.
628 gl_STDIO_MODULE_INDICATOR([fprintf])
629 gl_STDIO_MODULE_INDICATOR([printf])
630 gl_STDIO_MODULE_INDICATOR([vfprintf])
631 gl_STDIO_MODULE_INDICATOR([vprintf])
632 gl_STDIO_MODULE_INDICATOR([fputc])
633 gl_STDIO_MODULE_INDICATOR([putc])
634 gl_STDIO_MODULE_INDICATOR([putchar])
635 gl_STDIO_MODULE_INDICATOR([fputs])
636 gl_STDIO_MODULE_INDICATOR([puts])
637 gl_STDIO_MODULE_INDICATOR([fwrite])
385 gl_STDLIB_H 638 gl_STDLIB_H
639 gl_STDLIB_H_REQUIRE_DEFAULTS
386 gl_STRCASE 640 gl_STRCASE
387 if test $HAVE_STRCASECMP = 0; then 641 if test $HAVE_STRCASECMP = 0; then
388 AC_LIBOBJ([strcasecmp]) 642 AC_LIBOBJ([strcasecmp])
@@ -415,19 +669,10 @@ AC_DEFUN([gl_INIT],
415 AC_LIBOBJ([strerror-override]) 669 AC_LIBOBJ([strerror-override])
416 gl_PREREQ_SYS_H_WINSOCK2 670 gl_PREREQ_SYS_H_WINSOCK2
417 fi 671 fi
418 gl_HEADER_STRING_H 672 gl_STRING_H
419 gl_HEADER_STRINGS_H 673 gl_STRING_H_REQUIRE_DEFAULTS
420 gl_FUNC_STRNDUP 674 gl_STRINGS_H
421 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then 675 gl_STRINGS_H_REQUIRE_DEFAULTS
422 AC_LIBOBJ([strndup])
423 fi
424 gl_STRING_MODULE_INDICATOR([strndup])
425 gl_FUNC_STRNLEN
426 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
427 AC_LIBOBJ([strnlen])
428 gl_PREREQ_STRNLEN
429 fi
430 gl_STRING_MODULE_INDICATOR([strnlen])
431 gl_FUNC_STRSEP 676 gl_FUNC_STRSEP
432 if test $HAVE_STRSEP = 0; then 677 if test $HAVE_STRSEP = 0; then
433 AC_LIBOBJ([strsep]) 678 AC_LIBOBJ([strsep])
@@ -439,14 +684,21 @@ AC_DEFUN([gl_INIT],
439 AC_LIBOBJ([strstr]) 684 AC_LIBOBJ([strstr])
440 fi 685 fi
441 gl_STRING_MODULE_INDICATOR([strstr]) 686 gl_STRING_MODULE_INDICATOR([strstr])
442 gl_HEADER_SYS_SOCKET 687 gl_SYS_SOCKET_H
688 gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
689 AC_PROG_MKDIR_P
690 gl_SYS_STAT_H
691 gl_SYS_STAT_H_REQUIRE_DEFAULTS
443 AC_PROG_MKDIR_P 692 AC_PROG_MKDIR_P
444 gl_SYS_TYPES_H 693 gl_SYS_TYPES_H
694 gl_SYS_TYPES_H_REQUIRE_DEFAULTS
445 AC_PROG_MKDIR_P 695 AC_PROG_MKDIR_P
446 gl_HEADER_SYS_UIO 696 gl_SYS_UIO_H
697 gl_SYS_UIO_H_REQUIRE_DEFAULTS
447 AC_PROG_MKDIR_P 698 AC_PROG_MKDIR_P
448 gl_THREADLIB 699 AC_REQUIRE([gl_THREADLIB])
449 gl_HEADER_TIME_H 700 gl_TIME_H
701 gl_TIME_H_REQUIRE_DEFAULTS
450 gl_TIME_R 702 gl_TIME_R
451 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then 703 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
452 AC_LIBOBJ([time_r]) 704 AC_LIBOBJ([time_r])
@@ -460,12 +712,15 @@ AC_DEFUN([gl_INIT],
460 fi 712 fi
461 gl_TIME_MODULE_INDICATOR([timegm]) 713 gl_TIME_MODULE_INDICATOR([timegm])
462 gl_UNISTD_H 714 gl_UNISTD_H
715 gl_UNISTD_H_REQUIRE_DEFAULTS
716 gl_FUNC_GLIBC_UNLOCKED_IO
463 gl_FUNC_UNSETENV 717 gl_FUNC_UNSETENV
464 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 718 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
465 AC_LIBOBJ([unsetenv]) 719 AC_LIBOBJ([unsetenv])
466 gl_PREREQ_UNSETENV 720 gl_PREREQ_UNSETENV
467 fi 721 fi
468 gl_STDLIB_MODULE_INDICATOR([unsetenv]) 722 gl_STDLIB_MODULE_INDICATOR([unsetenv])
723 AC_REQUIRE([AC_C_RESTRICT])
469 gl_FUNC_VASNPRINTF 724 gl_FUNC_VASNPRINTF
470 gl_FUNC_VASPRINTF 725 gl_FUNC_VASPRINTF
471 gl_STDIO_MODULE_INDICATOR([vasprintf]) 726 gl_STDIO_MODULE_INDICATOR([vasprintf])
@@ -475,6 +730,7 @@ AC_DEFUN([gl_INIT],
475 gl_FUNC_VSNPRINTF 730 gl_FUNC_VSNPRINTF
476 gl_STDIO_MODULE_INDICATOR([vsnprintf]) 731 gl_STDIO_MODULE_INDICATOR([vsnprintf])
477 gl_WCHAR_H 732 gl_WCHAR_H
733 gl_WCHAR_H_REQUIRE_DEFAULTS
478 gl_FUNC_WCRTOMB 734 gl_FUNC_WCRTOMB
479 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 735 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
480 AC_LIBOBJ([wcrtomb]) 736 AC_LIBOBJ([wcrtomb])
@@ -482,9 +738,35 @@ AC_DEFUN([gl_INIT],
482 fi 738 fi
483 gl_WCHAR_MODULE_INDICATOR([wcrtomb]) 739 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
484 gl_WCTYPE_H 740 gl_WCTYPE_H
741 gl_WCTYPE_H_REQUIRE_DEFAULTS
742 AC_REQUIRE([AC_CANONICAL_HOST])
743 case "$host_os" in
744 mingw*)
745 AC_LIBOBJ([windows-mutex])
746 ;;
747 esac
748 AC_REQUIRE([AC_CANONICAL_HOST])
749 case "$host_os" in
750 mingw*)
751 AC_LIBOBJ([windows-once])
752 ;;
753 esac
754 AC_REQUIRE([AC_CANONICAL_HOST])
755 case "$host_os" in
756 mingw*)
757 AC_LIBOBJ([windows-recmutex])
758 ;;
759 esac
760 AC_REQUIRE([AC_CANONICAL_HOST])
761 case "$host_os" in
762 mingw*)
763 AC_LIBOBJ([windows-rwlock])
764 ;;
765 esac
485 gl_XALLOC 766 gl_XALLOC
767 gl_MODULE_INDICATOR([xalloc])
768 gl_MODULE_INDICATOR([xalloc-die])
486 gl_XSIZE 769 gl_XSIZE
487 gl_XSTRNDUP
488 # End of code from modules 770 # End of code from modules
489 m4_ifval(gl_LIBSOURCES_LIST, [ 771 m4_ifval(gl_LIBSOURCES_LIST, [
490 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || 772 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
@@ -497,6 +779,8 @@ AC_DEFUN([gl_INIT],
497 m4_if(m4_sysval, [0], [], 779 m4_if(m4_sysval, [0], [],
498 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 780 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
499 ]) 781 ])
782 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
783 m4_popdef([GL_MACRO_PREFIX])
500 m4_popdef([gl_LIBSOURCES_DIR]) 784 m4_popdef([gl_LIBSOURCES_DIR])
501 m4_popdef([gl_LIBSOURCES_LIST]) 785 m4_popdef([gl_LIBSOURCES_LIST])
502 m4_popdef([AC_LIBSOURCES]) 786 m4_popdef([AC_LIBSOURCES])
@@ -523,6 +807,8 @@ AC_DEFUN([gl_INIT],
523 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) 807 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
524 m4_pushdef([gltests_LIBSOURCES_LIST], []) 808 m4_pushdef([gltests_LIBSOURCES_LIST], [])
525 m4_pushdef([gltests_LIBSOURCES_DIR], []) 809 m4_pushdef([gltests_LIBSOURCES_DIR], [])
810 m4_pushdef([GL_MACRO_PREFIX], [gltests])
811 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
526 gl_COMMON 812 gl_COMMON
527 gl_source_base='tests' 813 gl_source_base='tests'
528changequote(,)dnl 814changequote(,)dnl
@@ -543,6 +829,8 @@ changequote([, ])dnl
543 m4_if(m4_sysval, [0], [], 829 m4_if(m4_sysval, [0], [],
544 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 830 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
545 ]) 831 ])
832 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
833 m4_popdef([GL_MACRO_PREFIX])
546 m4_popdef([gltests_LIBSOURCES_DIR]) 834 m4_popdef([gltests_LIBSOURCES_DIR])
547 m4_popdef([gltests_LIBSOURCES_LIST]) 835 m4_popdef([gltests_LIBSOURCES_LIST])
548 m4_popdef([AC_LIBSOURCES]) 836 m4_popdef([AC_LIBSOURCES])
@@ -626,75 +914,128 @@ AC_DEFUN([gltests_LIBSOURCES], [
626# gnulib-tool and may be removed by future gnulib-tool invocations. 914# gnulib-tool and may be removed by future gnulib-tool invocations.
627AC_DEFUN([gl_FILE_LIST], [ 915AC_DEFUN([gl_FILE_LIST], [
628 build-aux/config.rpath 916 build-aux/config.rpath
629 build-aux/snippet/_Noreturn.h 917 lib/_Noreturn.h
630 build-aux/snippet/arg-nonnull.h 918 lib/af_alg.c
631 build-aux/snippet/c++defs.h 919 lib/af_alg.h
632 build-aux/snippet/warn-on-use.h
633 lib/alloca.in.h 920 lib/alloca.in.h
921 lib/arg-nonnull.h
634 lib/arpa_inet.in.h 922 lib/arpa_inet.in.h
635 lib/asnprintf.c 923 lib/asnprintf.c
636 lib/asprintf.c 924 lib/asprintf.c
925 lib/attribute.h
637 lib/base64.c 926 lib/base64.c
638 lib/base64.h 927 lib/base64.h
639 lib/basename-lgpl.c 928 lib/basename-lgpl.c
929 lib/basename-lgpl.h
640 lib/basename.c 930 lib/basename.c
641 lib/btowc.c 931 lib/btowc.c
642 lib/config.charset 932 lib/byteswap.in.h
933 lib/c++defs.h
934 lib/calloc.c
935 lib/cdefs.h
936 lib/cloexec.c
937 lib/cloexec.h
938 lib/close.c
643 lib/dirname-lgpl.c 939 lib/dirname-lgpl.c
644 lib/dirname.c 940 lib/dirname.c
645 lib/dirname.h 941 lib/dirname.h
646 lib/dosname.h 942 lib/dup2.c
943 lib/dynarray.h
647 lib/errno.in.h 944 lib/errno.in.h
648 lib/error.c 945 lib/error.c
649 lib/error.h 946 lib/error.h
650 lib/exitfail.c 947 lib/exitfail.c
651 lib/exitfail.h 948 lib/exitfail.h
949 lib/fcntl.c
950 lib/fcntl.in.h
652 lib/fd-hook.c 951 lib/fd-hook.c
653 lib/fd-hook.h 952 lib/fd-hook.h
953 lib/fflush.c
954 lib/filename.h
654 lib/float+.h 955 lib/float+.h
655 lib/float.c 956 lib/float.c
656 lib/float.in.h 957 lib/float.in.h
657 lib/floor.c 958 lib/floor.c
658 lib/floorf.c 959 lib/floorf.c
960 lib/fopen.c
961 lib/fpurge.c
962 lib/freading.c
963 lib/freading.h
964 lib/free.c
965 lib/fseek.c
966 lib/fseeko.c
967 lib/fstat.c
659 lib/fsusage.c 968 lib/fsusage.c
660 lib/fsusage.h 969 lib/fsusage.h
661 lib/full-read.c 970 lib/ftell.c
662 lib/full-read.h 971 lib/ftello.c
663 lib/full-write.c
664 lib/gai_strerror.c 972 lib/gai_strerror.c
665 lib/getaddrinfo.c 973 lib/getaddrinfo.c
974 lib/getdelim.c
975 lib/getdtablesize.c
666 lib/gethostname.c 976 lib/gethostname.c
977 lib/getline.c
667 lib/getloadavg.c 978 lib/getloadavg.c
979 lib/getopt-cdefs.in.h
980 lib/getopt-core.h
981 lib/getopt-ext.h
982 lib/getopt-pfx-core.h
983 lib/getopt-pfx-ext.h
668 lib/getopt.c 984 lib/getopt.c
669 lib/getopt.in.h 985 lib/getopt.in.h
670 lib/getopt1.c 986 lib/getopt1.c
671 lib/getopt_int.h 987 lib/getopt_int.h
988 lib/getprogname.c
989 lib/getprogname.h
672 lib/gettext.h 990 lib/gettext.h
991 lib/gl_openssl.h
673 lib/glthread/lock.c 992 lib/glthread/lock.c
674 lib/glthread/lock.h 993 lib/glthread/lock.h
675 lib/glthread/threadlib.c 994 lib/glthread/threadlib.c
995 lib/hard-locale.c
996 lib/hard-locale.h
997 lib/ialloc.c
998 lib/ialloc.h
676 lib/idpriv-droptemp.c 999 lib/idpriv-droptemp.c
677 lib/idpriv.h 1000 lib/idpriv.h
1001 lib/idx.h
678 lib/inet_ntop.c 1002 lib/inet_ntop.c
679 lib/intprops.h 1003 lib/intprops.h
1004 lib/inttypes.in.h
680 lib/itold.c 1005 lib/itold.c
681 lib/langinfo.in.h 1006 lib/langinfo.in.h
1007 lib/lc-charset-dispatch.c
1008 lib/lc-charset-dispatch.h
1009 lib/libc-config.h
1010 lib/limits.in.h
682 lib/localcharset.c 1011 lib/localcharset.c
683 lib/localcharset.h 1012 lib/localcharset.h
684 lib/locale.in.h 1013 lib/locale.in.h
685 lib/localeconv.c 1014 lib/localeconv.c
1015 lib/lseek.c
686 lib/malloc.c 1016 lib/malloc.c
1017 lib/malloc/dynarray-skeleton.c
1018 lib/malloc/dynarray.h
1019 lib/malloc/dynarray_at_failure.c
1020 lib/malloc/dynarray_emplace_enlarge.c
1021 lib/malloc/dynarray_finalize.c
1022 lib/malloc/dynarray_resize.c
1023 lib/malloc/dynarray_resize_clear.c
687 lib/malloca.c 1024 lib/malloca.c
688 lib/malloca.h 1025 lib/malloca.h
689 lib/malloca.valgrind
690 lib/math.c 1026 lib/math.c
691 lib/math.in.h 1027 lib/math.in.h
1028 lib/mbrtowc-impl-utf8.h
1029 lib/mbrtowc-impl.h
692 lib/mbrtowc.c 1030 lib/mbrtowc.c
693 lib/mbsinit.c 1031 lib/mbsinit.c
694 lib/mbtowc-impl.h 1032 lib/mbtowc-impl.h
1033 lib/mbtowc-lock.c
1034 lib/mbtowc-lock.h
695 lib/mbtowc.c 1035 lib/mbtowc.c
696 lib/memchr.c 1036 lib/memchr.c
697 lib/memchr.valgrind 1037 lib/memchr.valgrind
1038 lib/minmax.h
698 lib/mktime-internal.h 1039 lib/mktime-internal.h
699 lib/mktime.c 1040 lib/mktime.c
700 lib/mountlist.c 1041 lib/mountlist.c
@@ -705,33 +1046,43 @@ AC_DEFUN([gl_FILE_LIST], [
705 lib/msvc-nothrow.h 1046 lib/msvc-nothrow.h
706 lib/netdb.in.h 1047 lib/netdb.in.h
707 lib/netinet_in.in.h 1048 lib/netinet_in.in.h
1049 lib/nl_langinfo-lock.c
708 lib/nl_langinfo.c 1050 lib/nl_langinfo.c
1051 lib/open.c
1052 lib/pathmax.h
709 lib/printf-args.c 1053 lib/printf-args.c
710 lib/printf-args.h 1054 lib/printf-args.h
711 lib/printf-parse.c 1055 lib/printf-parse.c
712 lib/printf-parse.h 1056 lib/printf-parse.h
713 lib/read.c 1057 lib/realloc.c
714 lib/ref-add.sin 1058 lib/reallocarray.c
715 lib/ref-del.sin
716 lib/regcomp.c 1059 lib/regcomp.c
717 lib/regex.c 1060 lib/regex.c
718 lib/regex.h 1061 lib/regex.h
719 lib/regex_internal.c 1062 lib/regex_internal.c
720 lib/regex_internal.h 1063 lib/regex_internal.h
721 lib/regexec.c 1064 lib/regexec.c
722 lib/safe-read.c
723 lib/safe-read.h
724 lib/setenv.c 1065 lib/setenv.c
1066 lib/setlocale-lock.c
1067 lib/setlocale_null.c
1068 lib/setlocale_null.h
1069 lib/sha1-stream.c
725 lib/sha1.c 1070 lib/sha1.c
726 lib/sha1.h 1071 lib/sha1.h
727 lib/size_max.h 1072 lib/size_max.h
728 lib/snprintf.c 1073 lib/snprintf.c
729 lib/sockets.c 1074 lib/sockets.c
730 lib/sockets.h 1075 lib/sockets.h
1076 lib/stat-time.c
1077 lib/stat-time.h
1078 lib/stat-w32.c
1079 lib/stat-w32.h
1080 lib/stat.c
731 lib/stdalign.in.h 1081 lib/stdalign.in.h
732 lib/stdbool.in.h 1082 lib/stdbool.in.h
733 lib/stddef.in.h 1083 lib/stddef.in.h
734 lib/stdint.in.h 1084 lib/stdint.in.h
1085 lib/stdio-impl.h
735 lib/stdio.in.h 1086 lib/stdio.in.h
736 lib/stdlib.in.h 1087 lib/stdlib.in.h
737 lib/str-two-way.h 1088 lib/str-two-way.h
@@ -745,12 +1096,12 @@ AC_DEFUN([gl_FILE_LIST], [
745 lib/strings.in.h 1096 lib/strings.in.h
746 lib/stripslash.c 1097 lib/stripslash.c
747 lib/strncasecmp.c 1098 lib/strncasecmp.c
748 lib/strndup.c
749 lib/strnlen.c
750 lib/strsep.c 1099 lib/strsep.c
751 lib/strstr.c 1100 lib/strstr.c
1101 lib/sys-limits.h
752 lib/sys_socket.c 1102 lib/sys_socket.c
753 lib/sys_socket.in.h 1103 lib/sys_socket.in.h
1104 lib/sys_stat.in.h
754 lib/sys_types.in.h 1105 lib/sys_types.in.h
755 lib/sys_uio.in.h 1106 lib/sys_uio.in.h
756 lib/time.in.h 1107 lib/time.in.h
@@ -758,6 +1109,7 @@ AC_DEFUN([gl_FILE_LIST], [
758 lib/timegm.c 1109 lib/timegm.c
759 lib/unistd.c 1110 lib/unistd.c
760 lib/unistd.in.h 1111 lib/unistd.in.h
1112 lib/unlocked-io.h
761 lib/unsetenv.c 1113 lib/unsetenv.c
762 lib/vasnprintf.c 1114 lib/vasnprintf.c
763 lib/vasnprintf.h 1115 lib/vasnprintf.h
@@ -765,27 +1117,41 @@ AC_DEFUN([gl_FILE_LIST], [
765 lib/verify.h 1117 lib/verify.h
766 lib/vsnprintf.c 1118 lib/vsnprintf.c
767 lib/w32sock.h 1119 lib/w32sock.h
1120 lib/warn-on-use.h
768 lib/wchar.in.h 1121 lib/wchar.in.h
769 lib/wcrtomb.c 1122 lib/wcrtomb.c
770 lib/wctype-h.c 1123 lib/wctype-h.c
771 lib/wctype.in.h 1124 lib/wctype.in.h
1125 lib/windows-initguard.h
1126 lib/windows-mutex.c
1127 lib/windows-mutex.h
1128 lib/windows-once.c
1129 lib/windows-once.h
1130 lib/windows-recmutex.c
1131 lib/windows-recmutex.h
1132 lib/windows-rwlock.c
1133 lib/windows-rwlock.h
772 lib/xalloc-die.c 1134 lib/xalloc-die.c
773 lib/xalloc-oversized.h 1135 lib/xalloc-oversized.h
774 lib/xalloc.h 1136 lib/xalloc.h
775 lib/xmalloc.c 1137 lib/xmalloc.c
776 lib/xsize.c 1138 lib/xsize.c
777 lib/xsize.h 1139 lib/xsize.h
778 lib/xstrndup.c
779 lib/xstrndup.h
780 m4/00gnulib.m4 1140 m4/00gnulib.m4
1141 m4/__inline.m4
1142 m4/absolute-header.m4
1143 m4/af_alg.m4
781 m4/alloca.m4 1144 m4/alloca.m4
782 m4/arpa_inet_h.m4 1145 m4/arpa_inet_h.m4
783 m4/base64.m4 1146 m4/base64.m4
784 m4/btowc.m4 1147 m4/btowc.m4
1148 m4/builtin-expect.m4
1149 m4/byteswap.m4
1150 m4/calloc.m4
1151 m4/close.m4
785 m4/codeset.m4 1152 m4/codeset.m4
786 m4/configmake.m4
787 m4/dirname.m4
788 m4/double-slash-root.m4 1153 m4/double-slash-root.m4
1154 m4/dup2.m4
789 m4/eealloc.m4 1155 m4/eealloc.m4
790 m4/environ.m4 1156 m4/environ.m4
791 m4/errno_h.m4 1157 m4/errno_h.m4
@@ -794,37 +1160,50 @@ AC_DEFUN([gl_FILE_LIST], [
794 m4/extensions.m4 1160 m4/extensions.m4
795 m4/extern-inline.m4 1161 m4/extern-inline.m4
796 m4/fcntl-o.m4 1162 m4/fcntl-o.m4
1163 m4/fcntl.m4
1164 m4/fcntl_h.m4
1165 m4/fflush.m4
797 m4/float_h.m4 1166 m4/float_h.m4
798 m4/floorf.m4 1167 m4/floorf.m4
1168 m4/fopen.m4
1169 m4/fpurge.m4
1170 m4/freading.m4
1171 m4/free.m4
1172 m4/fseek.m4
1173 m4/fseeko.m4
1174 m4/fstat.m4
799 m4/fstypename.m4 1175 m4/fstypename.m4
800 m4/fsusage.m4 1176 m4/fsusage.m4
1177 m4/ftell.m4
1178 m4/ftello.m4
801 m4/getaddrinfo.m4 1179 m4/getaddrinfo.m4
1180 m4/getdelim.m4
1181 m4/getdtablesize.m4
802 m4/gethostname.m4 1182 m4/gethostname.m4
1183 m4/getline.m4
803 m4/getloadavg.m4 1184 m4/getloadavg.m4
804 m4/getopt.m4 1185 m4/getopt.m4
1186 m4/getprogname.m4
805 m4/gettext.m4 1187 m4/gettext.m4
806 m4/glibc2.m4 1188 m4/gl-openssl.m4
807 m4/glibc21.m4
808 m4/gnulib-common.m4 1189 m4/gnulib-common.m4
1190 m4/host-cpu-c-abi.m4
809 m4/hostent.m4 1191 m4/hostent.m4
810 m4/iconv.m4 1192 m4/iconv.m4
811 m4/idpriv.m4 1193 m4/idpriv.m4
812 m4/include_next.m4 1194 m4/include_next.m4
813 m4/inet_ntop.m4 1195 m4/inet_ntop.m4
814 m4/intdiv0.m4 1196 m4/intl-thread-locale.m4
815 m4/intl.m4
816 m4/intldir.m4
817 m4/intlmacosx.m4 1197 m4/intlmacosx.m4
818 m4/intmax.m4
819 m4/intmax_t.m4 1198 m4/intmax_t.m4
820 m4/inttypes-pri.m4 1199 m4/inttypes.m4
821 m4/inttypes_h.m4 1200 m4/inttypes_h.m4
822 m4/langinfo_h.m4 1201 m4/langinfo_h.m4
823 m4/largefile.m4 1202 m4/largefile.m4
824 m4/lcmessage.m4
825 m4/lib-ld.m4 1203 m4/lib-ld.m4
826 m4/lib-link.m4 1204 m4/lib-link.m4
827 m4/lib-prefix.m4 1205 m4/lib-prefix.m4
1206 m4/limits-h.m4
828 m4/localcharset.m4 1207 m4/localcharset.m4
829 m4/locale-fr.m4 1208 m4/locale-fr.m4
830 m4/locale-ja.m4 1209 m4/locale-ja.m4
@@ -832,8 +1211,7 @@ AC_DEFUN([gl_FILE_LIST], [
832 m4/locale_h.m4 1211 m4/locale_h.m4
833 m4/localeconv.m4 1212 m4/localeconv.m4
834 m4/lock.m4 1213 m4/lock.m4
835 m4/longlong.m4 1214 m4/lseek.m4
836 m4/ls-mntd-fs.m4
837 m4/malloc.m4 1215 m4/malloc.m4
838 m4/malloca.m4 1216 m4/malloca.m4
839 m4/math_h.m4 1217 m4/math_h.m4
@@ -842,8 +1220,10 @@ AC_DEFUN([gl_FILE_LIST], [
842 m4/mbstate_t.m4 1220 m4/mbstate_t.m4
843 m4/mbtowc.m4 1221 m4/mbtowc.m4
844 m4/memchr.m4 1222 m4/memchr.m4
1223 m4/minmax.m4
845 m4/mktime.m4 1224 m4/mktime.m4
846 m4/mmap-anon.m4 1225 m4/mmap-anon.m4
1226 m4/mode_t.m4
847 m4/mountlist.m4 1227 m4/mountlist.m4
848 m4/msvc-inval.m4 1228 m4/msvc-inval.m4
849 m4/msvc-nothrow.m4 1229 m4/msvc-nothrow.m4
@@ -854,16 +1234,21 @@ AC_DEFUN([gl_FILE_LIST], [
854 m4/nls.m4 1234 m4/nls.m4
855 m4/nocrash.m4 1235 m4/nocrash.m4
856 m4/off_t.m4 1236 m4/off_t.m4
857 m4/onceonly.m4 1237 m4/open-cloexec.m4
1238 m4/open-slash.m4
1239 m4/open.m4
1240 m4/pathmax.m4
1241 m4/pid_t.m4
858 m4/po.m4 1242 m4/po.m4
859 m4/printf-posix.m4
860 m4/printf.m4 1243 m4/printf.m4
861 m4/progtest.m4 1244 m4/progtest.m4
862 m4/read.m4 1245 m4/pthread_rwlock_rdlock.m4
1246 m4/realloc.m4
1247 m4/reallocarray.m4
863 m4/regex.m4 1248 m4/regex.m4
864 m4/safe-read.m4
865 m4/servent.m4 1249 m4/servent.m4
866 m4/setenv.m4 1250 m4/setenv.m4
1251 m4/setlocale_null.m4
867 m4/sha1.m4 1252 m4/sha1.m4
868 m4/size_max.m4 1253 m4/size_max.m4
869 m4/snprintf.m4 1254 m4/snprintf.m4
@@ -872,6 +1257,9 @@ AC_DEFUN([gl_FILE_LIST], [
872 m4/socklen.m4 1257 m4/socklen.m4
873 m4/sockpfaf.m4 1258 m4/sockpfaf.m4
874 m4/ssize_t.m4 1259 m4/ssize_t.m4
1260 m4/stat-time.m4
1261 m4/stat.m4
1262 m4/std-gnu11.m4
875 m4/stdalign.m4 1263 m4/stdalign.m4
876 m4/stdbool.m4 1264 m4/stdbool.m4
877 m4/stddef_h.m4 1265 m4/stddef_h.m4
@@ -884,19 +1272,19 @@ AC_DEFUN([gl_FILE_LIST], [
884 m4/strerror.m4 1272 m4/strerror.m4
885 m4/string_h.m4 1273 m4/string_h.m4
886 m4/strings_h.m4 1274 m4/strings_h.m4
887 m4/strndup.m4
888 m4/strnlen.m4
889 m4/strsep.m4 1275 m4/strsep.m4
890 m4/strstr.m4 1276 m4/strstr.m4
891 m4/sys_socket_h.m4 1277 m4/sys_socket_h.m4
1278 m4/sys_stat_h.m4
892 m4/sys_types_h.m4 1279 m4/sys_types_h.m4
893 m4/sys_uio_h.m4 1280 m4/sys_uio_h.m4
894 m4/threadlib.m4 1281 m4/threadlib.m4
895 m4/time_h.m4 1282 m4/time_h.m4
896 m4/time_r.m4 1283 m4/time_r.m4
897 m4/timegm.m4 1284 m4/timegm.m4
898 m4/uintmax_t.m4 1285 m4/ungetc.m4
899 m4/unistd_h.m4 1286 m4/unistd_h.m4
1287 m4/unlocked-io.m4
900 m4/vasnprintf.m4 1288 m4/vasnprintf.m4
901 m4/vasprintf.m4 1289 m4/vasprintf.m4
902 m4/visibility.m4 1290 m4/visibility.m4
@@ -909,5 +1297,6 @@ AC_DEFUN([gl_FILE_LIST], [
909 m4/wint_t.m4 1297 m4/wint_t.m4
910 m4/xalloc.m4 1298 m4/xalloc.m4
911 m4/xsize.m4 1299 m4/xsize.m4
912 m4/xstrndup.m4 1300 m4/year2038.m4
1301 m4/zzgnulib.m4
913]) 1302])