1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2004-2007 Free Software Foundation, Inc.
3 #
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.
9 #
10 # Generated by gnulib-tool.
11 #
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.in, 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.
21 AC_DEFUN([gl_EARLY],
22 [
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])
29 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30 ])
32 # This macro should be invoked from ./configure.in, in the section
33 # "Check for header files, types and library functions".
34 AC_DEFUN([gl_INIT],
35 [
36 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
37 gl_cond_libtool=false
38 gl_libdeps=
39 gl_ltlibdeps=
40 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
41 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
42 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
43 gl_source_base='gl'
44 gl_FUNC_ALLOCA
45 gl_HEADER_ARPA_INET
46 AC_PROG_MKDIR_P
47 gl_FUNC_BASE64
48 gl_C_STRTOD
49 gl_CLOEXEC
50 gl_DIRNAME
51 gl_DOUBLE_SLASH_ROOT
52 gl_ERROR
53 m4_ifdef([AM_XGETTEXT_OPTION],
54 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
55 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
56 gl_EXITFAIL
57 gl_FCNTL_SAFER
58 gl_MODULE_INDICATOR([fcntl-safer])
59 gl_FLOAT_H
60 gl_FUNC_FLOORF
61 gl_MATH_MODULE_INDICATOR([floorf])
62 gl_FSUSAGE
63 gl_GETADDRINFO
64 gl_FUNC_GETHOSTNAME
65 gl_GETLOADAVG([$gl_source_base])
66 gl_GETOPT
67 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
68 AM_GNU_GETTEXT_VERSION([0.17])
69 AC_SUBST([LIBINTL])
70 AC_SUBST([LTLIBINTL])
71 gl_INET_NTOP
72 gl_INLINE
73 gl_LOCALCHARSET
74 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
75 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
76 AC_FUNC_MALLOC
77 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
78 gl_FUNC_MALLOC_POSIX
79 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
80 gl_MATH_H
81 gl_MOUNTLIST
82 gl_HEADER_NETINET_IN
83 AC_PROG_MKDIR_P
84 gl_REGEX
85 gl_SAFE_READ
86 gl_SAFE_WRITE
87 gl_SIZE_MAX
88 gl_FUNC_SNPRINTF
89 gl_STDIO_MODULE_INDICATOR([snprintf])
90 gl_TYPE_SOCKLEN_T
91 gt_TYPE_SSIZE_T
92 AM_STDBOOL_H
93 gl_STDINT_H
94 gl_STDIO_H
95 gl_STDLIB_H
96 gl_FUNC_STRDUP
97 gl_STRING_MODULE_INDICATOR([strdup])
98 gl_FUNC_STRERROR
99 gl_STRING_MODULE_INDICATOR([strerror])
100 gl_HEADER_STRING_H
101 gl_FUNC_STRNDUP
102 gl_STRING_MODULE_INDICATOR([strndup])
103 gl_FUNC_STRNLEN
104 gl_STRING_MODULE_INDICATOR([strnlen])
105 gl_HEADER_SYS_SOCKET
106 AC_PROG_MKDIR_P
107 gl_UNISTD_H
108 gl_UNISTD_SAFER
109 gl_FUNC_VASNPRINTF
110 gl_FUNC_VASPRINTF
111 gl_STDIO_MODULE_INDICATOR([vasprintf])
112 m4_ifdef([AM_XGETTEXT_OPTION],
113 [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
114 AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
115 gl_FUNC_VSNPRINTF
116 gl_STDIO_MODULE_INDICATOR([vsnprintf])
117 gl_WCHAR_H
118 gl_WCTYPE_H
119 gl_XALLOC
120 gl_XSIZE
121 gl_XSTRNDUP
122 m4_popdef([AC_LIBSOURCES])
123 m4_popdef([AC_REPLACE_FUNCS])
124 m4_popdef([AC_LIBOBJ])
125 AC_CONFIG_COMMANDS_PRE([
126 gl_libobjs=
127 gl_ltlibobjs=
128 if test -n "$gl_LIBOBJS"; then
129 # Remove the extension.
130 sed_drop_objext='s/\.o$//;s/\.obj$//'
131 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
132 gl_libobjs="$gl_libobjs $i.$ac_objext"
133 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
134 done
135 fi
136 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
137 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
138 ])
139 gltests_libdeps=
140 gltests_ltlibdeps=
141 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
142 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
143 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
144 gl_source_base='tests'
145 m4_popdef([AC_LIBSOURCES])
146 m4_popdef([AC_REPLACE_FUNCS])
147 m4_popdef([AC_LIBOBJ])
148 AC_CONFIG_COMMANDS_PRE([
149 gltests_libobjs=
150 gltests_ltlibobjs=
151 if test -n "$gltests_LIBOBJS"; then
152 # Remove the extension.
153 sed_drop_objext='s/\.o$//;s/\.obj$//'
154 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
155 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
156 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
157 done
158 fi
159 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
160 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
161 ])
162 LIBGNU_LIBDEPS="$gl_libdeps"
163 AC_SUBST([LIBGNU_LIBDEPS])
164 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
165 AC_SUBST([LIBGNU_LTLIBDEPS])
166 ])
168 # Like AC_LIBOBJ, except that the module name goes
169 # into gl_LIBOBJS instead of into LIBOBJS.
170 AC_DEFUN([gl_LIBOBJ], [
171 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
172 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
173 ])
175 # m4_foreach_w is provided by autoconf-2.59c and later.
176 # This definition is to accommodate developers using versions
177 # of autoconf older than that.
178 m4_ifndef([m4_foreach_w],
179 [m4_define([m4_foreach_w],
180 [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
182 # Like AC_REPLACE_FUNCS, except that the module name goes
183 # into gl_LIBOBJS instead of into LIBOBJS.
184 AC_DEFUN([gl_REPLACE_FUNCS], [
185 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
186 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
187 ])
189 # Like AC_LIBSOURCES, except the directory where the source file is
190 # expected is derived from the gnulib-tool parametrization,
191 # and alloca is special cased (for the alloca-opt module).
192 # We could also entirely rely on EXTRA_lib..._SOURCES.
193 AC_DEFUN([gl_LIBSOURCES], [
194 m4_foreach([_gl_NAME], [$1], [
195 m4_if(_gl_NAME, [alloca.c], [], [
196 m4_syscmd([test -r gl/]_gl_NAME[ || test ! -d gl])dnl
197 m4_if(m4_sysval, [0], [],
198 [AC_FATAL([missing gl/]_gl_NAME)])
199 ])
200 ])
201 ])
203 # Like AC_LIBOBJ, except that the module name goes
204 # into gltests_LIBOBJS instead of into LIBOBJS.
205 AC_DEFUN([gltests_LIBOBJ], [
206 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
207 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
208 ])
210 # m4_foreach_w is provided by autoconf-2.59c and later.
211 # This definition is to accommodate developers using versions
212 # of autoconf older than that.
213 m4_ifndef([m4_foreach_w],
214 [m4_define([m4_foreach_w],
215 [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
217 # Like AC_REPLACE_FUNCS, except that the module name goes
218 # into gltests_LIBOBJS instead of into LIBOBJS.
219 AC_DEFUN([gltests_REPLACE_FUNCS], [
220 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
221 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
222 ])
224 # Like AC_LIBSOURCES, except the directory where the source file is
225 # expected is derived from the gnulib-tool parametrization,
226 # and alloca is special cased (for the alloca-opt module).
227 # We could also entirely rely on EXTRA_lib..._SOURCES.
228 AC_DEFUN([gltests_LIBSOURCES], [
229 m4_foreach([_gl_NAME], [$1], [
230 m4_if(_gl_NAME, [alloca.c], [], [
231 m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
232 m4_if(m4_sysval, [0], [],
233 [AC_FATAL([missing tests/]_gl_NAME)])
234 ])
235 ])
236 ])
238 # This macro records the list of files which have been installed by
239 # gnulib-tool and may be removed by future gnulib-tool invocations.
240 AC_DEFUN([gl_FILE_LIST], [
241 build-aux/config.rpath
242 build-aux/link-warning.h
243 lib/alloca.c
244 lib/alloca.in.h
245 lib/asnprintf.c
246 lib/asprintf.c
247 lib/base64.c
248 lib/base64.h
249 lib/basename.c
250 lib/c-strtod.c
251 lib/c-strtod.h
252 lib/cloexec.c
253 lib/cloexec.h
254 lib/config.charset
255 lib/creat-safer.c
256 lib/dirname.c
257 lib/dirname.h
258 lib/dup-safer.c
259 lib/error.c
260 lib/error.h
261 lib/exitfail.c
262 lib/exitfail.h
263 lib/fcntl--.h
264 lib/fcntl-safer.h
265 lib/fd-safer.c
266 lib/float+.h
267 lib/float.in.h
268 lib/floor.c
269 lib/floorf.c
270 lib/fsusage.c
271 lib/fsusage.h
272 lib/full-read.c
273 lib/full-read.h
274 lib/full-write.c
275 lib/full-write.h
276 lib/gai_strerror.c
277 lib/getaddrinfo.c
278 lib/getaddrinfo.h
279 lib/gethostname.c
280 lib/getloadavg.c
281 lib/getopt.c
282 lib/getopt.in.h
283 lib/getopt1.c
284 lib/getopt_int.h
285 lib/gettext.h
286 lib/inet_ntop.c
287 lib/inet_ntop.h
288 lib/intprops.h
289 lib/localcharset.c
290 lib/localcharset.h
291 lib/malloc.c
292 lib/math.in.h
293 lib/mountlist.c
294 lib/mountlist.h
295 lib/netinet_in.in.h
296 lib/open-safer.c
297 lib/pipe-safer.c
298 lib/printf-args.c
299 lib/printf-args.h
300 lib/printf-parse.c
301 lib/printf-parse.h
302 lib/ref-add.sin
303 lib/ref-del.sin
304 lib/regcomp.c
305 lib/regex.c
306 lib/regex.h
307 lib/regex_internal.c
308 lib/regex_internal.h
309 lib/regexec.c
310 lib/safe-read.c
311 lib/safe-read.h
312 lib/safe-write.c
313 lib/safe-write.h
314 lib/size_max.h
315 lib/snprintf.c
316 lib/stdbool.in.h
317 lib/stdint.in.h
318 lib/stdio.in.h
319 lib/stdlib.in.h
320 lib/strdup.c
321 lib/strerror.c
322 lib/string.in.h
323 lib/stripslash.c
324 lib/strndup.c
325 lib/strnlen.c
326 lib/sys_socket.in.h
327 lib/unistd--.h
328 lib/unistd-safer.h
329 lib/unistd.in.h
330 lib/vasnprintf.c
331 lib/vasnprintf.h
332 lib/vasprintf.c
333 lib/vsnprintf.c
334 lib/wchar.in.h
335 lib/wctype.in.h
336 lib/xalloc-die.c
337 lib/xalloc.h
338 lib/xmalloc.c
339 lib/xsize.h
340 lib/xstrndup.c
341 lib/xstrndup.h
342 m4/absolute-header.m4
343 m4/alloca.m4
344 m4/arpa_inet_h.m4
345 m4/base64.m4
346 m4/c-strtod.m4
347 m4/cloexec.m4
348 m4/codeset.m4
349 m4/dirname.m4
350 m4/dos.m4
351 m4/double-slash-root.m4
352 m4/eoverflow.m4
353 m4/error.m4
354 m4/exitfail.m4
355 m4/extensions.m4
356 m4/fcntl-safer.m4
357 m4/float_h.m4
358 m4/floorf.m4
359 m4/fstypename.m4
360 m4/fsusage.m4
361 m4/getaddrinfo.m4
362 m4/gethostname.m4
363 m4/getloadavg.m4
364 m4/getopt.m4
365 m4/gettext.m4
366 m4/glibc2.m4
367 m4/glibc21.m4
368 m4/gnulib-common.m4
369 m4/iconv.m4
370 m4/include_next.m4
371 m4/inet_ntop.m4
372 m4/inline.m4
373 m4/intdiv0.m4
374 m4/intl.m4
375 m4/intldir.m4
376 m4/intlmacosx.m4
377 m4/intmax.m4
378 m4/intmax_t.m4
379 m4/inttypes-pri.m4
380 m4/inttypes_h.m4
381 m4/lcmessage.m4
382 m4/lib-ld.m4
383 m4/lib-link.m4
384 m4/lib-prefix.m4
385 m4/localcharset.m4
386 m4/lock.m4
387 m4/longlong.m4
388 m4/ls-mntd-fs.m4
389 m4/malloc.m4
390 m4/math_h.m4
391 m4/mountlist.m4
392 m4/netinet_in_h.m4
393 m4/nls.m4
394 m4/onceonly_2_57.m4
395 m4/po.m4
396 m4/printf-posix.m4
397 m4/progtest.m4
398 m4/regex.m4
399 m4/safe-read.m4
400 m4/safe-write.m4
401 m4/size_max.m4
402 m4/snprintf.m4
403 m4/socklen.m4
404 m4/sockpfaf.m4
405 m4/ssize_t.m4
406 m4/stdbool.m4
407 m4/stdint.m4
408 m4/stdint_h.m4
409 m4/stdio_h.m4
410 m4/stdlib_h.m4
411 m4/strdup.m4
412 m4/strerror.m4
413 m4/string_h.m4
414 m4/strndup.m4
415 m4/strnlen.m4
416 m4/sys_socket_h.m4
417 m4/uintmax_t.m4
418 m4/unistd-safer.m4
419 m4/unistd_h.m4
420 m4/vasnprintf.m4
421 m4/vasprintf.m4
422 m4/visibility.m4
423 m4/vsnprintf.m4
424 m4/wchar.m4
425 m4/wchar_t.m4
426 m4/wctype.m4
427 m4/wint_t.m4
428 m4/xalloc.m4
429 m4/xsize.m4
430 m4/xstrndup.m4
431 ])