~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to m4/gnulib-comp.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 that use version control, this file can be treated like
 
16
# other built files.
 
17
 
 
18
 
 
19
# This macro should be invoked from ./configure.ac, in the section
 
20
# "Checks for programs", right after AC_PROG_CC, and certainly before
 
21
# any checks for libraries, header files, types and library functions.
 
22
AC_DEFUN([gl_EARLY],
 
23
[
 
24
  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
 
25
  m4_pattern_allow([^gl_ES$])dnl a valid locale name
 
26
  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
 
27
  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
 
28
  AC_REQUIRE([AC_PROG_RANLIB])
 
29
  # Code from module alloca:
 
30
  # Code from module alloca-opt:
 
31
  # Code from module arg-nonnull:
 
32
  # Code from module argp:
 
33
  # Code from module btowc:
 
34
  # Code from module c++defs:
 
35
  # Code from module configmake:
 
36
  # Code from module dirname-lgpl:
 
37
  # Code from module double-slash-root:
 
38
  # Code from module errno:
 
39
  # Code from module error:
 
40
  # Code from module extensions:
 
41
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
42
  # Code from module float:
 
43
  # Code from module fnmatch:
 
44
  # Code from module getdelim:
 
45
  # Code from module getline:
 
46
  # Code from module getopt-gnu:
 
47
  # Code from module getopt-posix:
 
48
  # Code from module gettext:
 
49
  # Code from module gettext-h:
 
50
  # Code from module havelib:
 
51
  # Code from module include_next:
 
52
  # Code from module intprops:
 
53
  # Code from module langinfo:
 
54
  # Code from module localcharset:
 
55
  # Code from module malloc-gnu:
 
56
  # Code from module malloc-posix:
 
57
  # Code from module mbrtowc:
 
58
  # Code from module mbsinit:
 
59
  # Code from module mbsrtowcs:
 
60
  # Code from module memchr:
 
61
  # Code from module mempcpy:
 
62
  # Code from module multiarch:
 
63
  # Code from module nl_langinfo:
 
64
  # Code from module progname:
 
65
  # Code from module rawmemchr:
 
66
  # Code from module realloc-posix:
 
67
  # Code from module regex:
 
68
  # Code from module size_max:
 
69
  # Code from module sleep:
 
70
  # Code from module ssize_t:
 
71
  # Code from module stdbool:
 
72
  # Code from module stddef:
 
73
  # Code from module stdint:
 
74
  # Code from module stdio:
 
75
  # Code from module stdlib:
 
76
  # Code from module strcase:
 
77
  # Code from module strchrnul:
 
78
  # Code from module streq:
 
79
  # Code from module strerror:
 
80
  # Code from module string:
 
81
  # Code from module strings:
 
82
  # Code from module strndup:
 
83
  # Code from module strnlen:
 
84
  # Code from module strnlen1:
 
85
  # Code from module sys_wait:
 
86
  # Code from module sysexits:
 
87
  # Code from module unistd:
 
88
  # Code from module vasnprintf:
 
89
  # Code from module verify:
 
90
  # Code from module vsnprintf:
 
91
  # Code from module warn-on-use:
 
92
  # Code from module wchar:
 
93
  # Code from module wcrtomb:
 
94
  # Code from module wctype:
 
95
  # Code from module xsize:
 
96
])
 
97
 
 
98
# This macro should be invoked from ./configure.ac, in the section
 
99
# "Check for header files, types and library functions".
 
100
AC_DEFUN([gl_INIT],
 
101
[
 
102
  AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
 
103
  gl_cond_libtool=false
 
104
  gl_libdeps=
 
105
  gl_ltlibdeps=
 
106
  gl_m4_base='m4'
 
107
  m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
 
108
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
 
109
  m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
 
110
  m4_pushdef([gl_LIBSOURCES_LIST], [])
 
111
  m4_pushdef([gl_LIBSOURCES_DIR], [])
 
112
  gl_COMMON
 
113
  gl_source_base='grub-core/gnulib'
 
114
  # Code from module alloca:
 
115
  # Code from module alloca-opt:
 
116
  gl_FUNC_ALLOCA
 
117
  # Code from module arg-nonnull:
 
118
  # Code from module argp:
 
119
  gl_ARGP
 
120
  m4_ifdef([AM_XGETTEXT_OPTION],
 
121
    [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
 
122
     AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
 
123
  # Code from module btowc:
 
124
  gl_FUNC_BTOWC
 
125
  gl_WCHAR_MODULE_INDICATOR([btowc])
 
126
  # Code from module c++defs:
 
127
  # Code from module configmake:
 
128
  # Code from module dirname-lgpl:
 
129
  gl_DIRNAME_LGPL
 
130
  # Code from module double-slash-root:
 
131
  gl_DOUBLE_SLASH_ROOT
 
132
  # Code from module errno:
 
133
  gl_HEADER_ERRNO_H
 
134
  # Code from module error:
 
135
  gl_ERROR
 
136
  m4_ifdef([AM_XGETTEXT_OPTION],
 
137
    [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
 
138
     AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
 
139
  # Code from module extensions:
 
140
  # Code from module float:
 
141
  gl_FLOAT_H
 
142
  # Code from module fnmatch:
 
143
  gl_FUNC_FNMATCH_POSIX
 
144
  # Code from module getdelim:
 
145
  gl_FUNC_GETDELIM
 
146
  gl_STDIO_MODULE_INDICATOR([getdelim])
 
147
  # Code from module getline:
 
148
  gl_FUNC_GETLINE
 
149
  gl_STDIO_MODULE_INDICATOR([getline])
 
150
  # Code from module getopt-gnu:
 
151
  gl_FUNC_GETOPT_GNU
 
152
  gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
 
153
  # Code from module getopt-posix:
 
154
  gl_FUNC_GETOPT_POSIX
 
155
  # Code from module gettext:
 
156
  dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
 
157
  AM_GNU_GETTEXT_VERSION([0.18.1])
 
158
  # Code from module gettext-h:
 
159
  AC_SUBST([LIBINTL])
 
160
  AC_SUBST([LTLIBINTL])
 
161
  # Code from module havelib:
 
162
  # Code from module include_next:
 
163
  # Code from module intprops:
 
164
  # Code from module langinfo:
 
165
  gl_LANGINFO_H
 
166
  # Code from module localcharset:
 
167
  gl_LOCALCHARSET
 
168
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
 
169
  AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
 
170
  # Code from module malloc-gnu:
 
171
  gl_FUNC_MALLOC_GNU
 
172
  gl_MODULE_INDICATOR([malloc-gnu])
 
173
  # Code from module malloc-posix:
 
174
  gl_FUNC_MALLOC_POSIX
 
175
  gl_STDLIB_MODULE_INDICATOR([malloc-posix])
 
176
  # Code from module mbrtowc:
 
177
  gl_FUNC_MBRTOWC
 
178
  gl_WCHAR_MODULE_INDICATOR([mbrtowc])
 
179
  # Code from module mbsinit:
 
180
  gl_FUNC_MBSINIT
 
181
  gl_WCHAR_MODULE_INDICATOR([mbsinit])
 
182
  # Code from module mbsrtowcs:
 
183
  gl_FUNC_MBSRTOWCS
 
184
  gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
 
185
  # Code from module memchr:
 
186
  gl_FUNC_MEMCHR
 
187
  gl_STRING_MODULE_INDICATOR([memchr])
 
188
  # Code from module mempcpy:
 
189
  gl_FUNC_MEMPCPY
 
190
  gl_STRING_MODULE_INDICATOR([mempcpy])
 
191
  # Code from module multiarch:
 
192
  gl_MULTIARCH
 
193
  # Code from module nl_langinfo:
 
194
  gl_FUNC_NL_LANGINFO
 
195
  gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
 
196
  # Code from module progname:
 
197
  AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
 
198
  AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
 
199
  # Code from module rawmemchr:
 
200
  gl_FUNC_RAWMEMCHR
 
201
  gl_STRING_MODULE_INDICATOR([rawmemchr])
 
202
  # Code from module realloc-posix:
 
203
  gl_FUNC_REALLOC_POSIX
 
204
  gl_STDLIB_MODULE_INDICATOR([realloc-posix])
 
205
  # Code from module regex:
 
206
  gl_REGEX
 
207
  # Code from module size_max:
 
208
  gl_SIZE_MAX
 
209
  # Code from module sleep:
 
210
  gl_FUNC_SLEEP
 
211
  gl_UNISTD_MODULE_INDICATOR([sleep])
 
212
  # Code from module ssize_t:
 
213
  gt_TYPE_SSIZE_T
 
214
  # Code from module stdbool:
 
215
  AM_STDBOOL_H
 
216
  # Code from module stddef:
 
217
  gl_STDDEF_H
 
218
  # Code from module stdint:
 
219
  gl_STDINT_H
 
220
  # Code from module stdio:
 
221
  gl_STDIO_H
 
222
  # Code from module stdlib:
 
223
  gl_STDLIB_H
 
224
  # Code from module strcase:
 
225
  gl_STRCASE
 
226
  # Code from module strchrnul:
 
227
  gl_FUNC_STRCHRNUL
 
228
  gl_STRING_MODULE_INDICATOR([strchrnul])
 
229
  # Code from module streq:
 
230
  # Code from module strerror:
 
231
  gl_FUNC_STRERROR
 
232
  gl_STRING_MODULE_INDICATOR([strerror])
 
233
  # Code from module string:
 
234
  gl_HEADER_STRING_H
 
235
  # Code from module strings:
 
236
  gl_HEADER_STRINGS_H
 
237
  # Code from module strndup:
 
238
  gl_FUNC_STRNDUP
 
239
  gl_STRING_MODULE_INDICATOR([strndup])
 
240
  # Code from module strnlen:
 
241
  gl_FUNC_STRNLEN
 
242
  gl_STRING_MODULE_INDICATOR([strnlen])
 
243
  # Code from module strnlen1:
 
244
  # Code from module sys_wait:
 
245
  gl_SYS_WAIT_H
 
246
  AC_PROG_MKDIR_P
 
247
  # Code from module sysexits:
 
248
  gl_SYSEXITS
 
249
  # Code from module unistd:
 
250
  gl_UNISTD_H
 
251
  # Code from module vasnprintf:
 
252
  gl_FUNC_VASNPRINTF
 
253
  # Code from module verify:
 
254
  # Code from module vsnprintf:
 
255
  gl_FUNC_VSNPRINTF
 
256
  gl_STDIO_MODULE_INDICATOR([vsnprintf])
 
257
  # Code from module warn-on-use:
 
258
  # Code from module wchar:
 
259
  gl_WCHAR_H
 
260
  # Code from module wcrtomb:
 
261
  gl_FUNC_WCRTOMB
 
262
  gl_WCHAR_MODULE_INDICATOR([wcrtomb])
 
263
  # Code from module wctype:
 
264
  gl_WCTYPE_H
 
265
  # Code from module xsize:
 
266
  gl_XSIZE
 
267
  # End of code from modules
 
268
  m4_ifval(gl_LIBSOURCES_LIST, [
 
269
    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
 
270
      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
 
271
        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
 
272
          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
 
273
          exit 1
 
274
        fi
 
275
      done])dnl
 
276
      m4_if(m4_sysval, [0], [],
 
277
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
278
  ])
 
279
  m4_popdef([gl_LIBSOURCES_DIR])
 
280
  m4_popdef([gl_LIBSOURCES_LIST])
 
281
  m4_popdef([AC_LIBSOURCES])
 
282
  m4_popdef([AC_REPLACE_FUNCS])
 
283
  m4_popdef([AC_LIBOBJ])
 
284
  AC_CONFIG_COMMANDS_PRE([
 
285
    gl_libobjs=
 
286
    gl_ltlibobjs=
 
287
    if test -n "$gl_LIBOBJS"; then
 
288
      # Remove the extension.
 
289
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
290
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
291
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
292
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
293
      done
 
294
    fi
 
295
    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
 
296
    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
 
297
  ])
 
298
  gltests_libdeps=
 
299
  gltests_ltlibdeps=
 
300
  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
 
301
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
 
302
  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
 
303
  m4_pushdef([gltests_LIBSOURCES_LIST], [])
 
304
  m4_pushdef([gltests_LIBSOURCES_DIR], [])
 
305
  gl_COMMON
 
306
  gl_source_base='tests'
 
307
changequote(,)dnl
 
308
  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
 
309
changequote([, ])dnl
 
310
  AC_SUBST([gltests_WITNESS])
 
311
  gl_module_indicator_condition=$gltests_WITNESS
 
312
  m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
 
313
  m4_popdef([gl_MODULE_INDICATOR_CONDITION])
 
314
  m4_ifval(gltests_LIBSOURCES_LIST, [
 
315
    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
 
316
      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
 
317
        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
 
318
          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
 
319
          exit 1
 
320
        fi
 
321
      done])dnl
 
322
      m4_if(m4_sysval, [0], [],
 
323
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
324
  ])
 
325
  m4_popdef([gltests_LIBSOURCES_DIR])
 
326
  m4_popdef([gltests_LIBSOURCES_LIST])
 
327
  m4_popdef([AC_LIBSOURCES])
 
328
  m4_popdef([AC_REPLACE_FUNCS])
 
329
  m4_popdef([AC_LIBOBJ])
 
330
  AC_CONFIG_COMMANDS_PRE([
 
331
    gltests_libobjs=
 
332
    gltests_ltlibobjs=
 
333
    if test -n "$gltests_LIBOBJS"; then
 
334
      # Remove the extension.
 
335
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
336
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
337
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
338
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
339
      done
 
340
    fi
 
341
    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
 
342
    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
 
343
  ])
 
344
  LIBGNU_LIBDEPS="$gl_libdeps"
 
345
  AC_SUBST([LIBGNU_LIBDEPS])
 
346
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
347
  AC_SUBST([LIBGNU_LTLIBDEPS])
 
348
])
 
349
 
 
350
# Like AC_LIBOBJ, except that the module name goes
 
351
# into gl_LIBOBJS instead of into LIBOBJS.
 
352
AC_DEFUN([gl_LIBOBJ], [
 
353
  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
 
354
  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
 
355
])
 
356
 
 
357
# Like AC_REPLACE_FUNCS, except that the module name goes
 
358
# into gl_LIBOBJS instead of into LIBOBJS.
 
359
AC_DEFUN([gl_REPLACE_FUNCS], [
 
360
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
361
  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
 
362
])
 
363
 
 
364
# Like AC_LIBSOURCES, except the directory where the source file is
 
365
# expected is derived from the gnulib-tool parameterization,
 
366
# and alloca is special cased (for the alloca-opt module).
 
367
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
368
AC_DEFUN([gl_LIBSOURCES], [
 
369
  m4_foreach([_gl_NAME], [$1], [
 
370
    m4_if(_gl_NAME, [alloca.c], [], [
 
371
      m4_define([gl_LIBSOURCES_DIR], [grub-core/gnulib])
 
372
      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
 
373
    ])
 
374
  ])
 
375
])
 
376
 
 
377
# Like AC_LIBOBJ, except that the module name goes
 
378
# into gltests_LIBOBJS instead of into LIBOBJS.
 
379
AC_DEFUN([gltests_LIBOBJ], [
 
380
  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
 
381
  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
 
382
])
 
383
 
 
384
# Like AC_REPLACE_FUNCS, except that the module name goes
 
385
# into gltests_LIBOBJS instead of into LIBOBJS.
 
386
AC_DEFUN([gltests_REPLACE_FUNCS], [
 
387
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
388
  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
 
389
])
 
390
 
 
391
# Like AC_LIBSOURCES, except the directory where the source file is
 
392
# expected is derived from the gnulib-tool parameterization,
 
393
# and alloca is special cased (for the alloca-opt module).
 
394
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
395
AC_DEFUN([gltests_LIBSOURCES], [
 
396
  m4_foreach([_gl_NAME], [$1], [
 
397
    m4_if(_gl_NAME, [alloca.c], [], [
 
398
      m4_define([gltests_LIBSOURCES_DIR], [tests])
 
399
      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
 
400
    ])
 
401
  ])
 
402
])
 
403
 
 
404
# This macro records the list of files which have been installed by
 
405
# gnulib-tool and may be removed by future gnulib-tool invocations.
 
406
AC_DEFUN([gl_FILE_LIST], [
 
407
  build-aux/arg-nonnull.h
 
408
  build-aux/c++defs.h
 
409
  build-aux/config.rpath
 
410
  build-aux/warn-on-use.h
 
411
  lib/alloca.c
 
412
  lib/alloca.in.h
 
413
  lib/argp-ba.c
 
414
  lib/argp-eexst.c
 
415
  lib/argp-fmtstream.c
 
416
  lib/argp-fmtstream.h
 
417
  lib/argp-fs-xinl.c
 
418
  lib/argp-help.c
 
419
  lib/argp-namefrob.h
 
420
  lib/argp-parse.c
 
421
  lib/argp-pin.c
 
422
  lib/argp-pv.c
 
423
  lib/argp-pvh.c
 
424
  lib/argp-xinl.c
 
425
  lib/argp.h
 
426
  lib/asnprintf.c
 
427
  lib/basename-lgpl.c
 
428
  lib/btowc.c
 
429
  lib/config.charset
 
430
  lib/dirname-lgpl.c
 
431
  lib/dirname.h
 
432
  lib/errno.in.h
 
433
  lib/error.c
 
434
  lib/error.h
 
435
  lib/float+.h
 
436
  lib/float.in.h
 
437
  lib/fnmatch.c
 
438
  lib/fnmatch.in.h
 
439
  lib/fnmatch_loop.c
 
440
  lib/getdelim.c
 
441
  lib/getline.c
 
442
  lib/getopt.c
 
443
  lib/getopt.in.h
 
444
  lib/getopt1.c
 
445
  lib/getopt_int.h
 
446
  lib/gettext.h
 
447
  lib/intprops.h
 
448
  lib/langinfo.in.h
 
449
  lib/localcharset.c
 
450
  lib/localcharset.h
 
451
  lib/malloc.c
 
452
  lib/mbrtowc.c
 
453
  lib/mbsinit.c
 
454
  lib/mbsrtowcs-state.c
 
455
  lib/mbsrtowcs.c
 
456
  lib/memchr.c
 
457
  lib/memchr.valgrind
 
458
  lib/mempcpy.c
 
459
  lib/nl_langinfo.c
 
460
  lib/printf-args.c
 
461
  lib/printf-args.h
 
462
  lib/printf-parse.c
 
463
  lib/printf-parse.h
 
464
  lib/progname.c
 
465
  lib/progname.h
 
466
  lib/rawmemchr.c
 
467
  lib/rawmemchr.valgrind
 
468
  lib/realloc.c
 
469
  lib/ref-add.sin
 
470
  lib/ref-del.sin
 
471
  lib/regcomp.c
 
472
  lib/regex.c
 
473
  lib/regex.h
 
474
  lib/regex_internal.c
 
475
  lib/regex_internal.h
 
476
  lib/regexec.c
 
477
  lib/size_max.h
 
478
  lib/sleep.c
 
479
  lib/stdbool.in.h
 
480
  lib/stddef.in.h
 
481
  lib/stdint.in.h
 
482
  lib/stdio-write.c
 
483
  lib/stdio.in.h
 
484
  lib/stdlib.in.h
 
485
  lib/strcasecmp.c
 
486
  lib/strchrnul.c
 
487
  lib/strchrnul.valgrind
 
488
  lib/streq.h
 
489
  lib/strerror.c
 
490
  lib/string.in.h
 
491
  lib/strings.in.h
 
492
  lib/stripslash.c
 
493
  lib/strncasecmp.c
 
494
  lib/strndup.c
 
495
  lib/strnlen.c
 
496
  lib/strnlen1.c
 
497
  lib/strnlen1.h
 
498
  lib/sys_wait.in.h
 
499
  lib/sysexits.in.h
 
500
  lib/unistd.in.h
 
501
  lib/vasnprintf.c
 
502
  lib/vasnprintf.h
 
503
  lib/verify.h
 
504
  lib/vsnprintf.c
 
505
  lib/wchar.in.h
 
506
  lib/wcrtomb.c
 
507
  lib/wctype.in.h
 
508
  lib/xsize.h
 
509
  m4/00gnulib.m4
 
510
  m4/alloca.m4
 
511
  m4/argp.m4
 
512
  m4/asm-underscore.m4
 
513
  m4/btowc.m4
 
514
  m4/codeset.m4
 
515
  m4/dirname.m4
 
516
  m4/dos.m4
 
517
  m4/double-slash-root.m4
 
518
  m4/errno_h.m4
 
519
  m4/error.m4
 
520
  m4/extensions.m4
 
521
  m4/fcntl-o.m4
 
522
  m4/float_h.m4
 
523
  m4/fnmatch.m4
 
524
  m4/getdelim.m4
 
525
  m4/getline.m4
 
526
  m4/getopt.m4
 
527
  m4/gettext.m4
 
528
  m4/glibc2.m4
 
529
  m4/glibc21.m4
 
530
  m4/gnulib-common.m4
 
531
  m4/iconv.m4
 
532
  m4/include_next.m4
 
533
  m4/intdiv0.m4
 
534
  m4/intl.m4
 
535
  m4/intldir.m4
 
536
  m4/intlmacosx.m4
 
537
  m4/intmax.m4
 
538
  m4/intmax_t.m4
 
539
  m4/inttypes-pri.m4
 
540
  m4/inttypes_h.m4
 
541
  m4/langinfo_h.m4
 
542
  m4/lcmessage.m4
 
543
  m4/lib-ld.m4
 
544
  m4/lib-link.m4
 
545
  m4/lib-prefix.m4
 
546
  m4/localcharset.m4
 
547
  m4/locale-fr.m4
 
548
  m4/locale-ja.m4
 
549
  m4/locale-zh.m4
 
550
  m4/lock.m4
 
551
  m4/longlong.m4
 
552
  m4/malloc.m4
 
553
  m4/mbrtowc.m4
 
554
  m4/mbsinit.m4
 
555
  m4/mbsrtowcs.m4
 
556
  m4/mbstate_t.m4
 
557
  m4/memchr.m4
 
558
  m4/mempcpy.m4
 
559
  m4/mmap-anon.m4
 
560
  m4/multiarch.m4
 
561
  m4/nl_langinfo.m4
 
562
  m4/nls.m4
 
563
  m4/po.m4
 
564
  m4/printf-posix.m4
 
565
  m4/printf.m4
 
566
  m4/progtest.m4
 
567
  m4/rawmemchr.m4
 
568
  m4/realloc.m4
 
569
  m4/regex.m4
 
570
  m4/size_max.m4
 
571
  m4/sleep.m4
 
572
  m4/ssize_t.m4
 
573
  m4/stdbool.m4
 
574
  m4/stddef_h.m4
 
575
  m4/stdint.m4
 
576
  m4/stdint_h.m4
 
577
  m4/stdio_h.m4
 
578
  m4/stdlib_h.m4
 
579
  m4/strcase.m4
 
580
  m4/strchrnul.m4
 
581
  m4/strerror.m4
 
582
  m4/string_h.m4
 
583
  m4/strings_h.m4
 
584
  m4/strndup.m4
 
585
  m4/strnlen.m4
 
586
  m4/sys_wait_h.m4
 
587
  m4/sysexits.m4
 
588
  m4/threadlib.m4
 
589
  m4/uintmax_t.m4
 
590
  m4/unistd_h.m4
 
591
  m4/vasnprintf.m4
 
592
  m4/visibility.m4
 
593
  m4/vsnprintf.m4
 
594
  m4/warn-on-use.m4
 
595
  m4/wchar_h.m4
 
596
  m4/wchar_t.m4
 
597
  m4/wcrtomb.m4
 
598
  m4/wctype_h.m4
 
599
  m4/wint_t.m4
 
600
  m4/xsize.m4
 
601
])