Merge branch 'master' into strftime-gnulib
[bpt/guile.git] / m4 / gnulib-comp.m4
CommitLineData
103dc4d4
LC
1# DO NOT EDIT! GENERATED AUTOMATICALLY!
2# Copyright (C) 2002-2008 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 using CVS, this file can be treated like other built files.
16
17
18# This macro should be invoked from ./configure.in, in the section
19# "Checks for programs", right after AC_PROG_CC, and certainly before
20# any checks for libraries, header files, types and library functions.
21AC_DEFUN([gl_EARLY],
22[
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
28 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
29])
30
31# This macro should be invoked from ./configure.in, in the section
32# "Check for header files, types and library functions".
33AC_DEFUN([gl_INIT],
34[
35 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
36 gl_cond_libtool=true
37 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
38 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
39 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
40 m4_pushdef([gl_LIBSOURCES_LIST], [])
41 m4_pushdef([gl_LIBSOURCES_DIR], [])
42 gl_COMMON
43 gl_source_base='lib'
44changequote(,)dnl
45LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
46changequote([, ])dnl
47AC_SUBST([LTALLOCA])
48 gl_FUNC_ALLOCA
e65fc94b 49 AM_STDBOOL_H
103dc4d4 50 gl_STRCASE
e65fc94b 51 gl_FUNC_GNU_STRFTIME
103dc4d4 52 gl_HEADER_STRINGS_H
e65fc94b
LC
53 gl_HEADER_TIME_H
54 gl_TIME_R
55 gl_WCHAR_H
103dc4d4
LC
56 m4_ifval(gl_LIBSOURCES_LIST, [
57 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
58 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
59 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
60 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
61 exit 1
62 fi
63 done])dnl
64 m4_if(m4_sysval, [0], [],
65 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
66 ])
67 m4_popdef([gl_LIBSOURCES_DIR])
68 m4_popdef([gl_LIBSOURCES_LIST])
69 m4_popdef([AC_LIBSOURCES])
70 m4_popdef([AC_REPLACE_FUNCS])
71 m4_popdef([AC_LIBOBJ])
72 AC_CONFIG_COMMANDS_PRE([
73 gl_libobjs=
74 gl_ltlibobjs=
75 if test -n "$gl_LIBOBJS"; then
76 # Remove the extension.
77 sed_drop_objext='s/\.o$//;s/\.obj$//'
78 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
79 gl_libobjs="$gl_libobjs $i.$ac_objext"
80 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
81 done
82 fi
83 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
84 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
85 ])
86 gltests_libdeps=
87 gltests_ltlibdeps=
88 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
89 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
90 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
91 m4_pushdef([gltests_LIBSOURCES_LIST], [])
92 m4_pushdef([gltests_LIBSOURCES_DIR], [])
93 gl_COMMON
94 gl_source_base='tests'
95 m4_ifval(gltests_LIBSOURCES_LIST, [
96 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
97 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
98 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
99 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
100 exit 1
101 fi
102 done])dnl
103 m4_if(m4_sysval, [0], [],
104 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
105 ])
106 m4_popdef([gltests_LIBSOURCES_DIR])
107 m4_popdef([gltests_LIBSOURCES_LIST])
108 m4_popdef([AC_LIBSOURCES])
109 m4_popdef([AC_REPLACE_FUNCS])
110 m4_popdef([AC_LIBOBJ])
111 AC_CONFIG_COMMANDS_PRE([
112 gltests_libobjs=
113 gltests_ltlibobjs=
114 if test -n "$gltests_LIBOBJS"; then
115 # Remove the extension.
116 sed_drop_objext='s/\.o$//;s/\.obj$//'
117 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
118 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
119 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
120 done
121 fi
122 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
123 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
124 ])
125])
126
127# Like AC_LIBOBJ, except that the module name goes
128# into gl_LIBOBJS instead of into LIBOBJS.
129AC_DEFUN([gl_LIBOBJ], [
130 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
131 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
132])
133
134# Like AC_REPLACE_FUNCS, except that the module name goes
135# into gl_LIBOBJS instead of into LIBOBJS.
136AC_DEFUN([gl_REPLACE_FUNCS], [
137 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
138 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
139])
140
141# Like AC_LIBSOURCES, except the directory where the source file is
142# expected is derived from the gnulib-tool parameterization,
143# and alloca is special cased (for the alloca-opt module).
144# We could also entirely rely on EXTRA_lib..._SOURCES.
145AC_DEFUN([gl_LIBSOURCES], [
146 m4_foreach([_gl_NAME], [$1], [
147 m4_if(_gl_NAME, [alloca.c], [], [
148 m4_define([gl_LIBSOURCES_DIR], [lib])
149 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
150 ])
151 ])
152])
153
154# Like AC_LIBOBJ, except that the module name goes
155# into gltests_LIBOBJS instead of into LIBOBJS.
156AC_DEFUN([gltests_LIBOBJ], [
157 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
158 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
159])
160
161# Like AC_REPLACE_FUNCS, except that the module name goes
162# into gltests_LIBOBJS instead of into LIBOBJS.
163AC_DEFUN([gltests_REPLACE_FUNCS], [
164 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
165 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
166])
167
168# Like AC_LIBSOURCES, except the directory where the source file is
169# expected is derived from the gnulib-tool parameterization,
170# and alloca is special cased (for the alloca-opt module).
171# We could also entirely rely on EXTRA_lib..._SOURCES.
172AC_DEFUN([gltests_LIBSOURCES], [
173 m4_foreach([_gl_NAME], [$1], [
174 m4_if(_gl_NAME, [alloca.c], [], [
175 m4_define([gltests_LIBSOURCES_DIR], [tests])
176 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
177 ])
178 ])
179])
180
181# This macro records the list of files which have been installed by
182# gnulib-tool and may be removed by future gnulib-tool invocations.
183AC_DEFUN([gl_FILE_LIST], [
184 build-aux/link-warning.h
185 lib/alloca.c
186 lib/alloca.in.h
187 lib/dummy.c
e65fc94b 188 lib/stdbool.in.h
103dc4d4 189 lib/strcasecmp.c
e65fc94b
LC
190 lib/strftime.c
191 lib/strftime.h
103dc4d4
LC
192 lib/strings.in.h
193 lib/strncasecmp.c
e65fc94b
LC
194 lib/time.in.h
195 lib/time_r.c
196 lib/wchar.in.h
103dc4d4
LC
197 m4/alloca.m4
198 m4/extensions.m4
199 m4/gnulib-common.m4
200 m4/include_next.m4
e65fc94b
LC
201 m4/mbstate_t.m4
202 m4/stdbool.m4
103dc4d4 203 m4/strcase.m4
e65fc94b 204 m4/strftime.m4
103dc4d4 205 m4/strings_h.m4
e65fc94b
LC
206 m4/time_h.m4
207 m4/time_r.m4
208 m4/tm_gmtoff.m4
209 m4/wchar.m4
103dc4d4 210])