4b1f6a9e48c9f7a15f82a509467d56e45ef17789
[deliverable/binutils-gdb.git] / gdb / gnulib / import / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
3 #
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
21 #
22 # Generated by gnulib-tool.
23 #
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
28 # other built files.
29
30
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
34 AC_DEFUN([gl_EARLY],
35 [
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 # Code from module alloca:
42 # Code from module alloca-opt:
43 # Code from module configmake:
44 # Code from module dirent:
45 # Code from module extensions:
46 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
47 # Code from module extern-inline:
48 # Code from module float:
49 # Code from module fnmatch:
50 # Code from module fnmatch-gnu:
51 # Code from module fpieee:
52 AC_REQUIRE([gl_FP_IEEE])
53 # Code from module fpucw:
54 # Code from module frexp:
55 # Code from module frexpl:
56 # Code from module include_next:
57 # Code from module inttypes:
58 # Code from module inttypes-incomplete:
59 # Code from module isnand-nolibm:
60 # Code from module isnanl-nolibm:
61 # Code from module localcharset:
62 # Code from module math:
63 # Code from module mbrtowc:
64 # Code from module mbsinit:
65 # Code from module mbsrtowcs:
66 # Code from module memchr:
67 # Code from module memmem:
68 # Code from module memmem-simple:
69 # Code from module multiarch:
70 # Code from module pathmax:
71 # Code from module snippet/arg-nonnull:
72 # Code from module snippet/c++defs:
73 # Code from module snippet/warn-on-use:
74 # Code from module ssize_t:
75 # Code from module stdbool:
76 # Code from module stddef:
77 # Code from module stdint:
78 # Code from module streq:
79 # Code from module string:
80 # Code from module strnlen1:
81 # Code from module strstr:
82 # Code from module strstr-simple:
83 # Code from module sys_stat:
84 # Code from module sys_types:
85 # Code from module time:
86 # Code from module unistd:
87 # Code from module update-copyright:
88 # Code from module verify:
89 # Code from module wchar:
90 # Code from module wctype-h:
91 ])
92
93 # This macro should be invoked from ./configure.ac, in the section
94 # "Check for header files, types and library functions".
95 AC_DEFUN([gl_INIT],
96 [
97 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
98 gl_cond_libtool=false
99 gl_libdeps=
100 gl_ltlibdeps=
101 gl_m4_base='import/m4'
102 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
103 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
104 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
105 m4_pushdef([gl_LIBSOURCES_LIST], [])
106 m4_pushdef([gl_LIBSOURCES_DIR], [])
107 gl_COMMON
108 gl_source_base='import'
109 gl_FUNC_ALLOCA
110 gl_CONFIGMAKE_PREP
111 gl_DIRENT_H
112 AC_REQUIRE([gl_EXTERN_INLINE])
113 gl_FLOAT_H
114 if test $REPLACE_FLOAT_LDBL = 1; then
115 AC_LIBOBJ([float])
116 fi
117 if test $REPLACE_ITOLD = 1; then
118 AC_LIBOBJ([itold])
119 fi
120 gl_FUNC_FNMATCH_POSIX
121 if test -n "$FNMATCH_H"; then
122 AC_LIBOBJ([fnmatch])
123 gl_PREREQ_FNMATCH
124 fi
125 gl_FUNC_FNMATCH_GNU
126 if test -n "$FNMATCH_H"; then
127 AC_LIBOBJ([fnmatch])
128 gl_PREREQ_FNMATCH
129 fi
130 gl_FUNC_FREXP
131 if test $gl_func_frexp != yes; then
132 AC_LIBOBJ([frexp])
133 fi
134 gl_MATH_MODULE_INDICATOR([frexp])
135 gl_FUNC_FREXPL
136 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
137 AC_LIBOBJ([frexpl])
138 fi
139 gl_MATH_MODULE_INDICATOR([frexpl])
140 gl_INTTYPES_H
141 gl_INTTYPES_INCOMPLETE
142 gl_FUNC_ISNAND_NO_LIBM
143 if test $gl_func_isnand_no_libm != yes; then
144 AC_LIBOBJ([isnand])
145 gl_PREREQ_ISNAND
146 fi
147 gl_FUNC_ISNANL_NO_LIBM
148 if test $gl_func_isnanl_no_libm != yes; then
149 AC_LIBOBJ([isnanl])
150 gl_PREREQ_ISNANL
151 fi
152 gl_LOCALCHARSET
153 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
154 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
155 gl_MATH_H
156 gl_FUNC_MBRTOWC
157 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
158 AC_LIBOBJ([mbrtowc])
159 gl_PREREQ_MBRTOWC
160 fi
161 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
162 gl_FUNC_MBSINIT
163 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
164 AC_LIBOBJ([mbsinit])
165 gl_PREREQ_MBSINIT
166 fi
167 gl_WCHAR_MODULE_INDICATOR([mbsinit])
168 gl_FUNC_MBSRTOWCS
169 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
170 AC_LIBOBJ([mbsrtowcs])
171 AC_LIBOBJ([mbsrtowcs-state])
172 gl_PREREQ_MBSRTOWCS
173 fi
174 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
175 gl_FUNC_MEMCHR
176 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
177 AC_LIBOBJ([memchr])
178 gl_PREREQ_MEMCHR
179 fi
180 gl_STRING_MODULE_INDICATOR([memchr])
181 gl_FUNC_MEMMEM
182 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
183 AC_LIBOBJ([memmem])
184 fi
185 gl_FUNC_MEMMEM_SIMPLE
186 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
187 AC_LIBOBJ([memmem])
188 fi
189 gl_STRING_MODULE_INDICATOR([memmem])
190 gl_MULTIARCH
191 gl_PATHMAX
192 gt_TYPE_SSIZE_T
193 AM_STDBOOL_H
194 gl_STDDEF_H
195 gl_STDINT_H
196 gl_HEADER_STRING_H
197 gl_FUNC_STRSTR
198 if test $REPLACE_STRSTR = 1; then
199 AC_LIBOBJ([strstr])
200 fi
201 gl_FUNC_STRSTR_SIMPLE
202 if test $REPLACE_STRSTR = 1; then
203 AC_LIBOBJ([strstr])
204 fi
205 gl_STRING_MODULE_INDICATOR([strstr])
206 gl_HEADER_SYS_STAT_H
207 AC_PROG_MKDIR_P
208 gl_SYS_TYPES_H
209 AC_PROG_MKDIR_P
210 gl_HEADER_TIME_H
211 gl_UNISTD_H
212 gl_WCHAR_H
213 gl_WCTYPE_H
214 # End of code from modules
215 m4_ifval(gl_LIBSOURCES_LIST, [
216 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
217 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
218 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
219 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
220 exit 1
221 fi
222 done])dnl
223 m4_if(m4_sysval, [0], [],
224 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
225 ])
226 m4_popdef([gl_LIBSOURCES_DIR])
227 m4_popdef([gl_LIBSOURCES_LIST])
228 m4_popdef([AC_LIBSOURCES])
229 m4_popdef([AC_REPLACE_FUNCS])
230 m4_popdef([AC_LIBOBJ])
231 AC_CONFIG_COMMANDS_PRE([
232 gl_libobjs=
233 gl_ltlibobjs=
234 if test -n "$gl_LIBOBJS"; then
235 # Remove the extension.
236 sed_drop_objext='s/\.o$//;s/\.obj$//'
237 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
238 gl_libobjs="$gl_libobjs $i.$ac_objext"
239 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
240 done
241 fi
242 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
243 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
244 ])
245 gltests_libdeps=
246 gltests_ltlibdeps=
247 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
248 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
249 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
250 m4_pushdef([gltests_LIBSOURCES_LIST], [])
251 m4_pushdef([gltests_LIBSOURCES_DIR], [])
252 gl_COMMON
253 gl_source_base='tests'
254 changequote(,)dnl
255 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
256 changequote([, ])dnl
257 AC_SUBST([gltests_WITNESS])
258 gl_module_indicator_condition=$gltests_WITNESS
259 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
260 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
261 m4_ifval(gltests_LIBSOURCES_LIST, [
262 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
263 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
264 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
265 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
266 exit 1
267 fi
268 done])dnl
269 m4_if(m4_sysval, [0], [],
270 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
271 ])
272 m4_popdef([gltests_LIBSOURCES_DIR])
273 m4_popdef([gltests_LIBSOURCES_LIST])
274 m4_popdef([AC_LIBSOURCES])
275 m4_popdef([AC_REPLACE_FUNCS])
276 m4_popdef([AC_LIBOBJ])
277 AC_CONFIG_COMMANDS_PRE([
278 gltests_libobjs=
279 gltests_ltlibobjs=
280 if test -n "$gltests_LIBOBJS"; then
281 # Remove the extension.
282 sed_drop_objext='s/\.o$//;s/\.obj$//'
283 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
284 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
285 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
286 done
287 fi
288 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
289 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
290 ])
291 LIBGNU_LIBDEPS="$gl_libdeps"
292 AC_SUBST([LIBGNU_LIBDEPS])
293 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
294 AC_SUBST([LIBGNU_LTLIBDEPS])
295 ])
296
297 # Like AC_LIBOBJ, except that the module name goes
298 # into gl_LIBOBJS instead of into LIBOBJS.
299 AC_DEFUN([gl_LIBOBJ], [
300 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
301 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
302 ])
303
304 # Like AC_REPLACE_FUNCS, except that the module name goes
305 # into gl_LIBOBJS instead of into LIBOBJS.
306 AC_DEFUN([gl_REPLACE_FUNCS], [
307 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
308 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
309 ])
310
311 # Like AC_LIBSOURCES, except the directory where the source file is
312 # expected is derived from the gnulib-tool parameterization,
313 # and alloca is special cased (for the alloca-opt module).
314 # We could also entirely rely on EXTRA_lib..._SOURCES.
315 AC_DEFUN([gl_LIBSOURCES], [
316 m4_foreach([_gl_NAME], [$1], [
317 m4_if(_gl_NAME, [alloca.c], [], [
318 m4_define([gl_LIBSOURCES_DIR], [import])
319 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
320 ])
321 ])
322 ])
323
324 # Like AC_LIBOBJ, except that the module name goes
325 # into gltests_LIBOBJS instead of into LIBOBJS.
326 AC_DEFUN([gltests_LIBOBJ], [
327 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
328 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
329 ])
330
331 # Like AC_REPLACE_FUNCS, except that the module name goes
332 # into gltests_LIBOBJS instead of into LIBOBJS.
333 AC_DEFUN([gltests_REPLACE_FUNCS], [
334 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
335 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
336 ])
337
338 # Like AC_LIBSOURCES, except the directory where the source file is
339 # expected is derived from the gnulib-tool parameterization,
340 # and alloca is special cased (for the alloca-opt module).
341 # We could also entirely rely on EXTRA_lib..._SOURCES.
342 AC_DEFUN([gltests_LIBSOURCES], [
343 m4_foreach([_gl_NAME], [$1], [
344 m4_if(_gl_NAME, [alloca.c], [], [
345 m4_define([gltests_LIBSOURCES_DIR], [tests])
346 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
347 ])
348 ])
349 ])
350
351 # This macro records the list of files which have been installed by
352 # gnulib-tool and may be removed by future gnulib-tool invocations.
353 AC_DEFUN([gl_FILE_LIST], [
354 build-aux/snippet/arg-nonnull.h
355 build-aux/snippet/c++defs.h
356 build-aux/snippet/warn-on-use.h
357 build-aux/update-copyright
358 lib/alloca.c
359 lib/alloca.in.h
360 lib/config.charset
361 lib/dirent.in.h
362 lib/float+.h
363 lib/float.c
364 lib/float.in.h
365 lib/fnmatch.c
366 lib/fnmatch.in.h
367 lib/fnmatch_loop.c
368 lib/fpucw.h
369 lib/frexp.c
370 lib/frexpl.c
371 lib/inttypes.in.h
372 lib/isnan.c
373 lib/isnand-nolibm.h
374 lib/isnand.c
375 lib/isnanl-nolibm.h
376 lib/isnanl.c
377 lib/itold.c
378 lib/localcharset.c
379 lib/localcharset.h
380 lib/math.c
381 lib/math.in.h
382 lib/mbrtowc.c
383 lib/mbsinit.c
384 lib/mbsrtowcs-impl.h
385 lib/mbsrtowcs-state.c
386 lib/mbsrtowcs.c
387 lib/memchr.c
388 lib/memchr.valgrind
389 lib/memmem.c
390 lib/pathmax.h
391 lib/ref-add.sin
392 lib/ref-del.sin
393 lib/stdbool.in.h
394 lib/stddef.in.h
395 lib/stdint.in.h
396 lib/str-two-way.h
397 lib/streq.h
398 lib/string.in.h
399 lib/strnlen1.c
400 lib/strnlen1.h
401 lib/strstr.c
402 lib/sys_stat.in.h
403 lib/sys_types.in.h
404 lib/time.in.h
405 lib/unistd.c
406 lib/unistd.in.h
407 lib/verify.h
408 lib/wchar.in.h
409 lib/wctype-h.c
410 lib/wctype.in.h
411 m4/00gnulib.m4
412 m4/alloca.m4
413 m4/codeset.m4
414 m4/configmake.m4
415 m4/dirent_h.m4
416 m4/exponentd.m4
417 m4/exponentl.m4
418 m4/extensions.m4
419 m4/extern-inline.m4
420 m4/fcntl-o.m4
421 m4/float_h.m4
422 m4/fnmatch.m4
423 m4/fpieee.m4
424 m4/frexp.m4
425 m4/frexpl.m4
426 m4/glibc21.m4
427 m4/gnulib-common.m4
428 m4/include_next.m4
429 m4/inttypes-pri.m4
430 m4/inttypes.m4
431 m4/isnand.m4
432 m4/isnanl.m4
433 m4/localcharset.m4
434 m4/locale-fr.m4
435 m4/locale-ja.m4
436 m4/locale-zh.m4
437 m4/longlong.m4
438 m4/math_h.m4
439 m4/mbrtowc.m4
440 m4/mbsinit.m4
441 m4/mbsrtowcs.m4
442 m4/mbstate_t.m4
443 m4/memchr.m4
444 m4/memmem.m4
445 m4/mmap-anon.m4
446 m4/multiarch.m4
447 m4/off_t.m4
448 m4/pathmax.m4
449 m4/ssize_t.m4
450 m4/stdbool.m4
451 m4/stddef_h.m4
452 m4/stdint.m4
453 m4/string_h.m4
454 m4/strstr.m4
455 m4/sys_stat_h.m4
456 m4/sys_types_h.m4
457 m4/time_h.m4
458 m4/unistd_h.m4
459 m4/warn-on-use.m4
460 m4/wchar_h.m4
461 m4/wchar_t.m4
462 m4/wctype_h.m4
463 m4/wint_t.m4
464 ])
This page took 0.124189 seconds and 4 git commands to generate.