Merge remote-tracking branch 'origin/stable-2.0'
[bpt/guile.git] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
3 #
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
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
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/>.
16 #
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
21 #
22 # Generated by gnulib-tool.
23 #
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
28 # other built files.
29
30
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
34 AC_DEFUN([gl_EARLY],
35 [
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 AC_REQUIRE([AM_PROG_CC_C_O])
42 # Code from module accept:
43 # Code from module alignof:
44 # Code from module alloca-opt:
45 # Code from module announce-gen:
46 # Code from module arpa_inet:
47 # Code from module autobuild:
48 AB_INIT
49 # Code from module binary-io:
50 # Code from module bind:
51 # Code from module byteswap:
52 # Code from module c-ctype:
53 # Code from module c-strcase:
54 # Code from module c-strcaseeq:
55 # Code from module canonicalize-lgpl:
56 # Code from module ceil:
57 # Code from module chdir:
58 # Code from module close:
59 # Code from module configmake:
60 # Code from module connect:
61 # Code from module dirname-lgpl:
62 # Code from module dosname:
63 # Code from module double-slash-root:
64 # Code from module duplocale:
65 # Code from module environ:
66 # Code from module errno:
67 # Code from module extensions:
68 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
69 # Code from module fcntl-h:
70 # Code from module fd-hook:
71 # Code from module float:
72 # Code from module flock:
73 # Code from module floor:
74 # Code from module fpieee:
75 AC_REQUIRE([gl_FP_IEEE])
76 # Code from module frexp:
77 # Code from module fstat:
78 # Code from module full-read:
79 # Code from module full-write:
80 # Code from module func:
81 # Code from module gendocs:
82 # Code from module getaddrinfo:
83 # Code from module getpeername:
84 # Code from module getsockname:
85 # Code from module getsockopt:
86 # Code from module gettext-h:
87 # Code from module git-version-gen:
88 # Code from module gitlog-to-changelog:
89 # Code from module gnu-web-doc-update:
90 # Code from module gnumakefile:
91 # Code from module gnupload:
92 # Code from module gperf:
93 # Code from module havelib:
94 # Code from module hostent:
95 # Code from module iconv:
96 # Code from module iconv-h:
97 # Code from module iconv_open:
98 # Code from module iconv_open-utf:
99 # Code from module include_next:
100 # Code from module inet_ntop:
101 # Code from module inet_pton:
102 # Code from module inline:
103 # Code from module isinf:
104 # Code from module isnan:
105 # Code from module isnand:
106 # Code from module isnand-nolibm:
107 # Code from module isnanf:
108 # Code from module isnanl:
109 # Code from module largefile:
110 AC_REQUIRE([AC_SYS_LARGEFILE])
111 # Code from module ldexp:
112 # Code from module lib-symbol-versions:
113 # Code from module lib-symbol-visibility:
114 # Code from module libunistring:
115 # Code from module listen:
116 # Code from module localcharset:
117 # Code from module locale:
118 # Code from module log1p:
119 # Code from module lstat:
120 # Code from module maintainer-makefile:
121 # Code from module malloc-gnu:
122 # Code from module malloc-posix:
123 # Code from module malloca:
124 # Code from module math:
125 # Code from module memchr:
126 # Code from module msvc-inval:
127 # Code from module msvc-nothrow:
128 # Code from module multiarch:
129 # Code from module netdb:
130 # Code from module netinet_in:
131 # Code from module nocrash:
132 # Code from module nproc:
133 # Code from module open:
134 # Code from module pathmax:
135 # Code from module pipe2:
136 # Code from module putenv:
137 # Code from module raise:
138 # Code from module read:
139 # Code from module readlink:
140 # Code from module recv:
141 # Code from module recvfrom:
142 # Code from module rename:
143 # Code from module rmdir:
144 # Code from module safe-read:
145 # Code from module safe-write:
146 # Code from module same-inode:
147 # Code from module send:
148 # Code from module sendto:
149 # Code from module servent:
150 # Code from module setsockopt:
151 # Code from module shutdown:
152 # Code from module signal-h:
153 # Code from module size_max:
154 # Code from module snippet/_Noreturn:
155 # Code from module snippet/arg-nonnull:
156 # Code from module snippet/c++defs:
157 # Code from module snippet/unused-parameter:
158 # Code from module snippet/warn-on-use:
159 # Code from module snprintf:
160 # Code from module socket:
161 # Code from module socketlib:
162 # Code from module sockets:
163 # Code from module socklen:
164 # Code from module ssize_t:
165 # Code from module stat:
166 # Code from module stat-time:
167 # Code from module stdalign:
168 # Code from module stdbool:
169 # Code from module stddef:
170 # Code from module stdint:
171 # Code from module stdio:
172 # Code from module stdlib:
173 # Code from module strftime:
174 # Code from module striconveh:
175 # Code from module string:
176 # Code from module sys_file:
177 # Code from module sys_socket:
178 # Code from module sys_stat:
179 # Code from module sys_time:
180 # Code from module sys_types:
181 # Code from module sys_uio:
182 # Code from module time:
183 # Code from module time_r:
184 # Code from module trunc:
185 # Code from module unistd:
186 # Code from module unistr/base:
187 # Code from module unistr/u8-mbtouc:
188 # Code from module unistr/u8-mbtouc-unsafe:
189 # Code from module unistr/u8-mbtoucr:
190 # Code from module unistr/u8-prev:
191 # Code from module unistr/u8-uctomb:
192 # Code from module unitypes:
193 # Code from module useless-if-before-free:
194 # Code from module vasnprintf:
195 # Code from module vc-list-files:
196 # Code from module verify:
197 # Code from module vsnprintf:
198 # Code from module warnings:
199 # Code from module wchar:
200 # Code from module write:
201 # Code from module xsize:
202 ])
203
204 # This macro should be invoked from ./configure.ac, in the section
205 # "Check for header files, types and library functions".
206 AC_DEFUN([gl_INIT],
207 [
208 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
209 gl_cond_libtool=true
210 gl_m4_base='m4'
211 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
212 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
213 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
214 m4_pushdef([gl_LIBSOURCES_LIST], [])
215 m4_pushdef([gl_LIBSOURCES_DIR], [])
216 gl_COMMON
217 gl_source_base='lib'
218 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
219 if test "$ac_cv_header_winsock2_h" = yes; then
220 AC_LIBOBJ([accept])
221 fi
222 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
223 gl_FUNC_ALLOCA
224 gl_HEADER_ARPA_INET
225 AC_PROG_MKDIR_P
226 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
227 if test "$ac_cv_header_winsock2_h" = yes; then
228 AC_LIBOBJ([bind])
229 fi
230 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
231 gl_BYTESWAP
232 gl_CANONICALIZE_LGPL
233 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
234 AC_LIBOBJ([canonicalize-lgpl])
235 fi
236 gl_MODULE_INDICATOR([canonicalize-lgpl])
237 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
238 gl_STDLIB_MODULE_INDICATOR([realpath])
239 gl_FUNC_CEIL
240 if test $REPLACE_CEIL = 1; then
241 AC_LIBOBJ([ceil])
242 fi
243 gl_MATH_MODULE_INDICATOR([ceil])
244 gl_UNISTD_MODULE_INDICATOR([chdir])
245 gl_FUNC_CLOSE
246 if test $REPLACE_CLOSE = 1; then
247 AC_LIBOBJ([close])
248 fi
249 gl_UNISTD_MODULE_INDICATOR([close])
250 gl_CONFIGMAKE_PREP
251 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
252 if test "$ac_cv_header_winsock2_h" = yes; then
253 AC_LIBOBJ([connect])
254 fi
255 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
256 gl_DIRNAME_LGPL
257 gl_DOUBLE_SLASH_ROOT
258 gl_FUNC_DUPLOCALE
259 if test $REPLACE_DUPLOCALE = 1; then
260 AC_LIBOBJ([duplocale])
261 gl_PREREQ_DUPLOCALE
262 fi
263 gl_LOCALE_MODULE_INDICATOR([duplocale])
264 gl_ENVIRON
265 gl_UNISTD_MODULE_INDICATOR([environ])
266 gl_HEADER_ERRNO_H
267 gl_FCNTL_H
268 gl_FLOAT_H
269 if test $REPLACE_FLOAT_LDBL = 1; then
270 AC_LIBOBJ([float])
271 fi
272 if test $REPLACE_ITOLD = 1; then
273 AC_LIBOBJ([itold])
274 fi
275 gl_FUNC_FLOCK
276 if test $HAVE_FLOCK = 0; then
277 AC_LIBOBJ([flock])
278 gl_PREREQ_FLOCK
279 fi
280 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
281 gl_FUNC_FLOOR
282 if test $REPLACE_FLOOR = 1; then
283 AC_LIBOBJ([floor])
284 fi
285 gl_MATH_MODULE_INDICATOR([floor])
286 gl_FUNC_FREXP
287 if test $gl_func_frexp != yes; then
288 AC_LIBOBJ([frexp])
289 fi
290 gl_MATH_MODULE_INDICATOR([frexp])
291 gl_FUNC_FSTAT
292 if test $REPLACE_FSTAT = 1; then
293 AC_LIBOBJ([fstat])
294 gl_PREREQ_FSTAT
295 fi
296 gl_SYS_STAT_MODULE_INDICATOR([fstat])
297 gl_FUNC
298 gl_GETADDRINFO
299 if test $HAVE_GETADDRINFO = 0; then
300 AC_LIBOBJ([getaddrinfo])
301 fi
302 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
303 AC_LIBOBJ([gai_strerror])
304 fi
305 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
306 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
307 if test "$ac_cv_header_winsock2_h" = yes; then
308 AC_LIBOBJ([getpeername])
309 fi
310 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
311 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
312 if test "$ac_cv_header_winsock2_h" = yes; then
313 AC_LIBOBJ([getsockname])
314 fi
315 gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
316 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
317 if test "$ac_cv_header_winsock2_h" = yes; then
318 AC_LIBOBJ([getsockopt])
319 fi
320 gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
321 AC_SUBST([LIBINTL])
322 AC_SUBST([LTLIBINTL])
323 # Autoconf 2.61a.99 and earlier don't support linking a file only
324 # in VPATH builds. But since GNUmakefile is for maintainer use
325 # only, it does not matter if we skip the link with older autoconf.
326 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
327 # builds, so use a shell variable to bypass this.
328 GNUmakefile=GNUmakefile
329 m4_if(m4_version_compare([2.61a.100],
330 m4_defn([m4_PACKAGE_VERSION])), [1], [],
331 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
332 [GNUmakefile=$GNUmakefile])])
333 gl_HOSTENT
334 AM_ICONV
335 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
336 [gl_ICONV_MODULE_INDICATOR([iconv])])
337 gl_ICONV_H
338 gl_FUNC_ICONV_OPEN
339 if test $REPLACE_ICONV_OPEN = 1; then
340 AC_LIBOBJ([iconv_open])
341 fi
342 if test $REPLACE_ICONV = 1; then
343 AC_LIBOBJ([iconv])
344 AC_LIBOBJ([iconv_close])
345 fi
346 gl_FUNC_ICONV_OPEN_UTF
347 gl_FUNC_INET_NTOP
348 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
349 AC_LIBOBJ([inet_ntop])
350 gl_PREREQ_INET_NTOP
351 fi
352 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
353 gl_FUNC_INET_PTON
354 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
355 AC_LIBOBJ([inet_pton])
356 gl_PREREQ_INET_PTON
357 fi
358 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
359 gl_INLINE
360 gl_ISINF
361 if test $REPLACE_ISINF = 1; then
362 AC_LIBOBJ([isinf])
363 fi
364 gl_MATH_MODULE_INDICATOR([isinf])
365 gl_ISNAN
366 gl_MATH_MODULE_INDICATOR([isnan])
367 gl_FUNC_ISNAND
368 m4_ifdef([gl_ISNAN], [
369 AC_REQUIRE([gl_ISNAN])
370 ])
371 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
372 AC_LIBOBJ([isnand])
373 gl_PREREQ_ISNAND
374 fi
375 gl_MATH_MODULE_INDICATOR([isnand])
376 gl_FUNC_ISNAND_NO_LIBM
377 if test $gl_func_isnand_no_libm != yes; then
378 AC_LIBOBJ([isnand])
379 gl_PREREQ_ISNAND
380 fi
381 gl_FUNC_ISNANF
382 m4_ifdef([gl_ISNAN], [
383 AC_REQUIRE([gl_ISNAN])
384 ])
385 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
386 AC_LIBOBJ([isnanf])
387 gl_PREREQ_ISNANF
388 fi
389 gl_MATH_MODULE_INDICATOR([isnanf])
390 gl_FUNC_ISNANL
391 m4_ifdef([gl_ISNAN], [
392 AC_REQUIRE([gl_ISNAN])
393 ])
394 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
395 AC_LIBOBJ([isnanl])
396 gl_PREREQ_ISNANL
397 fi
398 gl_MATH_MODULE_INDICATOR([isnanl])
399 gl_FUNC_LDEXP
400 gl_LD_VERSION_SCRIPT
401 gl_VISIBILITY
402 gl_LIBUNISTRING
403 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
404 if test "$ac_cv_header_winsock2_h" = yes; then
405 AC_LIBOBJ([listen])
406 fi
407 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
408 gl_LOCALCHARSET
409 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
410 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
411 gl_LOCALE_H
412 gl_COMMON_DOUBLE_MATHFUNC([log1p])
413 gl_FUNC_LSTAT
414 if test $REPLACE_LSTAT = 1; then
415 AC_LIBOBJ([lstat])
416 gl_PREREQ_LSTAT
417 fi
418 gl_SYS_STAT_MODULE_INDICATOR([lstat])
419 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
420 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
421 gl_FUNC_MALLOC_GNU
422 if test $REPLACE_MALLOC = 1; then
423 AC_LIBOBJ([malloc])
424 fi
425 gl_MODULE_INDICATOR([malloc-gnu])
426 gl_FUNC_MALLOC_POSIX
427 if test $REPLACE_MALLOC = 1; then
428 AC_LIBOBJ([malloc])
429 fi
430 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
431 gl_MALLOCA
432 gl_MATH_H
433 gl_FUNC_MEMCHR
434 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
435 AC_LIBOBJ([memchr])
436 gl_PREREQ_MEMCHR
437 fi
438 gl_STRING_MODULE_INDICATOR([memchr])
439 gl_MSVC_INVAL
440 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
441 AC_LIBOBJ([msvc-inval])
442 fi
443 gl_MSVC_NOTHROW
444 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
445 AC_LIBOBJ([msvc-nothrow])
446 fi
447 gl_MULTIARCH
448 gl_HEADER_NETDB
449 gl_HEADER_NETINET_IN
450 AC_PROG_MKDIR_P
451 gl_NPROC
452 gl_FUNC_OPEN
453 if test $REPLACE_OPEN = 1; then
454 AC_LIBOBJ([open])
455 gl_PREREQ_OPEN
456 fi
457 gl_FCNTL_MODULE_INDICATOR([open])
458 gl_PATHMAX
459 gl_FUNC_PIPE2
460 gl_UNISTD_MODULE_INDICATOR([pipe2])
461 gl_FUNC_PUTENV
462 if test $REPLACE_PUTENV = 1; then
463 AC_LIBOBJ([putenv])
464 fi
465 gl_STDLIB_MODULE_INDICATOR([putenv])
466 gl_FUNC_RAISE
467 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
468 AC_LIBOBJ([raise])
469 gl_PREREQ_RAISE
470 fi
471 gl_SIGNAL_MODULE_INDICATOR([raise])
472 gl_FUNC_READ
473 if test $REPLACE_READ = 1; then
474 AC_LIBOBJ([read])
475 gl_PREREQ_READ
476 fi
477 gl_UNISTD_MODULE_INDICATOR([read])
478 gl_FUNC_READLINK
479 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
480 AC_LIBOBJ([readlink])
481 gl_PREREQ_READLINK
482 fi
483 gl_UNISTD_MODULE_INDICATOR([readlink])
484 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
485 if test "$ac_cv_header_winsock2_h" = yes; then
486 AC_LIBOBJ([recv])
487 fi
488 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
489 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
490 if test "$ac_cv_header_winsock2_h" = yes; then
491 AC_LIBOBJ([recvfrom])
492 fi
493 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
494 gl_FUNC_RENAME
495 if test $REPLACE_RENAME = 1; then
496 AC_LIBOBJ([rename])
497 fi
498 gl_STDIO_MODULE_INDICATOR([rename])
499 gl_FUNC_RMDIR
500 if test $REPLACE_RMDIR = 1; then
501 AC_LIBOBJ([rmdir])
502 fi
503 gl_UNISTD_MODULE_INDICATOR([rmdir])
504 gl_PREREQ_SAFE_READ
505 gl_PREREQ_SAFE_WRITE
506 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
507 if test "$ac_cv_header_winsock2_h" = yes; then
508 AC_LIBOBJ([send])
509 fi
510 gl_SYS_SOCKET_MODULE_INDICATOR([send])
511 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
512 if test "$ac_cv_header_winsock2_h" = yes; then
513 AC_LIBOBJ([sendto])
514 fi
515 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
516 gl_SERVENT
517 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
518 if test "$ac_cv_header_winsock2_h" = yes; then
519 AC_LIBOBJ([setsockopt])
520 fi
521 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
522 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
523 if test "$ac_cv_header_winsock2_h" = yes; then
524 AC_LIBOBJ([shutdown])
525 fi
526 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
527 gl_SIGNAL_H
528 gl_SIZE_MAX
529 gl_FUNC_SNPRINTF
530 gl_STDIO_MODULE_INDICATOR([snprintf])
531 gl_MODULE_INDICATOR([snprintf])
532 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
533 if test "$ac_cv_header_winsock2_h" = yes; then
534 AC_LIBOBJ([socket])
535 fi
536 # When this module is used, sockets may actually occur as file descriptors,
537 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
538 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
539 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
540 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
541 if test "$ac_cv_header_winsock2_h" = yes; then
542 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
543 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
544 fi
545 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
546 gl_SOCKETLIB
547 gl_SOCKETS
548 gl_TYPE_SOCKLEN_T
549 gt_TYPE_SSIZE_T
550 gl_FUNC_STAT
551 if test $REPLACE_STAT = 1; then
552 AC_LIBOBJ([stat])
553 gl_PREREQ_STAT
554 fi
555 gl_SYS_STAT_MODULE_INDICATOR([stat])
556 gl_STAT_TIME
557 gl_STAT_BIRTHTIME
558 gl_STDALIGN_H
559 AM_STDBOOL_H
560 gl_STDDEF_H
561 gl_STDINT_H
562 gl_STDIO_H
563 gl_STDLIB_H
564 gl_FUNC_GNU_STRFTIME
565 if test $gl_cond_libtool = false; then
566 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
567 gl_libdeps="$gl_libdeps $LIBICONV"
568 fi
569 gl_HEADER_STRING_H
570 gl_HEADER_SYS_FILE_H
571 AC_PROG_MKDIR_P
572 gl_HEADER_SYS_SOCKET
573 AC_PROG_MKDIR_P
574 gl_HEADER_SYS_STAT_H
575 AC_PROG_MKDIR_P
576 gl_HEADER_SYS_TIME_H
577 AC_PROG_MKDIR_P
578 gl_SYS_TYPES_H
579 AC_PROG_MKDIR_P
580 gl_HEADER_SYS_UIO
581 AC_PROG_MKDIR_P
582 gl_HEADER_TIME_H
583 gl_TIME_R
584 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
585 AC_LIBOBJ([time_r])
586 gl_PREREQ_TIME_R
587 fi
588 gl_TIME_MODULE_INDICATOR([time_r])
589 gl_FUNC_TRUNC
590 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
591 AC_LIBOBJ([trunc])
592 fi
593 gl_MATH_MODULE_INDICATOR([trunc])
594 gl_UNISTD_H
595 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
596 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
597 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
598 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
599 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
600 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
601 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
602 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
603 gl_MODULE_INDICATOR([unistr/u8-uctomb])
604 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
605 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
606 gl_FUNC_VASNPRINTF
607 gl_FUNC_VSNPRINTF
608 gl_STDIO_MODULE_INDICATOR([vsnprintf])
609 AC_SUBST([WARN_CFLAGS])
610 gl_WCHAR_H
611 gl_FUNC_WRITE
612 if test $REPLACE_WRITE = 1; then
613 AC_LIBOBJ([write])
614 gl_PREREQ_WRITE
615 fi
616 gl_UNISTD_MODULE_INDICATOR([write])
617 gl_XSIZE
618 # End of code from modules
619 m4_ifval(gl_LIBSOURCES_LIST, [
620 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
621 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
622 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
623 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
624 exit 1
625 fi
626 done])dnl
627 m4_if(m4_sysval, [0], [],
628 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
629 ])
630 m4_popdef([gl_LIBSOURCES_DIR])
631 m4_popdef([gl_LIBSOURCES_LIST])
632 m4_popdef([AC_LIBSOURCES])
633 m4_popdef([AC_REPLACE_FUNCS])
634 m4_popdef([AC_LIBOBJ])
635 AC_CONFIG_COMMANDS_PRE([
636 gl_libobjs=
637 gl_ltlibobjs=
638 if test -n "$gl_LIBOBJS"; then
639 # Remove the extension.
640 sed_drop_objext='s/\.o$//;s/\.obj$//'
641 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
642 gl_libobjs="$gl_libobjs $i.$ac_objext"
643 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
644 done
645 fi
646 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
647 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
648 ])
649 gltests_libdeps=
650 gltests_ltlibdeps=
651 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
652 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
653 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
654 m4_pushdef([gltests_LIBSOURCES_LIST], [])
655 m4_pushdef([gltests_LIBSOURCES_DIR], [])
656 gl_COMMON
657 gl_source_base='tests'
658 changequote(,)dnl
659 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
660 changequote([, ])dnl
661 AC_SUBST([gltests_WITNESS])
662 gl_module_indicator_condition=$gltests_WITNESS
663 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
664 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
665 m4_ifval(gltests_LIBSOURCES_LIST, [
666 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
667 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
668 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
669 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
670 exit 1
671 fi
672 done])dnl
673 m4_if(m4_sysval, [0], [],
674 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
675 ])
676 m4_popdef([gltests_LIBSOURCES_DIR])
677 m4_popdef([gltests_LIBSOURCES_LIST])
678 m4_popdef([AC_LIBSOURCES])
679 m4_popdef([AC_REPLACE_FUNCS])
680 m4_popdef([AC_LIBOBJ])
681 AC_CONFIG_COMMANDS_PRE([
682 gltests_libobjs=
683 gltests_ltlibobjs=
684 if test -n "$gltests_LIBOBJS"; then
685 # Remove the extension.
686 sed_drop_objext='s/\.o$//;s/\.obj$//'
687 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
688 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
689 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
690 done
691 fi
692 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
693 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
694 ])
695 ])
696
697 # Like AC_LIBOBJ, except that the module name goes
698 # into gl_LIBOBJS instead of into LIBOBJS.
699 AC_DEFUN([gl_LIBOBJ], [
700 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
701 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
702 ])
703
704 # Like AC_REPLACE_FUNCS, except that the module name goes
705 # into gl_LIBOBJS instead of into LIBOBJS.
706 AC_DEFUN([gl_REPLACE_FUNCS], [
707 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
708 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
709 ])
710
711 # Like AC_LIBSOURCES, except the directory where the source file is
712 # expected is derived from the gnulib-tool parameterization,
713 # and alloca is special cased (for the alloca-opt module).
714 # We could also entirely rely on EXTRA_lib..._SOURCES.
715 AC_DEFUN([gl_LIBSOURCES], [
716 m4_foreach([_gl_NAME], [$1], [
717 m4_if(_gl_NAME, [alloca.c], [], [
718 m4_define([gl_LIBSOURCES_DIR], [lib])
719 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
720 ])
721 ])
722 ])
723
724 # Like AC_LIBOBJ, except that the module name goes
725 # into gltests_LIBOBJS instead of into LIBOBJS.
726 AC_DEFUN([gltests_LIBOBJ], [
727 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
728 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
729 ])
730
731 # Like AC_REPLACE_FUNCS, except that the module name goes
732 # into gltests_LIBOBJS instead of into LIBOBJS.
733 AC_DEFUN([gltests_REPLACE_FUNCS], [
734 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
735 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
736 ])
737
738 # Like AC_LIBSOURCES, except the directory where the source file is
739 # expected is derived from the gnulib-tool parameterization,
740 # and alloca is special cased (for the alloca-opt module).
741 # We could also entirely rely on EXTRA_lib..._SOURCES.
742 AC_DEFUN([gltests_LIBSOURCES], [
743 m4_foreach([_gl_NAME], [$1], [
744 m4_if(_gl_NAME, [alloca.c], [], [
745 m4_define([gltests_LIBSOURCES_DIR], [tests])
746 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
747 ])
748 ])
749 ])
750
751 # This macro records the list of files which have been installed by
752 # gnulib-tool and may be removed by future gnulib-tool invocations.
753 AC_DEFUN([gl_FILE_LIST], [
754 build-aux/announce-gen
755 build-aux/config.rpath
756 build-aux/gendocs.sh
757 build-aux/git-version-gen
758 build-aux/gitlog-to-changelog
759 build-aux/gnu-web-doc-update
760 build-aux/gnupload
761 build-aux/snippet/_Noreturn.h
762 build-aux/snippet/arg-nonnull.h
763 build-aux/snippet/c++defs.h
764 build-aux/snippet/unused-parameter.h
765 build-aux/snippet/warn-on-use.h
766 build-aux/useless-if-before-free
767 build-aux/vc-list-files
768 doc/gendocs_template
769 lib/accept.c
770 lib/alignof.h
771 lib/alloca.in.h
772 lib/arpa_inet.in.h
773 lib/asnprintf.c
774 lib/basename-lgpl.c
775 lib/binary-io.h
776 lib/bind.c
777 lib/byteswap.in.h
778 lib/c-ctype.c
779 lib/c-ctype.h
780 lib/c-strcase.h
781 lib/c-strcasecmp.c
782 lib/c-strcaseeq.h
783 lib/c-strncasecmp.c
784 lib/canonicalize-lgpl.c
785 lib/ceil.c
786 lib/close.c
787 lib/config.charset
788 lib/connect.c
789 lib/dirname-lgpl.c
790 lib/dirname.h
791 lib/dosname.h
792 lib/duplocale.c
793 lib/errno.in.h
794 lib/fcntl.in.h
795 lib/fd-hook.c
796 lib/fd-hook.h
797 lib/float+.h
798 lib/float.c
799 lib/float.in.h
800 lib/flock.c
801 lib/floor.c
802 lib/frexp.c
803 lib/fstat.c
804 lib/full-read.c
805 lib/full-read.h
806 lib/full-write.c
807 lib/full-write.h
808 lib/gai_strerror.c
809 lib/getaddrinfo.c
810 lib/getpeername.c
811 lib/getsockname.c
812 lib/getsockopt.c
813 lib/gettext.h
814 lib/iconv.c
815 lib/iconv.in.h
816 lib/iconv_close.c
817 lib/iconv_open-aix.gperf
818 lib/iconv_open-hpux.gperf
819 lib/iconv_open-irix.gperf
820 lib/iconv_open-osf.gperf
821 lib/iconv_open-solaris.gperf
822 lib/iconv_open.c
823 lib/iconveh.h
824 lib/inet_ntop.c
825 lib/inet_pton.c
826 lib/isinf.c
827 lib/isnan.c
828 lib/isnand-nolibm.h
829 lib/isnand.c
830 lib/isnanf.c
831 lib/isnanl.c
832 lib/itold.c
833 lib/libunistring.valgrind
834 lib/listen.c
835 lib/localcharset.c
836 lib/localcharset.h
837 lib/locale.in.h
838 lib/lstat.c
839 lib/malloc.c
840 lib/malloca.c
841 lib/malloca.h
842 lib/malloca.valgrind
843 lib/math.in.h
844 lib/memchr.c
845 lib/memchr.valgrind
846 lib/msvc-inval.c
847 lib/msvc-inval.h
848 lib/msvc-nothrow.c
849 lib/msvc-nothrow.h
850 lib/netdb.in.h
851 lib/netinet_in.in.h
852 lib/nproc.c
853 lib/nproc.h
854 lib/open.c
855 lib/pathmax.h
856 lib/pipe2.c
857 lib/printf-args.c
858 lib/printf-args.h
859 lib/printf-parse.c
860 lib/printf-parse.h
861 lib/putenv.c
862 lib/raise.c
863 lib/read.c
864 lib/readlink.c
865 lib/recv.c
866 lib/recvfrom.c
867 lib/ref-add.sin
868 lib/ref-del.sin
869 lib/rename.c
870 lib/rmdir.c
871 lib/safe-read.c
872 lib/safe-read.h
873 lib/safe-write.c
874 lib/safe-write.h
875 lib/same-inode.h
876 lib/send.c
877 lib/sendto.c
878 lib/setsockopt.c
879 lib/shutdown.c
880 lib/signal.in.h
881 lib/size_max.h
882 lib/snprintf.c
883 lib/socket.c
884 lib/sockets.c
885 lib/sockets.h
886 lib/stat-time.h
887 lib/stat.c
888 lib/stdalign.in.h
889 lib/stdbool.in.h
890 lib/stddef.in.h
891 lib/stdint.in.h
892 lib/stdio.in.h
893 lib/stdlib.in.h
894 lib/strftime.c
895 lib/strftime.h
896 lib/striconveh.c
897 lib/striconveh.h
898 lib/string.in.h
899 lib/stripslash.c
900 lib/sys_file.in.h
901 lib/sys_socket.in.h
902 lib/sys_stat.in.h
903 lib/sys_time.in.h
904 lib/sys_types.in.h
905 lib/sys_uio.in.h
906 lib/time.in.h
907 lib/time_r.c
908 lib/trunc.c
909 lib/unistd.in.h
910 lib/unistr.in.h
911 lib/unistr/u8-mbtouc-aux.c
912 lib/unistr/u8-mbtouc-unsafe-aux.c
913 lib/unistr/u8-mbtouc-unsafe.c
914 lib/unistr/u8-mbtouc.c
915 lib/unistr/u8-mbtoucr.c
916 lib/unistr/u8-prev.c
917 lib/unistr/u8-uctomb-aux.c
918 lib/unistr/u8-uctomb.c
919 lib/unitypes.in.h
920 lib/vasnprintf.c
921 lib/vasnprintf.h
922 lib/verify.h
923 lib/vsnprintf.c
924 lib/w32sock.h
925 lib/wchar.in.h
926 lib/write.c
927 lib/xsize.h
928 m4/00gnulib.m4
929 m4/absolute-header.m4
930 m4/alloca.m4
931 m4/arpa_inet_h.m4
932 m4/autobuild.m4
933 m4/byteswap.m4
934 m4/canonicalize.m4
935 m4/ceil.m4
936 m4/check-math-lib.m4
937 m4/close.m4
938 m4/codeset.m4
939 m4/configmake.m4
940 m4/dirname.m4
941 m4/double-slash-root.m4
942 m4/duplocale.m4
943 m4/eealloc.m4
944 m4/environ.m4
945 m4/errno_h.m4
946 m4/exponentd.m4
947 m4/exponentf.m4
948 m4/exponentl.m4
949 m4/extensions.m4
950 m4/fcntl-o.m4
951 m4/fcntl_h.m4
952 m4/float_h.m4
953 m4/flock.m4
954 m4/floor.m4
955 m4/fpieee.m4
956 m4/frexp.m4
957 m4/fstat.m4
958 m4/func.m4
959 m4/getaddrinfo.m4
960 m4/glibc21.m4
961 m4/gnulib-common.m4
962 m4/hostent.m4
963 m4/iconv.m4
964 m4/iconv_h.m4
965 m4/iconv_open-utf.m4
966 m4/iconv_open.m4
967 m4/include_next.m4
968 m4/inet_ntop.m4
969 m4/inet_pton.m4
970 m4/inline.m4
971 m4/intmax_t.m4
972 m4/inttypes_h.m4
973 m4/isinf.m4
974 m4/isnan.m4
975 m4/isnand.m4
976 m4/isnanf.m4
977 m4/isnanl.m4
978 m4/largefile.m4
979 m4/ld-version-script.m4
980 m4/ldexp.m4
981 m4/lib-ld.m4
982 m4/lib-link.m4
983 m4/lib-prefix.m4
984 m4/libunistring-base.m4
985 m4/libunistring.m4
986 m4/localcharset.m4
987 m4/locale_h.m4
988 m4/longlong.m4
989 m4/lstat.m4
990 m4/malloc.m4
991 m4/malloca.m4
992 m4/math_h.m4
993 m4/mathfunc.m4
994 m4/memchr.m4
995 m4/mmap-anon.m4
996 m4/mode_t.m4
997 m4/msvc-inval.m4
998 m4/msvc-nothrow.m4
999 m4/multiarch.m4
1000 m4/netdb_h.m4
1001 m4/netinet_in_h.m4
1002 m4/nocrash.m4
1003 m4/nproc.m4
1004 m4/open.m4
1005 m4/pathmax.m4
1006 m4/pipe2.m4
1007 m4/printf.m4
1008 m4/putenv.m4
1009 m4/raise.m4
1010 m4/read.m4
1011 m4/readlink.m4
1012 m4/rename.m4
1013 m4/rmdir.m4
1014 m4/safe-read.m4
1015 m4/safe-write.m4
1016 m4/servent.m4
1017 m4/signal_h.m4
1018 m4/size_max.m4
1019 m4/snprintf.m4
1020 m4/socketlib.m4
1021 m4/sockets.m4
1022 m4/socklen.m4
1023 m4/sockpfaf.m4
1024 m4/ssize_t.m4
1025 m4/stat-time.m4
1026 m4/stat.m4
1027 m4/stdalign.m4
1028 m4/stdbool.m4
1029 m4/stddef_h.m4
1030 m4/stdint.m4
1031 m4/stdint_h.m4
1032 m4/stdio_h.m4
1033 m4/stdlib_h.m4
1034 m4/strftime.m4
1035 m4/string_h.m4
1036 m4/sys_file_h.m4
1037 m4/sys_socket_h.m4
1038 m4/sys_stat_h.m4
1039 m4/sys_time_h.m4
1040 m4/sys_types_h.m4
1041 m4/sys_uio_h.m4
1042 m4/time_h.m4
1043 m4/time_r.m4
1044 m4/tm_gmtoff.m4
1045 m4/trunc.m4
1046 m4/unistd_h.m4
1047 m4/vasnprintf.m4
1048 m4/visibility.m4
1049 m4/vsnprintf.m4
1050 m4/warn-on-use.m4
1051 m4/warnings.m4
1052 m4/wchar_h.m4
1053 m4/wchar_t.m4
1054 m4/wint_t.m4
1055 m4/write.m4
1056 m4/xsize.m4
1057 top/GNUmakefile
1058 top/maint.mk
1059 ])