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