~ubuntu-branches/ubuntu/saucy/renameutils/saucy

« back to all changes in this revision

Viewing changes to gnulib-m4/gnulib-comp.m4

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-05-06 21:45:54 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20120506214554-k531n9odfuwk2451
Tags: 0.12.0-1
* New upstream release (closes: #600411)
* Patch to fix typo in installation target of Makefile

* Bump Standards-Version up to 3.9.3
* Bump debhelper compatibility to 9
* Switch to a minimal debian/rules file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DO NOT EDIT! GENERATED AUTOMATICALLY!
 
2
# Copyright (C) 2002-2012 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 ./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
  AC_REQUIRE([gl_PROG_AR_RANLIB])
 
41
  # Code from module alloca-opt:
 
42
  # Code from module btowc:
 
43
  # Code from module c-ctype:
 
44
  # Code from module c-strcase:
 
45
  # Code from module c-strcaseeq:
 
46
  # Code from module close:
 
47
  # Code from module configmake:
 
48
  # Code from module dirname:
 
49
  # Code from module dirname-lgpl:
 
50
  # Code from module dosname:
 
51
  # Code from module double-slash-root:
 
52
  # Code from module dup2:
 
53
  # Code from module errno:
 
54
  # Code from module error:
 
55
  # Code from module exitfail:
 
56
  # Code from module extensions:
 
57
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
58
  # Code from module fcntl:
 
59
  # Code from module fcntl-h:
 
60
  # Code from module fd-hook:
 
61
  # Code from module float:
 
62
  # Code from module getdelim:
 
63
  # Code from module getdtablesize:
 
64
  # Code from module getline:
 
65
  # Code from module getopt-gnu:
 
66
  # Code from module getopt-posix:
 
67
  # Code from module gettext:
 
68
  # Code from module gettext-h:
 
69
  # Code from module gettimeofday:
 
70
  # Code from module havelib:
 
71
  # Code from module include_next:
 
72
  # Code from module inline:
 
73
  # Code from module intprops:
 
74
  # Code from module langinfo:
 
75
  # Code from module largefile:
 
76
  AC_REQUIRE([AC_SYS_LARGEFILE])
 
77
  # Code from module localcharset:
 
78
  # Code from module locale:
 
79
  # Code from module localeconv:
 
80
  # Code from module lstat:
 
81
  # Code from module malloc-gnu:
 
82
  # Code from module malloc-posix:
 
83
  # Code from module mbrtowc:
 
84
  # Code from module mbsinit:
 
85
  # Code from module mbtowc:
 
86
  # Code from module memchr:
 
87
  # Code from module minmax:
 
88
  # Code from module msvc-inval:
 
89
  # Code from module msvc-nothrow:
 
90
  # Code from module multiarch:
 
91
  # Code from module nl_langinfo:
 
92
  # Code from module nocrash:
 
93
  # Code from module pathmax:
 
94
  # Code from module progname:
 
95
  # Code from module quote:
 
96
  # Code from module quotearg:
 
97
  # Code from module quotearg-simple:
 
98
  # Code from module realloc-gnu:
 
99
  # Code from module realloc-posix:
 
100
  # Code from module regex:
 
101
  # Code from module rpmatch:
 
102
  # Code from module signal:
 
103
  # Code from module signal-h:
 
104
  # Code from module size_max:
 
105
  # Code from module snippet/_Noreturn:
 
106
  # Code from module snippet/arg-nonnull:
 
107
  # Code from module snippet/c++defs:
 
108
  # Code from module snippet/warn-on-use:
 
109
  # Code from module ssize_t:
 
110
  # Code from module stat:
 
111
  # Code from module stdarg:
 
112
  dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
 
113
  dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
 
114
  dnl gl_PROG_CC_C99 arranges for this.  With older Autoconf gl_PROG_CC_C99
 
115
  dnl shouldn't hurt, though installers are on their own to set c99 mode.
 
116
  gl_PROG_CC_C99
 
117
  # Code from module stdbool:
 
118
  # Code from module stddef:
 
119
  # Code from module stdint:
 
120
  # Code from module stdio:
 
121
  # Code from module stdlib:
 
122
  # Code from module strcase:
 
123
  # Code from module strdup-posix:
 
124
  # Code from module streq:
 
125
  # Code from module strerror:
 
126
  # Code from module strerror-override:
 
127
  # Code from module string:
 
128
  # Code from module strings:
 
129
  # Code from module strndup:
 
130
  # Code from module strnlen:
 
131
  # Code from module sys_stat:
 
132
  # Code from module sys_time:
 
133
  # Code from module sys_types:
 
134
  # Code from module time:
 
135
  # Code from module unistd:
 
136
  # Code from module vasnprintf:
 
137
  # Code from module vasprintf:
 
138
  # Code from module verify:
 
139
  # Code from module version-etc:
 
140
  # Code from module wchar:
 
141
  # Code from module wcrtomb:
 
142
  # Code from module wctype-h:
 
143
  # Code from module xalloc:
 
144
  # Code from module xalloc-die:
 
145
  # Code from module xalloc-oversized:
 
146
  # Code from module xsize:
 
147
  # Code from module xstrndup:
 
148
  # Code from module xvasprintf:
 
149
  # Code from module yesno:
 
150
])
 
151
 
 
152
# This macro should be invoked from ./configure.ac, in the section
 
153
# "Check for header files, types and library functions".
 
154
AC_DEFUN([gl_INIT],
 
155
[
 
156
  AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
 
157
  gl_cond_libtool=false
 
158
  gl_libdeps=
 
159
  gl_ltlibdeps=
 
160
  gl_m4_base='gnulib-m4'
 
161
  m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
 
162
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
 
163
  m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
 
164
  m4_pushdef([gl_LIBSOURCES_LIST], [])
 
165
  m4_pushdef([gl_LIBSOURCES_DIR], [])
 
166
  gl_COMMON
 
167
  gl_source_base='gnulib-lib'
 
168
gl_FUNC_ALLOCA
 
169
gl_FUNC_BTOWC
 
170
if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
 
171
  AC_LIBOBJ([btowc])
 
172
  gl_PREREQ_BTOWC
 
173
fi
 
174
gl_WCHAR_MODULE_INDICATOR([btowc])
 
175
gl_FUNC_CLOSE
 
176
if test $REPLACE_CLOSE = 1; then
 
177
  AC_LIBOBJ([close])
 
178
fi
 
179
gl_UNISTD_MODULE_INDICATOR([close])
 
180
gl_CONFIGMAKE_PREP
 
181
gl_DIRNAME
 
182
gl_MODULE_INDICATOR([dirname])
 
183
gl_DIRNAME_LGPL
 
184
gl_DOUBLE_SLASH_ROOT
 
185
gl_FUNC_DUP2
 
186
if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
 
187
  AC_LIBOBJ([dup2])
 
188
  gl_PREREQ_DUP2
 
189
fi
 
190
gl_UNISTD_MODULE_INDICATOR([dup2])
 
191
gl_HEADER_ERRNO_H
 
192
gl_ERROR
 
193
if test $ac_cv_lib_error_at_line = no; then
 
194
  AC_LIBOBJ([error])
 
195
  gl_PREREQ_ERROR
 
196
fi
 
197
m4_ifdef([AM_XGETTEXT_OPTION],
 
198
  [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
 
199
   AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
 
200
gl_FUNC_FCNTL
 
201
if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
 
202
  AC_LIBOBJ([fcntl])
 
203
fi
 
204
gl_FCNTL_MODULE_INDICATOR([fcntl])
 
205
gl_FCNTL_H
 
206
gl_FLOAT_H
 
207
if test $REPLACE_FLOAT_LDBL = 1; then
 
208
  AC_LIBOBJ([float])
 
209
fi
 
210
if test $REPLACE_ITOLD = 1; then
 
211
  AC_LIBOBJ([itold])
 
212
fi
 
213
gl_FUNC_GETDELIM
 
214
if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
 
215
  AC_LIBOBJ([getdelim])
 
216
  gl_PREREQ_GETDELIM
 
217
fi
 
218
gl_STDIO_MODULE_INDICATOR([getdelim])
 
219
gl_FUNC_GETDTABLESIZE
 
220
if test $HAVE_GETDTABLESIZE = 0; then
 
221
  AC_LIBOBJ([getdtablesize])
 
222
  gl_PREREQ_GETDTABLESIZE
 
223
fi
 
224
gl_UNISTD_MODULE_INDICATOR([getdtablesize])
 
225
gl_FUNC_GETLINE
 
226
if test $REPLACE_GETLINE = 1; then
 
227
  AC_LIBOBJ([getline])
 
228
  gl_PREREQ_GETLINE
 
229
fi
 
230
gl_STDIO_MODULE_INDICATOR([getline])
 
231
gl_FUNC_GETOPT_GNU
 
232
if test $REPLACE_GETOPT = 1; then
 
233
  AC_LIBOBJ([getopt])
 
234
  AC_LIBOBJ([getopt1])
 
235
  gl_PREREQ_GETOPT
 
236
  dnl Arrange for unistd.h to include getopt.h.
 
237
  GNULIB_GL_UNISTD_H_GETOPT=1
 
238
fi
 
239
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
 
240
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
 
241
gl_FUNC_GETOPT_POSIX
 
242
if test $REPLACE_GETOPT = 1; then
 
243
  AC_LIBOBJ([getopt])
 
244
  AC_LIBOBJ([getopt1])
 
245
  gl_PREREQ_GETOPT
 
246
  dnl Arrange for unistd.h to include getopt.h.
 
247
  GNULIB_GL_UNISTD_H_GETOPT=1
 
248
fi
 
249
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
 
250
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
 
251
AM_GNU_GETTEXT_VERSION([0.18.1])
 
252
AC_SUBST([LIBINTL])
 
253
AC_SUBST([LTLIBINTL])
 
254
gl_FUNC_GETTIMEOFDAY
 
255
if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
 
256
  AC_LIBOBJ([gettimeofday])
 
257
  gl_PREREQ_GETTIMEOFDAY
 
258
fi
 
259
gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
 
260
gl_INLINE
 
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_FUNC_LOCALECONV
 
268
if test $REPLACE_LOCALECONV = 1; then
 
269
  AC_LIBOBJ([localeconv])
 
270
  gl_PREREQ_LOCALECONV
 
271
fi
 
272
gl_LOCALE_MODULE_INDICATOR([localeconv])
 
273
gl_FUNC_LSTAT
 
274
if test $REPLACE_LSTAT = 1; then
 
275
  AC_LIBOBJ([lstat])
 
276
  gl_PREREQ_LSTAT
 
277
fi
 
278
gl_SYS_STAT_MODULE_INDICATOR([lstat])
 
279
gl_FUNC_MALLOC_GNU
 
280
if test $REPLACE_MALLOC = 1; then
 
281
  AC_LIBOBJ([malloc])
 
282
fi
 
283
gl_MODULE_INDICATOR([malloc-gnu])
 
284
gl_FUNC_MALLOC_POSIX
 
285
if test $REPLACE_MALLOC = 1; then
 
286
  AC_LIBOBJ([malloc])
 
287
fi
 
288
gl_STDLIB_MODULE_INDICATOR([malloc-posix])
 
289
gl_FUNC_MBRTOWC
 
290
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
 
291
  AC_LIBOBJ([mbrtowc])
 
292
  gl_PREREQ_MBRTOWC
 
293
fi
 
294
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
 
295
gl_FUNC_MBSINIT
 
296
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
 
297
  AC_LIBOBJ([mbsinit])
 
298
  gl_PREREQ_MBSINIT
 
299
fi
 
300
gl_WCHAR_MODULE_INDICATOR([mbsinit])
 
301
gl_FUNC_MBTOWC
 
302
if test $REPLACE_MBTOWC = 1; then
 
303
  AC_LIBOBJ([mbtowc])
 
304
  gl_PREREQ_MBTOWC
 
305
fi
 
306
gl_STDLIB_MODULE_INDICATOR([mbtowc])
 
307
gl_FUNC_MEMCHR
 
308
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
 
309
  AC_LIBOBJ([memchr])
 
310
  gl_PREREQ_MEMCHR
 
311
fi
 
312
gl_STRING_MODULE_INDICATOR([memchr])
 
313
gl_MINMAX
 
314
gl_MSVC_INVAL
 
315
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
316
  AC_LIBOBJ([msvc-inval])
 
317
fi
 
318
gl_MSVC_NOTHROW
 
319
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
320
  AC_LIBOBJ([msvc-nothrow])
 
321
fi
 
322
gl_MULTIARCH
 
323
gl_FUNC_NL_LANGINFO
 
324
if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
 
325
  AC_LIBOBJ([nl_langinfo])
 
326
fi
 
327
gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
 
328
gl_PATHMAX
 
329
AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
 
330
AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
 
331
gl_QUOTE
 
332
gl_QUOTEARG
 
333
gl_FUNC_REALLOC_GNU
 
334
if test $REPLACE_REALLOC = 1; then
 
335
  AC_LIBOBJ([realloc])
 
336
fi
 
337
gl_MODULE_INDICATOR([realloc-gnu])
 
338
gl_FUNC_REALLOC_POSIX
 
339
if test $REPLACE_REALLOC = 1; then
 
340
  AC_LIBOBJ([realloc])
 
341
fi
 
342
gl_STDLIB_MODULE_INDICATOR([realloc-posix])
 
343
gl_REGEX
 
344
if test $ac_use_included_regex = yes; then
 
345
  AC_LIBOBJ([regex])
 
346
  gl_PREREQ_REGEX
 
347
fi
 
348
gl_FUNC_RPMATCH
 
349
if test $HAVE_RPMATCH = 0; then
 
350
  AC_LIBOBJ([rpmatch])
 
351
  gl_PREREQ_RPMATCH
 
352
fi
 
353
gl_STDLIB_MODULE_INDICATOR([rpmatch])
 
354
gl_SIGNAL_H
 
355
gl_SIZE_MAX
 
356
gt_TYPE_SSIZE_T
 
357
gl_FUNC_STAT
 
358
if test $REPLACE_STAT = 1; then
 
359
  AC_LIBOBJ([stat])
 
360
  gl_PREREQ_STAT
 
361
fi
 
362
gl_SYS_STAT_MODULE_INDICATOR([stat])
 
363
gl_STDARG_H
 
364
AM_STDBOOL_H
 
365
gl_STDDEF_H
 
366
gl_STDINT_H
 
367
gl_STDIO_H
 
368
gl_STDLIB_H
 
369
gl_STRCASE
 
370
if test $HAVE_STRCASECMP = 0; then
 
371
  AC_LIBOBJ([strcasecmp])
 
372
  gl_PREREQ_STRCASECMP
 
373
fi
 
374
if test $HAVE_STRNCASECMP = 0; then
 
375
  AC_LIBOBJ([strncasecmp])
 
376
  gl_PREREQ_STRNCASECMP
 
377
fi
 
378
gl_FUNC_STRDUP_POSIX
 
379
if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
 
380
  AC_LIBOBJ([strdup])
 
381
  gl_PREREQ_STRDUP
 
382
fi
 
383
gl_STRING_MODULE_INDICATOR([strdup])
 
384
gl_FUNC_STRERROR
 
385
if test $REPLACE_STRERROR = 1; then
 
386
  AC_LIBOBJ([strerror])
 
387
fi
 
388
gl_MODULE_INDICATOR([strerror])
 
389
gl_STRING_MODULE_INDICATOR([strerror])
 
390
AC_REQUIRE([gl_HEADER_ERRNO_H])
 
391
AC_REQUIRE([gl_FUNC_STRERROR_0])
 
392
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
 
393
  AC_LIBOBJ([strerror-override])
 
394
  gl_PREREQ_SYS_H_WINSOCK2
 
395
fi
 
396
gl_HEADER_STRING_H
 
397
gl_HEADER_STRINGS_H
 
398
gl_FUNC_STRNDUP
 
399
if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
 
400
  AC_LIBOBJ([strndup])
 
401
fi
 
402
gl_STRING_MODULE_INDICATOR([strndup])
 
403
gl_FUNC_STRNLEN
 
404
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
 
405
  AC_LIBOBJ([strnlen])
 
406
  gl_PREREQ_STRNLEN
 
407
fi
 
408
gl_STRING_MODULE_INDICATOR([strnlen])
 
409
gl_HEADER_SYS_STAT_H
 
410
AC_PROG_MKDIR_P
 
411
gl_HEADER_SYS_TIME_H
 
412
AC_PROG_MKDIR_P
 
413
gl_SYS_TYPES_H
 
414
AC_PROG_MKDIR_P
 
415
gl_HEADER_TIME_H
 
416
gl_UNISTD_H
 
417
gl_FUNC_VASNPRINTF
 
418
gl_FUNC_VASPRINTF
 
419
gl_STDIO_MODULE_INDICATOR([vasprintf])
 
420
m4_ifdef([AM_XGETTEXT_OPTION],
 
421
  [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
 
422
   AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
 
423
gl_VERSION_ETC
 
424
gl_WCHAR_H
 
425
gl_FUNC_WCRTOMB
 
426
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
 
427
  AC_LIBOBJ([wcrtomb])
 
428
  gl_PREREQ_WCRTOMB
 
429
fi
 
430
gl_WCHAR_MODULE_INDICATOR([wcrtomb])
 
431
gl_WCTYPE_H
 
432
gl_XALLOC
 
433
gl_XSIZE
 
434
gl_XSTRNDUP
 
435
gl_XVASPRINTF
 
436
m4_ifdef([AM_XGETTEXT_OPTION],
 
437
  [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
 
438
gl_YESNO
 
439
  # End of code from modules
 
440
  m4_ifval(gl_LIBSOURCES_LIST, [
 
441
    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
 
442
      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
 
443
        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
 
444
          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
 
445
          exit 1
 
446
        fi
 
447
      done])dnl
 
448
      m4_if(m4_sysval, [0], [],
 
449
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
450
  ])
 
451
  m4_popdef([gl_LIBSOURCES_DIR])
 
452
  m4_popdef([gl_LIBSOURCES_LIST])
 
453
  m4_popdef([AC_LIBSOURCES])
 
454
  m4_popdef([AC_REPLACE_FUNCS])
 
455
  m4_popdef([AC_LIBOBJ])
 
456
  AC_CONFIG_COMMANDS_PRE([
 
457
    gl_libobjs=
 
458
    gl_ltlibobjs=
 
459
    if test -n "$gl_LIBOBJS"; then
 
460
      # Remove the extension.
 
461
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
462
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
463
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
464
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
465
      done
 
466
    fi
 
467
    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
 
468
    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
 
469
  ])
 
470
  gltests_libdeps=
 
471
  gltests_ltlibdeps=
 
472
  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
 
473
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
 
474
  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
 
475
  m4_pushdef([gltests_LIBSOURCES_LIST], [])
 
476
  m4_pushdef([gltests_LIBSOURCES_DIR], [])
 
477
  gl_COMMON
 
478
  gl_source_base='tests'
 
479
changequote(,)dnl
 
480
  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
 
481
changequote([, ])dnl
 
482
  AC_SUBST([gltests_WITNESS])
 
483
  gl_module_indicator_condition=$gltests_WITNESS
 
484
  m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
 
485
  m4_popdef([gl_MODULE_INDICATOR_CONDITION])
 
486
  m4_ifval(gltests_LIBSOURCES_LIST, [
 
487
    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
 
488
      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
 
489
        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
 
490
          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
 
491
          exit 1
 
492
        fi
 
493
      done])dnl
 
494
      m4_if(m4_sysval, [0], [],
 
495
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
496
  ])
 
497
  m4_popdef([gltests_LIBSOURCES_DIR])
 
498
  m4_popdef([gltests_LIBSOURCES_LIST])
 
499
  m4_popdef([AC_LIBSOURCES])
 
500
  m4_popdef([AC_REPLACE_FUNCS])
 
501
  m4_popdef([AC_LIBOBJ])
 
502
  AC_CONFIG_COMMANDS_PRE([
 
503
    gltests_libobjs=
 
504
    gltests_ltlibobjs=
 
505
    if test -n "$gltests_LIBOBJS"; then
 
506
      # Remove the extension.
 
507
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
508
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
509
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
510
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
511
      done
 
512
    fi
 
513
    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
 
514
    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
 
515
  ])
 
516
  LIBGNU_LIBDEPS="$gl_libdeps"
 
517
  AC_SUBST([LIBGNU_LIBDEPS])
 
518
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
519
  AC_SUBST([LIBGNU_LTLIBDEPS])
 
520
])
 
521
 
 
522
# Like AC_LIBOBJ, except that the module name goes
 
523
# into gl_LIBOBJS instead of into LIBOBJS.
 
524
AC_DEFUN([gl_LIBOBJ], [
 
525
  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
 
526
  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
 
527
])
 
528
 
 
529
# Like AC_REPLACE_FUNCS, except that the module name goes
 
530
# into gl_LIBOBJS instead of into LIBOBJS.
 
531
AC_DEFUN([gl_REPLACE_FUNCS], [
 
532
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
533
  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
 
534
])
 
535
 
 
536
# Like AC_LIBSOURCES, except the directory where the source file is
 
537
# expected is derived from the gnulib-tool parameterization,
 
538
# and alloca is special cased (for the alloca-opt module).
 
539
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
540
AC_DEFUN([gl_LIBSOURCES], [
 
541
  m4_foreach([_gl_NAME], [$1], [
 
542
    m4_if(_gl_NAME, [alloca.c], [], [
 
543
      m4_define([gl_LIBSOURCES_DIR], [gnulib-lib])
 
544
      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
 
545
    ])
 
546
  ])
 
547
])
 
548
 
 
549
# Like AC_LIBOBJ, except that the module name goes
 
550
# into gltests_LIBOBJS instead of into LIBOBJS.
 
551
AC_DEFUN([gltests_LIBOBJ], [
 
552
  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
 
553
  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
 
554
])
 
555
 
 
556
# Like AC_REPLACE_FUNCS, except that the module name goes
 
557
# into gltests_LIBOBJS instead of into LIBOBJS.
 
558
AC_DEFUN([gltests_REPLACE_FUNCS], [
 
559
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
560
  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
 
561
])
 
562
 
 
563
# Like AC_LIBSOURCES, except the directory where the source file is
 
564
# expected is derived from the gnulib-tool parameterization,
 
565
# and alloca is special cased (for the alloca-opt module).
 
566
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
567
AC_DEFUN([gltests_LIBSOURCES], [
 
568
  m4_foreach([_gl_NAME], [$1], [
 
569
    m4_if(_gl_NAME, [alloca.c], [], [
 
570
      m4_define([gltests_LIBSOURCES_DIR], [tests])
 
571
      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
 
572
    ])
 
573
  ])
 
574
])
 
575
 
 
576
# This macro records the list of files which have been installed by
 
577
# gnulib-tool and may be removed by future gnulib-tool invocations.
 
578
AC_DEFUN([gl_FILE_LIST], [
 
579
  build-aux/config.rpath
 
580
  build-aux/snippet/_Noreturn.h
 
581
  build-aux/snippet/arg-nonnull.h
 
582
  build-aux/snippet/c++defs.h
 
583
  build-aux/snippet/warn-on-use.h
 
584
  lib/alloca.in.h
 
585
  lib/asnprintf.c
 
586
  lib/asprintf.c
 
587
  lib/basename-lgpl.c
 
588
  lib/basename.c
 
589
  lib/btowc.c
 
590
  lib/c-ctype.c
 
591
  lib/c-ctype.h
 
592
  lib/c-strcase.h
 
593
  lib/c-strcasecmp.c
 
594
  lib/c-strcaseeq.h
 
595
  lib/c-strncasecmp.c
 
596
  lib/close.c
 
597
  lib/config.charset
 
598
  lib/dirname-lgpl.c
 
599
  lib/dirname.c
 
600
  lib/dirname.h
 
601
  lib/dosname.h
 
602
  lib/dup2.c
 
603
  lib/errno.in.h
 
604
  lib/error.c
 
605
  lib/error.h
 
606
  lib/exitfail.c
 
607
  lib/exitfail.h
 
608
  lib/fcntl.c
 
609
  lib/fcntl.in.h
 
610
  lib/fd-hook.c
 
611
  lib/fd-hook.h
 
612
  lib/float+.h
 
613
  lib/float.c
 
614
  lib/float.in.h
 
615
  lib/getdelim.c
 
616
  lib/getdtablesize.c
 
617
  lib/getline.c
 
618
  lib/getopt.c
 
619
  lib/getopt.in.h
 
620
  lib/getopt1.c
 
621
  lib/getopt_int.h
 
622
  lib/gettext.h
 
623
  lib/gettimeofday.c
 
624
  lib/intprops.h
 
625
  lib/itold.c
 
626
  lib/langinfo.in.h
 
627
  lib/localcharset.c
 
628
  lib/localcharset.h
 
629
  lib/locale.in.h
 
630
  lib/localeconv.c
 
631
  lib/lstat.c
 
632
  lib/malloc.c
 
633
  lib/mbrtowc.c
 
634
  lib/mbsinit.c
 
635
  lib/mbtowc-impl.h
 
636
  lib/mbtowc.c
 
637
  lib/memchr.c
 
638
  lib/memchr.valgrind
 
639
  lib/minmax.h
 
640
  lib/msvc-inval.c
 
641
  lib/msvc-inval.h
 
642
  lib/msvc-nothrow.c
 
643
  lib/msvc-nothrow.h
 
644
  lib/nl_langinfo.c
 
645
  lib/pathmax.h
 
646
  lib/printf-args.c
 
647
  lib/printf-args.h
 
648
  lib/printf-parse.c
 
649
  lib/printf-parse.h
 
650
  lib/progname.c
 
651
  lib/progname.h
 
652
  lib/quote.h
 
653
  lib/quotearg.c
 
654
  lib/quotearg.h
 
655
  lib/realloc.c
 
656
  lib/ref-add.sin
 
657
  lib/ref-del.sin
 
658
  lib/regcomp.c
 
659
  lib/regex.c
 
660
  lib/regex.h
 
661
  lib/regex_internal.c
 
662
  lib/regex_internal.h
 
663
  lib/regexec.c
 
664
  lib/rpmatch.c
 
665
  lib/signal.in.h
 
666
  lib/size_max.h
 
667
  lib/stat.c
 
668
  lib/stdarg.in.h
 
669
  lib/stdbool.in.h
 
670
  lib/stddef.in.h
 
671
  lib/stdint.in.h
 
672
  lib/stdio.in.h
 
673
  lib/stdlib.in.h
 
674
  lib/strcasecmp.c
 
675
  lib/strdup.c
 
676
  lib/streq.h
 
677
  lib/strerror-override.c
 
678
  lib/strerror-override.h
 
679
  lib/strerror.c
 
680
  lib/string.in.h
 
681
  lib/strings.in.h
 
682
  lib/stripslash.c
 
683
  lib/strncasecmp.c
 
684
  lib/strndup.c
 
685
  lib/strnlen.c
 
686
  lib/sys_stat.in.h
 
687
  lib/sys_time.in.h
 
688
  lib/sys_types.in.h
 
689
  lib/time.in.h
 
690
  lib/unistd.in.h
 
691
  lib/vasnprintf.c
 
692
  lib/vasnprintf.h
 
693
  lib/vasprintf.c
 
694
  lib/verify.h
 
695
  lib/version-etc.c
 
696
  lib/version-etc.h
 
697
  lib/wchar.in.h
 
698
  lib/wcrtomb.c
 
699
  lib/wctype.in.h
 
700
  lib/xalloc-die.c
 
701
  lib/xalloc-oversized.h
 
702
  lib/xalloc.h
 
703
  lib/xasprintf.c
 
704
  lib/xmalloc.c
 
705
  lib/xsize.h
 
706
  lib/xstrndup.c
 
707
  lib/xstrndup.h
 
708
  lib/xvasprintf.c
 
709
  lib/xvasprintf.h
 
710
  lib/yesno.c
 
711
  lib/yesno.h
 
712
  m4/00gnulib.m4
 
713
  m4/alloca.m4
 
714
  m4/btowc.m4
 
715
  m4/close.m4
 
716
  m4/codeset.m4
 
717
  m4/configmake.m4
 
718
  m4/dirname.m4
 
719
  m4/double-slash-root.m4
 
720
  m4/dup2.m4
 
721
  m4/errno_h.m4
 
722
  m4/error.m4
 
723
  m4/exponentd.m4
 
724
  m4/extensions.m4
 
725
  m4/fcntl-o.m4
 
726
  m4/fcntl.m4
 
727
  m4/fcntl_h.m4
 
728
  m4/float_h.m4
 
729
  m4/getdelim.m4
 
730
  m4/getdtablesize.m4
 
731
  m4/getline.m4
 
732
  m4/getopt.m4
 
733
  m4/gettext.m4
 
734
  m4/gettimeofday.m4
 
735
  m4/glibc2.m4
 
736
  m4/glibc21.m4
 
737
  m4/gnulib-common.m4
 
738
  m4/iconv.m4
 
739
  m4/include_next.m4
 
740
  m4/inline.m4
 
741
  m4/intdiv0.m4
 
742
  m4/intl.m4
 
743
  m4/intldir.m4
 
744
  m4/intlmacosx.m4
 
745
  m4/intmax.m4
 
746
  m4/intmax_t.m4
 
747
  m4/inttypes-pri.m4
 
748
  m4/inttypes_h.m4
 
749
  m4/langinfo_h.m4
 
750
  m4/largefile.m4
 
751
  m4/lcmessage.m4
 
752
  m4/lib-ld.m4
 
753
  m4/lib-link.m4
 
754
  m4/lib-prefix.m4
 
755
  m4/localcharset.m4
 
756
  m4/locale-fr.m4
 
757
  m4/locale-ja.m4
 
758
  m4/locale-zh.m4
 
759
  m4/locale_h.m4
 
760
  m4/localeconv.m4
 
761
  m4/lock.m4
 
762
  m4/longlong.m4
 
763
  m4/lstat.m4
 
764
  m4/malloc.m4
 
765
  m4/math_h.m4
 
766
  m4/mbrtowc.m4
 
767
  m4/mbsinit.m4
 
768
  m4/mbstate_t.m4
 
769
  m4/mbtowc.m4
 
770
  m4/memchr.m4
 
771
  m4/minmax.m4
 
772
  m4/mmap-anon.m4
 
773
  m4/msvc-inval.m4
 
774
  m4/msvc-nothrow.m4
 
775
  m4/multiarch.m4
 
776
  m4/nl_langinfo.m4
 
777
  m4/nls.m4
 
778
  m4/nocrash.m4
 
779
  m4/onceonly.m4
 
780
  m4/pathmax.m4
 
781
  m4/po.m4
 
782
  m4/printf-posix.m4
 
783
  m4/printf.m4
 
784
  m4/progtest.m4
 
785
  m4/quote.m4
 
786
  m4/quotearg.m4
 
787
  m4/realloc.m4
 
788
  m4/regex.m4
 
789
  m4/rpmatch.m4
 
790
  m4/signal_h.m4
 
791
  m4/size_max.m4
 
792
  m4/ssize_t.m4
 
793
  m4/stat.m4
 
794
  m4/stdarg.m4
 
795
  m4/stdbool.m4
 
796
  m4/stddef_h.m4
 
797
  m4/stdint.m4
 
798
  m4/stdint_h.m4
 
799
  m4/stdio_h.m4
 
800
  m4/stdlib_h.m4
 
801
  m4/strcase.m4
 
802
  m4/strdup.m4
 
803
  m4/strerror.m4
 
804
  m4/string_h.m4
 
805
  m4/strings_h.m4
 
806
  m4/strndup.m4
 
807
  m4/strnlen.m4
 
808
  m4/sys_socket_h.m4
 
809
  m4/sys_stat_h.m4
 
810
  m4/sys_time_h.m4
 
811
  m4/sys_types_h.m4
 
812
  m4/threadlib.m4
 
813
  m4/time_h.m4
 
814
  m4/uintmax_t.m4
 
815
  m4/unistd_h.m4
 
816
  m4/vasnprintf.m4
 
817
  m4/vasprintf.m4
 
818
  m4/version-etc.m4
 
819
  m4/visibility.m4
 
820
  m4/warn-on-use.m4
 
821
  m4/wchar_h.m4
 
822
  m4/wchar_t.m4
 
823
  m4/wcrtomb.m4
 
824
  m4/wctype_h.m4
 
825
  m4/wint_t.m4
 
826
  m4/xalloc.m4
 
827
  m4/xsize.m4
 
828
  m4/xstrndup.m4
 
829
  m4/xvasprintf.m4
 
830
  m4/yesno.m4
 
831
])