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