put -lpthread into LIBS instead of CONFIG_LDFLAGS.
[deliverable/binutils-gdb.git] / gdb / gnulib / m4 / gnulib-comp.m4
CommitLineData
f6ea5628 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
db026a31 2# Copyright (C) 2002-2010 Free Software Foundation, Inc.
f6ea5628
DJ
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 using CVS, this file can be treated like other built files.
16
17
18# This macro should be invoked from ./configure.ac, in the section
19# "Checks for programs", right after AC_PROG_CC, and certainly before
20# any checks for libraries, header files, types and library functions.
21AC_DEFUN([gl_EARLY],
22[
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
f434ba03
PA
28 # Code from module arg-nonnull:
29 # Code from module c++defs:
30 # Code from module extensions:
f6ea5628 31 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
f434ba03 32 # Code from module include_next:
55a8c076 33 # Code from module inttypes:
f434ba03
PA
34 # Code from module memchr:
35 # Code from module memmem:
36 # Code from module memmem-simple:
37 # Code from module multiarch:
38 # Code from module stddef:
39 # Code from module stdint:
40 # Code from module string:
41 # Code from module warn-on-use:
42 # Code from module wchar:
f6ea5628
DJ
43])
44
45# This macro should be invoked from ./configure.ac, in the section
46# "Check for header files, types and library functions".
47AC_DEFUN([gl_INIT],
48[
49 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
50 gl_cond_libtool=false
51 gl_libdeps=
52 gl_ltlibdeps=
f434ba03 53 gl_m4_base='gnulib/m4'
f6ea5628
DJ
54 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
55 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
56 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
f434ba03
PA
57 m4_pushdef([gl_LIBSOURCES_LIST], [])
58 m4_pushdef([gl_LIBSOURCES_DIR], [])
59 gl_COMMON
f6ea5628 60 gl_source_base='gnulib'
f434ba03
PA
61 # Code from module arg-nonnull:
62 # Code from module c++defs:
63 # Code from module extensions:
64 # Code from module include_next:
55a8c076
YQ
65 # Code from module inttypes:
66 gl_INTTYPES_H
f434ba03 67 # Code from module memchr:
f6ea5628 68 gl_FUNC_MEMCHR
f434ba03
PA
69 gl_STRING_MODULE_INDICATOR([memchr])
70 # Code from module memmem:
f6ea5628 71 gl_FUNC_MEMMEM
f434ba03 72 # Code from module memmem-simple:
f6ea5628
DJ
73 gl_FUNC_MEMMEM_SIMPLE
74 gl_STRING_MODULE_INDICATOR([memmem])
f434ba03
PA
75 # Code from module multiarch:
76 gl_MULTIARCH
77 # Code from module stddef:
78 gl_STDDEF_H
79 # Code from module stdint:
f6ea5628 80 gl_STDINT_H
f434ba03 81 # Code from module string:
f6ea5628 82 gl_HEADER_STRING_H
f434ba03
PA
83 # Code from module warn-on-use:
84 # Code from module wchar:
f6ea5628 85 gl_WCHAR_H
f434ba03
PA
86 # Code from module dummy:
87 # End of code from modules
88 m4_ifval(gl_LIBSOURCES_LIST, [
89 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
90 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
91 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
92 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
93 exit 1
94 fi
95 done])dnl
96 m4_if(m4_sysval, [0], [],
97 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
98 ])
99 m4_popdef([gl_LIBSOURCES_DIR])
100 m4_popdef([gl_LIBSOURCES_LIST])
f6ea5628
DJ
101 m4_popdef([AC_LIBSOURCES])
102 m4_popdef([AC_REPLACE_FUNCS])
103 m4_popdef([AC_LIBOBJ])
104 AC_CONFIG_COMMANDS_PRE([
105 gl_libobjs=
106 gl_ltlibobjs=
107 if test -n "$gl_LIBOBJS"; then
108 # Remove the extension.
109 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 110 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
f6ea5628
DJ
111 gl_libobjs="$gl_libobjs $i.$ac_objext"
112 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
113 done
114 fi
115 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
116 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
117 ])
118 gltests_libdeps=
119 gltests_ltlibdeps=
120 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
121 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
122 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
f434ba03
PA
123 m4_pushdef([gltests_LIBSOURCES_LIST], [])
124 m4_pushdef([gltests_LIBSOURCES_DIR], [])
125 gl_COMMON
f6ea5628 126 gl_source_base='tests'
f434ba03
PA
127changequote(,)dnl
128 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
129changequote([, ])dnl
130 AC_SUBST([gltests_WITNESS])
131 gl_module_indicator_condition=$gltests_WITNESS
132 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
133 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
134 m4_ifval(gltests_LIBSOURCES_LIST, [
135 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
136 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
137 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
138 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
139 exit 1
140 fi
141 done])dnl
142 m4_if(m4_sysval, [0], [],
143 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
144 ])
145 m4_popdef([gltests_LIBSOURCES_DIR])
146 m4_popdef([gltests_LIBSOURCES_LIST])
f6ea5628
DJ
147 m4_popdef([AC_LIBSOURCES])
148 m4_popdef([AC_REPLACE_FUNCS])
149 m4_popdef([AC_LIBOBJ])
150 AC_CONFIG_COMMANDS_PRE([
151 gltests_libobjs=
152 gltests_ltlibobjs=
153 if test -n "$gltests_LIBOBJS"; then
154 # Remove the extension.
155 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 156 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
f6ea5628
DJ
157 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
158 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
159 done
160 fi
161 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
162 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
163 ])
164 LIBGNU_LIBDEPS="$gl_libdeps"
165 AC_SUBST([LIBGNU_LIBDEPS])
166 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
167 AC_SUBST([LIBGNU_LTLIBDEPS])
168])
169
170# Like AC_LIBOBJ, except that the module name goes
171# into gl_LIBOBJS instead of into LIBOBJS.
172AC_DEFUN([gl_LIBOBJ], [
173 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
174 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
175])
176
f6ea5628
DJ
177# Like AC_REPLACE_FUNCS, except that the module name goes
178# into gl_LIBOBJS instead of into LIBOBJS.
179AC_DEFUN([gl_REPLACE_FUNCS], [
180 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
181 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
182])
183
184# Like AC_LIBSOURCES, except the directory where the source file is
f434ba03 185# expected is derived from the gnulib-tool parameterization,
f6ea5628
DJ
186# and alloca is special cased (for the alloca-opt module).
187# We could also entirely rely on EXTRA_lib..._SOURCES.
188AC_DEFUN([gl_LIBSOURCES], [
189 m4_foreach([_gl_NAME], [$1], [
190 m4_if(_gl_NAME, [alloca.c], [], [
f434ba03
PA
191 m4_define([gl_LIBSOURCES_DIR], [gnulib])
192 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
f6ea5628
DJ
193 ])
194 ])
195])
196
197# Like AC_LIBOBJ, except that the module name goes
198# into gltests_LIBOBJS instead of into LIBOBJS.
199AC_DEFUN([gltests_LIBOBJ], [
200 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
201 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
202])
203
f6ea5628
DJ
204# Like AC_REPLACE_FUNCS, except that the module name goes
205# into gltests_LIBOBJS instead of into LIBOBJS.
206AC_DEFUN([gltests_REPLACE_FUNCS], [
207 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
208 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
209])
210
211# Like AC_LIBSOURCES, except the directory where the source file is
f434ba03 212# expected is derived from the gnulib-tool parameterization,
f6ea5628
DJ
213# and alloca is special cased (for the alloca-opt module).
214# We could also entirely rely on EXTRA_lib..._SOURCES.
215AC_DEFUN([gltests_LIBSOURCES], [
216 m4_foreach([_gl_NAME], [$1], [
217 m4_if(_gl_NAME, [alloca.c], [], [
f434ba03
PA
218 m4_define([gltests_LIBSOURCES_DIR], [tests])
219 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
f6ea5628
DJ
220 ])
221 ])
222])
223
224# This macro records the list of files which have been installed by
225# gnulib-tool and may be removed by future gnulib-tool invocations.
226AC_DEFUN([gl_FILE_LIST], [
f434ba03
PA
227 build-aux/arg-nonnull.h
228 build-aux/c++defs.h
229 build-aux/warn-on-use.h
f6ea5628 230 lib/dummy.c
55a8c076 231 lib/inttypes.in.h
f6ea5628 232 lib/memchr.c
f434ba03 233 lib/memchr.valgrind
f6ea5628 234 lib/memmem.c
f434ba03 235 lib/stddef.in.h
f6ea5628
DJ
236 lib/stdint.in.h
237 lib/str-two-way.h
238 lib/string.in.h
239 lib/wchar.in.h
f434ba03 240 m4/00gnulib.m4
f6ea5628
DJ
241 m4/extensions.m4
242 m4/gnulib-common.m4
243 m4/include_next.m4
55a8c076
YQ
244 m4/inttypes-pri.m4
245 m4/inttypes.m4
f6ea5628
DJ
246 m4/longlong.m4
247 m4/memchr.m4
f6ea5628 248 m4/memmem.m4
f434ba03
PA
249 m4/mmap-anon.m4
250 m4/multiarch.m4
251 m4/onceonly.m4
252 m4/stddef_h.m4
f6ea5628
DJ
253 m4/stdint.m4
254 m4/string_h.m4
f434ba03
PA
255 m4/warn-on-use.m4
256 m4/wchar_h.m4
257 m4/wchar_t.m4
258 m4/wint_t.m4
f6ea5628 259])
This page took 0.325401 seconds and 4 git commands to generate.