annotate m4/gnulib-comp.m4 @ 112338:aee2f052ef17

* notes/bzr (Installing changes from gnulib): New section. Need for this suggested by Stefan Monnier.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 17 Jan 2011 14:11:13 -0800
parents f3056cf0073a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
3 #
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
4 # This file is free software, distributed under the terms of the GNU
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
5 # General Public License. As a special exception to the GNU General
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
6 # Public License, this file may be distributed as part of a program
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
7 # that contains a configuration script generated by Autoconf, under
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
8 # the same distribution terms as the rest of that program.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
9 #
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
10 # Generated by gnulib-tool.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
11 #
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
12 # This file represents the compiled summary of the specification in
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
13 # gnulib-cache.m4. It lists the computed macro invocations that need
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
14 # to be invoked from configure.ac.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
15 # In projects that use version control, this file can be treated like
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
16 # other built files.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
17
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
18
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
19 # This macro should be invoked from ./configure.in, in the section
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
21 # any checks for libraries, header files, types and library functions.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
22 AC_DEFUN([gl_EARLY],
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
23 [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
28 AC_REQUIRE([AC_PROG_RANLIB])
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
29 # Code from module arg-nonnull:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
30 # Code from module c++defs:
112323
f3056cf0073a Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112311
diff changeset
31 # Code from module dtoastr:
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
32 # Code from module extensions:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
33 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
34 # Code from module getopt-gnu:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
35 # Code from module getopt-posix:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
36 # Code from module gettext-h:
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
37 # Code from module include_next:
112305
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
38 # Code from module intprops:
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
39 # Code from module mktime:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
40 # Code from module multiarch:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
41 # Code from module stddef:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
42 # Code from module time:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
43 # Code from module time_r:
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
44 # Code from module unistd:
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
45 # Code from module warn-on-use:
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
46 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
47
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
48 # This macro should be invoked from ./configure.in, in the section
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
49 # "Check for header files, types and library functions".
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
50 AC_DEFUN([gl_INIT],
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
51 [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
52 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
53 gl_cond_libtool=false
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
54 gl_libdeps=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
55 gl_ltlibdeps=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
56 gl_m4_base='m4'
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
57 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
58 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
59 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
60 m4_pushdef([gl_LIBSOURCES_LIST], [])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
61 m4_pushdef([gl_LIBSOURCES_DIR], [])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
62 gl_COMMON
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
63 gl_source_base='lib'
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
64 # Code from module arg-nonnull:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
65 # Code from module c++defs:
112323
f3056cf0073a Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112311
diff changeset
66 # Code from module dtoastr:
f3056cf0073a Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112311
diff changeset
67 AC_REQUIRE([gl_C99_STRTOLD])
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
68 # Code from module extensions:
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
69 # Code from module getopt-gnu:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
70 gl_FUNC_GETOPT_GNU
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
71 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
72 # Code from module getopt-posix:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
73 gl_FUNC_GETOPT_POSIX
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
74 # Code from module gettext-h:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
75 AC_SUBST([LIBINTL])
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
76 AC_SUBST([LTLIBINTL])
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
77 # Code from module include_next:
112305
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
78 # Code from module intprops:
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
79 # Code from module mktime:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
80 gl_FUNC_MKTIME
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
81 gl_TIME_MODULE_INDICATOR([mktime])
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
82 # Code from module multiarch:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
83 gl_MULTIARCH
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
84 # Code from module stddef:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
85 gl_STDDEF_H
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
86 # Code from module time:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
87 gl_HEADER_TIME_H
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
88 # Code from module time_r:
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
89 gl_TIME_R
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
90 gl_TIME_MODULE_INDICATOR([time_r])
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
91 # Code from module unistd:
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
92 gl_UNISTD_H
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
93 # Code from module warn-on-use:
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
94 # End of code from modules
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
95 m4_ifval(gl_LIBSOURCES_LIST, [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
96 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
97 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
98 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
99 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
100 exit 1
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
101 fi
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
102 done])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
103 m4_if(m4_sysval, [0], [],
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
104 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
105 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
106 m4_popdef([gl_LIBSOURCES_DIR])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
107 m4_popdef([gl_LIBSOURCES_LIST])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
108 m4_popdef([AC_LIBSOURCES])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
109 m4_popdef([AC_REPLACE_FUNCS])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
110 m4_popdef([AC_LIBOBJ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
111 AC_CONFIG_COMMANDS_PRE([
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
112 gl_libobjs=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
113 gl_ltlibobjs=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
114 if test -n "$gl_LIBOBJS"; then
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
115 # Remove the extension.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
116 sed_drop_objext='s/\.o$//;s/\.obj$//'
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
117 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
118 gl_libobjs="$gl_libobjs $i.$ac_objext"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
119 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
120 done
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
121 fi
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
122 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
123 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
124 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
125 gltests_libdeps=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
126 gltests_ltlibdeps=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
127 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
128 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
129 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
130 m4_pushdef([gltests_LIBSOURCES_LIST], [])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
131 m4_pushdef([gltests_LIBSOURCES_DIR], [])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
132 gl_COMMON
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
133 gl_source_base='tests'
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
134 changequote(,)dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
135 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
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
136 changequote([, ])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
137 AC_SUBST([gltests_WITNESS])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
138 gl_module_indicator_condition=$gltests_WITNESS
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
139 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
140 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
141 m4_ifval(gltests_LIBSOURCES_LIST, [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
142 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
143 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
144 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
145 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
146 exit 1
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
147 fi
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
148 done])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
149 m4_if(m4_sysval, [0], [],
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
150 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
151 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
152 m4_popdef([gltests_LIBSOURCES_DIR])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
153 m4_popdef([gltests_LIBSOURCES_LIST])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
154 m4_popdef([AC_LIBSOURCES])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
155 m4_popdef([AC_REPLACE_FUNCS])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
156 m4_popdef([AC_LIBOBJ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
157 AC_CONFIG_COMMANDS_PRE([
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
158 gltests_libobjs=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
159 gltests_ltlibobjs=
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
160 if test -n "$gltests_LIBOBJS"; then
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
161 # Remove the extension.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
162 sed_drop_objext='s/\.o$//;s/\.obj$//'
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
163 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
164 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
165 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
166 done
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
167 fi
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
168 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
169 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
170 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
171 LIBGNU_LIBDEPS="$gl_libdeps"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
172 AC_SUBST([LIBGNU_LIBDEPS])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
173 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
174 AC_SUBST([LIBGNU_LTLIBDEPS])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
175 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
176
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
177 # Like AC_LIBOBJ, except that the module name goes
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
178 # into gl_LIBOBJS instead of into LIBOBJS.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
179 AC_DEFUN([gl_LIBOBJ], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
180 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
181 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
182 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
183
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
184 # Like AC_REPLACE_FUNCS, except that the module name goes
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
185 # into gl_LIBOBJS instead of into LIBOBJS.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
186 AC_DEFUN([gl_REPLACE_FUNCS], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
187 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
188 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
189 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
190
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
191 # Like AC_LIBSOURCES, except the directory where the source file is
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
192 # expected is derived from the gnulib-tool parameterization,
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
193 # and alloca is special cased (for the alloca-opt module).
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
194 # We could also entirely rely on EXTRA_lib..._SOURCES.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
195 AC_DEFUN([gl_LIBSOURCES], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
196 m4_foreach([_gl_NAME], [$1], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
197 m4_if(_gl_NAME, [alloca.c], [], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
198 m4_define([gl_LIBSOURCES_DIR], [lib])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
199 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
200 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
201 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
202 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
203
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
204 # Like AC_LIBOBJ, except that the module name goes
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
205 # into gltests_LIBOBJS instead of into LIBOBJS.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
206 AC_DEFUN([gltests_LIBOBJ], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
207 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
208 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
209 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
210
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
211 # Like AC_REPLACE_FUNCS, except that the module name goes
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
212 # into gltests_LIBOBJS instead of into LIBOBJS.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
213 AC_DEFUN([gltests_REPLACE_FUNCS], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
214 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
215 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
216 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
217
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
218 # Like AC_LIBSOURCES, except the directory where the source file is
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
219 # expected is derived from the gnulib-tool parameterization,
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
220 # and alloca is special cased (for the alloca-opt module).
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
221 # We could also entirely rely on EXTRA_lib..._SOURCES.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
222 AC_DEFUN([gltests_LIBSOURCES], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
223 m4_foreach([_gl_NAME], [$1], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
224 m4_if(_gl_NAME, [alloca.c], [], [
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
225 m4_define([gltests_LIBSOURCES_DIR], [tests])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
226 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
227 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
228 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
229 ])
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
230
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
231 # This macro records the list of files which have been installed by
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
232 # gnulib-tool and may be removed by future gnulib-tool invocations.
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
233 AC_DEFUN([gl_FILE_LIST], [
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
234 build-aux/arg-nonnull.h
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
235 build-aux/c++defs.h
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
236 build-aux/warn-on-use.h
112305
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
237 lib/dtoastr.c
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
238 lib/ftoastr.c
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
239 lib/ftoastr.h
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
240 lib/getopt.c
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
241 lib/getopt.in.h
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
242 lib/getopt1.c
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
243 lib/getopt_int.h
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
244 lib/gettext.h
112305
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
245 lib/intprops.h
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
246 lib/mktime-internal.h
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
247 lib/mktime.c
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
248 lib/stddef.in.h
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
249 lib/time.in.h
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
250 lib/time_r.c
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
251 lib/unistd.in.h
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
252 m4/00gnulib.m4
112305
f31011c088d9 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112303
diff changeset
253 m4/c-strtod.m4
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
254 m4/extensions.m4
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
255 m4/getopt.m4
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
256 m4/gnulib-common.m4
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
257 m4/include_next.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
258 m4/mktime.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
259 m4/multiarch.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
260 m4/stddef_h.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
261 m4/time_h.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
262 m4/time_r.m4
112311
babd014aab81 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112308
diff changeset
263 m4/unistd_h.m4
112308
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
264 m4/warn-on-use.m4
474d5026a5a2 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents: 112305
diff changeset
265 m4/wchar_t.m4
112303
16ae11ee4ab8 Regenerate.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
266 ])