1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2008 Free Software Foundation, Inc.
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License. As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
10 # Generated by gnulib-tool.
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects using CVS, this file can be treated like other built files.
18 # This macro should be invoked from ./configure.ac, in the section
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
20 # any checks for libraries, header files, types and library functions.
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
28 AC_REQUIRE([AC_GNU_SOURCE])
30 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
31 AC_REQUIRE([AC_FUNC_FSEEKO])
32 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
33 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
34 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
35 dnl shouldn't hurt, though installers are on their own to set c99 mode.
36 AC_REQUIRE([AC_PROG_CC_STDC])
39 # This macro should be invoked from ./configure.ac, in the section
40 # "Check for header files, types and library functions".
43 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
45 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
46 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
47 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
48 m4_pushdef([gl_LIBSOURCES_LIST], [])
49 m4_pushdef([gl_LIBSOURCES_DIR], [])
52 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
53 if test "$ac_cv_header_winsock2_h" = yes; then
56 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
58 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
64 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
65 if test "$ac_cv_header_winsock2_h" = yes; then
68 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
70 gl_UNISTD_MODULE_INDICATOR([close])
71 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
72 if test "$ac_cv_header_winsock2_h" = yes; then
75 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
78 m4_ifdef([AM_XGETTEXT_OPTION],
79 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
80 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
82 gl_STDIO_MODULE_INDICATOR([fclose])
85 gl_STDIO_MODULE_INDICATOR([fseeko])
87 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
89 gl_STDIO_MODULE_INDICATOR([getdelim])
91 gl_STDIO_MODULE_INDICATOR([getline])
95 # Autoconf 2.61a.99 and earlier don't support linking a file only
96 # in VPATH builds. But since GNUmakefile is for maintainer use
97 # only, it does not matter if we skip the link with older autoconf.
98 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
99 # builds, so use a shell variable to bypass this.
100 GNUmakefile=GNUmakefile
101 m4_if(m4_version_compare([2.61a.100],
102 m4_defn([m4_PACKAGE_VERSION])), [1], [],
103 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
104 [GNUmakefile=$GNUmakefile])])
106 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
108 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
109 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
110 if test "$ac_cv_header_winsock2_h" = yes; then
113 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
115 gl_UNISTD_MODULE_INDICATOR([lseek])
121 gl_STRING_MODULE_INDICATOR([perror])
125 gl_FUNC_REALLOC_POSIX
126 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
127 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
128 if test "$ac_cv_header_winsock2_h" = yes; then
131 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
132 AC_REQUIRE([gl_HEADER_SYS_SELECT])
133 if test "$ac_cv_header_winsock2_h" = yes; then
134 AC_LIBOBJ([winsock-select])
136 gl_SYS_SELECT_MODULE_INDICATOR([select])
137 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
138 if test "$ac_cv_header_winsock2_h" = yes; then
141 gl_SYS_SOCKET_MODULE_INDICATOR([send])
142 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
143 if test "$ac_cv_header_winsock2_h" = yes; then
144 AC_LIBOBJ([setsockopt])
146 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
147 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
148 if test "$ac_cv_header_winsock2_h" = yes; then
149 AC_LIBOBJ([shutdown])
151 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
154 gl_STDIO_MODULE_INDICATOR([snprintf])
155 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
156 if test "$ac_cv_header_winsock2_h" = yes; then
159 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
167 gl_STRING_MODULE_INDICATOR([strerror])
172 gl_MODULE_INDICATOR([sys_socket])
182 m4_ifval(gl_LIBSOURCES_LIST, [
183 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
184 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
185 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
186 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
190 m4_if(m4_sysval, [0], [],
191 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
193 m4_popdef([gl_LIBSOURCES_DIR])
194 m4_popdef([gl_LIBSOURCES_LIST])
195 m4_popdef([AC_LIBSOURCES])
196 m4_popdef([AC_REPLACE_FUNCS])
197 m4_popdef([AC_LIBOBJ])
198 AC_CONFIG_COMMANDS_PRE([
201 if test -n "$gl_LIBOBJS"; then
202 # Remove the extension.
203 sed_drop_objext='s/\.o$//;s/\.obj$//'
204 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
205 gl_libobjs="$gl_libobjs $i.$ac_objext"
206 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
209 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
210 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
214 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
215 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
216 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
217 m4_pushdef([gltests_LIBSOURCES_LIST], [])
218 m4_pushdef([gltests_LIBSOURCES_DIR], [])
220 gl_source_base='gl/tests'
221 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
222 if test "$ac_cv_header_winsock2_h" = yes; then
224 gl_REPLACE_SYS_IOCTL_H
226 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
227 gl_MODULE_INDICATOR([ioctl])
233 AC_CHECK_FUNCS([shutdown])
234 m4_ifval(gltests_LIBSOURCES_LIST, [
235 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
236 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
237 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
238 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
242 m4_if(m4_sysval, [0], [],
243 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
245 m4_popdef([gltests_LIBSOURCES_DIR])
246 m4_popdef([gltests_LIBSOURCES_LIST])
247 m4_popdef([AC_LIBSOURCES])
248 m4_popdef([AC_REPLACE_FUNCS])
249 m4_popdef([AC_LIBOBJ])
250 AC_CONFIG_COMMANDS_PRE([
253 if test -n "$gltests_LIBOBJS"; then
254 # Remove the extension.
255 sed_drop_objext='s/\.o$//;s/\.obj$//'
256 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
257 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
258 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
261 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
262 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
264 LIBTESTS_LIBDEPS="$gltests_libdeps"
265 AC_SUBST([LIBTESTS_LIBDEPS])
268 # Like AC_LIBOBJ, except that the module name goes
269 # into gl_LIBOBJS instead of into LIBOBJS.
270 AC_DEFUN([gl_LIBOBJ], [
271 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
272 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
275 # Like AC_REPLACE_FUNCS, except that the module name goes
276 # into gl_LIBOBJS instead of into LIBOBJS.
277 AC_DEFUN([gl_REPLACE_FUNCS], [
278 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
279 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
282 # Like AC_LIBSOURCES, except the directory where the source file is
283 # expected is derived from the gnulib-tool parameterization,
284 # and alloca is special cased (for the alloca-opt module).
285 # We could also entirely rely on EXTRA_lib..._SOURCES.
286 AC_DEFUN([gl_LIBSOURCES], [
287 m4_foreach([_gl_NAME], [$1], [
288 m4_if(_gl_NAME, [alloca.c], [], [
289 m4_define([gl_LIBSOURCES_DIR], [gl])
290 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
295 # Like AC_LIBOBJ, except that the module name goes
296 # into gltests_LIBOBJS instead of into LIBOBJS.
297 AC_DEFUN([gltests_LIBOBJ], [
298 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
299 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
302 # Like AC_REPLACE_FUNCS, except that the module name goes
303 # into gltests_LIBOBJS instead of into LIBOBJS.
304 AC_DEFUN([gltests_REPLACE_FUNCS], [
305 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
306 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
309 # Like AC_LIBSOURCES, except the directory where the source file is
310 # expected is derived from the gnulib-tool parameterization,
311 # and alloca is special cased (for the alloca-opt module).
312 # We could also entirely rely on EXTRA_lib..._SOURCES.
313 AC_DEFUN([gltests_LIBSOURCES], [
314 m4_foreach([_gl_NAME], [$1], [
315 m4_if(_gl_NAME, [alloca.c], [], [
316 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
317 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
322 # This macro records the list of files which have been installed by
323 # gnulib-tool and may be removed by future gnulib-tool invocations.
324 AC_DEFUN([gl_FILE_LIST], [
325 build-aux/config.rpath
328 build-aux/link-warning.h
329 build-aux/pmccabe.css
330 build-aux/pmccabe2html
402 lib/version-etc-fsf.c
468 tests/test-alloca-opt.c
469 tests/test-arpa_inet.c
474 tests/test-getaddrinfo.c
475 tests/test-getdelim.c
480 tests/test-netinet_in.c
483 tests/test-read-file.c
485 tests/test-snprintf.c
491 tests/test-strerror.c
493 tests/test-sys_select.c
494 tests/test-sys_socket.c
495 tests/test-sys_stat.c
496 tests/test-sys_time.c
498 tests/test-vasnprintf.c
503 tests=lib/sys_ioctl.in.h