Mercurial > masqmail
comparison aclocal.m4 @ 36:9cb4031fa5e0
updated the generated AutoHELL files
author | meillo@marmaro.de |
---|---|
date | Fri, 07 May 2010 16:44:26 +0200 |
parents | af25f5c39d90 |
children | c80a5730bcc5 |
comparison
equal
deleted
inserted
replaced
35:9bf8b9f0f09d | 36:9cb4031fa5e0 |
---|---|
1 # generated automatically by aclocal 1.7.9 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 # Free Software Foundation, Inc. | 4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
8 | 8 |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
13 | 13 |
14 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- | 14 m4_ifndef([AC_AUTOCONF_VERSION], |
15 | 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. | 16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, |
17 | 17 [m4_warning([this file was generated for autoconf 2.65. |
18 You have another version of autoconf. It may work, but is not guaranteed to. | |
19 If you have problems, you may need to regenerate the build system entirely. | |
20 To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
21 | |
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
23 # | |
24 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
25 # | |
18 # This program is free software; you can redistribute it and/or modify | 26 # This program is free software; you can redistribute it and/or modify |
19 # it under the terms of the GNU General Public License as published by | 27 # it under the terms of the GNU General Public License as published by |
20 # the Free Software Foundation; either version 2, or (at your option) | 28 # the Free Software Foundation; either version 2 of the License, or |
21 # any later version. | 29 # (at your option) any later version. |
22 | 30 # |
23 # This program is distributed in the hope that it will be useful, | 31 # This program is distributed in the hope that it will be useful, but |
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 32 # WITHOUT ANY WARRANTY; without even the implied warranty of |
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 33 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
26 # GNU General Public License for more details. | 34 # General Public License for more details. |
27 | 35 # |
28 # You should have received a copy of the GNU General Public License | 36 # You should have received a copy of the GNU General Public License |
29 # along with this program; if not, write to the Free Software | 37 # along with this program; if not, write to the Free Software |
30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 38 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
31 # 02111-1307, USA. | 39 # |
32 | 40 # As a special exception to the GNU General Public License, if you |
33 AC_PREREQ([2.52]) | 41 # distribute this file as part of a program that contains a |
34 | 42 # configuration script generated by Autoconf, you may include it under |
35 # serial 6 | 43 # the same distribution terms that you use for the rest of that program. |
36 | 44 |
37 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | 45 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
38 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | 46 # ---------------------------------- |
39 | 47 AC_DEFUN([PKG_PROG_PKG_CONFIG], |
40 # Do all the work for Automake. -*- Autoconf -*- | 48 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
41 | 49 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
42 # This macro actually does too much some checks are only needed if | 50 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl |
43 # your package does certain things. But this isn't really a big deal. | 51 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
44 | 52 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
45 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | 53 fi |
46 # Free Software Foundation, Inc. | 54 if test -n "$PKG_CONFIG"; then |
47 | 55 _pkg_min_version=m4_default([$1], [0.9.0]) |
48 # This program is free software; you can redistribute it and/or modify | 56 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
49 # it under the terms of the GNU General Public License as published by | 57 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
50 # the Free Software Foundation; either version 2, or (at your option) | 58 AC_MSG_RESULT([yes]) |
51 # any later version. | 59 else |
52 | 60 AC_MSG_RESULT([no]) |
53 # This program is distributed in the hope that it will be useful, | 61 PKG_CONFIG="" |
54 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 62 fi |
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 63 |
56 # GNU General Public License for more details. | 64 fi[]dnl |
57 | 65 ])# PKG_PROG_PKG_CONFIG |
58 # You should have received a copy of the GNU General Public License | 66 |
59 # along with this program; if not, write to the Free Software | 67 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
60 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 68 # |
61 # 02111-1307, USA. | 69 # Check to see whether a particular set of modules exists. Similar |
62 | 70 # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
63 # serial 10 | 71 # |
64 | 72 # |
65 AC_PREREQ([2.54]) | 73 # Similar to PKG_CHECK_MODULES, make sure that the first instance of |
66 | 74 # this or PKG_CHECK_MODULES is called, or make sure to call |
67 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow | 75 # PKG_CHECK_EXISTS manually |
68 # the ones we care about. | 76 # -------------------------------------------------------------- |
69 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 77 AC_DEFUN([PKG_CHECK_EXISTS], |
70 | 78 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
71 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | 79 if test -n "$PKG_CONFIG" && \ |
72 # AM_INIT_AUTOMAKE([OPTIONS]) | 80 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
73 # ----------------------------------------------- | 81 m4_ifval([$2], [$2], [:]) |
74 # The call with PACKAGE and VERSION arguments is the old style | 82 m4_ifvaln([$3], [else |
75 # call (pre autoconf-2.50), which is being phased out. PACKAGE | 83 $3])dnl |
76 # and VERSION should now be passed to AC_INIT and removed from | 84 fi]) |
77 # the call to AM_INIT_AUTOMAKE. | 85 |
78 # We support both call styles for the transition. After | 86 |
79 # the next Automake release, Autoconf can make the AC_INIT | 87 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
80 # arguments mandatory, and then we can depend on a new Autoconf | 88 # --------------------------------------------- |
81 # release and drop the old call support. | 89 m4_define([_PKG_CONFIG], |
82 AC_DEFUN([AM_INIT_AUTOMAKE], | 90 [if test -n "$PKG_CONFIG"; then |
83 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 91 if test -n "$$1"; then |
84 AC_REQUIRE([AC_PROG_INSTALL])dnl | 92 pkg_cv_[]$1="$$1" |
85 # test to see if srcdir already configured | 93 else |
86 if test "`cd $srcdir && pwd`" != "`pwd`" && | 94 PKG_CHECK_EXISTS([$3], |
87 test -f $srcdir/config.status; then | 95 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], |
88 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | 96 [pkg_failed=yes]) |
89 fi | 97 fi |
90 | 98 else |
91 # test whether we have cygpath | 99 pkg_failed=untried |
92 if test -z "$CYGPATH_W"; then | 100 fi[]dnl |
93 if (cygpath --version) >/dev/null 2>/dev/null; then | 101 ])# _PKG_CONFIG |
94 CYGPATH_W='cygpath -w' | 102 |
95 else | 103 # _PKG_SHORT_ERRORS_SUPPORTED |
96 CYGPATH_W=echo | 104 # ----------------------------- |
97 fi | 105 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
98 fi | 106 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
99 AC_SUBST([CYGPATH_W]) | 107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
100 | 108 _pkg_short_errors_supported=yes |
101 # Define the identity of the package. | 109 else |
102 dnl Distinguish between old-style and new-style calls. | 110 _pkg_short_errors_supported=no |
103 m4_ifval([$2], | 111 fi[]dnl |
104 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | 112 ])# _PKG_SHORT_ERRORS_SUPPORTED |
105 AC_SUBST([PACKAGE], [$1])dnl | 113 |
106 AC_SUBST([VERSION], [$2])], | 114 |
107 [_AM_SET_OPTIONS([$1])dnl | 115 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
108 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 116 # [ACTION-IF-NOT-FOUND]) |
109 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | 117 # |
110 | 118 # |
111 _AM_IF_OPTION([no-define],, | 119 # Note that if there is a possibility the first call to |
112 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | 120 # PKG_CHECK_MODULES might not happen, you should be sure to include an |
113 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | 121 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
114 | 122 # |
115 # Some tools Automake needs. | 123 # |
116 AC_REQUIRE([AM_SANITY_CHECK])dnl | 124 # -------------------------------------------------------------- |
117 AC_REQUIRE([AC_ARG_PROGRAM])dnl | 125 AC_DEFUN([PKG_CHECK_MODULES], |
118 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | 126 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
119 AM_MISSING_PROG(AUTOCONF, autoconf) | 127 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
120 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | 128 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
121 AM_MISSING_PROG(AUTOHEADER, autoheader) | 129 |
122 AM_MISSING_PROG(MAKEINFO, makeinfo) | 130 pkg_failed=no |
123 AM_MISSING_PROG(AMTAR, tar) | 131 AC_MSG_CHECKING([for $1]) |
124 AM_PROG_INSTALL_SH | 132 |
125 AM_PROG_INSTALL_STRIP | 133 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
126 # We need awk for the "check" target. The system "awk" is bad on | 134 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
127 # some platforms. | 135 |
128 AC_REQUIRE([AC_PROG_AWK])dnl | 136 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
129 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | 137 and $1[]_LIBS to avoid the need to call pkg-config. |
130 AC_REQUIRE([AM_SET_LEADING_DOT])dnl | 138 See the pkg-config man page for more details.]) |
131 | 139 |
132 _AM_IF_OPTION([no-dependencies],, | 140 if test $pkg_failed = yes; then |
133 [AC_PROVIDE_IFELSE([AC_PROG_CC], | 141 _PKG_SHORT_ERRORS_SUPPORTED |
134 [_AM_DEPENDENCIES(CC)], | 142 if test $_pkg_short_errors_supported = yes; then |
135 [define([AC_PROG_CC], | 143 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` |
136 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | 144 else |
137 AC_PROVIDE_IFELSE([AC_PROG_CXX], | 145 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` |
138 [_AM_DEPENDENCIES(CXX)], | 146 fi |
139 [define([AC_PROG_CXX], | 147 # Put the nasty error message in config.log where it belongs |
140 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | 148 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
141 ]) | 149 |
142 ]) | 150 ifelse([$4], , [AC_MSG_ERROR(dnl |
143 | 151 [Package requirements ($2) were not met: |
144 | 152 |
145 # When config.status generates a header, we must update the stamp-h file. | 153 $$1_PKG_ERRORS |
146 # This file resides in the same directory as the config header | 154 |
147 # that is generated. The stamp files are numbered to have different names. | 155 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
148 | 156 installed software in a non-standard prefix. |
149 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | 157 |
150 # loop where config.status creates the headers, so we can generate | 158 _PKG_TEXT |
151 # our stamp files there. | 159 ])], |
152 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | 160 [AC_MSG_RESULT([no]) |
153 [# Compute $1's index in $config_headers. | 161 $4]) |
154 _am_stamp_count=1 | 162 elif test $pkg_failed = untried; then |
155 for _am_header in $config_headers :; do | 163 ifelse([$4], , [AC_MSG_FAILURE(dnl |
156 case $_am_header in | 164 [The pkg-config script could not be found or is too old. Make sure it |
157 $1 | $1:* ) | 165 is in your PATH or set the PKG_CONFIG environment variable to the full |
158 break ;; | 166 path to pkg-config. |
159 * ) | 167 |
160 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 168 _PKG_TEXT |
161 esac | 169 |
162 done | 170 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], |
163 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | 171 [$4]) |
164 | 172 else |
165 # Copyright 2002 Free Software Foundation, Inc. | 173 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
166 | 174 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
167 # This program is free software; you can redistribute it and/or modify | 175 AC_MSG_RESULT([yes]) |
168 # it under the terms of the GNU General Public License as published by | 176 ifelse([$3], , :, [$3]) |
169 # the Free Software Foundation; either version 2, or (at your option) | 177 fi[]dnl |
170 # any later version. | 178 ])# PKG_CHECK_MODULES |
171 | 179 |
172 # This program is distributed in the hope that it will be useful, | 180 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
173 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 181 # |
174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 182 # This file is free software; the Free Software Foundation |
175 # GNU General Public License for more details. | 183 # gives unlimited permission to copy and/or distribute it, |
176 | 184 # with or without modifications, as long as this notice is preserved. |
177 # You should have received a copy of the GNU General Public License | |
178 # along with this program; if not, write to the Free Software | |
179 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
180 | 185 |
181 # AM_AUTOMAKE_VERSION(VERSION) | 186 # AM_AUTOMAKE_VERSION(VERSION) |
182 # ---------------------------- | 187 # ---------------------------- |
183 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 188 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
184 # generated from the m4 files accompanying Automake X.Y. | 189 # generated from the m4 files accompanying Automake X.Y. |
185 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) | 190 # (This private macro should not be called outside this file.) |
191 AC_DEFUN([AM_AUTOMAKE_VERSION], | |
192 [am__api_version='1.11' | |
193 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
194 dnl require some minimum version. Point them to the right macro. | |
195 m4_if([$1], [1.11.1], [], | |
196 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
197 ]) | |
198 | |
199 # _AM_AUTOCONF_VERSION(VERSION) | |
200 # ----------------------------- | |
201 # aclocal traces this macro to find the Autoconf version. | |
202 # This is a private macro too. Using m4_define simplifies | |
203 # the logic in aclocal, which can simply ignore this definition. | |
204 m4_define([_AM_AUTOCONF_VERSION], []) | |
186 | 205 |
187 # AM_SET_CURRENT_AUTOMAKE_VERSION | 206 # AM_SET_CURRENT_AUTOMAKE_VERSION |
188 # ------------------------------- | 207 # ------------------------------- |
189 # Call AM_AUTOMAKE_VERSION so it can be traced. | 208 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
190 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | 209 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
191 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 210 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
192 [AM_AUTOMAKE_VERSION([1.7.9])]) | 211 [AM_AUTOMAKE_VERSION([1.11.1])dnl |
193 | 212 m4_ifndef([AC_AUTOCONF_VERSION], |
194 # Helper functions for option handling. -*- Autoconf -*- | 213 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
195 | 214 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
196 # Copyright 2001, 2002 Free Software Foundation, Inc. | 215 |
197 | 216 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
198 # This program is free software; you can redistribute it and/or modify | 217 |
199 # it under the terms of the GNU General Public License as published by | 218 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
200 # the Free Software Foundation; either version 2, or (at your option) | 219 # |
201 # any later version. | 220 # This file is free software; the Free Software Foundation |
202 | 221 # gives unlimited permission to copy and/or distribute it, |
203 # This program is distributed in the hope that it will be useful, | 222 # with or without modifications, as long as this notice is preserved. |
204 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
206 # GNU General Public License for more details. | |
207 | |
208 # You should have received a copy of the GNU General Public License | |
209 # along with this program; if not, write to the Free Software | |
210 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
211 # 02111-1307, USA. | |
212 | |
213 # serial 2 | |
214 | |
215 # _AM_MANGLE_OPTION(NAME) | |
216 # ----------------------- | |
217 AC_DEFUN([_AM_MANGLE_OPTION], | |
218 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
219 | |
220 # _AM_SET_OPTION(NAME) | |
221 # ------------------------------ | |
222 # Set option NAME. Presently that only means defining a flag for this option. | |
223 AC_DEFUN([_AM_SET_OPTION], | |
224 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
225 | |
226 # _AM_SET_OPTIONS(OPTIONS) | |
227 # ---------------------------------- | |
228 # OPTIONS is a space-separated list of Automake options. | |
229 AC_DEFUN([_AM_SET_OPTIONS], | |
230 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
231 | |
232 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
233 # ------------------------------------------- | |
234 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
235 AC_DEFUN([_AM_IF_OPTION], | |
236 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
237 | |
238 # | |
239 # Check to make sure that the build environment is sane. | |
240 # | |
241 | |
242 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. | |
243 | |
244 # This program is free software; you can redistribute it and/or modify | |
245 # it under the terms of the GNU General Public License as published by | |
246 # the Free Software Foundation; either version 2, or (at your option) | |
247 # any later version. | |
248 | |
249 # This program is distributed in the hope that it will be useful, | |
250 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
252 # GNU General Public License for more details. | |
253 | |
254 # You should have received a copy of the GNU General Public License | |
255 # along with this program; if not, write to the Free Software | |
256 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
257 # 02111-1307, USA. | |
258 | |
259 # serial 3 | |
260 | |
261 # AM_SANITY_CHECK | |
262 # --------------- | |
263 AC_DEFUN([AM_SANITY_CHECK], | |
264 [AC_MSG_CHECKING([whether build environment is sane]) | |
265 # Just in case | |
266 sleep 1 | |
267 echo timestamp > conftest.file | |
268 # Do `set' in a subshell so we don't clobber the current shell's | |
269 # arguments. Must try -L first in case configure is actually a | |
270 # symlink; some systems play weird games with the mod time of symlinks | |
271 # (eg FreeBSD returns the mod time of the symlink's containing | |
272 # directory). | |
273 if ( | |
274 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
275 if test "$[*]" = "X"; then | |
276 # -L didn't work. | |
277 set X `ls -t $srcdir/configure conftest.file` | |
278 fi | |
279 rm -f conftest.file | |
280 if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
281 && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
282 | |
283 # If neither matched, then we have a broken ls. This can happen | |
284 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
285 # broken ls alias from the environment. This has actually | |
286 # happened. Such a system could not be considered "sane". | |
287 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
288 alias in your environment]) | |
289 fi | |
290 | |
291 test "$[2]" = conftest.file | |
292 ) | |
293 then | |
294 # Ok. | |
295 : | |
296 else | |
297 AC_MSG_ERROR([newly created file is older than distributed files! | |
298 Check your system clock]) | |
299 fi | |
300 AC_MSG_RESULT(yes)]) | |
301 | |
302 # -*- Autoconf -*- | |
303 | |
304 | |
305 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. | |
306 | |
307 # This program is free software; you can redistribute it and/or modify | |
308 # it under the terms of the GNU General Public License as published by | |
309 # the Free Software Foundation; either version 2, or (at your option) | |
310 # any later version. | |
311 | |
312 # This program is distributed in the hope that it will be useful, | |
313 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
315 # GNU General Public License for more details. | |
316 | |
317 # You should have received a copy of the GNU General Public License | |
318 # along with this program; if not, write to the Free Software | |
319 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
320 # 02111-1307, USA. | |
321 | |
322 # serial 3 | |
323 | |
324 # AM_MISSING_PROG(NAME, PROGRAM) | |
325 # ------------------------------ | |
326 AC_DEFUN([AM_MISSING_PROG], | |
327 [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
328 $1=${$1-"${am_missing_run}$2"} | |
329 AC_SUBST($1)]) | |
330 | |
331 | |
332 # AM_MISSING_HAS_RUN | |
333 # ------------------ | |
334 # Define MISSING if not defined so far and test if it supports --run. | |
335 # If it does, set am_missing_run to use it, otherwise, to nothing. | |
336 AC_DEFUN([AM_MISSING_HAS_RUN], | |
337 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
338 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
339 # Use eval to expand $SHELL | |
340 if eval "$MISSING --run true"; then | |
341 am_missing_run="$MISSING --run " | |
342 else | |
343 am_missing_run= | |
344 AC_MSG_WARN([`missing' script is too old or missing]) | |
345 fi | |
346 ]) | |
347 | |
348 # AM_AUX_DIR_EXPAND | |
349 | |
350 # Copyright 2001 Free Software Foundation, Inc. | |
351 | |
352 # This program is free software; you can redistribute it and/or modify | |
353 # it under the terms of the GNU General Public License as published by | |
354 # the Free Software Foundation; either version 2, or (at your option) | |
355 # any later version. | |
356 | |
357 # This program is distributed in the hope that it will be useful, | |
358 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
360 # GNU General Public License for more details. | |
361 | |
362 # You should have received a copy of the GNU General Public License | |
363 # along with this program; if not, write to the Free Software | |
364 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
365 # 02111-1307, USA. | |
366 | 223 |
367 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | 224 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
368 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | 225 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
369 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | 226 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
370 # | 227 # |
400 # | 257 # |
401 # Another solution, used here, is to always expand $ac_aux_dir to an | 258 # Another solution, used here, is to always expand $ac_aux_dir to an |
402 # absolute PATH. The drawback is that using absolute paths prevent a | 259 # absolute PATH. The drawback is that using absolute paths prevent a |
403 # configured tree to be moved without reconfiguration. | 260 # configured tree to be moved without reconfiguration. |
404 | 261 |
405 # Rely on autoconf to set up CDPATH properly. | 262 AC_DEFUN([AM_AUX_DIR_EXPAND], |
406 AC_PREREQ([2.50]) | 263 [dnl Rely on autoconf to set up CDPATH properly. |
407 | 264 AC_PREREQ([2.50])dnl |
408 AC_DEFUN([AM_AUX_DIR_EXPAND], [ | |
409 # expand $ac_aux_dir to an absolute path | 265 # expand $ac_aux_dir to an absolute path |
410 am_aux_dir=`cd $ac_aux_dir && pwd` | 266 am_aux_dir=`cd $ac_aux_dir && pwd` |
411 ]) | 267 ]) |
412 | 268 |
413 # AM_PROG_INSTALL_SH | 269 # AM_CONDITIONAL -*- Autoconf -*- |
414 # ------------------ | 270 |
415 # Define $install_sh. | 271 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
416 | 272 # Free Software Foundation, Inc. |
417 # Copyright 2001 Free Software Foundation, Inc. | 273 # |
418 | 274 # This file is free software; the Free Software Foundation |
419 # This program is free software; you can redistribute it and/or modify | 275 # gives unlimited permission to copy and/or distribute it, |
420 # it under the terms of the GNU General Public License as published by | 276 # with or without modifications, as long as this notice is preserved. |
421 # the Free Software Foundation; either version 2, or (at your option) | 277 |
422 # any later version. | 278 # serial 9 |
423 | 279 |
424 # This program is distributed in the hope that it will be useful, | 280 # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
425 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 281 # ------------------------------------- |
426 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 282 # Define a conditional. |
427 # GNU General Public License for more details. | 283 AC_DEFUN([AM_CONDITIONAL], |
428 | 284 [AC_PREREQ(2.52)dnl |
429 # You should have received a copy of the GNU General Public License | 285 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
430 # along with this program; if not, write to the Free Software | 286 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
431 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 287 AC_SUBST([$1_TRUE])dnl |
432 # 02111-1307, USA. | 288 AC_SUBST([$1_FALSE])dnl |
433 | 289 _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
434 AC_DEFUN([AM_PROG_INSTALL_SH], | 290 _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
435 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 291 m4_define([_AM_COND_VALUE_$1], [$2])dnl |
436 install_sh=${install_sh-"$am_aux_dir/install-sh"} | 292 if $2; then |
437 AC_SUBST(install_sh)]) | 293 $1_TRUE= |
438 | 294 $1_FALSE='#' |
439 # AM_PROG_INSTALL_STRIP | |
440 | |
441 # Copyright 2001 Free Software Foundation, Inc. | |
442 | |
443 # This program is free software; you can redistribute it and/or modify | |
444 # it under the terms of the GNU General Public License as published by | |
445 # the Free Software Foundation; either version 2, or (at your option) | |
446 # any later version. | |
447 | |
448 # This program is distributed in the hope that it will be useful, | |
449 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
451 # GNU General Public License for more details. | |
452 | |
453 # You should have received a copy of the GNU General Public License | |
454 # along with this program; if not, write to the Free Software | |
455 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
456 # 02111-1307, USA. | |
457 | |
458 # One issue with vendor `install' (even GNU) is that you can't | |
459 # specify the program used to strip binaries. This is especially | |
460 # annoying in cross-compiling environments, where the build's strip | |
461 # is unlikely to handle the host's binaries. | |
462 # Fortunately install-sh will honor a STRIPPROG variable, so we | |
463 # always use install-sh in `make install-strip', and initialize | |
464 # STRIPPROG with the value of the STRIP variable (set by the user). | |
465 AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
466 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
467 # Installed binaries are usually stripped using `strip' when the user | |
468 # run `make install-strip'. However `strip' might not be the right | |
469 # tool to use in cross-compilation environments, therefore Automake | |
470 # will honor the `STRIP' environment variable to overrule this program. | |
471 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
472 if test "$cross_compiling" != no; then | |
473 AC_CHECK_TOOL([STRIP], [strip], :) | |
474 fi | |
475 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
476 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
477 | |
478 # -*- Autoconf -*- | |
479 # Copyright (C) 2003 Free Software Foundation, Inc. | |
480 | |
481 # This program is free software; you can redistribute it and/or modify | |
482 # it under the terms of the GNU General Public License as published by | |
483 # the Free Software Foundation; either version 2, or (at your option) | |
484 # any later version. | |
485 | |
486 # This program is distributed in the hope that it will be useful, | |
487 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
489 # GNU General Public License for more details. | |
490 | |
491 # You should have received a copy of the GNU General Public License | |
492 # along with this program; if not, write to the Free Software | |
493 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
494 # 02111-1307, USA. | |
495 | |
496 # serial 1 | |
497 | |
498 # Check whether the underlying file-system supports filenames | |
499 # with a leading dot. For instance MS-DOS doesn't. | |
500 AC_DEFUN([AM_SET_LEADING_DOT], | |
501 [rm -rf .tst 2>/dev/null | |
502 mkdir .tst 2>/dev/null | |
503 if test -d .tst; then | |
504 am__leading_dot=. | |
505 else | 295 else |
506 am__leading_dot=_ | 296 $1_TRUE='#' |
507 fi | 297 $1_FALSE= |
508 rmdir .tst 2>/dev/null | 298 fi |
509 AC_SUBST([am__leading_dot])]) | 299 AC_CONFIG_COMMANDS_PRE( |
510 | 300 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
511 # serial 5 -*- Autoconf -*- | 301 AC_MSG_ERROR([[conditional "$1" was never defined. |
512 | 302 Usually this means the macro was only invoked conditionally.]]) |
513 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | 303 fi])]) |
514 | 304 |
515 # This program is free software; you can redistribute it and/or modify | 305 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 |
516 # it under the terms of the GNU General Public License as published by | 306 # Free Software Foundation, Inc. |
517 # the Free Software Foundation; either version 2, or (at your option) | 307 # |
518 # any later version. | 308 # This file is free software; the Free Software Foundation |
519 | 309 # gives unlimited permission to copy and/or distribute it, |
520 # This program is distributed in the hope that it will be useful, | 310 # with or without modifications, as long as this notice is preserved. |
521 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 311 |
522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 312 # serial 10 |
523 # GNU General Public License for more details. | |
524 | |
525 # You should have received a copy of the GNU General Public License | |
526 # along with this program; if not, write to the Free Software | |
527 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
528 # 02111-1307, USA. | |
529 | |
530 | 313 |
531 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | 314 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
532 # written in clear, in which case automake, when reading aclocal.m4, | 315 # written in clear, in which case automake, when reading aclocal.m4, |
533 # will think it sees a *use*, and therefore will trigger all it's | 316 # will think it sees a *use*, and therefore will trigger all it's |
534 # C support machinery. Also note that it means that autoscan, seeing | 317 # C support machinery. Also note that it means that autoscan, seeing |
535 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | 318 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
536 | |
537 | 319 |
538 | 320 |
539 # _AM_DEPENDENCIES(NAME) | 321 # _AM_DEPENDENCIES(NAME) |
540 # ---------------------- | 322 # ---------------------- |
541 # See how the compiler implements dependency checking. | 323 # See how the compiler implements dependency checking. |
553 AC_REQUIRE([AM_DEP_TRACK])dnl | 335 AC_REQUIRE([AM_DEP_TRACK])dnl |
554 | 336 |
555 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | 337 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
556 [$1], CXX, [depcc="$CXX" am_compiler_list=], | 338 [$1], CXX, [depcc="$CXX" am_compiler_list=], |
557 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | 339 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
340 [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
558 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | 341 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
559 [depcc="$$1" am_compiler_list=]) | 342 [depcc="$$1" am_compiler_list=]) |
560 | 343 |
561 AC_CACHE_CHECK([dependency style of $depcc], | 344 AC_CACHE_CHECK([dependency style of $depcc], |
562 [am_cv_$1_dependencies_compiler_type], | 345 [am_cv_$1_dependencies_compiler_type], |
581 | 364 |
582 am_cv_$1_dependencies_compiler_type=none | 365 am_cv_$1_dependencies_compiler_type=none |
583 if test "$am_compiler_list" = ""; then | 366 if test "$am_compiler_list" = ""; then |
584 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | 367 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
585 fi | 368 fi |
369 am__universal=false | |
370 m4_case([$1], [CC], | |
371 [case " $depcc " in #( | |
372 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
373 esac], | |
374 [CXX], | |
375 [case " $depcc " in #( | |
376 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
377 esac]) | |
378 | |
586 for depmode in $am_compiler_list; do | 379 for depmode in $am_compiler_list; do |
587 # Setup a source with many dependencies, because some compilers | 380 # Setup a source with many dependencies, because some compilers |
588 # like to wrap large dependency lists on column 80 (with \), and | 381 # like to wrap large dependency lists on column 80 (with \), and |
589 # we should not choose a depcomp mode which is confused by this. | 382 # we should not choose a depcomp mode which is confused by this. |
590 # | 383 # |
592 # overwrite some of them when testing with obscure command lines. | 385 # overwrite some of them when testing with obscure command lines. |
593 # This happens at least with the AIX C compiler. | 386 # This happens at least with the AIX C compiler. |
594 : > sub/conftest.c | 387 : > sub/conftest.c |
595 for i in 1 2 3 4 5 6; do | 388 for i in 1 2 3 4 5 6; do |
596 echo '#include "conftst'$i'.h"' >> sub/conftest.c | 389 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
597 : > sub/conftst$i.h | 390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
391 # Solaris 8's {/usr,}/bin/sh. | |
392 touch sub/conftst$i.h | |
598 done | 393 done |
599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
600 | 395 |
396 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
397 # mode. It turns out that the SunPro C++ compiler does not properly | |
398 # handle `-M -o', and we need to detect this. Also, some Intel | |
399 # versions had trouble with output in subdirs | |
400 am__obj=sub/conftest.${OBJEXT-o} | |
401 am__minus_obj="-o $am__obj" | |
601 case $depmode in | 402 case $depmode in |
403 gcc) | |
404 # This depmode causes a compiler race in universal mode. | |
405 test "$am__universal" = false || continue | |
406 ;; | |
602 nosideeffect) | 407 nosideeffect) |
603 # after this tag, mechanisms are not by side-effect, so they'll | 408 # after this tag, mechanisms are not by side-effect, so they'll |
604 # only be used when explicitly requested | 409 # only be used when explicitly requested |
605 if test "x$enable_dependency_tracking" = xyes; then | 410 if test "x$enable_dependency_tracking" = xyes; then |
606 continue | 411 continue |
607 else | 412 else |
608 break | 413 break |
609 fi | 414 fi |
610 ;; | 415 ;; |
416 msvisualcpp | msvcmsys) | |
417 # This compiler won't grok `-c -o', but also, the minuso test has | |
418 # not run yet. These depmodes are late enough in the game, and | |
419 # so weak that their functioning should not be impacted. | |
420 am__obj=conftest.${OBJEXT-o} | |
421 am__minus_obj= | |
422 ;; | |
611 none) break ;; | 423 none) break ;; |
612 esac | 424 esac |
613 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
614 # mode. It turns out that the SunPro C++ compiler does not properly | |
615 # handle `-M -o', and we need to detect this. | |
616 if depmode=$depmode \ | 425 if depmode=$depmode \ |
617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | 426 source=sub/conftest.c object=$am__obj \ |
618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | 428 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
620 >/dev/null 2>conftest.err && | 429 >/dev/null 2>conftest.err && |
430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | 432 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
624 # icc doesn't choke on unknown options, it will just issue warnings | 434 # icc doesn't choke on unknown options, it will just issue warnings |
625 # (even with -Werror). So we grep stderr for any message | 435 # or remarks (even with -Werror). So we grep stderr for any message |
626 # that says an option was ignored. | 436 # that says an option was ignored or not supported. |
627 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | 437 # When given -MP, icc 7.0 and 7.1 complain thusly: |
438 # icc: Command line warning: ignoring option '-M'; no argument required | |
439 # The diagnosis changed in icc 8.0: | |
440 # icc: Command line remark: option '-MP' not supported | |
441 if (grep 'ignoring option' conftest.err || | |
442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
628 am_cv_$1_dependencies_compiler_type=$depmode | 443 am_cv_$1_dependencies_compiler_type=$depmode |
629 break | 444 break |
630 fi | 445 fi |
631 fi | 446 fi |
632 done | 447 done |
656 | 471 |
657 # AM_DEP_TRACK | 472 # AM_DEP_TRACK |
658 # ------------ | 473 # ------------ |
659 AC_DEFUN([AM_DEP_TRACK], | 474 AC_DEFUN([AM_DEP_TRACK], |
660 [AC_ARG_ENABLE(dependency-tracking, | 475 [AC_ARG_ENABLE(dependency-tracking, |
661 [ --disable-dependency-tracking Speeds up one-time builds | 476 [ --disable-dependency-tracking speeds up one-time build |
662 --enable-dependency-tracking Do not reject slow dependency extractors]) | 477 --enable-dependency-tracking do not reject slow dependency extractors]) |
663 if test "x$enable_dependency_tracking" != xno; then | 478 if test "x$enable_dependency_tracking" != xno; then |
664 am_depcomp="$ac_aux_dir/depcomp" | 479 am_depcomp="$ac_aux_dir/depcomp" |
665 AMDEPBACKSLASH='\' | 480 AMDEPBACKSLASH='\' |
666 fi | 481 fi |
667 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | 482 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
668 AC_SUBST([AMDEPBACKSLASH]) | 483 AC_SUBST([AMDEPBACKSLASH])dnl |
484 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
669 ]) | 485 ]) |
670 | 486 |
671 # Generate code to set up dependency tracking. -*- Autoconf -*- | 487 # Generate code to set up dependency tracking. -*- Autoconf -*- |
672 | 488 |
673 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 489 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
674 | 490 # Free Software Foundation, Inc. |
675 # This program is free software; you can redistribute it and/or modify | 491 # |
676 # it under the terms of the GNU General Public License as published by | 492 # This file is free software; the Free Software Foundation |
677 # the Free Software Foundation; either version 2, or (at your option) | 493 # gives unlimited permission to copy and/or distribute it, |
678 # any later version. | 494 # with or without modifications, as long as this notice is preserved. |
679 | 495 |
680 # This program is distributed in the hope that it will be useful, | 496 #serial 5 |
681 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
683 # GNU General Public License for more details. | |
684 | |
685 # You should have received a copy of the GNU General Public License | |
686 # along with this program; if not, write to the Free Software | |
687 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
688 # 02111-1307, USA. | |
689 | |
690 #serial 2 | |
691 | 497 |
692 # _AM_OUTPUT_DEPENDENCY_COMMANDS | 498 # _AM_OUTPUT_DEPENDENCY_COMMANDS |
693 # ------------------------------ | 499 # ------------------------------ |
694 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | 500 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
695 [for mf in $CONFIG_FILES; do | 501 [{ |
696 # Strip MF so we end up with the name of the file. | 502 # Autoconf 2.62 quotes --file arguments for eval, but not when files |
697 mf=`echo "$mf" | sed -e 's/:.*$//'` | 503 # are listed without --file. Let's play safe and only enable the eval |
698 # Check whether this is an Automake generated Makefile or not. | 504 # if we detect the quoting. |
699 # We used to match only the files named `Makefile.in', but | 505 case $CONFIG_FILES in |
700 # some people rename them; so instead we look at the file content. | 506 *\'*) eval set x "$CONFIG_FILES" ;; |
701 # Grep'ing the first line is not enough: some people post-process | 507 *) set x $CONFIG_FILES ;; |
702 # each Makefile.in and add a new line on top of each file to say so. | 508 esac |
703 # So let's grep whole file. | 509 shift |
704 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | 510 for mf |
705 dirpart=`AS_DIRNAME("$mf")` | 511 do |
706 else | 512 # Strip MF so we end up with the name of the file. |
707 continue | 513 mf=`echo "$mf" | sed -e 's/:.*$//'` |
708 fi | 514 # Check whether this is an Automake generated Makefile or not. |
709 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue | 515 # We used to match only the files named `Makefile.in', but |
710 # Extract the definition of DEP_FILES from the Makefile without | 516 # some people rename them; so instead we look at the file content. |
711 # running `make'. | 517 # Grep'ing the first line is not enough: some people post-process |
712 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | 518 # each Makefile.in and add a new line on top of each file to say so. |
713 test -z "$DEPDIR" && continue | 519 # Grep'ing the whole file is not good either: AIX grep has a line |
714 # When using ansi2knr, U may be empty or an underscore; expand it | 520 # limit of 2048, but all sed's we know have understand at least 4000. |
715 U=`sed -n -e '/^U = / s///p' < "$mf"` | 521 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
716 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | 522 dirpart=`AS_DIRNAME("$mf")` |
717 # We invoke sed twice because it is the simplest approach to | 523 else |
718 # changing $(DEPDIR) to its actual value in the expansion. | 524 continue |
719 for file in `sed -n -e ' | 525 fi |
720 /^DEP_FILES = .*\\\\$/ { | 526 # Extract the definition of DEPDIR, am__include, and am__quote |
721 s/^DEP_FILES = // | 527 # from the Makefile without running `make'. |
722 :loop | 528 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
723 s/\\\\$// | 529 test -z "$DEPDIR" && continue |
724 p | 530 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
725 n | 531 test -z "am__include" && continue |
726 /\\\\$/ b loop | 532 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
727 p | 533 # When using ansi2knr, U may be empty or an underscore; expand it |
728 } | 534 U=`sed -n 's/^U = //p' < "$mf"` |
729 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | 535 # Find all dependency output files, they are included files with |
730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 536 # $(DEPDIR) in their names. We invoke sed twice because it is the |
731 # Make sure the directory exists. | 537 # simplest approach to changing $(DEPDIR) to its actual value in the |
732 test -f "$dirpart/$file" && continue | 538 # expansion. |
733 fdir=`AS_DIRNAME(["$file"])` | 539 for file in `sed -n " |
734 AS_MKDIR_P([$dirpart/$fdir]) | 540 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
735 # echo "creating $dirpart/$file" | 541 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
736 echo '# dummy' > "$dirpart/$file" | 542 # Make sure the directory exists. |
543 test -f "$dirpart/$file" && continue | |
544 fdir=`AS_DIRNAME(["$file"])` | |
545 AS_MKDIR_P([$dirpart/$fdir]) | |
546 # echo "creating $dirpart/$file" | |
547 echo '# dummy' > "$dirpart/$file" | |
548 done | |
737 done | 549 done |
738 done | 550 } |
739 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | 551 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
740 | 552 |
741 | 553 |
742 # AM_OUTPUT_DEPENDENCY_COMMANDS | 554 # AM_OUTPUT_DEPENDENCY_COMMANDS |
743 # ----------------------------- | 555 # ----------------------------- |
750 [AC_CONFIG_COMMANDS([depfiles], | 562 [AC_CONFIG_COMMANDS([depfiles], |
751 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | 563 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
752 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | 564 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
753 ]) | 565 ]) |
754 | 566 |
755 # Check to see how 'make' treats includes. -*- Autoconf -*- | 567 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
756 | 568 # Free Software Foundation, Inc. |
757 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | 569 # |
758 | 570 # This file is free software; the Free Software Foundation |
759 # This program is free software; you can redistribute it and/or modify | 571 # gives unlimited permission to copy and/or distribute it, |
760 # it under the terms of the GNU General Public License as published by | 572 # with or without modifications, as long as this notice is preserved. |
761 # the Free Software Foundation; either version 2, or (at your option) | 573 |
762 # any later version. | 574 # serial 8 |
763 | 575 |
764 # This program is distributed in the hope that it will be useful, | 576 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
765 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 577 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
766 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 578 |
767 # GNU General Public License for more details. | 579 # Do all the work for Automake. -*- Autoconf -*- |
768 | 580 |
769 # You should have received a copy of the GNU General Public License | 581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
770 # along with this program; if not, write to the Free Software | 582 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
771 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 583 # |
772 # 02111-1307, USA. | 584 # This file is free software; the Free Software Foundation |
585 # gives unlimited permission to copy and/or distribute it, | |
586 # with or without modifications, as long as this notice is preserved. | |
587 | |
588 # serial 16 | |
589 | |
590 # This macro actually does too much. Some checks are only needed if | |
591 # your package does certain things. But this isn't really a big deal. | |
592 | |
593 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
594 # AM_INIT_AUTOMAKE([OPTIONS]) | |
595 # ----------------------------------------------- | |
596 # The call with PACKAGE and VERSION arguments is the old style | |
597 # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
598 # and VERSION should now be passed to AC_INIT and removed from | |
599 # the call to AM_INIT_AUTOMAKE. | |
600 # We support both call styles for the transition. After | |
601 # the next Automake release, Autoconf can make the AC_INIT | |
602 # arguments mandatory, and then we can depend on a new Autoconf | |
603 # release and drop the old call support. | |
604 AC_DEFUN([AM_INIT_AUTOMAKE], | |
605 [AC_PREREQ([2.62])dnl | |
606 dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
607 dnl the ones we care about. | |
608 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
609 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
610 AC_REQUIRE([AC_PROG_INSTALL])dnl | |
611 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
613 # is not polluted with repeated "-I." | |
614 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
615 # test to see if srcdir already configured | |
616 if test -f $srcdir/config.status; then | |
617 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
618 fi | |
619 fi | |
620 | |
621 # test whether we have cygpath | |
622 if test -z "$CYGPATH_W"; then | |
623 if (cygpath --version) >/dev/null 2>/dev/null; then | |
624 CYGPATH_W='cygpath -w' | |
625 else | |
626 CYGPATH_W=echo | |
627 fi | |
628 fi | |
629 AC_SUBST([CYGPATH_W]) | |
630 | |
631 # Define the identity of the package. | |
632 dnl Distinguish between old-style and new-style calls. | |
633 m4_ifval([$2], | |
634 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
635 AC_SUBST([PACKAGE], [$1])dnl | |
636 AC_SUBST([VERSION], [$2])], | |
637 [_AM_SET_OPTIONS([$1])dnl | |
638 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
639 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
640 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
641 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
642 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
643 | |
644 _AM_IF_OPTION([no-define],, | |
645 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
646 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
647 | |
648 # Some tools Automake needs. | |
649 AC_REQUIRE([AM_SANITY_CHECK])dnl | |
650 AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
651 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
652 AM_MISSING_PROG(AUTOCONF, autoconf) | |
653 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
654 AM_MISSING_PROG(AUTOHEADER, autoheader) | |
655 AM_MISSING_PROG(MAKEINFO, makeinfo) | |
656 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
657 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
658 AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
659 # We need awk for the "check" target. The system "awk" is bad on | |
660 # some platforms. | |
661 AC_REQUIRE([AC_PROG_AWK])dnl | |
662 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
663 AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
664 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
665 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
666 [_AM_PROG_TAR([v7])])]) | |
667 _AM_IF_OPTION([no-dependencies],, | |
668 [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
669 [_AM_DEPENDENCIES(CC)], | |
670 [define([AC_PROG_CC], | |
671 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
672 AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
673 [_AM_DEPENDENCIES(CXX)], | |
674 [define([AC_PROG_CXX], | |
675 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
676 AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
677 [_AM_DEPENDENCIES(OBJC)], | |
678 [define([AC_PROG_OBJC], | |
679 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
680 ]) | |
681 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
682 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
683 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
684 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
685 AC_CONFIG_COMMANDS_PRE(dnl | |
686 [m4_provide_if([_AM_COMPILER_EXEEXT], | |
687 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
688 ]) | |
689 | |
690 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
691 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
692 dnl mangled by Autoconf and run in a shell conditional statement. | |
693 m4_define([_AC_COMPILER_EXEEXT], | |
694 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
695 | |
696 | |
697 # When config.status generates a header, we must update the stamp-h file. | |
698 # This file resides in the same directory as the config header | |
699 # that is generated. The stamp files are numbered to have different names. | |
700 | |
701 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
702 # loop where config.status creates the headers, so we can generate | |
703 # our stamp files there. | |
704 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
705 [# Compute $1's index in $config_headers. | |
706 _am_arg=$1 | |
707 _am_stamp_count=1 | |
708 for _am_header in $config_headers :; do | |
709 case $_am_header in | |
710 $_am_arg | $_am_arg:* ) | |
711 break ;; | |
712 * ) | |
713 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
714 esac | |
715 done | |
716 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
717 | |
718 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
719 # | |
720 # This file is free software; the Free Software Foundation | |
721 # gives unlimited permission to copy and/or distribute it, | |
722 # with or without modifications, as long as this notice is preserved. | |
723 | |
724 # AM_PROG_INSTALL_SH | |
725 # ------------------ | |
726 # Define $install_sh. | |
727 AC_DEFUN([AM_PROG_INSTALL_SH], | |
728 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
729 if test x"${install_sh}" != xset; then | |
730 case $am_aux_dir in | |
731 *\ * | *\ *) | |
732 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
733 *) | |
734 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
735 esac | |
736 fi | |
737 AC_SUBST(install_sh)]) | |
738 | |
739 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
740 # | |
741 # This file is free software; the Free Software Foundation | |
742 # gives unlimited permission to copy and/or distribute it, | |
743 # with or without modifications, as long as this notice is preserved. | |
773 | 744 |
774 # serial 2 | 745 # serial 2 |
746 | |
747 # Check whether the underlying file-system supports filenames | |
748 # with a leading dot. For instance MS-DOS doesn't. | |
749 AC_DEFUN([AM_SET_LEADING_DOT], | |
750 [rm -rf .tst 2>/dev/null | |
751 mkdir .tst 2>/dev/null | |
752 if test -d .tst; then | |
753 am__leading_dot=. | |
754 else | |
755 am__leading_dot=_ | |
756 fi | |
757 rmdir .tst 2>/dev/null | |
758 AC_SUBST([am__leading_dot])]) | |
759 | |
760 # Check to see how 'make' treats includes. -*- Autoconf -*- | |
761 | |
762 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
763 # | |
764 # This file is free software; the Free Software Foundation | |
765 # gives unlimited permission to copy and/or distribute it, | |
766 # with or without modifications, as long as this notice is preserved. | |
767 | |
768 # serial 4 | |
775 | 769 |
776 # AM_MAKE_INCLUDE() | 770 # AM_MAKE_INCLUDE() |
777 # ----------------- | 771 # ----------------- |
778 # Check to see how make treats includes. | 772 # Check to see how make treats includes. |
779 AC_DEFUN([AM_MAKE_INCLUDE], | 773 AC_DEFUN([AM_MAKE_INCLUDE], |
780 [am_make=${MAKE-make} | 774 [am_make=${MAKE-make} |
781 cat > confinc << 'END' | 775 cat > confinc << 'END' |
782 am__doit: | 776 am__doit: |
783 @echo done | 777 @echo this is the am__doit target |
784 .PHONY: am__doit | 778 .PHONY: am__doit |
785 END | 779 END |
786 # If we don't find an include directive, just comment out the code. | 780 # If we don't find an include directive, just comment out the code. |
787 AC_MSG_CHECKING([for style of include used by $am_make]) | 781 AC_MSG_CHECKING([for style of include used by $am_make]) |
788 am__include="#" | 782 am__include="#" |
789 am__quote= | 783 am__quote= |
790 _am_result=none | 784 _am_result=none |
791 # First try GNU make style include. | 785 # First try GNU make style include. |
792 echo "include confinc" > confmf | 786 echo "include confinc" > confmf |
793 # We grep out `Entering directory' and `Leaving directory' | 787 # Ignore all kinds of additional output from `make'. |
794 # messages which can occur if `w' ends up in MAKEFLAGS. | 788 case `$am_make -s -f confmf 2> /dev/null` in #( |
795 # In particular we don't look at `^make:' because GNU make might | 789 *the\ am__doit\ target*) |
796 # be invoked under some other name (usually "gmake"), in which | 790 am__include=include |
797 # case it prints its new name instead of `make'. | 791 am__quote= |
798 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | 792 _am_result=GNU |
799 am__include=include | 793 ;; |
800 am__quote= | 794 esac |
801 _am_result=GNU | |
802 fi | |
803 # Now try BSD make style include. | 795 # Now try BSD make style include. |
804 if test "$am__include" = "#"; then | 796 if test "$am__include" = "#"; then |
805 echo '.include "confinc"' > confmf | 797 echo '.include "confinc"' > confmf |
806 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | 798 case `$am_make -s -f confmf 2> /dev/null` in #( |
807 am__include=.include | 799 *the\ am__doit\ target*) |
808 am__quote="\"" | 800 am__include=.include |
809 _am_result=BSD | 801 am__quote="\"" |
810 fi | 802 _am_result=BSD |
803 ;; | |
804 esac | |
811 fi | 805 fi |
812 AC_SUBST([am__include]) | 806 AC_SUBST([am__include]) |
813 AC_SUBST([am__quote]) | 807 AC_SUBST([am__quote]) |
814 AC_MSG_RESULT([$_am_result]) | 808 AC_MSG_RESULT([$_am_result]) |
815 rm -f confinc confmf | 809 rm -f confinc confmf |
816 ]) | 810 ]) |
817 | 811 |
818 # AM_CONDITIONAL -*- Autoconf -*- | 812 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
819 | 813 |
820 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. | 814 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
821 | 815 # Free Software Foundation, Inc. |
822 # This program is free software; you can redistribute it and/or modify | 816 # |
823 # it under the terms of the GNU General Public License as published by | 817 # This file is free software; the Free Software Foundation |
824 # the Free Software Foundation; either version 2, or (at your option) | 818 # gives unlimited permission to copy and/or distribute it, |
825 # any later version. | 819 # with or without modifications, as long as this notice is preserved. |
826 | 820 |
827 # This program is distributed in the hope that it will be useful, | 821 # serial 6 |
828 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 822 |
829 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 823 # AM_MISSING_PROG(NAME, PROGRAM) |
830 # GNU General Public License for more details. | 824 # ------------------------------ |
831 | 825 AC_DEFUN([AM_MISSING_PROG], |
832 # You should have received a copy of the GNU General Public License | 826 [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
833 # along with this program; if not, write to the Free Software | 827 $1=${$1-"${am_missing_run}$2"} |
834 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 828 AC_SUBST($1)]) |
835 # 02111-1307, USA. | 829 |
830 | |
831 # AM_MISSING_HAS_RUN | |
832 # ------------------ | |
833 # Define MISSING if not defined so far and test if it supports --run. | |
834 # If it does, set am_missing_run to use it, otherwise, to nothing. | |
835 AC_DEFUN([AM_MISSING_HAS_RUN], | |
836 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
837 AC_REQUIRE_AUX_FILE([missing])dnl | |
838 if test x"${MISSING+set}" != xset; then | |
839 case $am_aux_dir in | |
840 *\ * | *\ *) | |
841 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
842 *) | |
843 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
844 esac | |
845 fi | |
846 # Use eval to expand $SHELL | |
847 if eval "$MISSING --run true"; then | |
848 am_missing_run="$MISSING --run " | |
849 else | |
850 am_missing_run= | |
851 AC_MSG_WARN([`missing' script is too old or missing]) | |
852 fi | |
853 ]) | |
854 | |
855 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
856 # | |
857 # This file is free software; the Free Software Foundation | |
858 # gives unlimited permission to copy and/or distribute it, | |
859 # with or without modifications, as long as this notice is preserved. | |
860 | |
861 # AM_PROG_MKDIR_P | |
862 # --------------- | |
863 # Check for `mkdir -p'. | |
864 AC_DEFUN([AM_PROG_MKDIR_P], | |
865 [AC_PREREQ([2.60])dnl | |
866 AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
867 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
868 dnl while keeping a definition of mkdir_p for backward compatibility. | |
869 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
870 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
871 dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
872 dnl adjustment using top_builddir (which is defined more often than | |
873 dnl MKDIR_P). | |
874 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
875 case $mkdir_p in | |
876 [[\\/$]]* | ?:[[\\/]]*) ;; | |
877 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
878 esac | |
879 ]) | |
880 | |
881 # Helper functions for option handling. -*- Autoconf -*- | |
882 | |
883 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
884 # | |
885 # This file is free software; the Free Software Foundation | |
886 # gives unlimited permission to copy and/or distribute it, | |
887 # with or without modifications, as long as this notice is preserved. | |
888 | |
889 # serial 4 | |
890 | |
891 # _AM_MANGLE_OPTION(NAME) | |
892 # ----------------------- | |
893 AC_DEFUN([_AM_MANGLE_OPTION], | |
894 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
895 | |
896 # _AM_SET_OPTION(NAME) | |
897 # ------------------------------ | |
898 # Set option NAME. Presently that only means defining a flag for this option. | |
899 AC_DEFUN([_AM_SET_OPTION], | |
900 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
901 | |
902 # _AM_SET_OPTIONS(OPTIONS) | |
903 # ---------------------------------- | |
904 # OPTIONS is a space-separated list of Automake options. | |
905 AC_DEFUN([_AM_SET_OPTIONS], | |
906 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
907 | |
908 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
909 # ------------------------------------------- | |
910 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
911 AC_DEFUN([_AM_IF_OPTION], | |
912 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
913 | |
914 # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
915 | |
916 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
917 # Free Software Foundation, Inc. | |
918 # | |
919 # This file is free software; the Free Software Foundation | |
920 # gives unlimited permission to copy and/or distribute it, | |
921 # with or without modifications, as long as this notice is preserved. | |
836 | 922 |
837 # serial 5 | 923 # serial 5 |
838 | 924 |
839 AC_PREREQ(2.52) | 925 # AM_SANITY_CHECK |
840 | 926 # --------------- |
841 # AM_CONDITIONAL(NAME, SHELL-CONDITION) | 927 AC_DEFUN([AM_SANITY_CHECK], |
842 # ------------------------------------- | 928 [AC_MSG_CHECKING([whether build environment is sane]) |
843 # Define a conditional. | 929 # Just in case |
844 AC_DEFUN([AM_CONDITIONAL], | 930 sleep 1 |
845 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | 931 echo timestamp > conftest.file |
846 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | 932 # Reject unsafe characters in $srcdir or the absolute working directory |
847 AC_SUBST([$1_TRUE]) | 933 # name. Accept space and tab only in the latter. |
848 AC_SUBST([$1_FALSE]) | 934 am_lf=' |
849 if $2; then | 935 ' |
850 $1_TRUE= | 936 case `pwd` in |
851 $1_FALSE='#' | 937 *[[\\\"\#\$\&\'\`$am_lf]]*) |
938 AC_MSG_ERROR([unsafe absolute working directory name]);; | |
939 esac | |
940 case $srcdir in | |
941 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
942 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
943 esac | |
944 | |
945 # Do `set' in a subshell so we don't clobber the current shell's | |
946 # arguments. Must try -L first in case configure is actually a | |
947 # symlink; some systems play weird games with the mod time of symlinks | |
948 # (eg FreeBSD returns the mod time of the symlink's containing | |
949 # directory). | |
950 if ( | |
951 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
952 if test "$[*]" = "X"; then | |
953 # -L didn't work. | |
954 set X `ls -t "$srcdir/configure" conftest.file` | |
955 fi | |
956 rm -f conftest.file | |
957 if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
958 && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
959 | |
960 # If neither matched, then we have a broken ls. This can happen | |
961 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
962 # broken ls alias from the environment. This has actually | |
963 # happened. Such a system could not be considered "sane". | |
964 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
965 alias in your environment]) | |
966 fi | |
967 | |
968 test "$[2]" = conftest.file | |
969 ) | |
970 then | |
971 # Ok. | |
972 : | |
852 else | 973 else |
853 $1_TRUE='#' | 974 AC_MSG_ERROR([newly created file is older than distributed files! |
854 $1_FALSE= | 975 Check your system clock]) |
855 fi | 976 fi |
856 AC_CONFIG_COMMANDS_PRE( | 977 AC_MSG_RESULT(yes)]) |
857 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | 978 |
858 AC_MSG_ERROR([conditional "$1" was never defined. | 979 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
859 Usually this means the macro was only invoked conditionally.]) | 980 # |
860 fi])]) | 981 # This file is free software; the Free Software Foundation |
861 | 982 # gives unlimited permission to copy and/or distribute it, |
862 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | 983 # with or without modifications, as long as this notice is preserved. |
863 # | 984 |
864 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | 985 # AM_PROG_INSTALL_STRIP |
865 # | 986 # --------------------- |
866 # This program is free software; you can redistribute it and/or modify | 987 # One issue with vendor `install' (even GNU) is that you can't |
867 # it under the terms of the GNU General Public License as published by | 988 # specify the program used to strip binaries. This is especially |
868 # the Free Software Foundation; either version 2 of the License, or | 989 # annoying in cross-compiling environments, where the build's strip |
869 # (at your option) any later version. | 990 # is unlikely to handle the host's binaries. |
870 # | 991 # Fortunately install-sh will honor a STRIPPROG variable, so we |
871 # This program is distributed in the hope that it will be useful, but | 992 # always use install-sh in `make install-strip', and initialize |
872 # WITHOUT ANY WARRANTY; without even the implied warranty of | 993 # STRIPPROG with the value of the STRIP variable (set by the user). |
873 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 994 AC_DEFUN([AM_PROG_INSTALL_STRIP], |
874 # General Public License for more details. | 995 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
875 # | 996 # Installed binaries are usually stripped using `strip' when the user |
876 # You should have received a copy of the GNU General Public License | 997 # run `make install-strip'. However `strip' might not be the right |
877 # along with this program; if not, write to the Free Software | 998 # tool to use in cross-compilation environments, therefore Automake |
878 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 999 # will honor the `STRIP' environment variable to overrule this program. |
879 # | 1000 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
880 # As a special exception to the GNU General Public License, if you | 1001 if test "$cross_compiling" != no; then |
881 # distribute this file as part of a program that contains a | 1002 AC_CHECK_TOOL([STRIP], [strip], :) |
882 # configuration script generated by Autoconf, you may include it under | 1003 fi |
883 # the same distribution terms that you use for the rest of that program. | 1004 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
884 | 1005 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
885 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | 1006 |
886 # ---------------------------------- | 1007 # Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
887 AC_DEFUN([PKG_PROG_PKG_CONFIG], | 1008 # |
888 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | 1009 # This file is free software; the Free Software Foundation |
889 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | 1010 # gives unlimited permission to copy and/or distribute it, |
890 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl | 1011 # with or without modifications, as long as this notice is preserved. |
891 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 1012 |
892 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | 1013 # serial 2 |
893 fi | 1014 |
894 if test -n "$PKG_CONFIG"; then | 1015 # _AM_SUBST_NOTMAKE(VARIABLE) |
895 _pkg_min_version=m4_default([$1], [0.9.0]) | 1016 # --------------------------- |
896 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | 1017 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
897 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 1018 # This macro is traced by Automake. |
898 AC_MSG_RESULT([yes]) | 1019 AC_DEFUN([_AM_SUBST_NOTMAKE]) |
899 else | 1020 |
900 AC_MSG_RESULT([no]) | 1021 # AM_SUBST_NOTMAKE(VARIABLE) |
901 PKG_CONFIG="" | 1022 # --------------------------- |
902 fi | 1023 # Public sister of _AM_SUBST_NOTMAKE. |
903 | 1024 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
904 fi[]dnl | 1025 |
905 ])# PKG_PROG_PKG_CONFIG | 1026 # Check how to create a tarball. -*- Autoconf -*- |
906 | 1027 |
907 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | 1028 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
908 # | 1029 # |
909 # Check to see whether a particular set of modules exists. Similar | 1030 # This file is free software; the Free Software Foundation |
910 # to PKG_CHECK_MODULES(), but does not set variables or print errors. | 1031 # gives unlimited permission to copy and/or distribute it, |
911 # | 1032 # with or without modifications, as long as this notice is preserved. |
912 # | 1033 |
913 # Similar to PKG_CHECK_MODULES, make sure that the first instance of | 1034 # serial 2 |
914 # this or PKG_CHECK_MODULES is called, or make sure to call | 1035 |
915 # PKG_CHECK_EXISTS manually | 1036 # _AM_PROG_TAR(FORMAT) |
916 # -------------------------------------------------------------- | 1037 # -------------------- |
917 AC_DEFUN([PKG_CHECK_EXISTS], | 1038 # Check how to create a tarball in format FORMAT. |
918 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 1039 # FORMAT should be one of `v7', `ustar', or `pax'. |
919 if test -n "$PKG_CONFIG" && \ | 1040 # |
920 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | 1041 # Substitute a variable $(am__tar) that is a command |
921 m4_ifval([$2], [$2], [:]) | 1042 # writing to stdout a FORMAT-tarball containing the directory |
922 m4_ifvaln([$3], [else | 1043 # $tardir. |
923 $3])dnl | 1044 # tardir=directory && $(am__tar) > result.tar |
924 fi]) | 1045 # |
925 | 1046 # Substitute a variable $(am__untar) that extract such |
926 | 1047 # a tarball read from stdin. |
927 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | 1048 # $(am__untar) < result.tar |
928 # --------------------------------------------- | 1049 AC_DEFUN([_AM_PROG_TAR], |
929 m4_define([_PKG_CONFIG], | 1050 [# Always define AMTAR for backward compatibility. |
930 [if test -n "$PKG_CONFIG"; then | 1051 AM_MISSING_PROG([AMTAR], [tar]) |
931 if test -n "$$1"; then | 1052 m4_if([$1], [v7], |
932 pkg_cv_[]$1="$$1" | 1053 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
933 else | 1054 [m4_case([$1], [ustar],, [pax],, |
934 PKG_CHECK_EXISTS([$3], | 1055 [m4_fatal([Unknown tar format])]) |
935 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | 1056 AC_MSG_CHECKING([how to create a $1 tar archive]) |
936 [pkg_failed=yes]) | 1057 # Loop over all known methods to create a tar archive until one works. |
937 fi | 1058 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
938 else | 1059 _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
939 pkg_failed=untried | 1060 # Do not fold the above two line into one, because Tru64 sh and |
940 fi[]dnl | 1061 # Solaris sh will not grok spaces in the rhs of `-'. |
941 ])# _PKG_CONFIG | 1062 for _am_tool in $_am_tools |
942 | 1063 do |
943 # _PKG_SHORT_ERRORS_SUPPORTED | 1064 case $_am_tool in |
944 # ----------------------------- | 1065 gnutar) |
945 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | 1066 for _am_tar in tar gnutar gtar; |
946 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | 1067 do |
947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 1068 AM_RUN_LOG([$_am_tar --version]) && break |
948 _pkg_short_errors_supported=yes | 1069 done |
949 else | 1070 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
950 _pkg_short_errors_supported=no | 1071 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
951 fi[]dnl | 1072 am__untar="$_am_tar -xf -" |
952 ])# _PKG_SHORT_ERRORS_SUPPORTED | 1073 ;; |
953 | 1074 plaintar) |
954 | 1075 # Must skip GNU tar: if it does not support --format= it doesn't create |
955 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | 1076 # ustar tarball either. |
956 # [ACTION-IF-NOT-FOUND]) | 1077 (tar --version) >/dev/null 2>&1 && continue |
957 # | 1078 am__tar='tar chf - "$$tardir"' |
958 # | 1079 am__tar_='tar chf - "$tardir"' |
959 # Note that if there is a possibility the first call to | 1080 am__untar='tar xf -' |
960 # PKG_CHECK_MODULES might not happen, you should be sure to include an | 1081 ;; |
961 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | 1082 pax) |
962 # | 1083 am__tar='pax -L -x $1 -w "$$tardir"' |
963 # | 1084 am__tar_='pax -L -x $1 -w "$tardir"' |
964 # -------------------------------------------------------------- | 1085 am__untar='pax -r' |
965 AC_DEFUN([PKG_CHECK_MODULES], | 1086 ;; |
966 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | 1087 cpio) |
967 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | 1088 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
968 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | 1089 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
969 | 1090 am__untar='cpio -i -H $1 -d' |
970 pkg_failed=no | 1091 ;; |
971 AC_MSG_CHECKING([for $1]) | 1092 none) |
972 | 1093 am__tar=false |
973 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | 1094 am__tar_=false |
974 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | 1095 am__untar=false |
975 | 1096 ;; |
976 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | 1097 esac |
977 and $1[]_LIBS to avoid the need to call pkg-config. | 1098 |
978 See the pkg-config man page for more details.]) | 1099 # If the value was cached, stop now. We just wanted to have am__tar |
979 | 1100 # and am__untar set. |
980 if test $pkg_failed = yes; then | 1101 test -n "${am_cv_prog_tar_$1}" && break |
981 _PKG_SHORT_ERRORS_SUPPORTED | 1102 |
982 if test $_pkg_short_errors_supported = yes; then | 1103 # tar/untar a dummy directory, and stop if the command works |
983 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` | 1104 rm -rf conftest.dir |
984 else | 1105 mkdir conftest.dir |
985 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | 1106 echo GrepMe > conftest.dir/file |
986 fi | 1107 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
987 # Put the nasty error message in config.log where it belongs | 1108 rm -rf conftest.dir |
988 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | 1109 if test -s conftest.tar; then |
989 | 1110 AM_RUN_LOG([$am__untar <conftest.tar]) |
990 ifelse([$4], , [AC_MSG_ERROR(dnl | 1111 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
991 [Package requirements ($2) were not met: | 1112 fi |
992 | 1113 done |
993 $$1_PKG_ERRORS | 1114 rm -rf conftest.dir |
994 | 1115 |
995 Consider adjusting the PKG_CONFIG_PATH environment variable if you | 1116 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
996 installed software in a non-standard prefix. | 1117 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
997 | 1118 AC_SUBST([am__tar]) |
998 _PKG_TEXT | 1119 AC_SUBST([am__untar]) |
999 ])], | 1120 ]) # _AM_PROG_TAR |
1000 [AC_MSG_RESULT([no]) | 1121 |
1001 $4]) | |
1002 elif test $pkg_failed = untried; then | |
1003 ifelse([$4], , [AC_MSG_FAILURE(dnl | |
1004 [The pkg-config script could not be found or is too old. Make sure it | |
1005 is in your PATH or set the PKG_CONFIG environment variable to the full | |
1006 path to pkg-config. | |
1007 | |
1008 _PKG_TEXT | |
1009 | |
1010 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], | |
1011 [$4]) | |
1012 else | |
1013 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
1014 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
1015 AC_MSG_RESULT([yes]) | |
1016 ifelse([$3], , :, [$3]) | |
1017 fi[]dnl | |
1018 ])# PKG_CHECK_MODULES | |
1019 |