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