Merge branch 'master' of git://git.savannah.gnu.org/guile
[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 AC_REQUIRE([AM_PROG_CC_C_O])
29 AB_INIT
30 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
31 AC_REQUIRE([gl_FP_IEEE])
32 ])
33
34 # This macro should be invoked from ./configure.in, in the section
35 # "Check for header files, types and library functions".
36 AC_DEFUN([gl_INIT],
37 [
38 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
39 gl_cond_libtool=true
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 m4_pushdef([gl_LIBSOURCES_LIST], [])
44 m4_pushdef([gl_LIBSOURCES_DIR], [])
45 gl_COMMON
46 gl_source_base='lib'
47 gl_FUNC_ALLOCA
48 gl_BYTESWAP
49 gl_COUNT_ONE_BITS
50 gl_ENVIRON
51 gl_UNISTD_MODULE_INDICATOR([environ])
52 gl_FUNC_FLOCK
53 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
54 AM_ICONV
55 gl_ICONV_H
56 gl_FUNC_ICONV_OPEN
57 gl_FUNC_ICONV_OPEN_UTF
58 gl_INLINE
59 gl_VISIBILITY
60 gl_LIBUNISTRING
61 gl_LOCALCHARSET
62 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
63 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
64 gl_FUNC_MALLOC_POSIX
65 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
66 gl_FUNC_MBRLEN
67 gl_WCHAR_MODULE_INDICATOR([mbrlen])
68 gl_FUNC_MBRTOWC
69 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
70 gl_FUNC_MBSINIT
71 gl_WCHAR_MODULE_INDICATOR([mbsinit])
72 gl_MULTIARCH
73 gl_FUNC_PUTENV
74 gl_STDLIB_MODULE_INDICATOR([putenv])
75 gl_SAFE_READ
76 gl_SAFE_WRITE
77 gt_TYPE_SSIZE_T
78 AM_STDBOOL_H
79 gl_STDINT_H
80 gl_STDLIB_H
81 gl_STRCASE
82 gl_FUNC_GNU_STRFTIME
83 if test $gl_cond_libtool = false; then
84 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
85 gl_libdeps="$gl_libdeps $LIBICONV"
86 fi
87 gl_HEADER_STRING_H
88 gl_HEADER_STRINGS_H
89 gl_HEADER_SYS_FILE_H
90 AC_PROG_MKDIR_P
91 gl_HEADER_TIME_H
92 gl_TIME_R
93 gl_UNISTD_H
94 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
95 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
96 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
97 gl_MODULE_INDICATOR([unistr/u8-uctomb])
98 gl_WCHAR_H
99 gl_FUNC_WRITE
100 gl_UNISTD_MODULE_INDICATOR([write])
101 m4_ifval(gl_LIBSOURCES_LIST, [
102 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
103 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
104 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
105 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
106 exit 1
107 fi
108 done])dnl
109 m4_if(m4_sysval, [0], [],
110 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
111 ])
112 m4_popdef([gl_LIBSOURCES_DIR])
113 m4_popdef([gl_LIBSOURCES_LIST])
114 m4_popdef([AC_LIBSOURCES])
115 m4_popdef([AC_REPLACE_FUNCS])
116 m4_popdef([AC_LIBOBJ])
117 AC_CONFIG_COMMANDS_PRE([
118 gl_libobjs=
119 gl_ltlibobjs=
120 if test -n "$gl_LIBOBJS"; then
121 # Remove the extension.
122 sed_drop_objext='s/\.o$//;s/\.obj$//'
123 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
124 gl_libobjs="$gl_libobjs $i.$ac_objext"
125 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
126 done
127 fi
128 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
129 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
130 ])
131 gltests_libdeps=
132 gltests_ltlibdeps=
133 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
134 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
135 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
136 m4_pushdef([gltests_LIBSOURCES_LIST], [])
137 m4_pushdef([gltests_LIBSOURCES_DIR], [])
138 gl_COMMON
139 gl_source_base='tests'
140 m4_ifval(gltests_LIBSOURCES_LIST, [
141 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
142 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
143 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
144 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
145 exit 1
146 fi
147 done])dnl
148 m4_if(m4_sysval, [0], [],
149 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
150 ])
151 m4_popdef([gltests_LIBSOURCES_DIR])
152 m4_popdef([gltests_LIBSOURCES_LIST])
153 m4_popdef([AC_LIBSOURCES])
154 m4_popdef([AC_REPLACE_FUNCS])
155 m4_popdef([AC_LIBOBJ])
156 AC_CONFIG_COMMANDS_PRE([
157 gltests_libobjs=
158 gltests_ltlibobjs=
159 if test -n "$gltests_LIBOBJS"; then
160 # Remove the extension.
161 sed_drop_objext='s/\.o$//;s/\.obj$//'
162 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
163 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
164 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
165 done
166 fi
167 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
168 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
169 ])
170 ])
171
172 # Like AC_LIBOBJ, except that the module name goes
173 # into gl_LIBOBJS instead of into LIBOBJS.
174 AC_DEFUN([gl_LIBOBJ], [
175 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
176 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
177 ])
178
179 # Like AC_REPLACE_FUNCS, except that the module name goes
180 # into gl_LIBOBJS instead of into LIBOBJS.
181 AC_DEFUN([gl_REPLACE_FUNCS], [
182 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
183 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
184 ])
185
186 # Like AC_LIBSOURCES, except the directory where the source file is
187 # expected is derived from the gnulib-tool parameterization,
188 # and alloca is special cased (for the alloca-opt module).
189 # We could also entirely rely on EXTRA_lib..._SOURCES.
190 AC_DEFUN([gl_LIBSOURCES], [
191 m4_foreach([_gl_NAME], [$1], [
192 m4_if(_gl_NAME, [alloca.c], [], [
193 m4_define([gl_LIBSOURCES_DIR], [lib])
194 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
195 ])
196 ])
197 ])
198
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 ])
205
206 # Like AC_REPLACE_FUNCS, except that the module name goes
207 # into gltests_LIBOBJS instead of into LIBOBJS.
208 AC_DEFUN([gltests_REPLACE_FUNCS], [
209 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
210 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
211 ])
212
213 # Like AC_LIBSOURCES, except the directory where the source file is
214 # expected is derived from the gnulib-tool parameterization,
215 # and alloca is special cased (for the alloca-opt module).
216 # We could also entirely rely on EXTRA_lib..._SOURCES.
217 AC_DEFUN([gltests_LIBSOURCES], [
218 m4_foreach([_gl_NAME], [$1], [
219 m4_if(_gl_NAME, [alloca.c], [], [
220 m4_define([gltests_LIBSOURCES_DIR], [tests])
221 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
222 ])
223 ])
224 ])
225
226 # This macro records the list of files which have been installed by
227 # gnulib-tool and may be removed by future gnulib-tool invocations.
228 AC_DEFUN([gl_FILE_LIST], [
229 build-aux/config.rpath
230 build-aux/link-warning.h
231 lib/alloca.in.h
232 lib/byteswap.in.h
233 lib/c-ctype.c
234 lib/c-ctype.h
235 lib/c-strcase.h
236 lib/c-strcasecmp.c
237 lib/c-strcaseeq.h
238 lib/c-strncasecmp.c
239 lib/config.charset
240 lib/count-one-bits.h
241 lib/flock.c
242 lib/full-read.c
243 lib/full-read.h
244 lib/full-write.c
245 lib/full-write.h
246 lib/iconv.c
247 lib/iconv.in.h
248 lib/iconv_close.c
249 lib/iconv_open-aix.gperf
250 lib/iconv_open-hpux.gperf
251 lib/iconv_open-irix.gperf
252 lib/iconv_open-osf.gperf
253 lib/iconv_open.c
254 lib/iconveh.h
255 lib/localcharset.c
256 lib/localcharset.h
257 lib/malloc.c
258 lib/mbrlen.c
259 lib/mbrtowc.c
260 lib/mbsinit.c
261 lib/putenv.c
262 lib/ref-add.sin
263 lib/ref-del.sin
264 lib/safe-read.c
265 lib/safe-read.h
266 lib/safe-write.c
267 lib/safe-write.h
268 lib/stdbool.in.h
269 lib/stdint.in.h
270 lib/stdlib.in.h
271 lib/strcasecmp.c
272 lib/streq.h
273 lib/strftime.c
274 lib/strftime.h
275 lib/striconveh.c
276 lib/striconveh.h
277 lib/string.in.h
278 lib/strings.in.h
279 lib/strncasecmp.c
280 lib/sys_file.in.h
281 lib/time.in.h
282 lib/time_r.c
283 lib/unistd.in.h
284 lib/unistr.h
285 lib/unistr/u8-mbtouc-aux.c
286 lib/unistr/u8-mbtouc-unsafe-aux.c
287 lib/unistr/u8-mbtouc-unsafe.c
288 lib/unistr/u8-mbtouc.c
289 lib/unistr/u8-mbtoucr.c
290 lib/unistr/u8-prev.c
291 lib/unistr/u8-uctomb-aux.c
292 lib/unistr/u8-uctomb.c
293 lib/unitypes.h
294 lib/verify.h
295 lib/wchar.in.h
296 lib/write.c
297 m4/00gnulib.m4
298 m4/alloca.m4
299 m4/autobuild.m4
300 m4/byteswap.m4
301 m4/codeset.m4
302 m4/count-one-bits.m4
303 m4/environ.m4
304 m4/extensions.m4
305 m4/flock.m4
306 m4/fpieee.m4
307 m4/glibc21.m4
308 m4/gnulib-common.m4
309 m4/iconv.m4
310 m4/iconv_h.m4
311 m4/iconv_open.m4
312 m4/include_next.m4
313 m4/inline.m4
314 m4/lib-ld.m4
315 m4/lib-link.m4
316 m4/lib-prefix.m4
317 m4/libunistring.m4
318 m4/localcharset.m4
319 m4/locale-fr.m4
320 m4/locale-ja.m4
321 m4/locale-zh.m4
322 m4/longlong.m4
323 m4/malloc.m4
324 m4/mbrlen.m4
325 m4/mbrtowc.m4
326 m4/mbsinit.m4
327 m4/mbstate_t.m4
328 m4/multiarch.m4
329 m4/putenv.m4
330 m4/safe-read.m4
331 m4/safe-write.m4
332 m4/ssize_t.m4
333 m4/stdbool.m4
334 m4/stdint.m4
335 m4/stdlib_h.m4
336 m4/strcase.m4
337 m4/strftime.m4
338 m4/string_h.m4
339 m4/strings_h.m4
340 m4/sys_file_h.m4
341 m4/time_h.m4
342 m4/time_r.m4
343 m4/tm_gmtoff.m4
344 m4/unistd_h.m4
345 m4/visibility.m4
346 m4/wchar.m4
347 m4/wint_t.m4
348 m4/write.m4
349 ])