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