Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-runtime / gnulib-m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2015 Free Software Foundation, Inc.
3 #
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
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.
27 # In projects that use version control, this file can be treated like
28 # other built files.
29
30
31 # This macro should be invoked from gettext-runtime/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
40
41   # Pre-early section.
42   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43   AC_REQUIRE([gl_PROG_AR_RANLIB])
44
45   AC_REQUIRE([AM_PROG_CC_C_O])
46   # Code from module absolute-header:
47   # Code from module alloca-opt:
48   # Code from module allocator:
49   # Code from module ansi-c++-opt:
50   # Code from module areadlink:
51   # Code from module atexit:
52   # Code from module basename:
53   # Code from module c-ctype:
54   # Code from module c-strcase:
55   # Code from module canonicalize-lgpl:
56   # Code from module careadlinkat:
57   # Code from module closeout:
58   # Code from module configmake:
59   # Code from module csharpcomp-script:
60   # Code from module dosname:
61   # Code from module double-slash-root:
62   # Code from module environ:
63   # Code from module errno:
64   # Code from module error:
65   # Code from module extensions:
66   # Code from module extern-inline:
67   # Code from module fwriteerror:
68   # Code from module getopt-gnu:
69   # Code from module getopt-posix:
70   # Code from module gettext-h:
71   # Code from module gettext-runtime-misc:
72   # Code from module gettimeofday:
73   # Code from module gperf:
74   # Code from module havelib:
75   # Code from module iconv:
76   # Code from module iconv-h:
77   # Code from module iconv_open:
78   # Code from module include_next:
79   # Code from module inline:
80   # Code from module intprops:
81   # Code from module iswblank:
82   # Code from module java:
83   # Code from module javacomp-script:
84   # Code from module langinfo:
85   # Code from module largefile:
86   AC_REQUIRE([AC_SYS_LARGEFILE])
87   # Code from module localcharset:
88   # Code from module locale:
89   # Code from module localename:
90   # Code from module lock:
91   # Code from module lstat:
92   # Code from module malloca:
93   # Code from module mbchar:
94   # Code from module mbiter:
95   # Code from module mbrtowc:
96   # Code from module mbsinit:
97   # Code from module mbslen:
98   # Code from module mbsstr:
99   # Code from module mbuiter:
100   # Code from module memchr:
101   # Code from module memmove:
102   # Code from module msvc-inval:
103   # Code from module msvc-nothrow:
104   # Code from module multiarch:
105   # Code from module nocrash:
106   # Code from module pathmax:
107   # Code from module progname:
108   # Code from module propername:
109   # Code from module raise:
110   # Code from module readlink:
111   # Code from module relocatable-prog:
112   # Code from module relocatable-prog-wrapper:
113   # Code from module setlocale:
114   # Code from module signal-h:
115   # Code from module sigpipe:
116   # Code from module sigprocmask:
117   # Code from module snippet/_Noreturn:
118   # Code from module snippet/arg-nonnull:
119   # Code from module snippet/c++defs:
120   # Code from module snippet/unused-parameter:
121   # Code from module snippet/warn-on-use:
122   # Code from module ssize_t:
123   # Code from module stat:
124   # Code from module stdbool:
125   # Code from module stddef:
126   # Code from module stdint:
127   # Code from module stdio:
128   # Code from module stdlib:
129   # Code from module streq:
130   # Code from module strerror:
131   # Code from module strerror-override:
132   # Code from module striconv:
133   # Code from module string:
134   # Code from module strnlen:
135   # Code from module strnlen1:
136   # Code from module strtoul:
137   # Code from module sys_stat:
138   # Code from module sys_time:
139   # Code from module sys_types:
140   # Code from module threadlib:
141   gl_THREADLIB_EARLY
142   # Code from module time:
143   # Code from module trim:
144   # Code from module unistd:
145   # Code from module unistr/base:
146   # Code from module unistr/u8-mbtoucr:
147   # Code from module unistr/u8-uctomb:
148   # Code from module unitypes:
149   # Code from module uniwidth/base:
150   # Code from module uniwidth/width:
151   # Code from module unlocked-io:
152   # Code from module verify:
153   # Code from module wchar:
154   # Code from module wctype-h:
155   # Code from module wcwidth:
156   # Code from module xalloc:
157   # Code from module xreadlink:
158   # Code from module xstriconv:
159 ])
160
161 # This macro should be invoked from gettext-runtime/configure.ac, in the section
162 # "Check for header files, types and library functions".
163 AC_DEFUN([gl_INIT],
164 [
165   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
166   gl_cond_libtool=false
167   gl_libdeps=
168   gl_ltlibdeps=
169   gl_m4_base='gnulib-m4'
170   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
171   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
172   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
173   m4_pushdef([gl_LIBSOURCES_LIST], [])
174   m4_pushdef([gl_LIBSOURCES_DIR], [])
175   gl_COMMON
176   gl_source_base='gnulib-lib'
177   gl_FUNC_ALLOCA
178   gl_PROG_ANSI_CXX([CXX], [ANSICXX])
179   gl_FUNC_ATEXIT
180   if test $ac_cv_func_atexit = no; then
181     AC_LIBOBJ([atexit])
182     gl_PREREQ_ATEXIT
183   fi
184   gl_CANONICALIZE_LGPL
185   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
186     AC_LIBOBJ([canonicalize-lgpl])
187   fi
188   gl_MODULE_INDICATOR([canonicalize-lgpl])
189   gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
190   gl_STDLIB_MODULE_INDICATOR([realpath])
191   AC_CHECK_FUNCS_ONCE([readlinkat])
192   gl_CONFIGMAKE_PREP
193   AC_REQUIRE([gt_CSHARPCOMP])
194   AC_CONFIG_FILES([csharpcomp.sh:../build-aux/csharpcomp.sh.in])
195   gl_DOUBLE_SLASH_ROOT
196   gl_ENVIRON
197   gl_UNISTD_MODULE_INDICATOR([environ])
198   gl_HEADER_ERRNO_H
199   gl_ERROR
200   if test $ac_cv_lib_error_at_line = no; then
201     AC_LIBOBJ([error])
202     gl_PREREQ_ERROR
203   fi
204   m4_ifdef([AM_XGETTEXT_OPTION],
205     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
206      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
207   AC_REQUIRE([gl_EXTERN_INLINE])
208   gl_MODULE_INDICATOR([fwriteerror])
209   gl_FUNC_GETOPT_GNU
210   if test $REPLACE_GETOPT = 1; then
211     AC_LIBOBJ([getopt])
212     AC_LIBOBJ([getopt1])
213     gl_PREREQ_GETOPT
214     dnl Arrange for unistd.h to include getopt.h.
215     GNULIB_GL_UNISTD_H_GETOPT=1
216   fi
217   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
218   gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
219   gl_FUNC_GETOPT_POSIX
220   if test $REPLACE_GETOPT = 1; then
221     AC_LIBOBJ([getopt])
222     AC_LIBOBJ([getopt1])
223     gl_PREREQ_GETOPT
224     dnl Arrange for unistd.h to include getopt.h.
225     GNULIB_GL_UNISTD_H_GETOPT=1
226   fi
227   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
228   AC_SUBST([LIBINTL])
229   AC_SUBST([LTLIBINTL])
230   gl_FUNC_GETTIMEOFDAY
231   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
232     AC_LIBOBJ([gettimeofday])
233     gl_PREREQ_GETTIMEOFDAY
234   fi
235   gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
236   AM_ICONV
237   m4_ifdef([gl_ICONV_MODULE_INDICATOR],
238     [gl_ICONV_MODULE_INDICATOR([iconv])])
239   gl_ICONV_H
240   gl_FUNC_ICONV_OPEN
241   if test $REPLACE_ICONV_OPEN = 1; then
242     AC_LIBOBJ([iconv_open])
243   fi
244   if test $REPLACE_ICONV = 1; then
245     AC_LIBOBJ([iconv])
246     AC_LIBOBJ([iconv_close])
247   fi
248   gl_INLINE
249   gl_FUNC_ISWBLANK
250   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
251     :
252   else
253     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
254       AC_LIBOBJ([iswblank])
255     fi
256   fi
257   gl_WCTYPE_MODULE_INDICATOR([iswblank])
258   gt_JAVA_CHOICE
259   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
260   AC_CONFIG_FILES([javacomp.sh:../build-aux/javacomp.sh.in])
261   gl_LANGINFO_H
262   AC_REQUIRE([gl_LARGEFILE])
263   gl_LOCALCHARSET
264   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
265   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
266   gl_LOCALE_H
267   gl_LOCALENAME
268   gl_LOCK
269   gl_MODULE_INDICATOR([lock])
270   gl_FUNC_LSTAT
271   if test $REPLACE_LSTAT = 1; then
272     AC_LIBOBJ([lstat])
273     gl_PREREQ_LSTAT
274   fi
275   gl_SYS_STAT_MODULE_INDICATOR([lstat])
276   gl_MALLOCA
277   gl_MBCHAR
278   gl_MBITER
279   gl_FUNC_MBRTOWC
280   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
281     AC_LIBOBJ([mbrtowc])
282     gl_PREREQ_MBRTOWC
283   fi
284   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
285   gl_FUNC_MBSINIT
286   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
287     AC_LIBOBJ([mbsinit])
288     gl_PREREQ_MBSINIT
289   fi
290   gl_WCHAR_MODULE_INDICATOR([mbsinit])
291   gl_FUNC_MBSLEN
292   gl_STRING_MODULE_INDICATOR([mbslen])
293   gl_STRING_MODULE_INDICATOR([mbsstr])
294   gl_MBITER
295   gl_FUNC_MEMCHR
296   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
297     AC_LIBOBJ([memchr])
298     gl_PREREQ_MEMCHR
299   fi
300   gl_STRING_MODULE_INDICATOR([memchr])
301   gl_FUNC_MEMMOVE
302   if test $ac_cv_func_memmove = no; then
303     AC_LIBOBJ([memmove])
304     gl_PREREQ_MEMMOVE
305   fi
306   gl_MSVC_INVAL
307   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
308     AC_LIBOBJ([msvc-inval])
309   fi
310   gl_MSVC_NOTHROW
311   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
312     AC_LIBOBJ([msvc-nothrow])
313   fi
314   gl_MULTIARCH
315   gl_PATHMAX
316   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
317   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
318   m4_ifdef([AM_XGETTEXT_OPTION],
319     [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
320      AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
321   gl_FUNC_RAISE
322   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
323     AC_LIBOBJ([raise])
324     gl_PREREQ_RAISE
325   fi
326   gl_SIGNAL_MODULE_INDICATOR([raise])
327   gl_FUNC_READLINK
328   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
329     AC_LIBOBJ([readlink])
330     gl_PREREQ_READLINK
331   fi
332   gl_UNISTD_MODULE_INDICATOR([readlink])
333   gl_RELOCATABLE([$gl_source_base])
334   if test $RELOCATABLE = yes; then
335     AC_LIBOBJ([progreloc])
336     AC_LIBOBJ([relocatable])
337   fi
338   gl_FUNC_READLINK_SEPARATE
339   gl_CANONICALIZE_LGPL_SEPARATE
340   gl_MALLOCA
341   gl_RELOCATABLE_LIBRARY
342   gl_FUNC_SETENV_SEPARATE
343   gl_FUNC_SETLOCALE
344   if test $REPLACE_SETLOCALE = 1; then
345     AC_LIBOBJ([setlocale])
346     gl_PREREQ_SETLOCALE
347   fi
348   gl_LOCALE_MODULE_INDICATOR([setlocale])
349   gl_SIGNAL_H
350   gl_SIGNAL_SIGPIPE
351   dnl Define the C macro GNULIB_SIGPIPE to 1.
352   gl_MODULE_INDICATOR([sigpipe])
353   dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
354   AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
355   GNULIB_SIGNAL_H_SIGPIPE=1
356   dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
357   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
358   AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
359   GNULIB_STDIO_H_SIGPIPE=1
360   dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
361   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
362   GNULIB_UNISTD_H_SIGPIPE=1
363   gl_SIGNALBLOCKING
364   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
365     AC_LIBOBJ([sigprocmask])
366     gl_PREREQ_SIGPROCMASK
367   fi
368   gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
369   gt_TYPE_SSIZE_T
370   gl_FUNC_STAT
371   if test $REPLACE_STAT = 1; then
372     AC_LIBOBJ([stat])
373     gl_PREREQ_STAT
374   fi
375   gl_SYS_STAT_MODULE_INDICATOR([stat])
376   AM_STDBOOL_H
377   gl_STDDEF_H
378   gl_STDINT_H
379   gl_STDIO_H
380   gl_STDLIB_H
381   gl_FUNC_STRERROR
382   if test $REPLACE_STRERROR = 1; then
383     AC_LIBOBJ([strerror])
384   fi
385   gl_MODULE_INDICATOR([strerror])
386   gl_STRING_MODULE_INDICATOR([strerror])
387   AC_REQUIRE([gl_HEADER_ERRNO_H])
388   AC_REQUIRE([gl_FUNC_STRERROR_0])
389   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
390     AC_LIBOBJ([strerror-override])
391     gl_PREREQ_SYS_H_WINSOCK2
392   fi
393   if test $gl_cond_libtool = false; then
394     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
395     gl_libdeps="$gl_libdeps $LIBICONV"
396   fi
397   gl_HEADER_STRING_H
398   gl_FUNC_STRNLEN
399   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
400     AC_LIBOBJ([strnlen])
401     gl_PREREQ_STRNLEN
402   fi
403   gl_STRING_MODULE_INDICATOR([strnlen])
404   gl_FUNC_STRTOUL
405   if test $ac_cv_func_strtoul = no; then
406     AC_LIBOBJ([strtoul])
407   fi
408   gl_HEADER_SYS_STAT_H
409   AC_PROG_MKDIR_P
410   gl_HEADER_SYS_TIME_H
411   AC_PROG_MKDIR_P
412   gl_SYS_TYPES_H
413   AC_PROG_MKDIR_P
414   gl_THREADLIB
415   gl_HEADER_TIME_H
416   gl_UNISTD_H
417   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unistr.h])
418   gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
419   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
420   gl_MODULE_INDICATOR([unistr/u8-uctomb])
421   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
422   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unitypes.h])
423   gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniwidth.h])
424   gl_LIBUNISTRING_MODULE([0.9.6], [uniwidth/width])
425   gl_FUNC_GLIBC_UNLOCKED_IO
426   gl_WCHAR_H
427   gl_WCTYPE_H
428   gl_FUNC_WCWIDTH
429   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
430     AC_LIBOBJ([wcwidth])
431   fi
432   gl_WCHAR_MODULE_INDICATOR([wcwidth])
433   # End of code from modules
434   m4_ifval(gl_LIBSOURCES_LIST, [
435     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
436       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
437         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
438           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
439           exit 1
440         fi
441       done])dnl
442       m4_if(m4_sysval, [0], [],
443         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
444   ])
445   m4_popdef([gl_LIBSOURCES_DIR])
446   m4_popdef([gl_LIBSOURCES_LIST])
447   m4_popdef([AC_LIBSOURCES])
448   m4_popdef([AC_REPLACE_FUNCS])
449   m4_popdef([AC_LIBOBJ])
450   AC_CONFIG_COMMANDS_PRE([
451     gl_libobjs=
452     gl_ltlibobjs=
453     if test -n "$gl_LIBOBJS"; then
454       # Remove the extension.
455       sed_drop_objext='s/\.o$//;s/\.obj$//'
456       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
457         gl_libobjs="$gl_libobjs $i.$ac_objext"
458         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
459       done
460     fi
461     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
462     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
463   ])
464   gltests_libdeps=
465   gltests_ltlibdeps=
466   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
467   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
468   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
469   m4_pushdef([gltests_LIBSOURCES_LIST], [])
470   m4_pushdef([gltests_LIBSOURCES_DIR], [])
471   gl_COMMON
472   gl_source_base='tests'
473 changequote(,)dnl
474   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
475 changequote([, ])dnl
476   AC_SUBST([gltests_WITNESS])
477   gl_module_indicator_condition=$gltests_WITNESS
478   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
479   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
480   m4_ifval(gltests_LIBSOURCES_LIST, [
481     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
482       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
483         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
484           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
485           exit 1
486         fi
487       done])dnl
488       m4_if(m4_sysval, [0], [],
489         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
490   ])
491   m4_popdef([gltests_LIBSOURCES_DIR])
492   m4_popdef([gltests_LIBSOURCES_LIST])
493   m4_popdef([AC_LIBSOURCES])
494   m4_popdef([AC_REPLACE_FUNCS])
495   m4_popdef([AC_LIBOBJ])
496   AC_CONFIG_COMMANDS_PRE([
497     gltests_libobjs=
498     gltests_ltlibobjs=
499     if test -n "$gltests_LIBOBJS"; then
500       # Remove the extension.
501       sed_drop_objext='s/\.o$//;s/\.obj$//'
502       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
503         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
504         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
505       done
506     fi
507     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
508     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
509   ])
510   LIBGRT_LIBDEPS="$gl_libdeps"
511   AC_SUBST([LIBGRT_LIBDEPS])
512   LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
513   AC_SUBST([LIBGRT_LTLIBDEPS])
514 ])
515
516 # Like AC_LIBOBJ, except that the module name goes
517 # into gl_LIBOBJS instead of into LIBOBJS.
518 AC_DEFUN([gl_LIBOBJ], [
519   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
520   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
521 ])
522
523 # Like AC_REPLACE_FUNCS, except that the module name goes
524 # into gl_LIBOBJS instead of into LIBOBJS.
525 AC_DEFUN([gl_REPLACE_FUNCS], [
526   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
527   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
528 ])
529
530 # Like AC_LIBSOURCES, except the directory where the source file is
531 # expected is derived from the gnulib-tool parameterization,
532 # and alloca is special cased (for the alloca-opt module).
533 # We could also entirely rely on EXTRA_lib..._SOURCES.
534 AC_DEFUN([gl_LIBSOURCES], [
535   m4_foreach([_gl_NAME], [$1], [
536     m4_if(_gl_NAME, [alloca.c], [], [
537       m4_define([gl_LIBSOURCES_DIR], [gnulib-lib])
538       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
539     ])
540   ])
541 ])
542
543 # Like AC_LIBOBJ, except that the module name goes
544 # into gltests_LIBOBJS instead of into LIBOBJS.
545 AC_DEFUN([gltests_LIBOBJ], [
546   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
547   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
548 ])
549
550 # Like AC_REPLACE_FUNCS, except that the module name goes
551 # into gltests_LIBOBJS instead of into LIBOBJS.
552 AC_DEFUN([gltests_REPLACE_FUNCS], [
553   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
554   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
555 ])
556
557 # Like AC_LIBSOURCES, except the directory where the source file is
558 # expected is derived from the gnulib-tool parameterization,
559 # and alloca is special cased (for the alloca-opt module).
560 # We could also entirely rely on EXTRA_lib..._SOURCES.
561 AC_DEFUN([gltests_LIBSOURCES], [
562   m4_foreach([_gl_NAME], [$1], [
563     m4_if(_gl_NAME, [alloca.c], [], [
564       m4_define([gltests_LIBSOURCES_DIR], [tests])
565       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
566     ])
567   ])
568 ])
569
570 # This macro records the list of files which have been installed by
571 # gnulib-tool and may be removed by future gnulib-tool invocations.
572 AC_DEFUN([gl_FILE_LIST], [
573   build-aux/config.libpath
574   build-aux/config.rpath
575   build-aux/csharpcomp.sh.in
576   build-aux/install-reloc
577   build-aux/javacomp.sh.in
578   build-aux/reloc-ldflags
579   build-aux/snippet/_Noreturn.h
580   build-aux/snippet/arg-nonnull.h
581   build-aux/snippet/c++defs.h
582   build-aux/snippet/unused-parameter.h
583   build-aux/snippet/warn-on-use.h
584   doc/relocatable.texi
585   lib/alloca.in.h
586   lib/allocator.c
587   lib/allocator.h
588   lib/areadlink.c
589   lib/areadlink.h
590   lib/atexit.c
591   lib/basename.c
592   lib/basename.h
593   lib/c-ctype.c
594   lib/c-ctype.h
595   lib/c-strcase.h
596   lib/c-strcasecmp.c
597   lib/c-strncasecmp.c
598   lib/canonicalize-lgpl.c
599   lib/careadlinkat.c
600   lib/careadlinkat.h
601   lib/closeout.c
602   lib/closeout.h
603   lib/config.charset
604   lib/dosname.h
605   lib/errno.in.h
606   lib/error.c
607   lib/error.h
608   lib/fwriteerror.c
609   lib/fwriteerror.h
610   lib/getopt.c
611   lib/getopt.in.h
612   lib/getopt1.c
613   lib/getopt_int.h
614   lib/gettext.h
615   lib/gettimeofday.c
616   lib/glthread/lock.c
617   lib/glthread/lock.h
618   lib/glthread/threadlib.c
619   lib/iconv.c
620   lib/iconv.in.h
621   lib/iconv_close.c
622   lib/iconv_open-aix.gperf
623   lib/iconv_open-hpux.gperf
624   lib/iconv_open-irix.gperf
625   lib/iconv_open-osf.gperf
626   lib/iconv_open-solaris.gperf
627   lib/iconv_open.c
628   lib/intprops.h
629   lib/iswblank.c
630   lib/langinfo.in.h
631   lib/localcharset.c
632   lib/localcharset.h
633   lib/locale.in.h
634   lib/localename.c
635   lib/localename.h
636   lib/lstat.c
637   lib/malloca.c
638   lib/malloca.h
639   lib/malloca.valgrind
640   lib/mbchar.c
641   lib/mbchar.h
642   lib/mbiter.c
643   lib/mbiter.h
644   lib/mbrtowc.c
645   lib/mbsinit.c
646   lib/mbslen.c
647   lib/mbsstr.c
648   lib/mbuiter.c
649   lib/mbuiter.h
650   lib/memchr.c
651   lib/memchr.valgrind
652   lib/memmove.c
653   lib/msvc-inval.c
654   lib/msvc-inval.h
655   lib/msvc-nothrow.c
656   lib/msvc-nothrow.h
657   lib/pathmax.h
658   lib/progname.c
659   lib/progname.h
660   lib/progreloc.c
661   lib/propername.c
662   lib/propername.h
663   lib/raise.c
664   lib/readlink.c
665   lib/ref-add.sin
666   lib/ref-del.sin
667   lib/relocatable.c
668   lib/relocatable.h
669   lib/relocwrapper.c
670   lib/setenv.c
671   lib/setlocale.c
672   lib/signal.in.h
673   lib/sigprocmask.c
674   lib/stat.c
675   lib/stdbool.in.h
676   lib/stddef.in.h
677   lib/stdint.in.h
678   lib/stdio-write.c
679   lib/stdio.in.h
680   lib/stdlib.in.h
681   lib/str-kmp.h
682   lib/streq.h
683   lib/strerror-override.c
684   lib/strerror-override.h
685   lib/strerror.c
686   lib/striconv.c
687   lib/striconv.h
688   lib/string.in.h
689   lib/strnlen.c
690   lib/strnlen1.c
691   lib/strnlen1.h
692   lib/strtol.c
693   lib/strtoul.c
694   lib/sys_stat.in.h
695   lib/sys_time.in.h
696   lib/sys_types.in.h
697   lib/time.in.h
698   lib/trim.c
699   lib/trim.h
700   lib/unistd.c
701   lib/unistd.in.h
702   lib/unistr.in.h
703   lib/unistr/u8-mbtoucr.c
704   lib/unistr/u8-uctomb-aux.c
705   lib/unistr/u8-uctomb.c
706   lib/unitypes.in.h
707   lib/uniwidth.in.h
708   lib/uniwidth/cjk.h
709   lib/uniwidth/width.c
710   lib/unlocked-io.h
711   lib/verify.h
712   lib/wchar.in.h
713   lib/wctype-h.c
714   lib/wctype.in.h
715   lib/wcwidth.c
716   lib/xalloc.h
717   lib/xmalloc.c
718   lib/xreadlink.c
719   lib/xreadlink.h
720   lib/xstrdup.c
721   lib/xstriconv.c
722   lib/xstriconv.h
723   m4/00gnulib.m4
724   m4/absolute-header.m4
725   m4/alloca.m4
726   m4/ansi-c++.m4
727   m4/asm-underscore.m4
728   m4/atexit.m4
729   m4/canonicalize.m4
730   m4/codeset.m4
731   m4/configmake.m4
732   m4/csharp.m4
733   m4/csharpcomp.m4
734   m4/double-slash-root.m4
735   m4/eealloc.m4
736   m4/environ.m4
737   m4/errno_h.m4
738   m4/error.m4
739   m4/extensions.m4
740   m4/extern-inline.m4
741   m4/fcntl-o.m4
742   m4/getopt.m4
743   m4/gettimeofday.m4
744   m4/glibc21.m4
745   m4/gnulib-common.m4
746   m4/iconv.m4
747   m4/iconv_h.m4
748   m4/iconv_open.m4
749   m4/include_next.m4
750   m4/inline.m4
751   m4/intlmacosx.m4
752   m4/iswblank.m4
753   m4/java.m4
754   m4/javacomp.m4
755   m4/langinfo_h.m4
756   m4/largefile.m4
757   m4/lcmessage.m4
758   m4/lib-ld.m4
759   m4/lib-link.m4
760   m4/lib-prefix.m4
761   m4/libunistring-base.m4
762   m4/localcharset.m4
763   m4/locale-fr.m4
764   m4/locale-ja.m4
765   m4/locale-zh.m4
766   m4/locale_h.m4
767   m4/localename.m4
768   m4/lock.m4
769   m4/longlong.m4
770   m4/lstat.m4
771   m4/malloca.m4
772   m4/mbchar.m4
773   m4/mbiter.m4
774   m4/mbrtowc.m4
775   m4/mbsinit.m4
776   m4/mbslen.m4
777   m4/mbstate_t.m4
778   m4/memchr.m4
779   m4/memmove.m4
780   m4/mmap-anon.m4
781   m4/msvc-inval.m4
782   m4/msvc-nothrow.m4
783   m4/multiarch.m4
784   m4/nocrash.m4
785   m4/off_t.m4
786   m4/pathmax.m4
787   m4/raise.m4
788   m4/readlink.m4
789   m4/relocatable-lib.m4
790   m4/relocatable.m4
791   m4/setenv.m4
792   m4/setlocale.m4
793   m4/signal_h.m4
794   m4/signalblocking.m4
795   m4/sigpipe.m4
796   m4/ssize_t.m4
797   m4/stat.m4
798   m4/stdbool.m4
799   m4/stddef_h.m4
800   m4/stdint.m4
801   m4/stdio_h.m4
802   m4/stdlib_h.m4
803   m4/strerror.m4
804   m4/string_h.m4
805   m4/strnlen.m4
806   m4/strtoul.m4
807   m4/sys_socket_h.m4
808   m4/sys_stat_h.m4
809   m4/sys_time_h.m4
810   m4/sys_types_h.m4
811   m4/threadlib.m4
812   m4/time_h.m4
813   m4/unistd_h.m4
814   m4/unlocked-io.m4
815   m4/warn-on-use.m4
816   m4/wchar_h.m4
817   m4/wchar_t.m4
818   m4/wctype_h.m4
819   m4/wcwidth.m4
820   m4/wint_t.m4
821 ])