Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / libgettextpo / 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-tools/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([gtpo_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 alignof:
48   # Code from module alloca-opt:
49   # Code from module basename:
50   # Code from module c-ctype:
51   # Code from module c-strcase:
52   # Code from module c-strcaseeq:
53   # Code from module c-strstr:
54   # Code from module close:
55   # Code from module concat-filename:
56   # Code from module configmake:
57   # Code from module diffseq:
58   # Code from module dosname:
59   # Code from module errno:
60   # Code from module error:
61   # Code from module error-progname:
62   # Code from module exitfail:
63   # Code from module extensions:
64   # Code from module extern-inline:
65   # Code from module fcntl-h:
66   # Code from module fd-hook:
67   # Code from module file-ostream:
68   # Code from module filename:
69   # Code from module float:
70   # Code from module fopen:
71   # Code from module fstat:
72   # Code from module fstrcmp:
73   # Code from module fwriteerror:
74   # Code from module gcd:
75   # Code from module getdelim:
76   # Code from module getline:
77   # Code from module gettext-h:
78   # Code from module gettimeofday:
79   # Code from module gperf:
80   # Code from module hash:
81   # Code from module havelib:
82   # Code from module iconv:
83   # Code from module iconv-h:
84   # Code from module iconv_open:
85   # Code from module include_next:
86   # Code from module inline:
87   # Code from module intprops:
88   # Code from module largefile:
89   AC_REQUIRE([AC_SYS_LARGEFILE])
90   # Code from module libunistring-optional:
91   # Code from module linked-list:
92   # Code from module list:
93   # Code from module localcharset:
94   # Code from module lock:
95   # Code from module malloc-posix:
96   # Code from module malloca:
97   # Code from module markup:
98   # Code from module mbrtowc:
99   # Code from module mbsinit:
100   # Code from module mbswidth:
101   # Code from module memchr:
102   # Code from module minmax:
103   # Code from module moo:
104   # Code from module msvc-inval:
105   # Code from module msvc-nothrow:
106   # Code from module multiarch:
107   # Code from module obstack:
108   # Code from module open:
109   # Code from module ostream:
110   # Code from module pathmax:
111   # Code from module progname:
112   # Code from module raise:
113   # Code from module rawmemchr:
114   # Code from module realloc-posix:
115   # Code from module relocatable-lib:
116   # Code from module signal-h:
117   # Code from module sigpipe:
118   # Code from module sigprocmask:
119   # Code from module size_max:
120   # Code from module snippet/_Noreturn:
121   # Code from module snippet/arg-nonnull:
122   # Code from module snippet/c++defs:
123   # Code from module snippet/unused-parameter:
124   # Code from module snippet/warn-on-use:
125   # Code from module ssize_t:
126   # Code from module stat:
127   # Code from module stdarg:
128   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
129   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
130   dnl gl_PROG_CC_C99 arranges for this.  With older Autoconf gl_PROG_CC_C99
131   dnl shouldn't hurt, though installers are on their own to set c99 mode.
132   gl_PROG_CC_C99
133   # Code from module stdbool:
134   # Code from module stddef:
135   # Code from module stdint:
136   # Code from module stdio:
137   # Code from module stdlib:
138   # Code from module stpcpy:
139   # Code from module stpncpy:
140   # Code from module strchrnul:
141   # Code from module streq:
142   # Code from module strerror:
143   # Code from module strerror-override:
144   # Code from module striconv:
145   # Code from module striconveh:
146   # Code from module striconveha:
147   # Code from module string:
148   # Code from module strstr:
149   # Code from module strstr-simple:
150   # Code from module sys_stat:
151   # Code from module sys_time:
152   # Code from module sys_types:
153   # Code from module threadlib:
154   gl_THREADLIB_EARLY
155   # Code from module time:
156   # Code from module tls:
157   # Code from module uniconv/base:
158   # Code from module uniconv/u8-conv-from-enc:
159   # Code from module unictype/base:
160   # Code from module unictype/ctype-alpha:
161   # Code from module unictype/ctype-space:
162   # Code from module unilbrk/base:
163   # Code from module unilbrk/tables:
164   # Code from module unilbrk/u8-possible-linebreaks:
165   # Code from module unilbrk/u8-width-linebreaks:
166   # Code from module unilbrk/ulc-common:
167   # Code from module unilbrk/ulc-width-linebreaks:
168   # Code from module unistd:
169   # Code from module unistr/base:
170   # Code from module unistr/u16-mbtouc:
171   # Code from module unistr/u8-check:
172   # Code from module unistr/u8-mblen:
173   # Code from module unistr/u8-mbtouc:
174   # Code from module unistr/u8-mbtouc-unsafe:
175   # Code from module unistr/u8-mbtoucr:
176   # Code from module unistr/u8-next:
177   # Code from module unistr/u8-prev:
178   # Code from module unistr/u8-strmbtouc:
179   # Code from module unistr/u8-uctomb:
180   # Code from module unitypes:
181   # Code from module uniwidth/base:
182   # Code from module uniwidth/width:
183   # Code from module unlocked-io:
184   # Code from module vasnprintf:
185   # Code from module vasprintf:
186   # Code from module verify:
187   # Code from module wchar:
188   # Code from module wctype-h:
189   # Code from module wcwidth:
190   # Code from module xalloc:
191   # Code from module xalloc-die:
192   # Code from module xconcat-filename:
193   # Code from module xerror:
194   # Code from module xlist:
195   # Code from module xmalloca:
196   # Code from module xsize:
197   # Code from module xstriconv:
198   # Code from module xvasprintf:
199 ])
200
201 # This macro should be invoked from gettext-tools/configure.ac, in the section
202 # "Check for header files, types and library functions".
203 AC_DEFUN([gtpo_INIT],
204 [
205   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
206   gl_cond_libtool=true
207   gl_m4_base='libgettextpo/gnulib-m4'
208   m4_pushdef([AC_LIBOBJ], m4_defn([gtpo_LIBOBJ]))
209   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpo_REPLACE_FUNCS]))
210   m4_pushdef([AC_LIBSOURCES], m4_defn([gtpo_LIBSOURCES]))
211   m4_pushdef([gtpo_LIBSOURCES_LIST], [])
212   m4_pushdef([gtpo_LIBSOURCES_DIR], [])
213   gl_COMMON
214   gl_source_base='libgettextpo'
215   gl_FUNC_ALLOCA
216   gl_FUNC_CLOSE
217   if test $REPLACE_CLOSE = 1; then
218     AC_LIBOBJ([close])
219   fi
220   gl_UNISTD_MODULE_INDICATOR([close])
221   gl_CONFIGMAKE_PREP
222   gl_HEADER_ERRNO_H
223   gl_ERROR
224   if test $ac_cv_lib_error_at_line = no; then
225     AC_LIBOBJ([error])
226     gl_PREREQ_ERROR
227   fi
228   m4_ifdef([AM_XGETTEXT_OPTION],
229     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
230      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
231   AC_REQUIRE([gl_EXTERN_INLINE])
232   gl_FCNTL_H
233   gl_FLOAT_H
234   if test $REPLACE_FLOAT_LDBL = 1; then
235     AC_LIBOBJ([float])
236   fi
237   if test $REPLACE_ITOLD = 1; then
238     AC_LIBOBJ([itold])
239   fi
240   gl_FUNC_FOPEN
241   if test $REPLACE_FOPEN = 1; then
242     AC_LIBOBJ([fopen])
243     gl_PREREQ_FOPEN
244   fi
245   gl_STDIO_MODULE_INDICATOR([fopen])
246   gl_FUNC_FSTAT
247   if test $REPLACE_FSTAT = 1; then
248     AC_LIBOBJ([fstat])
249     gl_PREREQ_FSTAT
250   fi
251   gl_SYS_STAT_MODULE_INDICATOR([fstat])
252   gl_MODULE_INDICATOR([fwriteerror])
253   gl_FUNC_GETDELIM
254   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
255     AC_LIBOBJ([getdelim])
256     gl_PREREQ_GETDELIM
257   fi
258   gl_STDIO_MODULE_INDICATOR([getdelim])
259   gl_FUNC_GETLINE
260   if test $REPLACE_GETLINE = 1; then
261     AC_LIBOBJ([getline])
262     gl_PREREQ_GETLINE
263   fi
264   gl_STDIO_MODULE_INDICATOR([getline])
265   AC_SUBST([LIBINTL])
266   AC_SUBST([LTLIBINTL])
267   gl_FUNC_GETTIMEOFDAY
268   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
269     AC_LIBOBJ([gettimeofday])
270     gl_PREREQ_GETTIMEOFDAY
271   fi
272   gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
273   AM_ICONV
274   m4_ifdef([gl_ICONV_MODULE_INDICATOR],
275     [gl_ICONV_MODULE_INDICATOR([iconv])])
276   gl_ICONV_H
277   gl_FUNC_ICONV_OPEN
278   if test $REPLACE_ICONV_OPEN = 1; then
279     AC_LIBOBJ([iconv_open])
280   fi
281   if test $REPLACE_ICONV = 1; then
282     AC_LIBOBJ([iconv])
283     AC_LIBOBJ([iconv_close])
284   fi
285   gl_INLINE
286   AC_REQUIRE([gl_LARGEFILE])
287   gl_LIBUNISTRING_OPTIONAL
288   gl_LOCALCHARSET
289   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
290   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
291   gl_LOCK
292   gl_MODULE_INDICATOR([lock])
293   gl_FUNC_MALLOC_POSIX
294   if test $REPLACE_MALLOC = 1; then
295     AC_LIBOBJ([malloc])
296   fi
297   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
298   gl_MALLOCA
299   gl_FUNC_MBRTOWC
300   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
301     AC_LIBOBJ([mbrtowc])
302     gl_PREREQ_MBRTOWC
303   fi
304   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
305   gl_FUNC_MBSINIT
306   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
307     AC_LIBOBJ([mbsinit])
308     gl_PREREQ_MBSINIT
309   fi
310   gl_WCHAR_MODULE_INDICATOR([mbsinit])
311   gl_MBSWIDTH
312   gl_FUNC_MEMCHR
313   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
314     AC_LIBOBJ([memchr])
315     gl_PREREQ_MEMCHR
316   fi
317   gl_STRING_MODULE_INDICATOR([memchr])
318   gl_MINMAX
319   gl_MOO
320   gl_MSVC_INVAL
321   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
322     AC_LIBOBJ([msvc-inval])
323   fi
324   gl_MSVC_NOTHROW
325   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
326     AC_LIBOBJ([msvc-nothrow])
327   fi
328   gl_MULTIARCH
329   AC_FUNC_OBSTACK
330   dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
331   gl_FUNC_OPEN
332   if test $REPLACE_OPEN = 1; then
333     AC_LIBOBJ([open])
334     gl_PREREQ_OPEN
335   fi
336   gl_FCNTL_MODULE_INDICATOR([open])
337   gl_PATHMAX
338   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
339   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
340   gl_FUNC_RAISE
341   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
342     AC_LIBOBJ([raise])
343     gl_PREREQ_RAISE
344   fi
345   gl_SIGNAL_MODULE_INDICATOR([raise])
346   gl_FUNC_RAWMEMCHR
347   if test $HAVE_RAWMEMCHR = 0; then
348     AC_LIBOBJ([rawmemchr])
349     gl_PREREQ_RAWMEMCHR
350   fi
351   gl_STRING_MODULE_INDICATOR([rawmemchr])
352   gl_FUNC_REALLOC_POSIX
353   if test $REPLACE_REALLOC = 1; then
354     AC_LIBOBJ([realloc])
355   fi
356   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
357   gl_RELOCATABLE_LIBRARY
358   if test $RELOCATABLE = yes; then
359     AC_LIBOBJ([relocatable])
360   fi
361   gl_SIGNAL_H
362   gl_SIGNAL_SIGPIPE
363   dnl Define the C macro GNULIB_SIGPIPE to 1.
364   gl_MODULE_INDICATOR([sigpipe])
365   dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
366   AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
367   GNULIB_SIGNAL_H_SIGPIPE=1
368   dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
369   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
370   AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
371   GNULIB_STDIO_H_SIGPIPE=1
372   dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
373   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
374   GNULIB_UNISTD_H_SIGPIPE=1
375   gl_SIGNALBLOCKING
376   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
377     AC_LIBOBJ([sigprocmask])
378     gl_PREREQ_SIGPROCMASK
379   fi
380   gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
381   gl_SIZE_MAX
382   gt_TYPE_SSIZE_T
383   gl_FUNC_STAT
384   if test $REPLACE_STAT = 1; then
385     AC_LIBOBJ([stat])
386     gl_PREREQ_STAT
387   fi
388   gl_SYS_STAT_MODULE_INDICATOR([stat])
389   gl_STDARG_H
390   AM_STDBOOL_H
391   gl_STDDEF_H
392   gl_STDINT_H
393   gl_STDIO_H
394   gl_STDLIB_H
395   gl_FUNC_STPCPY
396   if test $HAVE_STPCPY = 0; then
397     AC_LIBOBJ([stpcpy])
398     gl_PREREQ_STPCPY
399   fi
400   gl_STRING_MODULE_INDICATOR([stpcpy])
401   gl_FUNC_STPNCPY
402   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
403     AC_LIBOBJ([stpncpy])
404     gl_PREREQ_STPNCPY
405   fi
406   gl_STRING_MODULE_INDICATOR([stpncpy])
407   gl_FUNC_STRCHRNUL
408   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
409     AC_LIBOBJ([strchrnul])
410     gl_PREREQ_STRCHRNUL
411   fi
412   gl_STRING_MODULE_INDICATOR([strchrnul])
413   gl_FUNC_STRERROR
414   if test $REPLACE_STRERROR = 1; then
415     AC_LIBOBJ([strerror])
416   fi
417   gl_MODULE_INDICATOR([strerror])
418   gl_STRING_MODULE_INDICATOR([strerror])
419   AC_REQUIRE([gl_HEADER_ERRNO_H])
420   AC_REQUIRE([gl_FUNC_STRERROR_0])
421   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
422     AC_LIBOBJ([strerror-override])
423     gl_PREREQ_SYS_H_WINSOCK2
424   fi
425   if test $gl_cond_libtool = false; then
426     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
427     gl_libdeps="$gl_libdeps $LIBICONV"
428   fi
429   if test $gl_cond_libtool = false; then
430     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
431     gl_libdeps="$gl_libdeps $LIBICONV"
432   fi
433   gl_HEADER_STRING_H
434   gl_FUNC_STRSTR
435   if test $REPLACE_STRSTR = 1; then
436     AC_LIBOBJ([strstr])
437   fi
438   gl_FUNC_STRSTR_SIMPLE
439   if test $REPLACE_STRSTR = 1; then
440     AC_LIBOBJ([strstr])
441   fi
442   gl_STRING_MODULE_INDICATOR([strstr])
443   gl_HEADER_SYS_STAT_H
444   AC_PROG_MKDIR_P
445   gl_HEADER_SYS_TIME_H
446   AC_PROG_MKDIR_P
447   gl_SYS_TYPES_H
448   AC_PROG_MKDIR_P
449   gl_THREADLIB
450   gl_HEADER_TIME_H
451   gl_TLS
452   gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniconv.h])
453   gl_LIBUNISTRING_MODULE([0.9], [uniconv/u8-conv-from-enc])
454   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unictype.h])
455   AC_REQUIRE([AC_C_INLINE])
456   gl_LIBUNISTRING_MODULE([0.9.6], [unictype/ctype-alpha])
457   AC_REQUIRE([AC_C_INLINE])
458   gl_LIBUNISTRING_MODULE([0.9.6], [unictype/ctype-space])
459   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unilbrk.h])
460   AC_REQUIRE([AC_C_INLINE])
461   gl_LIBUNISTRING_MODULE([0.9.6], [unilbrk/u8-possible-linebreaks])
462   gl_LIBUNISTRING_MODULE([0.9.6], [unilbrk/u8-width-linebreaks])
463   gl_LIBUNISTRING_MODULE([0.9.6], [unilbrk/ulc-width-linebreaks])
464   gl_UNISTD_H
465   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unistr.h])
466   gl_MODULE_INDICATOR([unistr/u16-mbtouc])
467   gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtouc])
468   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-check])
469   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mblen])
470   gl_MODULE_INDICATOR([unistr/u8-mbtouc])
471   gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
472   gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
473   gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
474   gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
475   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
476   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-next])
477   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
478   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-strmbtouc])
479   gl_MODULE_INDICATOR([unistr/u8-uctomb])
480   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
481   gl_LIBUNISTRING_LIBHEADER([0.9.4], [unitypes.h])
482   gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniwidth.h])
483   gl_LIBUNISTRING_MODULE([0.9.6], [uniwidth/width])
484   gl_FUNC_GLIBC_UNLOCKED_IO
485   gl_FUNC_VASNPRINTF
486   gl_FUNC_VASPRINTF
487   gl_STDIO_MODULE_INDICATOR([vasprintf])
488   m4_ifdef([AM_XGETTEXT_OPTION],
489     [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
490      AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
491   gl_WCHAR_H
492   gl_WCTYPE_H
493   gl_FUNC_WCWIDTH
494   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
495     AC_LIBOBJ([wcwidth])
496   fi
497   gl_WCHAR_MODULE_INDICATOR([wcwidth])
498   gl_XSIZE
499   gl_XVASPRINTF
500   m4_ifdef([AM_XGETTEXT_OPTION],
501     [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
502   # End of code from modules
503   m4_ifval(gtpo_LIBSOURCES_LIST, [
504     m4_syscmd([test ! -d ]m4_defn([gtpo_LIBSOURCES_DIR])[ ||
505       for gl_file in ]gtpo_LIBSOURCES_LIST[ ; do
506         if test ! -r ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file ; then
507           echo "missing file ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file" >&2
508           exit 1
509         fi
510       done])dnl
511       m4_if(m4_sysval, [0], [],
512         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
513   ])
514   m4_popdef([gtpo_LIBSOURCES_DIR])
515   m4_popdef([gtpo_LIBSOURCES_LIST])
516   m4_popdef([AC_LIBSOURCES])
517   m4_popdef([AC_REPLACE_FUNCS])
518   m4_popdef([AC_LIBOBJ])
519   AC_CONFIG_COMMANDS_PRE([
520     gtpo_libobjs=
521     gtpo_ltlibobjs=
522     if test -n "$gtpo_LIBOBJS"; then
523       # Remove the extension.
524       sed_drop_objext='s/\.o$//;s/\.obj$//'
525       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
526         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
527         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
528       done
529     fi
530     AC_SUBST([gtpo_LIBOBJS], [$gtpo_libobjs])
531     AC_SUBST([gtpo_LTLIBOBJS], [$gtpo_ltlibobjs])
532   ])
533   gltests_libdeps=
534   gltests_ltlibdeps=
535   m4_pushdef([AC_LIBOBJ], m4_defn([gtpotests_LIBOBJ]))
536   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpotests_REPLACE_FUNCS]))
537   m4_pushdef([AC_LIBSOURCES], m4_defn([gtpotests_LIBSOURCES]))
538   m4_pushdef([gtpotests_LIBSOURCES_LIST], [])
539   m4_pushdef([gtpotests_LIBSOURCES_DIR], [])
540   gl_COMMON
541   gl_source_base='tests'
542 changequote(,)dnl
543   gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
544 changequote([, ])dnl
545   AC_SUBST([gtpotests_WITNESS])
546   gl_module_indicator_condition=$gtpotests_WITNESS
547   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
548   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
549   m4_ifval(gtpotests_LIBSOURCES_LIST, [
550     m4_syscmd([test ! -d ]m4_defn([gtpotests_LIBSOURCES_DIR])[ ||
551       for gl_file in ]gtpotests_LIBSOURCES_LIST[ ; do
552         if test ! -r ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file ; then
553           echo "missing file ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file" >&2
554           exit 1
555         fi
556       done])dnl
557       m4_if(m4_sysval, [0], [],
558         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
559   ])
560   m4_popdef([gtpotests_LIBSOURCES_DIR])
561   m4_popdef([gtpotests_LIBSOURCES_LIST])
562   m4_popdef([AC_LIBSOURCES])
563   m4_popdef([AC_REPLACE_FUNCS])
564   m4_popdef([AC_LIBOBJ])
565   AC_CONFIG_COMMANDS_PRE([
566     gtpotests_libobjs=
567     gtpotests_ltlibobjs=
568     if test -n "$gtpotests_LIBOBJS"; then
569       # Remove the extension.
570       sed_drop_objext='s/\.o$//;s/\.obj$//'
571       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
572         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
573         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
574       done
575     fi
576     AC_SUBST([gtpotests_LIBOBJS], [$gtpotests_libobjs])
577     AC_SUBST([gtpotests_LTLIBOBJS], [$gtpotests_ltlibobjs])
578   ])
579 ])
580
581 # Like AC_LIBOBJ, except that the module name goes
582 # into gtpo_LIBOBJS instead of into LIBOBJS.
583 AC_DEFUN([gtpo_LIBOBJ], [
584   AS_LITERAL_IF([$1], [gtpo_LIBSOURCES([$1.c])])dnl
585   gtpo_LIBOBJS="$gtpo_LIBOBJS $1.$ac_objext"
586 ])
587
588 # Like AC_REPLACE_FUNCS, except that the module name goes
589 # into gtpo_LIBOBJS instead of into LIBOBJS.
590 AC_DEFUN([gtpo_REPLACE_FUNCS], [
591   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
592   AC_CHECK_FUNCS([$1], , [gtpo_LIBOBJ($ac_func)])
593 ])
594
595 # Like AC_LIBSOURCES, except the directory where the source file is
596 # expected is derived from the gnulib-tool parameterization,
597 # and alloca is special cased (for the alloca-opt module).
598 # We could also entirely rely on EXTRA_lib..._SOURCES.
599 AC_DEFUN([gtpo_LIBSOURCES], [
600   m4_foreach([_gl_NAME], [$1], [
601     m4_if(_gl_NAME, [alloca.c], [], [
602       m4_define([gtpo_LIBSOURCES_DIR], [libgettextpo])
603       m4_append([gtpo_LIBSOURCES_LIST], _gl_NAME, [ ])
604     ])
605   ])
606 ])
607
608 # Like AC_LIBOBJ, except that the module name goes
609 # into gtpotests_LIBOBJS instead of into LIBOBJS.
610 AC_DEFUN([gtpotests_LIBOBJ], [
611   AS_LITERAL_IF([$1], [gtpotests_LIBSOURCES([$1.c])])dnl
612   gtpotests_LIBOBJS="$gtpotests_LIBOBJS $1.$ac_objext"
613 ])
614
615 # Like AC_REPLACE_FUNCS, except that the module name goes
616 # into gtpotests_LIBOBJS instead of into LIBOBJS.
617 AC_DEFUN([gtpotests_REPLACE_FUNCS], [
618   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
619   AC_CHECK_FUNCS([$1], , [gtpotests_LIBOBJ($ac_func)])
620 ])
621
622 # Like AC_LIBSOURCES, except the directory where the source file is
623 # expected is derived from the gnulib-tool parameterization,
624 # and alloca is special cased (for the alloca-opt module).
625 # We could also entirely rely on EXTRA_lib..._SOURCES.
626 AC_DEFUN([gtpotests_LIBSOURCES], [
627   m4_foreach([_gl_NAME], [$1], [
628     m4_if(_gl_NAME, [alloca.c], [], [
629       m4_define([gtpotests_LIBSOURCES_DIR], [tests])
630       m4_append([gtpotests_LIBSOURCES_LIST], _gl_NAME, [ ])
631     ])
632   ])
633 ])
634
635 # This macro records the list of files which have been installed by
636 # gnulib-tool and may be removed by future gnulib-tool invocations.
637 AC_DEFUN([gtpo_FILE_LIST], [
638   build-aux/config.rpath
639   build-aux/moopp
640   build-aux/snippet/_Noreturn.h
641   build-aux/snippet/arg-nonnull.h
642   build-aux/snippet/c++defs.h
643   build-aux/snippet/unused-parameter.h
644   build-aux/snippet/warn-on-use.h
645   doc/relocatable.texi
646   lib/alignof.h
647   lib/alloca.in.h
648   lib/asnprintf.c
649   lib/asprintf.c
650   lib/basename.c
651   lib/basename.h
652   lib/c-ctype.c
653   lib/c-ctype.h
654   lib/c-strcase.h
655   lib/c-strcasecmp.c
656   lib/c-strcaseeq.h
657   lib/c-strncasecmp.c
658   lib/c-strstr.c
659   lib/c-strstr.h
660   lib/close.c
661   lib/concat-filename.c
662   lib/concat-filename.h
663   lib/config.charset
664   lib/diffseq.h
665   lib/dosname.h
666   lib/errno.in.h
667   lib/error-progname.c
668   lib/error-progname.h
669   lib/error.c
670   lib/error.h
671   lib/exitfail.c
672   lib/exitfail.h
673   lib/fcntl.in.h
674   lib/fd-hook.c
675   lib/fd-hook.h
676   lib/file-ostream.oo.c
677   lib/file-ostream.oo.h
678   lib/filename.h
679   lib/float+.h
680   lib/float.c
681   lib/float.in.h
682   lib/fopen.c
683   lib/fstat.c
684   lib/fstrcmp.c
685   lib/fstrcmp.h
686   lib/fwriteerror.c
687   lib/fwriteerror.h
688   lib/gcd.c
689   lib/gcd.h
690   lib/getdelim.c
691   lib/getline.c
692   lib/gettext.h
693   lib/gettimeofday.c
694   lib/gl_anylinked_list1.h
695   lib/gl_anylinked_list2.h
696   lib/gl_linked_list.c
697   lib/gl_linked_list.h
698   lib/gl_list.c
699   lib/gl_list.h
700   lib/gl_xlist.c
701   lib/gl_xlist.h
702   lib/glthread/lock.c
703   lib/glthread/lock.h
704   lib/glthread/threadlib.c
705   lib/glthread/tls.c
706   lib/glthread/tls.h
707   lib/hash.c
708   lib/hash.h
709   lib/iconv.c
710   lib/iconv.in.h
711   lib/iconv_close.c
712   lib/iconv_open-aix.gperf
713   lib/iconv_open-hpux.gperf
714   lib/iconv_open-irix.gperf
715   lib/iconv_open-osf.gperf
716   lib/iconv_open-solaris.gperf
717   lib/iconv_open.c
718   lib/iconveh.h
719   lib/intprops.h
720   lib/itold.c
721   lib/libunistring.valgrind
722   lib/localcharset.c
723   lib/localcharset.h
724   lib/malloc.c
725   lib/malloca.c
726   lib/malloca.h
727   lib/malloca.valgrind
728   lib/markup.c
729   lib/markup.h
730   lib/mbrtowc.c
731   lib/mbsinit.c
732   lib/mbswidth.c
733   lib/mbswidth.h
734   lib/memchr.c
735   lib/memchr.valgrind
736   lib/minmax.h
737   lib/moo.h
738   lib/msvc-inval.c
739   lib/msvc-inval.h
740   lib/msvc-nothrow.c
741   lib/msvc-nothrow.h
742   lib/obstack.c
743   lib/obstack.h
744   lib/open.c
745   lib/ostream.oo.c
746   lib/ostream.oo.h
747   lib/pathmax.h
748   lib/printf-args.c
749   lib/printf-args.h
750   lib/printf-parse.c
751   lib/printf-parse.h
752   lib/progname.c
753   lib/progname.h
754   lib/raise.c
755   lib/rawmemchr.c
756   lib/rawmemchr.valgrind
757   lib/realloc.c
758   lib/ref-add.sin
759   lib/ref-del.sin
760   lib/relocatable.c
761   lib/relocatable.h
762   lib/signal.in.h
763   lib/sigprocmask.c
764   lib/size_max.h
765   lib/stat.c
766   lib/stdarg.in.h
767   lib/stdbool.in.h
768   lib/stddef.in.h
769   lib/stdint.in.h
770   lib/stdio-write.c
771   lib/stdio.in.h
772   lib/stdlib.in.h
773   lib/stpcpy.c
774   lib/stpncpy.c
775   lib/str-two-way.h
776   lib/strchrnul.c
777   lib/strchrnul.valgrind
778   lib/streq.h
779   lib/strerror-override.c
780   lib/strerror-override.h
781   lib/strerror.c
782   lib/striconv.c
783   lib/striconv.h
784   lib/striconveh.c
785   lib/striconveh.h
786   lib/striconveha.c
787   lib/striconveha.h
788   lib/string.in.h
789   lib/strstr.c
790   lib/sys_stat.in.h
791   lib/sys_time.in.h
792   lib/sys_types.in.h
793   lib/time.in.h
794   lib/uniconv.in.h
795   lib/uniconv/u8-conv-from-enc.c
796   lib/unictype.in.h
797   lib/unictype/bitmap.h
798   lib/unictype/ctype_alpha.c
799   lib/unictype/ctype_alpha.h
800   lib/unictype/ctype_space.c
801   lib/unictype/ctype_space.h
802   lib/unilbrk.in.h
803   lib/unilbrk/lbrkprop1.h
804   lib/unilbrk/lbrkprop2.h
805   lib/unilbrk/lbrktables.c
806   lib/unilbrk/lbrktables.h
807   lib/unilbrk/u8-possible-linebreaks.c
808   lib/unilbrk/u8-width-linebreaks.c
809   lib/unilbrk/ulc-common.c
810   lib/unilbrk/ulc-common.h
811   lib/unilbrk/ulc-width-linebreaks.c
812   lib/unistd.c
813   lib/unistd.in.h
814   lib/unistr.in.h
815   lib/unistr/u16-mbtouc-aux.c
816   lib/unistr/u16-mbtouc.c
817   lib/unistr/u8-check.c
818   lib/unistr/u8-mblen.c
819   lib/unistr/u8-mbtouc-aux.c
820   lib/unistr/u8-mbtouc-unsafe-aux.c
821   lib/unistr/u8-mbtouc-unsafe.c
822   lib/unistr/u8-mbtouc.c
823   lib/unistr/u8-mbtoucr.c
824   lib/unistr/u8-next.c
825   lib/unistr/u8-prev.c
826   lib/unistr/u8-strmbtouc.c
827   lib/unistr/u8-uctomb-aux.c
828   lib/unistr/u8-uctomb.c
829   lib/unitypes.in.h
830   lib/uniwidth.in.h
831   lib/uniwidth/cjk.h
832   lib/uniwidth/width.c
833   lib/unlocked-io.h
834   lib/vasnprintf.c
835   lib/vasnprintf.h
836   lib/vasprintf.c
837   lib/verify.h
838   lib/wchar.in.h
839   lib/wctype-h.c
840   lib/wctype.in.h
841   lib/wcwidth.c
842   lib/xalloc.h
843   lib/xasprintf.c
844   lib/xconcat-filename.c
845   lib/xerror.c
846   lib/xerror.h
847   lib/xmalloc.c
848   lib/xmalloca.c
849   lib/xmalloca.h
850   lib/xsize.c
851   lib/xsize.h
852   lib/xstrdup.c
853   lib/xstriconv.c
854   lib/xstriconv.h
855   lib/xvasprintf.c
856   lib/xvasprintf.h
857   m4/00gnulib.m4
858   m4/absolute-header.m4
859   m4/alloca.m4
860   m4/asm-underscore.m4
861   m4/close.m4
862   m4/codeset.m4
863   m4/configmake.m4
864   m4/eealloc.m4
865   m4/errno_h.m4
866   m4/error.m4
867   m4/exponentd.m4
868   m4/extensions.m4
869   m4/extern-inline.m4
870   m4/fcntl-o.m4
871   m4/fcntl_h.m4
872   m4/float_h.m4
873   m4/fopen.m4
874   m4/fstat.m4
875   m4/getdelim.m4
876   m4/getline.m4
877   m4/gettimeofday.m4
878   m4/glibc21.m4
879   m4/gnulib-common.m4
880   m4/iconv.m4
881   m4/iconv_h.m4
882   m4/iconv_open.m4
883   m4/include_next.m4
884   m4/inline.m4
885   m4/intmax_t.m4
886   m4/inttypes_h.m4
887   m4/largefile.m4
888   m4/lib-ld.m4
889   m4/lib-link.m4
890   m4/lib-prefix.m4
891   m4/libunistring-base.m4
892   m4/libunistring-optional.m4
893   m4/libunistring.m4
894   m4/localcharset.m4
895   m4/locale-fr.m4
896   m4/locale-ja.m4
897   m4/locale-zh.m4
898   m4/lock.m4
899   m4/longlong.m4
900   m4/malloc.m4
901   m4/malloca.m4
902   m4/math_h.m4
903   m4/mbrtowc.m4
904   m4/mbsinit.m4
905   m4/mbstate_t.m4
906   m4/mbswidth.m4
907   m4/memchr.m4
908   m4/minmax.m4
909   m4/mmap-anon.m4
910   m4/mode_t.m4
911   m4/moo.m4
912   m4/msvc-inval.m4
913   m4/msvc-nothrow.m4
914   m4/multiarch.m4
915   m4/obstack.m4
916   m4/off_t.m4
917   m4/open.m4
918   m4/pathmax.m4
919   m4/printf.m4
920   m4/raise.m4
921   m4/rawmemchr.m4
922   m4/realloc.m4
923   m4/relocatable-lib.m4
924   m4/signal_h.m4
925   m4/signalblocking.m4
926   m4/sigpipe.m4
927   m4/size_max.m4
928   m4/ssize_t.m4
929   m4/stat.m4
930   m4/stdarg.m4
931   m4/stdbool.m4
932   m4/stddef_h.m4
933   m4/stdint.m4
934   m4/stdint_h.m4
935   m4/stdio_h.m4
936   m4/stdlib_h.m4
937   m4/stpcpy.m4
938   m4/stpncpy.m4
939   m4/strchrnul.m4
940   m4/strerror.m4
941   m4/string_h.m4
942   m4/strstr.m4
943   m4/sys_socket_h.m4
944   m4/sys_stat_h.m4
945   m4/sys_time_h.m4
946   m4/sys_types_h.m4
947   m4/threadlib.m4
948   m4/time_h.m4
949   m4/tls.m4
950   m4/unistd_h.m4
951   m4/unlocked-io.m4
952   m4/vasnprintf.m4
953   m4/vasprintf.m4
954   m4/warn-on-use.m4
955   m4/wchar_h.m4
956   m4/wchar_t.m4
957   m4/wctype_h.m4
958   m4/wcwidth.m4
959   m4/wint_t.m4
960   m4/xsize.m4
961   m4/xvasprintf.m4
962 ])