Commit | Line | Data |
---|---|---|
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. | |
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 | |
770d76d7 | 40 | AC_REQUIRE([gl_PROG_AR_RANLIB]) |
f434ba03 | 41 | # Code from module extensions: |
f6ea5628 | 42 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
f434ba03 | 43 | # Code from module include_next: |
55a8c076 | 44 | # Code from module inttypes: |
770d76d7 | 45 | # Code from module inttypes-incomplete: |
f434ba03 PA |
46 | # Code from module memchr: |
47 | # Code from module memmem: | |
48 | # Code from module memmem-simple: | |
49 | # Code from module multiarch: | |
770d76d7 PA |
50 | # Code from module snippet/arg-nonnull: |
51 | # Code from module snippet/c++defs: | |
52 | # Code from module snippet/warn-on-use: | |
f434ba03 PA |
53 | # Code from module stddef: |
54 | # Code from module stdint: | |
55 | # Code from module string: | |
174e088e | 56 | # Code from module update-copyright: |
f6ea5628 DJ |
57 | ]) |
58 | ||
59 | # This macro should be invoked from ./configure.ac, in the section | |
60 | # "Check for header files, types and library functions". | |
61 | AC_DEFUN([gl_INIT], | |
62 | [ | |
63 | AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) | |
64 | gl_cond_libtool=false | |
65 | gl_libdeps= | |
66 | gl_ltlibdeps= | |
f434ba03 | 67 | gl_m4_base='gnulib/m4' |
f6ea5628 DJ |
68 | m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) |
69 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) | |
70 | m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) | |
f434ba03 PA |
71 | m4_pushdef([gl_LIBSOURCES_LIST], []) |
72 | m4_pushdef([gl_LIBSOURCES_DIR], []) | |
73 | gl_COMMON | |
f6ea5628 | 74 | gl_source_base='gnulib' |
770d76d7 PA |
75 | gl_INTTYPES_H |
76 | gl_INTTYPES_INCOMPLETE | |
77 | gl_FUNC_MEMCHR | |
78 | if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then | |
79 | AC_LIBOBJ([memchr]) | |
80 | gl_PREREQ_MEMCHR | |
81 | fi | |
82 | gl_STRING_MODULE_INDICATOR([memchr]) | |
83 | gl_FUNC_MEMMEM | |
84 | if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then | |
85 | AC_LIBOBJ([memmem]) | |
86 | fi | |
87 | gl_FUNC_MEMMEM_SIMPLE | |
88 | if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then | |
89 | AC_LIBOBJ([memmem]) | |
90 | fi | |
91 | gl_STRING_MODULE_INDICATOR([memmem]) | |
92 | gl_MULTIARCH | |
93 | gl_STDDEF_H | |
94 | gl_STDINT_H | |
95 | gl_HEADER_STRING_H | |
f434ba03 PA |
96 | # End of code from modules |
97 | m4_ifval(gl_LIBSOURCES_LIST, [ | |
98 | m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || | |
99 | for gl_file in ]gl_LIBSOURCES_LIST[ ; do | |
100 | if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then | |
101 | echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 | |
102 | exit 1 | |
103 | fi | |
104 | done])dnl | |
105 | m4_if(m4_sysval, [0], [], | |
106 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
107 | ]) | |
108 | m4_popdef([gl_LIBSOURCES_DIR]) | |
109 | m4_popdef([gl_LIBSOURCES_LIST]) | |
f6ea5628 DJ |
110 | m4_popdef([AC_LIBSOURCES]) |
111 | m4_popdef([AC_REPLACE_FUNCS]) | |
112 | m4_popdef([AC_LIBOBJ]) | |
113 | AC_CONFIG_COMMANDS_PRE([ | |
114 | gl_libobjs= | |
115 | gl_ltlibobjs= | |
116 | if test -n "$gl_LIBOBJS"; then | |
117 | # Remove the extension. | |
118 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
f434ba03 | 119 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
f6ea5628 DJ |
120 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
121 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
122 | done | |
123 | fi | |
124 | AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) | |
125 | AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) | |
126 | ]) | |
127 | gltests_libdeps= | |
128 | gltests_ltlibdeps= | |
129 | m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) | |
130 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) | |
131 | m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) | |
f434ba03 PA |
132 | m4_pushdef([gltests_LIBSOURCES_LIST], []) |
133 | m4_pushdef([gltests_LIBSOURCES_DIR], []) | |
134 | gl_COMMON | |
f6ea5628 | 135 | gl_source_base='tests' |
f434ba03 PA |
136 | changequote(,)dnl |
137 | 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 | |
138 | changequote([, ])dnl | |
139 | AC_SUBST([gltests_WITNESS]) | |
140 | gl_module_indicator_condition=$gltests_WITNESS | |
141 | m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) | |
142 | m4_popdef([gl_MODULE_INDICATOR_CONDITION]) | |
143 | m4_ifval(gltests_LIBSOURCES_LIST, [ | |
144 | m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || | |
145 | for gl_file in ]gltests_LIBSOURCES_LIST[ ; do | |
146 | if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then | |
147 | echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 | |
148 | exit 1 | |
149 | fi | |
150 | done])dnl | |
151 | m4_if(m4_sysval, [0], [], | |
152 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
153 | ]) | |
154 | m4_popdef([gltests_LIBSOURCES_DIR]) | |
155 | m4_popdef([gltests_LIBSOURCES_LIST]) | |
f6ea5628 DJ |
156 | m4_popdef([AC_LIBSOURCES]) |
157 | m4_popdef([AC_REPLACE_FUNCS]) | |
158 | m4_popdef([AC_LIBOBJ]) | |
159 | AC_CONFIG_COMMANDS_PRE([ | |
160 | gltests_libobjs= | |
161 | gltests_ltlibobjs= | |
162 | if test -n "$gltests_LIBOBJS"; then | |
163 | # Remove the extension. | |
164 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
f434ba03 | 165 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
f6ea5628 DJ |
166 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
167 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
168 | done | |
169 | fi | |
170 | AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) | |
171 | AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) | |
172 | ]) | |
173 | LIBGNU_LIBDEPS="$gl_libdeps" | |
174 | AC_SUBST([LIBGNU_LIBDEPS]) | |
175 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
176 | AC_SUBST([LIBGNU_LTLIBDEPS]) | |
177 | ]) | |
178 | ||
179 | # Like AC_LIBOBJ, except that the module name goes | |
180 | # into gl_LIBOBJS instead of into LIBOBJS. | |
181 | AC_DEFUN([gl_LIBOBJ], [ | |
182 | AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl | |
183 | gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" | |
184 | ]) | |
185 | ||
f6ea5628 DJ |
186 | # Like AC_REPLACE_FUNCS, except that the module name goes |
187 | # into gl_LIBOBJS instead of into LIBOBJS. | |
188 | AC_DEFUN([gl_REPLACE_FUNCS], [ | |
189 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
190 | AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) | |
191 | ]) | |
192 | ||
193 | # Like AC_LIBSOURCES, except the directory where the source file is | |
f434ba03 | 194 | # expected is derived from the gnulib-tool parameterization, |
f6ea5628 DJ |
195 | # and alloca is special cased (for the alloca-opt module). |
196 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
197 | AC_DEFUN([gl_LIBSOURCES], [ | |
198 | m4_foreach([_gl_NAME], [$1], [ | |
199 | m4_if(_gl_NAME, [alloca.c], [], [ | |
f434ba03 PA |
200 | m4_define([gl_LIBSOURCES_DIR], [gnulib]) |
201 | m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) | |
f6ea5628 DJ |
202 | ]) |
203 | ]) | |
204 | ]) | |
205 | ||
206 | # Like AC_LIBOBJ, except that the module name goes | |
207 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
208 | AC_DEFUN([gltests_LIBOBJ], [ | |
209 | AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl | |
210 | gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" | |
211 | ]) | |
212 | ||
f6ea5628 DJ |
213 | # Like AC_REPLACE_FUNCS, except that the module name goes |
214 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
215 | AC_DEFUN([gltests_REPLACE_FUNCS], [ | |
216 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
217 | AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) | |
218 | ]) | |
219 | ||
220 | # Like AC_LIBSOURCES, except the directory where the source file is | |
f434ba03 | 221 | # expected is derived from the gnulib-tool parameterization, |
f6ea5628 DJ |
222 | # and alloca is special cased (for the alloca-opt module). |
223 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
224 | AC_DEFUN([gltests_LIBSOURCES], [ | |
225 | m4_foreach([_gl_NAME], [$1], [ | |
226 | m4_if(_gl_NAME, [alloca.c], [], [ | |
f434ba03 PA |
227 | m4_define([gltests_LIBSOURCES_DIR], [tests]) |
228 | m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) | |
f6ea5628 DJ |
229 | ]) |
230 | ]) | |
231 | ]) | |
232 | ||
233 | # This macro records the list of files which have been installed by | |
234 | # gnulib-tool and may be removed by future gnulib-tool invocations. | |
235 | AC_DEFUN([gl_FILE_LIST], [ | |
770d76d7 PA |
236 | build-aux/snippet/arg-nonnull.h |
237 | build-aux/snippet/c++defs.h | |
238 | build-aux/snippet/warn-on-use.h | |
174e088e | 239 | build-aux/update-copyright |
f6ea5628 | 240 | lib/dummy.c |
55a8c076 | 241 | lib/inttypes.in.h |
f6ea5628 | 242 | lib/memchr.c |
f434ba03 | 243 | lib/memchr.valgrind |
f6ea5628 | 244 | lib/memmem.c |
f434ba03 | 245 | lib/stddef.in.h |
f6ea5628 DJ |
246 | lib/stdint.in.h |
247 | lib/str-two-way.h | |
248 | lib/string.in.h | |
f434ba03 | 249 | m4/00gnulib.m4 |
f6ea5628 DJ |
250 | m4/extensions.m4 |
251 | m4/gnulib-common.m4 | |
252 | m4/include_next.m4 | |
55a8c076 YQ |
253 | m4/inttypes-pri.m4 |
254 | m4/inttypes.m4 | |
f6ea5628 DJ |
255 | m4/longlong.m4 |
256 | m4/memchr.m4 | |
f6ea5628 | 257 | m4/memmem.m4 |
f434ba03 PA |
258 | m4/mmap-anon.m4 |
259 | m4/multiarch.m4 | |
260 | m4/onceonly.m4 | |
261 | m4/stddef_h.m4 | |
f6ea5628 DJ |
262 | m4/stdint.m4 |
263 | m4/string_h.m4 | |
f434ba03 | 264 | m4/warn-on-use.m4 |
f434ba03 | 265 | m4/wchar_t.m4 |
f6ea5628 | 266 | ]) |