Code

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