Autogenerate.
[bpt/emacs.git] / m4 / gl-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 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 that use version control, this file can be treated like
16 # other built files.
17
18
19 # This macro should be invoked from ./configure.in, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
22 AC_DEFUN([gl_EARLY],
23 [
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 # Code from module arg-nonnull:
30 # Code from module c++defs:
31 # Code from module crypto/md5:
32 # Code from module dosname:
33 # Code from module dtoastr:
34 # Code from module extensions:
35 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
36 # Code from module filemode:
37 # Code from module getloadavg:
38 # Code from module getopt-gnu:
39 # Code from module getopt-posix:
40 # Code from module gettext-h:
41 # Code from module ignore-value:
42 # Code from module include_next:
43 # Code from module intprops:
44 # Code from module lstat:
45 # Code from module mktime:
46 # Code from module multiarch:
47 # Code from module readlink:
48 # Code from module stat:
49 # Code from module stdbool:
50 # Code from module stddef:
51 # Code from module stdint:
52 # Code from module stdio:
53 # Code from module stdlib:
54 # Code from module strftime:
55 # Code from module symlink:
56 # Code from module sys_stat:
57 # Code from module time:
58 # Code from module time_r:
59 # Code from module unistd:
60 # Code from module warn-on-use:
61 ])
62
63 # This macro should be invoked from ./configure.in, in the section
64 # "Check for header files, types and library functions".
65 AC_DEFUN([gl_INIT],
66 [
67 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
68 gl_cond_libtool=false
69 gl_libdeps=
70 gl_ltlibdeps=
71 gl_m4_base='m4'
72 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
73 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
74 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
75 m4_pushdef([gl_LIBSOURCES_LIST], [])
76 m4_pushdef([gl_LIBSOURCES_DIR], [])
77 gl_COMMON
78 gl_source_base='lib'
79 # Code from module arg-nonnull:
80 # Code from module c++defs:
81 # Code from module crypto/md5:
82 gl_MD5
83 # Code from module dosname:
84 # Code from module dtoastr:
85 AC_REQUIRE([gl_C99_STRTOLD])
86 # Code from module extensions:
87 # Code from module filemode:
88 gl_FILEMODE
89 # Code from module getloadavg:
90 gl_GETLOADAVG([$gl_source_base])
91 gl_STDLIB_MODULE_INDICATOR([getloadavg])
92 # Code from module getopt-gnu:
93 gl_FUNC_GETOPT_GNU
94 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
95 # Code from module getopt-posix:
96 gl_FUNC_GETOPT_POSIX
97 # Code from module gettext-h:
98 AC_SUBST([LIBINTL])
99 AC_SUBST([LTLIBINTL])
100 # Code from module ignore-value:
101 AC_REQUIRE([AC_C_INLINE])
102 # Code from module include_next:
103 # Code from module intprops:
104 # Code from module lstat:
105 gl_FUNC_LSTAT
106 gl_SYS_STAT_MODULE_INDICATOR([lstat])
107 # Code from module mktime:
108 gl_FUNC_MKTIME
109 gl_TIME_MODULE_INDICATOR([mktime])
110 # Code from module multiarch:
111 gl_MULTIARCH
112 # Code from module readlink:
113 gl_FUNC_READLINK
114 gl_UNISTD_MODULE_INDICATOR([readlink])
115 # Code from module stat:
116 gl_FUNC_STAT
117 gl_SYS_STAT_MODULE_INDICATOR([stat])
118 # Code from module stdbool:
119 AM_STDBOOL_H
120 # Code from module stddef:
121 gl_STDDEF_H
122 # Code from module stdint:
123 gl_STDINT_H
124 # Code from module stdio:
125 gl_STDIO_H
126 # Code from module stdlib:
127 gl_STDLIB_H
128 # Code from module strftime:
129 gl_FUNC_GNU_STRFTIME
130 # Code from module symlink:
131 gl_FUNC_SYMLINK
132 gl_UNISTD_MODULE_INDICATOR([symlink])
133 # Code from module sys_stat:
134 gl_HEADER_SYS_STAT_H
135 AC_PROG_MKDIR_P
136 # Code from module time:
137 gl_HEADER_TIME_H
138 # Code from module time_r:
139 gl_TIME_R
140 gl_TIME_MODULE_INDICATOR([time_r])
141 # Code from module unistd:
142 gl_UNISTD_H
143 # Code from module warn-on-use:
144 # End of code from modules
145 m4_ifval(gl_LIBSOURCES_LIST, [
146 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
147 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
148 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
149 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
150 exit 1
151 fi
152 done])dnl
153 m4_if(m4_sysval, [0], [],
154 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
155 ])
156 m4_popdef([gl_LIBSOURCES_DIR])
157 m4_popdef([gl_LIBSOURCES_LIST])
158 m4_popdef([AC_LIBSOURCES])
159 m4_popdef([AC_REPLACE_FUNCS])
160 m4_popdef([AC_LIBOBJ])
161 AC_CONFIG_COMMANDS_PRE([
162 gl_libobjs=
163 gl_ltlibobjs=
164 if test -n "$gl_LIBOBJS"; then
165 # Remove the extension.
166 sed_drop_objext='s/\.o$//;s/\.obj$//'
167 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
168 gl_libobjs="$gl_libobjs $i.$ac_objext"
169 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
170 done
171 fi
172 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
173 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
174 ])
175 gltests_libdeps=
176 gltests_ltlibdeps=
177 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
178 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
179 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
180 m4_pushdef([gltests_LIBSOURCES_LIST], [])
181 m4_pushdef([gltests_LIBSOURCES_DIR], [])
182 gl_COMMON
183 gl_source_base='tests'
184 changequote(,)dnl
185 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
186 changequote([, ])dnl
187 AC_SUBST([gltests_WITNESS])
188 gl_module_indicator_condition=$gltests_WITNESS
189 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
190 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
191 m4_ifval(gltests_LIBSOURCES_LIST, [
192 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
193 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
194 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
195 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
196 exit 1
197 fi
198 done])dnl
199 m4_if(m4_sysval, [0], [],
200 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
201 ])
202 m4_popdef([gltests_LIBSOURCES_DIR])
203 m4_popdef([gltests_LIBSOURCES_LIST])
204 m4_popdef([AC_LIBSOURCES])
205 m4_popdef([AC_REPLACE_FUNCS])
206 m4_popdef([AC_LIBOBJ])
207 AC_CONFIG_COMMANDS_PRE([
208 gltests_libobjs=
209 gltests_ltlibobjs=
210 if test -n "$gltests_LIBOBJS"; then
211 # Remove the extension.
212 sed_drop_objext='s/\.o$//;s/\.obj$//'
213 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
214 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
215 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
216 done
217 fi
218 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
219 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
220 ])
221 LIBGNU_LIBDEPS="$gl_libdeps"
222 AC_SUBST([LIBGNU_LIBDEPS])
223 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
224 AC_SUBST([LIBGNU_LTLIBDEPS])
225 ])
226
227 # Like AC_LIBOBJ, except that the module name goes
228 # into gl_LIBOBJS instead of into LIBOBJS.
229 AC_DEFUN([gl_LIBOBJ], [
230 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
231 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
232 ])
233
234 # Like AC_REPLACE_FUNCS, except that the module name goes
235 # into gl_LIBOBJS instead of into LIBOBJS.
236 AC_DEFUN([gl_REPLACE_FUNCS], [
237 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
238 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
239 ])
240
241 # Like AC_LIBSOURCES, except the directory where the source file is
242 # expected is derived from the gnulib-tool parameterization,
243 # and alloca is special cased (for the alloca-opt module).
244 # We could also entirely rely on EXTRA_lib..._SOURCES.
245 AC_DEFUN([gl_LIBSOURCES], [
246 m4_foreach([_gl_NAME], [$1], [
247 m4_if(_gl_NAME, [alloca.c], [], [
248 m4_define([gl_LIBSOURCES_DIR], [lib])
249 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
250 ])
251 ])
252 ])
253
254 # Like AC_LIBOBJ, except that the module name goes
255 # into gltests_LIBOBJS instead of into LIBOBJS.
256 AC_DEFUN([gltests_LIBOBJ], [
257 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
258 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
259 ])
260
261 # Like AC_REPLACE_FUNCS, except that the module name goes
262 # into gltests_LIBOBJS instead of into LIBOBJS.
263 AC_DEFUN([gltests_REPLACE_FUNCS], [
264 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
265 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
266 ])
267
268 # Like AC_LIBSOURCES, except the directory where the source file is
269 # expected is derived from the gnulib-tool parameterization,
270 # and alloca is special cased (for the alloca-opt module).
271 # We could also entirely rely on EXTRA_lib..._SOURCES.
272 AC_DEFUN([gltests_LIBSOURCES], [
273 m4_foreach([_gl_NAME], [$1], [
274 m4_if(_gl_NAME, [alloca.c], [], [
275 m4_define([gltests_LIBSOURCES_DIR], [tests])
276 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
277 ])
278 ])
279 ])
280
281 # This macro records the list of files which have been installed by
282 # gnulib-tool and may be removed by future gnulib-tool invocations.
283 AC_DEFUN([gl_FILE_LIST], [
284 build-aux/arg-nonnull.h
285 build-aux/c++defs.h
286 build-aux/warn-on-use.h
287 lib/dosname.h
288 lib/dtoastr.c
289 lib/filemode.c
290 lib/filemode.h
291 lib/ftoastr.c
292 lib/ftoastr.h
293 lib/getloadavg.c
294 lib/getopt.c
295 lib/getopt.in.h
296 lib/getopt1.c
297 lib/getopt_int.h
298 lib/gettext.h
299 lib/ignore-value.h
300 lib/intprops.h
301 lib/lstat.c
302 lib/md5.c
303 lib/md5.h
304 lib/mktime-internal.h
305 lib/mktime.c
306 lib/readlink.c
307 lib/stat.c
308 lib/stdbool.in.h
309 lib/stddef.in.h
310 lib/stdint.in.h
311 lib/stdio.in.h
312 lib/stdlib.in.h
313 lib/strftime.c
314 lib/strftime.h
315 lib/symlink.c
316 lib/sys_stat.in.h
317 lib/time.in.h
318 lib/time_r.c
319 lib/unistd.in.h
320 m4/00gnulib.m4
321 m4/c-strtod.m4
322 m4/extensions.m4
323 m4/filemode.m4
324 m4/getloadavg.m4
325 m4/getopt.m4
326 m4/gnulib-common.m4
327 m4/include_next.m4
328 m4/longlong.m4
329 m4/lstat.m4
330 m4/md5.m4
331 m4/mktime.m4
332 m4/multiarch.m4
333 m4/readlink.m4
334 m4/st_dm_mode.m4
335 m4/stat.m4
336 m4/stdbool.m4
337 m4/stddef_h.m4
338 m4/stdint.m4
339 m4/stdio_h.m4
340 m4/stdlib_h.m4
341 m4/strftime.m4
342 m4/symlink.m4
343 m4/sys_stat_h.m4
344 m4/time_h.m4
345 m4/time_r.m4
346 m4/tm_gmtoff.m4
347 m4/unistd_h.m4
348 m4/warn-on-use.m4
349 m4/wchar_t.m4
350 ])