Merge branch 'master' into boehm-demers-weiser-gc
[bpt/guile.git] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2009 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.
16
17
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 AB_INIT
29 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30 ])
31
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], [true])
37 gl_cond_libtool=true
38 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
39 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
40 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
41 m4_pushdef([gl_LIBSOURCES_LIST], [])
42 m4_pushdef([gl_LIBSOURCES_DIR], [])
43 gl_COMMON
44 gl_source_base='lib'
45 gl_FUNC_ALLOCA
46 gl_LOCALCHARSET
47 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
48 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
49 gl_FUNC_MBRLEN
50 gl_WCHAR_MODULE_INDICATOR([mbrlen])
51 gl_FUNC_MBRTOWC
52 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
53 gl_FUNC_MBSINIT
54 gl_WCHAR_MODULE_INDICATOR([mbsinit])
55 gl_SAFE_READ
56 gl_SAFE_WRITE
57 gt_TYPE_SSIZE_T
58 AM_STDBOOL_H
59 gl_STRCASE
60 gl_FUNC_GNU_STRFTIME
61 gl_HEADER_STRINGS_H
62 gl_HEADER_TIME_H
63 gl_TIME_R
64 gl_UNISTD_H
65 gl_WCHAR_H
66 gl_FUNC_WRITE
67 gl_UNISTD_MODULE_INDICATOR([write])
68 m4_ifval(gl_LIBSOURCES_LIST, [
69 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
70 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
71 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
72 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
73 exit 1
74 fi
75 done])dnl
76 m4_if(m4_sysval, [0], [],
77 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
78 ])
79 m4_popdef([gl_LIBSOURCES_DIR])
80 m4_popdef([gl_LIBSOURCES_LIST])
81 m4_popdef([AC_LIBSOURCES])
82 m4_popdef([AC_REPLACE_FUNCS])
83 m4_popdef([AC_LIBOBJ])
84 AC_CONFIG_COMMANDS_PRE([
85 gl_libobjs=
86 gl_ltlibobjs=
87 if test -n "$gl_LIBOBJS"; then
88 # Remove the extension.
89 sed_drop_objext='s/\.o$//;s/\.obj$//'
90 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
91 gl_libobjs="$gl_libobjs $i.$ac_objext"
92 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
93 done
94 fi
95 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
96 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
97 ])
98 gltests_libdeps=
99 gltests_ltlibdeps=
100 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
101 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
102 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
103 m4_pushdef([gltests_LIBSOURCES_LIST], [])
104 m4_pushdef([gltests_LIBSOURCES_DIR], [])
105 gl_COMMON
106 gl_source_base='tests'
107 m4_ifval(gltests_LIBSOURCES_LIST, [
108 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
109 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
110 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
111 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
112 exit 1
113 fi
114 done])dnl
115 m4_if(m4_sysval, [0], [],
116 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
117 ])
118 m4_popdef([gltests_LIBSOURCES_DIR])
119 m4_popdef([gltests_LIBSOURCES_LIST])
120 m4_popdef([AC_LIBSOURCES])
121 m4_popdef([AC_REPLACE_FUNCS])
122 m4_popdef([AC_LIBOBJ])
123 AC_CONFIG_COMMANDS_PRE([
124 gltests_libobjs=
125 gltests_ltlibobjs=
126 if test -n "$gltests_LIBOBJS"; then
127 # Remove the extension.
128 sed_drop_objext='s/\.o$//;s/\.obj$//'
129 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
130 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
131 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
132 done
133 fi
134 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
135 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
136 ])
137 ])
138
139 # Like AC_LIBOBJ, except that the module name goes
140 # into gl_LIBOBJS instead of into LIBOBJS.
141 AC_DEFUN([gl_LIBOBJ], [
142 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
143 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
144 ])
145
146 # Like AC_REPLACE_FUNCS, except that the module name goes
147 # into gl_LIBOBJS instead of into LIBOBJS.
148 AC_DEFUN([gl_REPLACE_FUNCS], [
149 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
150 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
151 ])
152
153 # Like AC_LIBSOURCES, except the directory where the source file is
154 # expected is derived from the gnulib-tool parameterization,
155 # and alloca is special cased (for the alloca-opt module).
156 # We could also entirely rely on EXTRA_lib..._SOURCES.
157 AC_DEFUN([gl_LIBSOURCES], [
158 m4_foreach([_gl_NAME], [$1], [
159 m4_if(_gl_NAME, [alloca.c], [], [
160 m4_define([gl_LIBSOURCES_DIR], [lib])
161 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
162 ])
163 ])
164 ])
165
166 # Like AC_LIBOBJ, except that the module name goes
167 # into gltests_LIBOBJS instead of into LIBOBJS.
168 AC_DEFUN([gltests_LIBOBJ], [
169 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
170 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
171 ])
172
173 # Like AC_REPLACE_FUNCS, except that the module name goes
174 # into gltests_LIBOBJS instead of into LIBOBJS.
175 AC_DEFUN([gltests_REPLACE_FUNCS], [
176 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
177 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
178 ])
179
180 # Like AC_LIBSOURCES, except the directory where the source file is
181 # expected is derived from the gnulib-tool parameterization,
182 # and alloca is special cased (for the alloca-opt module).
183 # We could also entirely rely on EXTRA_lib..._SOURCES.
184 AC_DEFUN([gltests_LIBSOURCES], [
185 m4_foreach([_gl_NAME], [$1], [
186 m4_if(_gl_NAME, [alloca.c], [], [
187 m4_define([gltests_LIBSOURCES_DIR], [tests])
188 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
189 ])
190 ])
191 ])
192
193 # This macro records the list of files which have been installed by
194 # gnulib-tool and may be removed by future gnulib-tool invocations.
195 AC_DEFUN([gl_FILE_LIST], [
196 build-aux/link-warning.h
197 lib/alloca.in.h
198 lib/config.charset
199 lib/full-read.c
200 lib/full-read.h
201 lib/full-write.c
202 lib/full-write.h
203 lib/localcharset.c
204 lib/localcharset.h
205 lib/mbrlen.c
206 lib/mbrtowc.c
207 lib/mbsinit.c
208 lib/ref-add.sin
209 lib/ref-del.sin
210 lib/safe-read.c
211 lib/safe-read.h
212 lib/safe-write.c
213 lib/safe-write.h
214 lib/stdbool.in.h
215 lib/strcasecmp.c
216 lib/streq.h
217 lib/strftime.c
218 lib/strftime.h
219 lib/strings.in.h
220 lib/strncasecmp.c
221 lib/time.in.h
222 lib/time_r.c
223 lib/unistd.in.h
224 lib/verify.h
225 lib/wchar.in.h
226 lib/write.c
227 m4/alloca.m4
228 m4/autobuild.m4
229 m4/codeset.m4
230 m4/extensions.m4
231 m4/glibc21.m4
232 m4/gnulib-common.m4
233 m4/include_next.m4
234 m4/localcharset.m4
235 m4/locale-fr.m4
236 m4/locale-ja.m4
237 m4/locale-zh.m4
238 m4/mbrlen.m4
239 m4/mbrtowc.m4
240 m4/mbsinit.m4
241 m4/mbstate_t.m4
242 m4/safe-read.m4
243 m4/safe-write.m4
244 m4/ssize_t.m4
245 m4/stdbool.m4
246 m4/strcase.m4
247 m4/strftime.m4
248 m4/strings_h.m4
249 m4/time_h.m4
250 m4/time_r.m4
251 m4/tm_gmtoff.m4
252 m4/unistd_h.m4
253 m4/wchar.m4
254 m4/wint_t.m4
255 m4/write.m4
256 ])