0a36bf7c0ec5653ef618e7c38536100f86810d26
[platform/upstream/libtasn1.git] / lib / glm4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
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 that use version control, this file can be treated like
16 # other built files.
17
18
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.
22 AC_DEFUN([lgl_EARLY],
23 [
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:
42 ])
43
44 # This macro should be invoked from ./configure.ac, in the section
45 # "Check for header files, types and library functions".
46 AC_DEFUN([lgl_INIT],
47 [
48   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
49   gl_cond_libtool=true
50   gl_m4_base='lib/glm4'
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], [])
56   gl_COMMON
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:
63   gl_LD_VERSION_SCRIPT
64   # Code from module lib-symbol-visibility:
65   gl_VISIBILITY
66   # Code from module multiarch:
67   gl_MULTIARCH
68   # Code from module stddef:
69   gl_STDDEF_H
70   # Code from module stdint:
71   gl_STDINT_H
72   # Code from module string:
73   gl_HEADER_STRING_H
74   # Code from module strverscmp:
75   gl_FUNC_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
85           exit 1
86         fi
87       done])dnl
88       m4_if(m4_sysval, [0], [],
89         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
90   ])
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([
97     lgl_libobjs=
98     lgl_ltlibobjs=
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"
105       done
106     fi
107     AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
108     AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
109   ])
110   gltests_libdeps=
111   gltests_ltlibdeps=
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], [])
117   gl_COMMON
118   gl_source_base='tests'
119 changequote(,)dnl
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
121 changequote([, ])dnl
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
131           exit 1
132         fi
133       done])dnl
134       m4_if(m4_sysval, [0], [],
135         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
136   ])
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([
143     lgltests_libobjs=
144     lgltests_ltlibobjs=
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"
151       done
152     fi
153     AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
154     AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
155   ])
156 ])
157
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"
163 ])
164
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)])
170 ])
171
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, [ ])
181     ])
182   ])
183 ])
184
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"
190 ])
191
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)])
197 ])
198
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, [ ])
208     ])
209   ])
210 ])
211
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
216   build-aux/c++defs.h
217   build-aux/warn-on-use.h
218   lib/dummy.c
219   lib/stddef.in.h
220   lib/stdint.in.h
221   lib/string.in.h
222   lib/strverscmp.c
223   m4/00gnulib.m4
224   m4/extensions.m4
225   m4/gnulib-common.m4
226   m4/include_next.m4
227   m4/ld-version-script.m4
228   m4/longlong.m4
229   m4/multiarch.m4
230   m4/stddef_h.m4
231   m4/stdint.m4
232   m4/string_h.m4
233   m4/strverscmp.m4
234   m4/visibility.m4
235   m4/warn-on-use.m4
236   m4/wchar_t.m4
237 ])