Import the "pathmax" gnulib module.
[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 extensions:
45 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
46 # Code from module extern-inline:
47 # Code from module float:
48 # Code from module fnmatch:
49 # Code from module fnmatch-gnu:
50 # Code from module fpieee:
51 AC_REQUIRE([gl_FP_IEEE])
52 # Code from module fpucw:
53 # Code from module frexp:
54 # Code from module frexpl:
55 # Code from module include_next:
56 # Code from module inttypes:
57 # Code from module inttypes-incomplete:
58 # Code from module isnand-nolibm:
59 # Code from module isnanl-nolibm:
60 # Code from module localcharset:
61 # Code from module math:
62 # Code from module mbrtowc:
63 # Code from module mbsinit:
64 # Code from module mbsrtowcs:
65 # Code from module memchr:
66 # Code from module memmem:
67 # Code from module memmem-simple:
68 # Code from module multiarch:
69 # Code from module pathmax:
70 # Code from module snippet/arg-nonnull:
71 # Code from module snippet/c++defs:
72 # Code from module snippet/warn-on-use:
73 # Code from module ssize_t:
74 # Code from module stdbool:
75 # Code from module stddef:
76 # Code from module stdint:
77 # Code from module streq:
78 # Code from module string:
79 # Code from module strnlen1:
80 # Code from module sys_types:
81 # Code from module unistd:
82 # Code from module update-copyright:
83 # Code from module verify:
84 # Code from module wchar:
85 # Code from module wctype-h:
86 ])
87
88 # This macro should be invoked from ./configure.ac, in the section
89 # "Check for header files, types and library functions".
90 AC_DEFUN([gl_INIT],
91 [
92 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
93 gl_cond_libtool=false
94 gl_libdeps=
95 gl_ltlibdeps=
96 gl_m4_base='import/m4'
97 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
98 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
99 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
100 m4_pushdef([gl_LIBSOURCES_LIST], [])
101 m4_pushdef([gl_LIBSOURCES_DIR], [])
102 gl_COMMON
103 gl_source_base='import'
104 gl_FUNC_ALLOCA
105 gl_CONFIGMAKE_PREP
106 AC_REQUIRE([gl_EXTERN_INLINE])
107 gl_FLOAT_H
108 if test $REPLACE_FLOAT_LDBL = 1; then
109 AC_LIBOBJ([float])
110 fi
111 if test $REPLACE_ITOLD = 1; then
112 AC_LIBOBJ([itold])
113 fi
114 gl_FUNC_FNMATCH_POSIX
115 if test -n "$FNMATCH_H"; then
116 AC_LIBOBJ([fnmatch])
117 gl_PREREQ_FNMATCH
118 fi
119 gl_FUNC_FNMATCH_GNU
120 if test -n "$FNMATCH_H"; then
121 AC_LIBOBJ([fnmatch])
122 gl_PREREQ_FNMATCH
123 fi
124 gl_FUNC_FREXP
125 if test $gl_func_frexp != yes; then
126 AC_LIBOBJ([frexp])
127 fi
128 gl_MATH_MODULE_INDICATOR([frexp])
129 gl_FUNC_FREXPL
130 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
131 AC_LIBOBJ([frexpl])
132 fi
133 gl_MATH_MODULE_INDICATOR([frexpl])
134 gl_INTTYPES_H
135 gl_INTTYPES_INCOMPLETE
136 gl_FUNC_ISNAND_NO_LIBM
137 if test $gl_func_isnand_no_libm != yes; then
138 AC_LIBOBJ([isnand])
139 gl_PREREQ_ISNAND
140 fi
141 gl_FUNC_ISNANL_NO_LIBM
142 if test $gl_func_isnanl_no_libm != yes; then
143 AC_LIBOBJ([isnanl])
144 gl_PREREQ_ISNANL
145 fi
146 gl_LOCALCHARSET
147 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
148 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
149 gl_MATH_H
150 gl_FUNC_MBRTOWC
151 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
152 AC_LIBOBJ([mbrtowc])
153 gl_PREREQ_MBRTOWC
154 fi
155 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
156 gl_FUNC_MBSINIT
157 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
158 AC_LIBOBJ([mbsinit])
159 gl_PREREQ_MBSINIT
160 fi
161 gl_WCHAR_MODULE_INDICATOR([mbsinit])
162 gl_FUNC_MBSRTOWCS
163 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
164 AC_LIBOBJ([mbsrtowcs])
165 AC_LIBOBJ([mbsrtowcs-state])
166 gl_PREREQ_MBSRTOWCS
167 fi
168 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
169 gl_FUNC_MEMCHR
170 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
171 AC_LIBOBJ([memchr])
172 gl_PREREQ_MEMCHR
173 fi
174 gl_STRING_MODULE_INDICATOR([memchr])
175 gl_FUNC_MEMMEM
176 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
177 AC_LIBOBJ([memmem])
178 fi
179 gl_FUNC_MEMMEM_SIMPLE
180 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
181 AC_LIBOBJ([memmem])
182 fi
183 gl_STRING_MODULE_INDICATOR([memmem])
184 gl_MULTIARCH
185 gl_PATHMAX
186 gt_TYPE_SSIZE_T
187 AM_STDBOOL_H
188 gl_STDDEF_H
189 gl_STDINT_H
190 gl_HEADER_STRING_H
191 gl_SYS_TYPES_H
192 AC_PROG_MKDIR_P
193 gl_UNISTD_H
194 gl_WCHAR_H
195 gl_WCTYPE_H
196 # End of code from modules
197 m4_ifval(gl_LIBSOURCES_LIST, [
198 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
199 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
200 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
201 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
202 exit 1
203 fi
204 done])dnl
205 m4_if(m4_sysval, [0], [],
206 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
207 ])
208 m4_popdef([gl_LIBSOURCES_DIR])
209 m4_popdef([gl_LIBSOURCES_LIST])
210 m4_popdef([AC_LIBSOURCES])
211 m4_popdef([AC_REPLACE_FUNCS])
212 m4_popdef([AC_LIBOBJ])
213 AC_CONFIG_COMMANDS_PRE([
214 gl_libobjs=
215 gl_ltlibobjs=
216 if test -n "$gl_LIBOBJS"; then
217 # Remove the extension.
218 sed_drop_objext='s/\.o$//;s/\.obj$//'
219 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
220 gl_libobjs="$gl_libobjs $i.$ac_objext"
221 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
222 done
223 fi
224 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
225 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
226 ])
227 gltests_libdeps=
228 gltests_ltlibdeps=
229 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
230 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
231 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
232 m4_pushdef([gltests_LIBSOURCES_LIST], [])
233 m4_pushdef([gltests_LIBSOURCES_DIR], [])
234 gl_COMMON
235 gl_source_base='tests'
236 changequote(,)dnl
237 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
238 changequote([, ])dnl
239 AC_SUBST([gltests_WITNESS])
240 gl_module_indicator_condition=$gltests_WITNESS
241 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
242 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
243 m4_ifval(gltests_LIBSOURCES_LIST, [
244 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
245 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
246 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
247 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
248 exit 1
249 fi
250 done])dnl
251 m4_if(m4_sysval, [0], [],
252 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
253 ])
254 m4_popdef([gltests_LIBSOURCES_DIR])
255 m4_popdef([gltests_LIBSOURCES_LIST])
256 m4_popdef([AC_LIBSOURCES])
257 m4_popdef([AC_REPLACE_FUNCS])
258 m4_popdef([AC_LIBOBJ])
259 AC_CONFIG_COMMANDS_PRE([
260 gltests_libobjs=
261 gltests_ltlibobjs=
262 if test -n "$gltests_LIBOBJS"; then
263 # Remove the extension.
264 sed_drop_objext='s/\.o$//;s/\.obj$//'
265 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
266 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
267 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
268 done
269 fi
270 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
271 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
272 ])
273 LIBGNU_LIBDEPS="$gl_libdeps"
274 AC_SUBST([LIBGNU_LIBDEPS])
275 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
276 AC_SUBST([LIBGNU_LTLIBDEPS])
277 ])
278
279 # Like AC_LIBOBJ, except that the module name goes
280 # into gl_LIBOBJS instead of into LIBOBJS.
281 AC_DEFUN([gl_LIBOBJ], [
282 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
283 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
284 ])
285
286 # Like AC_REPLACE_FUNCS, except that the module name goes
287 # into gl_LIBOBJS instead of into LIBOBJS.
288 AC_DEFUN([gl_REPLACE_FUNCS], [
289 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
290 AC_CHECK_FUNCS([$1], , [gl_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.
297 AC_DEFUN([gl_LIBSOURCES], [
298 m4_foreach([_gl_NAME], [$1], [
299 m4_if(_gl_NAME, [alloca.c], [], [
300 m4_define([gl_LIBSOURCES_DIR], [import])
301 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
302 ])
303 ])
304 ])
305
306 # Like AC_LIBOBJ, except that the module name goes
307 # into gltests_LIBOBJS instead of into LIBOBJS.
308 AC_DEFUN([gltests_LIBOBJ], [
309 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
310 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
311 ])
312
313 # Like AC_REPLACE_FUNCS, except that the module name goes
314 # into gltests_LIBOBJS instead of into LIBOBJS.
315 AC_DEFUN([gltests_REPLACE_FUNCS], [
316 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
317 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
318 ])
319
320 # Like AC_LIBSOURCES, except the directory where the source file is
321 # expected is derived from the gnulib-tool parameterization,
322 # and alloca is special cased (for the alloca-opt module).
323 # We could also entirely rely on EXTRA_lib..._SOURCES.
324 AC_DEFUN([gltests_LIBSOURCES], [
325 m4_foreach([_gl_NAME], [$1], [
326 m4_if(_gl_NAME, [alloca.c], [], [
327 m4_define([gltests_LIBSOURCES_DIR], [tests])
328 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
329 ])
330 ])
331 ])
332
333 # This macro records the list of files which have been installed by
334 # gnulib-tool and may be removed by future gnulib-tool invocations.
335 AC_DEFUN([gl_FILE_LIST], [
336 build-aux/snippet/arg-nonnull.h
337 build-aux/snippet/c++defs.h
338 build-aux/snippet/warn-on-use.h
339 build-aux/update-copyright
340 lib/alloca.c
341 lib/alloca.in.h
342 lib/config.charset
343 lib/float+.h
344 lib/float.c
345 lib/float.in.h
346 lib/fnmatch.c
347 lib/fnmatch.in.h
348 lib/fnmatch_loop.c
349 lib/fpucw.h
350 lib/frexp.c
351 lib/frexpl.c
352 lib/inttypes.in.h
353 lib/isnan.c
354 lib/isnand-nolibm.h
355 lib/isnand.c
356 lib/isnanl-nolibm.h
357 lib/isnanl.c
358 lib/itold.c
359 lib/localcharset.c
360 lib/localcharset.h
361 lib/math.c
362 lib/math.in.h
363 lib/mbrtowc.c
364 lib/mbsinit.c
365 lib/mbsrtowcs-impl.h
366 lib/mbsrtowcs-state.c
367 lib/mbsrtowcs.c
368 lib/memchr.c
369 lib/memchr.valgrind
370 lib/memmem.c
371 lib/pathmax.h
372 lib/ref-add.sin
373 lib/ref-del.sin
374 lib/stdbool.in.h
375 lib/stddef.in.h
376 lib/stdint.in.h
377 lib/str-two-way.h
378 lib/streq.h
379 lib/string.in.h
380 lib/strnlen1.c
381 lib/strnlen1.h
382 lib/sys_types.in.h
383 lib/unistd.c
384 lib/unistd.in.h
385 lib/verify.h
386 lib/wchar.in.h
387 lib/wctype-h.c
388 lib/wctype.in.h
389 m4/00gnulib.m4
390 m4/alloca.m4
391 m4/codeset.m4
392 m4/configmake.m4
393 m4/exponentd.m4
394 m4/exponentl.m4
395 m4/extensions.m4
396 m4/extern-inline.m4
397 m4/fcntl-o.m4
398 m4/float_h.m4
399 m4/fnmatch.m4
400 m4/fpieee.m4
401 m4/frexp.m4
402 m4/frexpl.m4
403 m4/glibc21.m4
404 m4/gnulib-common.m4
405 m4/include_next.m4
406 m4/inttypes-pri.m4
407 m4/inttypes.m4
408 m4/isnand.m4
409 m4/isnanl.m4
410 m4/localcharset.m4
411 m4/locale-fr.m4
412 m4/locale-ja.m4
413 m4/locale-zh.m4
414 m4/longlong.m4
415 m4/math_h.m4
416 m4/mbrtowc.m4
417 m4/mbsinit.m4
418 m4/mbsrtowcs.m4
419 m4/mbstate_t.m4
420 m4/memchr.m4
421 m4/memmem.m4
422 m4/mmap-anon.m4
423 m4/multiarch.m4
424 m4/off_t.m4
425 m4/pathmax.m4
426 m4/ssize_t.m4
427 m4/stdbool.m4
428 m4/stddef_h.m4
429 m4/stdint.m4
430 m4/string_h.m4
431 m4/sys_types_h.m4
432 m4/unistd_h.m4
433 m4/warn-on-use.m4
434 m4/wchar_h.m4
435 m4/wchar_t.m4
436 m4/wctype_h.m4
437 m4/wint_t.m4
438 ])
This page took 0.070975 seconds and 4 git commands to generate.