]> sjero.net Git - wget/blob - md5/m4/gnulib-comp.m4
Automated merge.
[wget] / md5 / m4 / gnulib-comp.m4
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.ac, 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.
21 AC_DEFUN([md5_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 ])
29
30 # This macro should be invoked from ./configure.ac, in the section
31 # "Check for header files, types and library functions".
32 AC_DEFUN([md5_INIT],
33 [
34   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
35   gl_cond_libtool=false
36   gl_libdeps=
37   gl_ltlibdeps=
38   m4_pushdef([AC_LIBOBJ], m4_defn([md5_LIBOBJ]))
39   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([md5_REPLACE_FUNCS]))
40   m4_pushdef([AC_LIBSOURCES], m4_defn([md5_LIBSOURCES]))
41   gl_source_base='md5'
42   gl_MD5
43   gl_STDINT_H
44   gl_WCHAR_H
45   m4_popdef([AC_LIBSOURCES])
46   m4_popdef([AC_REPLACE_FUNCS])
47   m4_popdef([AC_LIBOBJ])
48   AC_CONFIG_COMMANDS_PRE([
49     md5_libobjs=
50     md5_ltlibobjs=
51     if test -n "$md5_LIBOBJS"; then
52       # Remove the extension.
53       sed_drop_objext='s/\.o$//;s/\.obj$//'
54       for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
55         md5_libobjs="$md5_libobjs $i.$ac_objext"
56         md5_ltlibobjs="$md5_ltlibobjs $i.lo"
57       done
58     fi
59     AC_SUBST([md5_LIBOBJS], [$md5_libobjs])
60     AC_SUBST([md5_LTLIBOBJS], [$md5_ltlibobjs])
61   ])
62   gltests_libdeps=
63   gltests_ltlibdeps=
64   m4_pushdef([AC_LIBOBJ], m4_defn([md5tests_LIBOBJ]))
65   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([md5tests_REPLACE_FUNCS]))
66   m4_pushdef([AC_LIBSOURCES], m4_defn([md5tests_LIBSOURCES]))
67   gl_source_base='tests'
68   m4_popdef([AC_LIBSOURCES])
69   m4_popdef([AC_REPLACE_FUNCS])
70   m4_popdef([AC_LIBOBJ])
71   AC_CONFIG_COMMANDS_PRE([
72     md5tests_libobjs=
73     md5tests_ltlibobjs=
74     if test -n "$md5tests_LIBOBJS"; then
75       # Remove the extension.
76       sed_drop_objext='s/\.o$//;s/\.obj$//'
77       for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
78         md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
79         md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
80       done
81     fi
82     AC_SUBST([md5tests_LIBOBJS], [$md5tests_libobjs])
83     AC_SUBST([md5tests_LTLIBOBJS], [$md5tests_ltlibobjs])
84   ])
85   LIBMD5_LIBDEPS="$gl_libdeps"
86   AC_SUBST([LIBMD5_LIBDEPS])
87   LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
88   AC_SUBST([LIBMD5_LTLIBDEPS])
89 ])
90
91 # Like AC_LIBOBJ, except that the module name goes
92 # into md5_LIBOBJS instead of into LIBOBJS.
93 AC_DEFUN([md5_LIBOBJ], [
94   AS_LITERAL_IF([$1], [md5_LIBSOURCES([$1.c])])dnl
95   md5_LIBOBJS="$md5_LIBOBJS $1.$ac_objext"
96 ])
97
98 # m4_foreach_w is provided by autoconf-2.59c and later.
99 # This definition is to accommodate developers using versions
100 # of autoconf older than that.
101 m4_ifndef([m4_foreach_w],
102   [m4_define([m4_foreach_w],
103     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
104
105 # Like AC_REPLACE_FUNCS, except that the module name goes
106 # into md5_LIBOBJS instead of into LIBOBJS.
107 AC_DEFUN([md5_REPLACE_FUNCS], [
108   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
109   AC_CHECK_FUNCS([$1], , [md5_LIBOBJ($ac_func)])
110 ])
111
112 # Like AC_LIBSOURCES, except the directory where the source file is
113 # expected is derived from the gnulib-tool parametrization,
114 # and alloca is special cased (for the alloca-opt module).
115 # We could also entirely rely on EXTRA_lib..._SOURCES.
116 AC_DEFUN([md5_LIBSOURCES], [
117   m4_foreach([_gl_NAME], [$1], [
118     m4_if(_gl_NAME, [alloca.c], [], [
119       m4_syscmd([test -r md5/]_gl_NAME[ || test ! -d md5])dnl
120       m4_if(m4_sysval, [0], [],
121         [AC_FATAL([missing md5/]_gl_NAME)])
122     ])
123   ])
124 ])
125
126 # Like AC_LIBOBJ, except that the module name goes
127 # into md5tests_LIBOBJS instead of into LIBOBJS.
128 AC_DEFUN([md5tests_LIBOBJ], [
129   AS_LITERAL_IF([$1], [md5tests_LIBSOURCES([$1.c])])dnl
130   md5tests_LIBOBJS="$md5tests_LIBOBJS $1.$ac_objext"
131 ])
132
133 # m4_foreach_w is provided by autoconf-2.59c and later.
134 # This definition is to accommodate developers using versions
135 # of autoconf older than that.
136 m4_ifndef([m4_foreach_w],
137   [m4_define([m4_foreach_w],
138     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
139
140 # Like AC_REPLACE_FUNCS, except that the module name goes
141 # into md5tests_LIBOBJS instead of into LIBOBJS.
142 AC_DEFUN([md5tests_REPLACE_FUNCS], [
143   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
144   AC_CHECK_FUNCS([$1], , [md5tests_LIBOBJ($ac_func)])
145 ])
146
147 # Like AC_LIBSOURCES, except the directory where the source file is
148 # expected is derived from the gnulib-tool parametrization,
149 # and alloca is special cased (for the alloca-opt module).
150 # We could also entirely rely on EXTRA_lib..._SOURCES.
151 AC_DEFUN([md5tests_LIBSOURCES], [
152   m4_foreach([_gl_NAME], [$1], [
153     m4_if(_gl_NAME, [alloca.c], [], [
154       m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
155       m4_if(m4_sysval, [0], [],
156         [AC_FATAL([missing tests/]_gl_NAME)])
157     ])
158   ])
159 ])
160
161 # This macro records the list of files which have been installed by
162 # gnulib-tool and may be removed by future gnulib-tool invocations.
163 AC_DEFUN([md5_FILE_LIST], [
164   build-aux/link-warning.h
165   lib/dummy.c
166   lib/md5.c
167   lib/md5.h
168   lib/stdint.in.h
169   lib/wchar.in.h
170   m4/gnulib-common.m4
171   m4/include_next.m4
172   m4/longlong.m4
173   m4/md5.m4
174   m4/stdint.m4
175   m4/wchar.m4
176 ])