1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
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.
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.
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/>.
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.
22 # Generated by gnulib-tool.
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
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.
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:
49 # Code from module binary-io:
50 # Code from module bind:
51 # Code from module btowc:
52 # Code from module byteswap:
53 # Code from module c-ctype:
54 # Code from module c-strcase:
55 # Code from module c-strcaseeq:
56 # Code from module canonicalize-lgpl:
57 # Code from module ceil:
58 # Code from module chdir:
59 # Code from module clock-time:
60 # Code from module close:
61 # Code from module configmake:
62 # Code from module connect:
63 # Code from module dirent:
64 # Code from module dirfd:
65 # Code from module dirname-lgpl:
66 # Code from module dosname:
67 # Code from module double-slash-root:
68 # Code from module duplocale:
69 # Code from module environ:
70 # Code from module errno:
71 # Code from module extensions:
72 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
73 # Code from module fcntl-h:
74 # Code from module fd-hook:
75 # Code from module float:
76 # Code from module flock:
77 # Code from module floor:
78 # Code from module fpieee:
79 AC_REQUIRE([gl_FP_IEEE])
80 # Code from module frexp:
81 # Code from module fstat:
82 # Code from module full-read:
83 # Code from module full-write:
84 # Code from module func:
85 # Code from module gendocs:
86 # Code from module getaddrinfo:
87 # Code from module getpeername:
88 # Code from module getsockname:
89 # Code from module getsockopt:
90 # Code from module gettext-h:
91 # Code from module git-version-gen:
92 # Code from module gitlog-to-changelog:
93 # Code from module gnu-web-doc-update:
94 # Code from module gnumakefile:
95 # Code from module gnupload:
96 # Code from module gperf:
97 # Code from module havelib:
98 # Code from module hostent:
99 # Code from module iconv:
100 # Code from module iconv-h:
101 # Code from module iconv_open:
102 # Code from module iconv_open-utf:
103 # Code from module include_next:
104 # Code from module inet_ntop:
105 # Code from module inet_pton:
106 # Code from module inline:
107 # Code from module isinf:
108 # Code from module isnan:
109 # Code from module isnand:
110 # Code from module isnand-nolibm:
111 # Code from module isnanf:
112 # Code from module isnanl:
113 # Code from module langinfo:
114 # Code from module largefile:
115 AC_REQUIRE([AC_SYS_LARGEFILE])
116 # Code from module ldexp:
117 # Code from module lib-symbol-versions:
118 # Code from module lib-symbol-visibility:
119 # Code from module libunistring:
120 # Code from module listen:
121 # Code from module localcharset:
122 # Code from module locale:
123 # Code from module localeconv:
124 # Code from module log:
125 # Code from module log1p:
126 # Code from module lstat:
127 # Code from module maintainer-makefile:
128 # Code from module malloc-gnu:
129 # Code from module malloc-posix:
130 # Code from module malloca:
131 # Code from module math:
132 # Code from module mbrtowc:
133 # Code from module mbsinit:
134 # Code from module mbtowc:
135 # Code from module memchr:
136 # Code from module msvc-inval:
137 # Code from module msvc-nothrow:
138 # Code from module multiarch:
139 # Code from module netdb:
140 # Code from module netinet_in:
141 # Code from module nl_langinfo:
142 # Code from module nocrash:
143 # Code from module nproc:
144 # Code from module open:
145 # Code from module pathmax:
146 # Code from module pipe2:
147 # Code from module putenv:
148 # Code from module raise:
149 # Code from module read:
150 # Code from module readlink:
151 # Code from module recv:
152 # Code from module recvfrom:
153 # Code from module regex:
154 # Code from module rename:
155 # Code from module rmdir:
156 # Code from module round:
157 # Code from module safe-read:
158 # Code from module safe-write:
159 # Code from module same-inode:
160 # Code from module send:
161 # Code from module sendto:
162 # Code from module servent:
163 # Code from module setenv:
164 # Code from module setsockopt:
165 # Code from module shutdown:
166 # Code from module signal-h:
167 # Code from module size_max:
168 # Code from module snippet/_Noreturn:
169 # Code from module snippet/arg-nonnull:
170 # Code from module snippet/c++defs:
171 # Code from module snippet/unused-parameter:
172 # Code from module snippet/warn-on-use:
173 # Code from module snprintf:
174 # Code from module socket:
175 # Code from module socketlib:
176 # Code from module sockets:
177 # Code from module socklen:
178 # Code from module ssize_t:
179 # Code from module stat:
180 # Code from module stat-time:
181 # Code from module stdalign:
182 # Code from module stdbool:
183 # Code from module stddef:
184 # Code from module stdint:
185 # Code from module stdio:
186 # Code from module stdlib:
187 # Code from module streq:
188 # Code from module strftime:
189 # Code from module striconveh:
190 # Code from module string:
191 # Code from module sys_file:
192 # Code from module sys_socket:
193 # Code from module sys_stat:
194 # Code from module sys_time:
195 # Code from module sys_types:
196 # Code from module sys_uio:
197 # Code from module time:
198 # Code from module time_r:
199 # Code from module trunc:
200 # Code from module unistd:
201 # Code from module unistr/base:
202 # Code from module unistr/u8-mbtouc:
203 # Code from module unistr/u8-mbtouc-unsafe:
204 # Code from module unistr/u8-mbtoucr:
205 # Code from module unistr/u8-prev:
206 # Code from module unistr/u8-uctomb:
207 # Code from module unitypes:
208 # Code from module useless-if-before-free:
209 # Code from module vasnprintf:
210 # Code from module vc-list-files:
211 # Code from module verify:
212 # Code from module vsnprintf:
213 # Code from module warnings:
214 # Code from module wchar:
215 # Code from module wcrtomb:
216 # Code from module wctype-h:
217 # Code from module write:
218 # Code from module xsize:
221 # This macro should be invoked from ./configure.ac, in the section
222 # "Check for header files, types and library functions".
225 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
228 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
229 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
230 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
231 m4_pushdef([gl_LIBSOURCES_LIST], [])
232 m4_pushdef([gl_LIBSOURCES_DIR], [])
235 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
236 if test "$ac_cv_header_winsock2_h" = yes; then
239 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
243 AC_REQUIRE([AC_C_INLINE])
244 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
245 if test "$ac_cv_header_winsock2_h" = yes; then
248 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
250 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
254 gl_WCHAR_MODULE_INDICATOR([btowc])
257 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
258 AC_LIBOBJ([canonicalize-lgpl])
260 gl_MODULE_INDICATOR([canonicalize-lgpl])
261 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
262 gl_STDLIB_MODULE_INDICATOR([realpath])
264 if test $REPLACE_CEIL = 1; then
267 gl_MATH_MODULE_INDICATOR([ceil])
268 gl_UNISTD_MODULE_INDICATOR([chdir])
271 if test $REPLACE_CLOSE = 1; then
274 gl_UNISTD_MODULE_INDICATOR([close])
276 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
277 if test "$ac_cv_header_winsock2_h" = yes; then
280 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
283 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
287 gl_DIRENT_MODULE_INDICATOR([dirfd])
291 if test $REPLACE_DUPLOCALE = 1; then
292 AC_LIBOBJ([duplocale])
295 gl_LOCALE_MODULE_INDICATOR([duplocale])
297 gl_UNISTD_MODULE_INDICATOR([environ])
301 if test $REPLACE_FLOAT_LDBL = 1; then
304 if test $REPLACE_ITOLD = 1; then
308 if test $HAVE_FLOCK = 0; then
312 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
314 if test $REPLACE_FLOOR = 1; then
317 gl_MATH_MODULE_INDICATOR([floor])
319 if test $gl_func_frexp != yes; then
322 gl_MATH_MODULE_INDICATOR([frexp])
324 if test $REPLACE_FSTAT = 1; then
328 gl_SYS_STAT_MODULE_INDICATOR([fstat])
331 if test $HAVE_GETADDRINFO = 0; then
332 AC_LIBOBJ([getaddrinfo])
334 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
335 AC_LIBOBJ([gai_strerror])
337 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
338 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
339 if test "$ac_cv_header_winsock2_h" = yes; then
340 AC_LIBOBJ([getpeername])
342 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
343 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
344 if test "$ac_cv_header_winsock2_h" = yes; then
345 AC_LIBOBJ([getsockname])
347 gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
348 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
349 if test "$ac_cv_header_winsock2_h" = yes; then
350 AC_LIBOBJ([getsockopt])
352 gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
354 AC_SUBST([LTLIBINTL])
355 # Autoconf 2.61a.99 and earlier don't support linking a file only
356 # in VPATH builds. But since GNUmakefile is for maintainer use
357 # only, it does not matter if we skip the link with older autoconf.
358 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
359 # builds, so use a shell variable to bypass this.
360 GNUmakefile=GNUmakefile
361 m4_if(m4_version_compare([2.61a.100],
362 m4_defn([m4_PACKAGE_VERSION])), [1], [],
363 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
364 [GNUmakefile=$GNUmakefile])])
367 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
368 [gl_ICONV_MODULE_INDICATOR([iconv])])
371 if test $REPLACE_ICONV_OPEN = 1; then
372 AC_LIBOBJ([iconv_open])
374 if test $REPLACE_ICONV = 1; then
376 AC_LIBOBJ([iconv_close])
378 gl_FUNC_ICONV_OPEN_UTF
380 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
381 AC_LIBOBJ([inet_ntop])
384 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
386 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
387 AC_LIBOBJ([inet_pton])
390 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
393 if test $REPLACE_ISINF = 1; then
396 gl_MATH_MODULE_INDICATOR([isinf])
398 gl_MATH_MODULE_INDICATOR([isnan])
400 m4_ifdef([gl_ISNAN], [
401 AC_REQUIRE([gl_ISNAN])
403 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
407 gl_MATH_MODULE_INDICATOR([isnand])
408 gl_FUNC_ISNAND_NO_LIBM
409 if test $gl_func_isnand_no_libm != yes; then
414 m4_ifdef([gl_ISNAN], [
415 AC_REQUIRE([gl_ISNAN])
417 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
421 gl_MATH_MODULE_INDICATOR([isnanf])
423 m4_ifdef([gl_ISNAN], [
424 AC_REQUIRE([gl_ISNAN])
426 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
430 gl_MATH_MODULE_INDICATOR([isnanl])
432 AC_REQUIRE([gl_LARGEFILE])
437 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
438 if test "$ac_cv_header_winsock2_h" = yes; then
441 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
443 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
444 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
447 if test $REPLACE_LOCALECONV = 1; then
448 AC_LIBOBJ([localeconv])
451 gl_LOCALE_MODULE_INDICATOR([localeconv])
452 AC_REQUIRE([gl_FUNC_LOG])
453 if test $REPLACE_LOG = 1; then
456 gl_MATH_MODULE_INDICATOR([log])
458 if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
461 gl_MATH_MODULE_INDICATOR([log1p])
463 if test $REPLACE_LSTAT = 1; then
467 gl_SYS_STAT_MODULE_INDICATOR([lstat])
468 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
469 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
471 if test $REPLACE_MALLOC = 1; then
474 gl_MODULE_INDICATOR([malloc-gnu])
476 if test $REPLACE_MALLOC = 1; then
479 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
483 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
487 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
489 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
493 gl_WCHAR_MODULE_INDICATOR([mbsinit])
495 if test $REPLACE_MBTOWC = 1; then
499 gl_STDLIB_MODULE_INDICATOR([mbtowc])
501 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
505 gl_STRING_MODULE_INDICATOR([memchr])
507 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
508 AC_LIBOBJ([msvc-inval])
511 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
512 AC_LIBOBJ([msvc-nothrow])
519 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
520 AC_LIBOBJ([nl_langinfo])
522 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
525 if test $REPLACE_OPEN = 1; then
529 gl_FCNTL_MODULE_INDICATOR([open])
532 gl_UNISTD_MODULE_INDICATOR([pipe2])
534 if test $REPLACE_PUTENV = 1; then
537 gl_STDLIB_MODULE_INDICATOR([putenv])
539 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
543 gl_SIGNAL_MODULE_INDICATOR([raise])
545 if test $REPLACE_READ = 1; then
549 gl_UNISTD_MODULE_INDICATOR([read])
551 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
552 AC_LIBOBJ([readlink])
555 gl_UNISTD_MODULE_INDICATOR([readlink])
556 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
557 if test "$ac_cv_header_winsock2_h" = yes; then
560 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
561 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
562 if test "$ac_cv_header_winsock2_h" = yes; then
563 AC_LIBOBJ([recvfrom])
565 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
567 if test $ac_use_included_regex = yes; then
572 if test $REPLACE_RENAME = 1; then
575 gl_STDIO_MODULE_INDICATOR([rename])
577 if test $REPLACE_RMDIR = 1; then
580 gl_UNISTD_MODULE_INDICATOR([rmdir])
582 if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
585 gl_MATH_MODULE_INDICATOR([round])
588 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
589 if test "$ac_cv_header_winsock2_h" = yes; then
592 gl_SYS_SOCKET_MODULE_INDICATOR([send])
593 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
594 if test "$ac_cv_header_winsock2_h" = yes; then
597 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
600 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
603 gl_STDLIB_MODULE_INDICATOR([setenv])
604 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
605 if test "$ac_cv_header_winsock2_h" = yes; then
606 AC_LIBOBJ([setsockopt])
608 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
609 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
610 if test "$ac_cv_header_winsock2_h" = yes; then
611 AC_LIBOBJ([shutdown])
613 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
617 gl_STDIO_MODULE_INDICATOR([snprintf])
618 gl_MODULE_INDICATOR([snprintf])
619 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
620 if test "$ac_cv_header_winsock2_h" = yes; then
623 # When this module is used, sockets may actually occur as file descriptors,
624 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
625 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
626 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
627 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
628 if test "$ac_cv_header_winsock2_h" = yes; then
629 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
630 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
632 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
638 if test $REPLACE_STAT = 1; then
642 gl_SYS_STAT_MODULE_INDICATOR([stat])
652 if test $gl_cond_libtool = false; then
653 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
654 gl_libdeps="$gl_libdeps $LIBICONV"
671 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
675 gl_TIME_MODULE_INDICATOR([time_r])
677 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
680 gl_MATH_MODULE_INDICATOR([trunc])
682 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
683 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
684 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
685 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
686 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
687 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
688 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
689 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
690 gl_MODULE_INDICATOR([unistr/u8-uctomb])
691 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
692 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
695 gl_STDIO_MODULE_INDICATOR([vsnprintf])
698 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
702 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
705 if test $REPLACE_WRITE = 1; then
709 gl_UNISTD_MODULE_INDICATOR([write])
711 # End of code from modules
712 m4_ifval(gl_LIBSOURCES_LIST, [
713 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
714 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
715 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
716 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
720 m4_if(m4_sysval, [0], [],
721 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
723 m4_popdef([gl_LIBSOURCES_DIR])
724 m4_popdef([gl_LIBSOURCES_LIST])
725 m4_popdef([AC_LIBSOURCES])
726 m4_popdef([AC_REPLACE_FUNCS])
727 m4_popdef([AC_LIBOBJ])
728 AC_CONFIG_COMMANDS_PRE([
731 if test -n "$gl_LIBOBJS"; then
732 # Remove the extension.
733 sed_drop_objext='s/\.o$//;s/\.obj$//'
734 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
735 gl_libobjs="$gl_libobjs $i.$ac_objext"
736 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
739 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
740 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
744 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
745 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
746 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
747 m4_pushdef([gltests_LIBSOURCES_LIST], [])
748 m4_pushdef([gltests_LIBSOURCES_DIR], [])
750 gl_source_base='tests'
752 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
754 AC_SUBST([gltests_WITNESS])
755 gl_module_indicator_condition=$gltests_WITNESS
756 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
757 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
758 m4_ifval(gltests_LIBSOURCES_LIST, [
759 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
760 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
761 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
762 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
766 m4_if(m4_sysval, [0], [],
767 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
769 m4_popdef([gltests_LIBSOURCES_DIR])
770 m4_popdef([gltests_LIBSOURCES_LIST])
771 m4_popdef([AC_LIBSOURCES])
772 m4_popdef([AC_REPLACE_FUNCS])
773 m4_popdef([AC_LIBOBJ])
774 AC_CONFIG_COMMANDS_PRE([
777 if test -n "$gltests_LIBOBJS"; then
778 # Remove the extension.
779 sed_drop_objext='s/\.o$//;s/\.obj$//'
780 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
781 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
782 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
785 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
786 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
790 # Like AC_LIBOBJ, except that the module name goes
791 # into gl_LIBOBJS instead of into LIBOBJS.
792 AC_DEFUN([gl_LIBOBJ], [
793 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
794 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
797 # Like AC_REPLACE_FUNCS, except that the module name goes
798 # into gl_LIBOBJS instead of into LIBOBJS.
799 AC_DEFUN([gl_REPLACE_FUNCS], [
800 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
801 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
804 # Like AC_LIBSOURCES, except the directory where the source file is
805 # expected is derived from the gnulib-tool parameterization,
806 # and alloca is special cased (for the alloca-opt module).
807 # We could also entirely rely on EXTRA_lib..._SOURCES.
808 AC_DEFUN([gl_LIBSOURCES], [
809 m4_foreach([_gl_NAME], [$1], [
810 m4_if(_gl_NAME, [alloca.c], [], [
811 m4_define([gl_LIBSOURCES_DIR], [lib])
812 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
817 # Like AC_LIBOBJ, except that the module name goes
818 # into gltests_LIBOBJS instead of into LIBOBJS.
819 AC_DEFUN([gltests_LIBOBJ], [
820 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
821 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
824 # Like AC_REPLACE_FUNCS, except that the module name goes
825 # into gltests_LIBOBJS instead of into LIBOBJS.
826 AC_DEFUN([gltests_REPLACE_FUNCS], [
827 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
828 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
831 # Like AC_LIBSOURCES, except the directory where the source file is
832 # expected is derived from the gnulib-tool parameterization,
833 # and alloca is special cased (for the alloca-opt module).
834 # We could also entirely rely on EXTRA_lib..._SOURCES.
835 AC_DEFUN([gltests_LIBSOURCES], [
836 m4_foreach([_gl_NAME], [$1], [
837 m4_if(_gl_NAME, [alloca.c], [], [
838 m4_define([gltests_LIBSOURCES_DIR], [tests])
839 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
844 # This macro records the list of files which have been installed by
845 # gnulib-tool and may be removed by future gnulib-tool invocations.
846 AC_DEFUN([gl_FILE_LIST], [
847 build-aux/announce-gen
848 build-aux/config.rpath
850 build-aux/git-version-gen
851 build-aux/gitlog-to-changelog
852 build-aux/gnu-web-doc-update
854 build-aux/snippet/_Noreturn.h
855 build-aux/snippet/arg-nonnull.h
856 build-aux/snippet/c++defs.h
857 build-aux/snippet/unused-parameter.h
858 build-aux/snippet/warn-on-use.h
859 build-aux/useless-if-before-free
860 build-aux/vc-list-files
878 lib/canonicalize-lgpl.c
913 lib/iconv_open-aix.gperf
914 lib/iconv_open-hpux.gperf
915 lib/iconv_open-irix.gperf
916 lib/iconv_open-osf.gperf
917 lib/iconv_open-solaris.gperf
930 lib/libunistring.valgrind
1025 lib/unistr/u8-mbtouc-aux.c
1026 lib/unistr/u8-mbtouc-unsafe-aux.c
1027 lib/unistr/u8-mbtouc-unsafe.c
1028 lib/unistr/u8-mbtouc.c
1029 lib/unistr/u8-mbtoucr.c
1030 lib/unistr/u8-prev.c
1031 lib/unistr/u8-uctomb-aux.c
1032 lib/unistr/u8-uctomb.c
1045 m4/absolute-header.m4
1053 m4/check-math-lib.m4
1061 m4/double-slash-root.m4
1085 m4/iconv_open-utf.m4
1100 m4/ld-version-script.m4
1105 m4/libunistring-base.m4