1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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 that use version control, this file can be treated like
19 # This macro should be invoked from ./configure.ac, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 # Code from module arg-nonnull:
30 # Code from module c++defs:
31 # Code from module extensions:
32 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
33 # Code from module include_next:
34 # Code from module lib-symbol-versions:
35 # Code from module lib-symbol-visibility:
36 # Code from module multiarch:
37 # Code from module stddef:
38 # Code from module stdint:
39 # Code from module string:
40 # Code from module strverscmp:
41 # Code from module warn-on-use:
44 # This macro should be invoked from ./configure.ac, in the section
45 # "Check for header files, types and library functions".
48 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
51 m4_pushdef([AC_LIBOBJ], m4_defn([lgl_LIBOBJ]))
52 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
53 m4_pushdef([AC_LIBSOURCES], m4_defn([lgl_LIBSOURCES]))
54 m4_pushdef([lgl_LIBSOURCES_LIST], [])
55 m4_pushdef([lgl_LIBSOURCES_DIR], [])
57 gl_source_base='lib/gllib'
58 # Code from module arg-nonnull:
59 # Code from module c++defs:
60 # Code from module extensions:
61 # Code from module include_next:
62 # Code from module lib-symbol-versions:
64 # Code from module lib-symbol-visibility:
66 # Code from module multiarch:
68 # Code from module stddef:
70 # Code from module stdint:
72 # Code from module string:
74 # Code from module strverscmp:
76 gl_STRING_MODULE_INDICATOR([strverscmp])
77 # Code from module warn-on-use:
78 # Code from module dummy:
79 # End of code from modules
80 m4_ifval(lgl_LIBSOURCES_LIST, [
81 m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ ||
82 for gl_file in ]lgl_LIBSOURCES_LIST[ ; do
83 if test ! -r ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file ; then
84 echo "missing file ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file" >&2
88 m4_if(m4_sysval, [0], [],
89 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
91 m4_popdef([lgl_LIBSOURCES_DIR])
92 m4_popdef([lgl_LIBSOURCES_LIST])
93 m4_popdef([AC_LIBSOURCES])
94 m4_popdef([AC_REPLACE_FUNCS])
95 m4_popdef([AC_LIBOBJ])
96 AC_CONFIG_COMMANDS_PRE([
99 if test -n "$lgl_LIBOBJS"; then
100 # Remove the extension.
101 sed_drop_objext='s/\.o$//;s/\.obj$//'
102 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
103 lgl_libobjs="$lgl_libobjs $i.$ac_objext"
104 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
107 AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
108 AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
112 m4_pushdef([AC_LIBOBJ], m4_defn([lgltests_LIBOBJ]))
113 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgltests_REPLACE_FUNCS]))
114 m4_pushdef([AC_LIBSOURCES], m4_defn([lgltests_LIBSOURCES]))
115 m4_pushdef([lgltests_LIBSOURCES_LIST], [])
116 m4_pushdef([lgltests_LIBSOURCES_DIR], [])
118 gl_source_base='tests'
120 lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
122 AC_SUBST([lgltests_WITNESS])
123 gl_module_indicator_condition=$lgltests_WITNESS
124 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
125 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
126 m4_ifval(lgltests_LIBSOURCES_LIST, [
127 m4_syscmd([test ! -d ]m4_defn([lgltests_LIBSOURCES_DIR])[ ||
128 for gl_file in ]lgltests_LIBSOURCES_LIST[ ; do
129 if test ! -r ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file ; then
130 echo "missing file ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file" >&2
134 m4_if(m4_sysval, [0], [],
135 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
137 m4_popdef([lgltests_LIBSOURCES_DIR])
138 m4_popdef([lgltests_LIBSOURCES_LIST])
139 m4_popdef([AC_LIBSOURCES])
140 m4_popdef([AC_REPLACE_FUNCS])
141 m4_popdef([AC_LIBOBJ])
142 AC_CONFIG_COMMANDS_PRE([
145 if test -n "$lgltests_LIBOBJS"; then
146 # Remove the extension.
147 sed_drop_objext='s/\.o$//;s/\.obj$//'
148 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
149 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
150 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
153 AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
154 AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
158 # Like AC_LIBOBJ, except that the module name goes
159 # into lgl_LIBOBJS instead of into LIBOBJS.
160 AC_DEFUN([lgl_LIBOBJ], [
161 AS_LITERAL_IF([$1], [lgl_LIBSOURCES([$1.c])])dnl
162 lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"
165 # Like AC_REPLACE_FUNCS, except that the module name goes
166 # into lgl_LIBOBJS instead of into LIBOBJS.
167 AC_DEFUN([lgl_REPLACE_FUNCS], [
168 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
169 AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])
172 # Like AC_LIBSOURCES, except the directory where the source file is
173 # expected is derived from the gnulib-tool parameterization,
174 # and alloca is special cased (for the alloca-opt module).
175 # We could also entirely rely on EXTRA_lib..._SOURCES.
176 AC_DEFUN([lgl_LIBSOURCES], [
177 m4_foreach([_gl_NAME], [$1], [
178 m4_if(_gl_NAME, [alloca.c], [], [
179 m4_define([lgl_LIBSOURCES_DIR], [lib/gllib])
180 m4_append([lgl_LIBSOURCES_LIST], _gl_NAME, [ ])
185 # Like AC_LIBOBJ, except that the module name goes
186 # into lgltests_LIBOBJS instead of into LIBOBJS.
187 AC_DEFUN([lgltests_LIBOBJ], [
188 AS_LITERAL_IF([$1], [lgltests_LIBSOURCES([$1.c])])dnl
189 lgltests_LIBOBJS="$lgltests_LIBOBJS $1.$ac_objext"
192 # Like AC_REPLACE_FUNCS, except that the module name goes
193 # into lgltests_LIBOBJS instead of into LIBOBJS.
194 AC_DEFUN([lgltests_REPLACE_FUNCS], [
195 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
196 AC_CHECK_FUNCS([$1], , [lgltests_LIBOBJ($ac_func)])
199 # Like AC_LIBSOURCES, except the directory where the source file is
200 # expected is derived from the gnulib-tool parameterization,
201 # and alloca is special cased (for the alloca-opt module).
202 # We could also entirely rely on EXTRA_lib..._SOURCES.
203 AC_DEFUN([lgltests_LIBSOURCES], [
204 m4_foreach([_gl_NAME], [$1], [
205 m4_if(_gl_NAME, [alloca.c], [], [
206 m4_define([lgltests_LIBSOURCES_DIR], [tests])
207 m4_append([lgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
212 # This macro records the list of files which have been installed by
213 # gnulib-tool and may be removed by future gnulib-tool invocations.
214 AC_DEFUN([lgl_FILE_LIST], [
215 build-aux/arg-nonnull.h
217 build-aux/warn-on-use.h
227 m4/ld-version-script.m4