Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / libgrep / gnulib-m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 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 using CVS, this file can be treated like other built files.
16
17
18 # This macro should be invoked from gettext-tools/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.
21 AC_DEFUN([grgl_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])
28   # Code from module btowc:
29   # Code from module c++defs:
30   # Code from module langinfo:
31   # Code from module nl_langinfo:
32   # Code from module regex:
33   # Code from module warn-on-use:
34   # Code from module wcrtomb:
35 ])
36
37 # This macro should be invoked from gettext-tools/configure.ac, in the section
38 # "Check for header files, types and library functions".
39 AC_DEFUN([grgl_INIT],
40 [
41   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
42   gl_cond_libtool=false
43   gl_libdeps=
44   gl_ltlibdeps=
45   gl_m4_base='libgrep/gnulib-m4'
46   m4_pushdef([AC_LIBOBJ], m4_defn([grgl_LIBOBJ]))
47   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgl_REPLACE_FUNCS]))
48   m4_pushdef([AC_LIBSOURCES], m4_defn([grgl_LIBSOURCES]))
49   m4_pushdef([grgl_LIBSOURCES_LIST], [])
50   m4_pushdef([grgl_LIBSOURCES_DIR], [])
51   gl_COMMON
52   gl_source_base='libgrep'
53   # Code from module btowc:
54   gl_FUNC_BTOWC
55   gl_WCHAR_MODULE_INDICATOR([btowc])
56   # Code from module c++defs:
57   # Code from module langinfo:
58   gl_LANGINFO_H
59   # Code from module nl_langinfo:
60   gl_FUNC_NL_LANGINFO
61   gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
62   # Code from module regex:
63   gl_REGEX
64   # Code from module warn-on-use:
65   # Code from module wcrtomb:
66   gl_FUNC_WCRTOMB
67   gl_WCHAR_MODULE_INDICATOR([wcrtomb])
68   # Code from module dummy:
69   # End of code from modules
70   m4_ifval(grgl_LIBSOURCES_LIST, [
71     m4_syscmd([test ! -d ]m4_defn([grgl_LIBSOURCES_DIR])[ ||
72       for gl_file in ]grgl_LIBSOURCES_LIST[ ; do
73         if test ! -r ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file ; then
74           echo "missing file ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file" >&2
75           exit 1
76         fi
77       done])dnl
78       m4_if(m4_sysval, [0], [],
79         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
80   ])
81   m4_popdef([grgl_LIBSOURCES_DIR])
82   m4_popdef([grgl_LIBSOURCES_LIST])
83   m4_popdef([AC_LIBSOURCES])
84   m4_popdef([AC_REPLACE_FUNCS])
85   m4_popdef([AC_LIBOBJ])
86   AC_CONFIG_COMMANDS_PRE([
87     grgl_libobjs=
88     grgl_ltlibobjs=
89     if test -n "$grgl_LIBOBJS"; then
90       # Remove the extension.
91       sed_drop_objext='s/\.o$//;s/\.obj$//'
92       for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
93         grgl_libobjs="$grgl_libobjs $i.$ac_objext"
94         grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
95       done
96     fi
97     AC_SUBST([grgl_LIBOBJS], [$grgl_libobjs])
98     AC_SUBST([grgl_LTLIBOBJS], [$grgl_ltlibobjs])
99   ])
100   gltests_libdeps=
101   gltests_ltlibdeps=
102   m4_pushdef([AC_LIBOBJ], m4_defn([grgltests_LIBOBJ]))
103   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgltests_REPLACE_FUNCS]))
104   m4_pushdef([AC_LIBSOURCES], m4_defn([grgltests_LIBSOURCES]))
105   m4_pushdef([grgltests_LIBSOURCES_LIST], [])
106   m4_pushdef([grgltests_LIBSOURCES_DIR], [])
107   gl_COMMON
108   gl_source_base='tests'
109 changequote(,)dnl
110   grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
111 changequote([, ])dnl
112   AC_SUBST([grgltests_WITNESS])
113   gl_module_indicator_condition=$grgltests_WITNESS
114   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
115   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
116   m4_ifval(grgltests_LIBSOURCES_LIST, [
117     m4_syscmd([test ! -d ]m4_defn([grgltests_LIBSOURCES_DIR])[ ||
118       for gl_file in ]grgltests_LIBSOURCES_LIST[ ; do
119         if test ! -r ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file ; then
120           echo "missing file ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file" >&2
121           exit 1
122         fi
123       done])dnl
124       m4_if(m4_sysval, [0], [],
125         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
126   ])
127   m4_popdef([grgltests_LIBSOURCES_DIR])
128   m4_popdef([grgltests_LIBSOURCES_LIST])
129   m4_popdef([AC_LIBSOURCES])
130   m4_popdef([AC_REPLACE_FUNCS])
131   m4_popdef([AC_LIBOBJ])
132   AC_CONFIG_COMMANDS_PRE([
133     grgltests_libobjs=
134     grgltests_ltlibobjs=
135     if test -n "$grgltests_LIBOBJS"; then
136       # Remove the extension.
137       sed_drop_objext='s/\.o$//;s/\.obj$//'
138       for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
139         grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
140         grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
141       done
142     fi
143     AC_SUBST([grgltests_LIBOBJS], [$grgltests_libobjs])
144     AC_SUBST([grgltests_LTLIBOBJS], [$grgltests_ltlibobjs])
145   ])
146   LIBGREP_LIBDEPS="$gl_libdeps"
147   AC_SUBST([LIBGREP_LIBDEPS])
148   LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
149   AC_SUBST([LIBGREP_LTLIBDEPS])
150 ])
151
152 # Like AC_LIBOBJ, except that the module name goes
153 # into grgl_LIBOBJS instead of into LIBOBJS.
154 AC_DEFUN([grgl_LIBOBJ], [
155   AS_LITERAL_IF([$1], [grgl_LIBSOURCES([$1.c])])dnl
156   grgl_LIBOBJS="$grgl_LIBOBJS $1.$ac_objext"
157 ])
158
159 # Like AC_REPLACE_FUNCS, except that the module name goes
160 # into grgl_LIBOBJS instead of into LIBOBJS.
161 AC_DEFUN([grgl_REPLACE_FUNCS], [
162   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
163   AC_CHECK_FUNCS([$1], , [grgl_LIBOBJ($ac_func)])
164 ])
165
166 # Like AC_LIBSOURCES, except the directory where the source file is
167 # expected is derived from the gnulib-tool parameterization,
168 # and alloca is special cased (for the alloca-opt module).
169 # We could also entirely rely on EXTRA_lib..._SOURCES.
170 AC_DEFUN([grgl_LIBSOURCES], [
171   m4_foreach([_gl_NAME], [$1], [
172     m4_if(_gl_NAME, [alloca.c], [], [
173       m4_define([grgl_LIBSOURCES_DIR], [libgrep])
174       m4_append([grgl_LIBSOURCES_LIST], _gl_NAME, [ ])
175     ])
176   ])
177 ])
178
179 # Like AC_LIBOBJ, except that the module name goes
180 # into grgltests_LIBOBJS instead of into LIBOBJS.
181 AC_DEFUN([grgltests_LIBOBJ], [
182   AS_LITERAL_IF([$1], [grgltests_LIBSOURCES([$1.c])])dnl
183   grgltests_LIBOBJS="$grgltests_LIBOBJS $1.$ac_objext"
184 ])
185
186 # Like AC_REPLACE_FUNCS, except that the module name goes
187 # into grgltests_LIBOBJS instead of into LIBOBJS.
188 AC_DEFUN([grgltests_REPLACE_FUNCS], [
189   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
190   AC_CHECK_FUNCS([$1], , [grgltests_LIBOBJ($ac_func)])
191 ])
192
193 # Like AC_LIBSOURCES, except the directory where the source file is
194 # expected is derived from the gnulib-tool parameterization,
195 # and alloca is special cased (for the alloca-opt module).
196 # We could also entirely rely on EXTRA_lib..._SOURCES.
197 AC_DEFUN([grgltests_LIBSOURCES], [
198   m4_foreach([_gl_NAME], [$1], [
199     m4_if(_gl_NAME, [alloca.c], [], [
200       m4_define([grgltests_LIBSOURCES_DIR], [tests])
201       m4_append([grgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
202     ])
203   ])
204 ])
205
206 # This macro records the list of files which have been installed by
207 # gnulib-tool and may be removed by future gnulib-tool invocations.
208 AC_DEFUN([grgl_FILE_LIST], [
209   build-aux/c++defs.h
210   build-aux/warn-on-use.h
211   lib/btowc.c
212   lib/dummy.c
213   lib/langinfo.in.h
214   lib/nl_langinfo.c
215   lib/regcomp.c
216   lib/regex.c
217   lib/regex.h
218   lib/regex_internal.c
219   lib/regex_internal.h
220   lib/regexec.c
221   lib/wcrtomb.c
222   m4/00gnulib.m4
223   m4/btowc.m4
224   m4/codeset.m4
225   m4/gnulib-common.m4
226   m4/langinfo_h.m4
227   m4/locale-fr.m4
228   m4/locale-ja.m4
229   m4/locale-zh.m4
230   m4/mbrtowc.m4
231   m4/mbstate_t.m4
232   m4/nl_langinfo.m4
233   m4/onceonly.m4
234   m4/regex.m4
235   m4/warn-on-use.m4
236   m4/wcrtomb.m4
237 ])