]>
Commit | Line | Data |
---|---|---|
872d8fea | 1 | # generated automatically by aclocal 1.9.3 -*- Autoconf -*- |
b2dad0e3 | 2 | |
872d8fea PC |
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 |
4 | # Free Software Foundation, Inc. | |
ff66d28f PE |
5 | # This file is free software; the Free Software Foundation |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
b2dad0e3 | 8 | |
ff66d28f PE |
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 | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
872d8fea PC |
14 | # -*- Autoconf -*- |
15 | # Copyright (C) 2002, 2003 Free Software Foundation, Inc. | |
16 | # Generated from amversion.in; do not edit by hand. | |
17 | ||
18 | # 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 | |
20 | # the Free Software Foundation; either version 2, or (at your option) | |
21 | # any later version. | |
22 | ||
23 | # This program is distributed in the hope that it will be useful, | |
24 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | # GNU General Public License for more details. | |
27 | ||
28 | # You should have received a copy of the GNU General Public License | |
29 | # along with this program; if not, write to the Free Software | |
83f51799 | 30 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
92eabea2 | 31 | |
7eaf73d7 KC |
32 | # AM_AUTOMAKE_VERSION(VERSION) |
33 | # ---------------------------- | |
34 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
35 | # generated from the m4 files accompanying Automake X.Y. | |
a60945f8 | 36 | AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) |
92eabea2 | 37 | |
7eaf73d7 KC |
38 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
39 | # ------------------------------- | |
40 | # Call AM_AUTOMAKE_VERSION so it can be traced. | |
41 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |
42 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
872d8fea | 43 | [AM_AUTOMAKE_VERSION([1.9.3])]) |
ff66d28f | 44 | |
872d8fea | 45 | # AM_AUX_DIR_EXPAND |
ff66d28f | 46 | |
872d8fea PC |
47 | # Copyright (C) 2001, 2003 Free Software Foundation, Inc. |
48 | ||
49 | # This program is free software; you can redistribute it and/or modify | |
50 | # it under the terms of the GNU General Public License as published by | |
51 | # the Free Software Foundation; either version 2, or (at your option) | |
52 | # any later version. | |
53 | ||
54 | # This program is distributed in the hope that it will be useful, | |
55 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
56 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
57 | # GNU General Public License for more details. | |
58 | ||
59 | # You should have received a copy of the GNU General Public License | |
60 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
61 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
62 | # 02110-1301, USA. | |
ff66d28f | 63 | |
7eaf73d7 KC |
64 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
65 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
66 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
67 | # | |
68 | # Of course, Automake must honor this variable whenever it calls a | |
69 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
70 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
71 | # depending on how configure is run. This is pretty annoying, since | |
72 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
73 | # source directory, any form will work fine, but in subdirectories a | |
74 | # relative path needs to be adjusted first. | |
75 | # | |
76 | # $ac_aux_dir/missing | |
77 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
78 | # $top_srcdir/$ac_aux_dir/missing | |
79 | # fails if $ac_aux_dir is absolute, | |
80 | # fails when called from a subdirectory in a VPATH build with | |
81 | # a relative $ac_aux_dir | |
82 | # | |
83 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
84 | # are both prefixed by $srcdir. In an in-source build this is usually | |
85 | # harmless because $srcdir is `.', but things will broke when you | |
86 | # start a VPATH build or use an absolute $srcdir. | |
87 | # | |
88 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
89 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
90 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
91 | # and then we would define $MISSING as | |
92 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
93 | # This will work as long as MISSING is not called from configure, because | |
94 | # unfortunately $(top_srcdir) has no meaning in configure. | |
95 | # However there are other variables, like CC, which are often used in | |
96 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
97 | # | |
98 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
99 | # absolute PATH. The drawback is that using absolute paths prevent a | |
100 | # configured tree to be moved without reconfiguration. | |
ff66d28f | 101 | |
7eaf73d7 KC |
102 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
103 | [dnl Rely on autoconf to set up CDPATH properly. | |
104 | AC_PREREQ([2.50])dnl | |
105 | # expand $ac_aux_dir to an absolute path | |
106 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
107 | ]) | |
37cea034 | 108 | |
872d8fea | 109 | # AM_CONDITIONAL -*- Autoconf -*- |
ff66d28f | 110 | |
872d8fea PC |
111 | # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. |
112 | ||
113 | # This program is free software; you can redistribute it and/or modify | |
114 | # it under the terms of the GNU General Public License as published by | |
115 | # the Free Software Foundation; either version 2, or (at your option) | |
116 | # any later version. | |
117 | ||
118 | # This program is distributed in the hope that it will be useful, | |
119 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
120 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
121 | # GNU General Public License for more details. | |
122 | ||
123 | # You should have received a copy of the GNU General Public License | |
124 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
125 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
126 | # 02110-1301, USA. | |
ff66d28f | 127 | |
872d8fea | 128 | # serial 6 |
4c24b21a | 129 | |
7eaf73d7 KC |
130 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
131 | # ------------------------------------- | |
132 | # Define a conditional. | |
133 | AC_DEFUN([AM_CONDITIONAL], | |
134 | [AC_PREREQ(2.52)dnl | |
135 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
136 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
137 | AC_SUBST([$1_TRUE]) | |
138 | AC_SUBST([$1_FALSE]) | |
139 | if $2; then | |
140 | $1_TRUE= | |
141 | $1_FALSE='#' | |
ec2075e9 | 142 | else |
7eaf73d7 KC |
143 | $1_TRUE='#' |
144 | $1_FALSE= | |
ec2075e9 | 145 | fi |
7eaf73d7 KC |
146 | AC_CONFIG_COMMANDS_PRE( |
147 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
a60945f8 PC |
148 | AC_MSG_ERROR([[conditional "$1" was never defined. |
149 | Usually this means the macro was only invoked conditionally.]]) | |
7eaf73d7 | 150 | fi])]) |
ff66d28f | 151 | |
872d8fea PC |
152 | # Do all the work for Automake. -*- Autoconf -*- |
153 | ||
154 | # This macro actually does too much some checks are only needed if | |
155 | # your package does certain things. But this isn't really a big deal. | |
ff66d28f | 156 | |
872d8fea | 157 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 |
ff66d28f PE |
158 | # Free Software Foundation, Inc. |
159 | ||
872d8fea PC |
160 | # This program is free software; you can redistribute it and/or modify |
161 | # it under the terms of the GNU General Public License as published by | |
162 | # the Free Software Foundation; either version 2, or (at your option) | |
163 | # any later version. | |
ff66d28f | 164 | |
872d8fea PC |
165 | # This program is distributed in the hope that it will be useful, |
166 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
167 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
168 | # GNU General Public License for more details. | |
169 | ||
170 | # You should have received a copy of the GNU General Public License | |
171 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
172 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
173 | # 02110-1301, USA. | |
872d8fea PC |
174 | |
175 | # serial 11 | |
ff66d28f PE |
176 | |
177 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
178 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
179 | # ----------------------------------------------- | |
180 | # The call with PACKAGE and VERSION arguments is the old style | |
181 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
182 | # and VERSION should now be passed to AC_INIT and removed from | |
183 | # the call to AM_INIT_AUTOMAKE. | |
184 | # We support both call styles for the transition. After | |
185 | # the next Automake release, Autoconf can make the AC_INIT | |
186 | # arguments mandatory, and then we can depend on a new Autoconf | |
187 | # release and drop the old call support. | |
9a56333e | 188 | AC_DEFUN([AM_INIT_AUTOMAKE], |
7eaf73d7 KC |
189 | [AC_PREREQ([2.58])dnl |
190 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
191 | dnl the ones we care about. | |
192 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
193 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
194 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
ff66d28f PE |
195 | # test to see if srcdir already configured |
196 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
197 | test -f $srcdir/config.status; then | |
b2dad0e3 BK |
198 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
199 | fi | |
ff66d28f PE |
200 | |
201 | # test whether we have cygpath | |
202 | if test -z "$CYGPATH_W"; then | |
203 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
204 | CYGPATH_W='cygpath -w' | |
205 | else | |
206 | CYGPATH_W=echo | |
207 | fi | |
208 | fi | |
209 | AC_SUBST([CYGPATH_W]) | |
210 | ||
211 | # Define the identity of the package. | |
212 | dnl Distinguish between old-style and new-style calls. | |
213 | m4_ifval([$2], | |
214 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
215 | AC_SUBST([PACKAGE], [$1])dnl | |
216 | AC_SUBST([VERSION], [$2])], | |
217 | [_AM_SET_OPTIONS([$1])dnl | |
218 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
219 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
220 | ||
221 | _AM_IF_OPTION([no-define],, | |
222 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
223 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
224 | ||
225 | # Some tools Automake needs. | |
226 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
227 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
228 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
229 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
230 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
231 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
232 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
ff66d28f PE |
233 | AM_PROG_INSTALL_SH |
234 | AM_PROG_INSTALL_STRIP | |
7eaf73d7 | 235 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
ff66d28f PE |
236 | # We need awk for the "check" target. The system "awk" is bad on |
237 | # some platforms. | |
238 | AC_REQUIRE([AC_PROG_AWK])dnl | |
239 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
240 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
a60945f8 PC |
241 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
242 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
243 | [_AM_PROG_TAR([v7])])]) | |
ff66d28f PE |
244 | _AM_IF_OPTION([no-dependencies],, |
245 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
246 | [_AM_DEPENDENCIES(CC)], | |
247 | [define([AC_PROG_CC], | |
248 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
249 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
250 | [_AM_DEPENDENCIES(CXX)], | |
251 | [define([AC_PROG_CXX], | |
252 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
253 | ]) | |
254 | ]) | |
255 | ||
256 | ||
257 | # When config.status generates a header, we must update the stamp-h file. | |
258 | # This file resides in the same directory as the config header | |
259 | # that is generated. The stamp files are numbered to have different names. | |
260 | ||
261 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
262 | # loop where config.status creates the headers, so we can generate | |
263 | # our stamp files there. | |
264 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
265 | [# Compute $1's index in $config_headers. | |
266 | _am_stamp_count=1 | |
267 | for _am_header in $config_headers :; do | |
268 | case $_am_header in | |
269 | $1 | $1:* ) | |
270 | break ;; | |
271 | * ) | |
272 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
273 | esac | |
274 | done | |
275 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | |
b2dad0e3 | 276 | |
7eaf73d7 KC |
277 | # AM_PROG_INSTALL_SH |
278 | # ------------------ | |
279 | # Define $install_sh. | |
280 | ||
281 | # Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
d8be2871 PE |
282 | |
283 | # This program is free software; you can redistribute it and/or modify | |
284 | # it under the terms of the GNU General Public License as published by | |
285 | # the Free Software Foundation; either version 2, or (at your option) | |
286 | # any later version. | |
287 | ||
288 | # This program is distributed in the hope that it will be useful, | |
289 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
290 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
291 | # GNU General Public License for more details. | |
292 | ||
293 | # You should have received a copy of the GNU General Public License | |
294 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
295 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
296 | # 02110-1301, USA. | |
d8be2871 | 297 | |
7eaf73d7 KC |
298 | AC_DEFUN([AM_PROG_INSTALL_SH], |
299 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
300 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
301 | AC_SUBST(install_sh)]) | |
d8be2871 | 302 | |
872d8fea | 303 | # Add --enable-maintainer-mode option to configure. |
7eaf73d7 KC |
304 | # From Jim Meyering |
305 | ||
872d8fea | 306 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004 |
7eaf73d7 KC |
307 | # Free Software Foundation, Inc. |
308 | ||
872d8fea PC |
309 | # This program is free software; you can redistribute it and/or modify |
310 | # it under the terms of the GNU General Public License as published by | |
311 | # the Free Software Foundation; either version 2, or (at your option) | |
312 | # any later version. | |
313 | ||
314 | # This program is distributed in the hope that it will be useful, | |
315 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
316 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
317 | # GNU General Public License for more details. | |
318 | ||
319 | # You should have received a copy of the GNU General Public License | |
320 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
321 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
322 | # 02110-1301, USA. | |
872d8fea PC |
323 | |
324 | # serial 3 | |
7eaf73d7 KC |
325 | |
326 | AC_DEFUN([AM_MAINTAINER_MODE], | |
327 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | |
328 | dnl maintainer-mode is disabled by default | |
329 | AC_ARG_ENABLE(maintainer-mode, | |
330 | [ --enable-maintainer-mode enable make rules and dependencies not useful | |
331 | (and sometimes confusing) to the casual installer], | |
332 | USE_MAINTAINER_MODE=$enableval, | |
333 | USE_MAINTAINER_MODE=no) | |
334 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
335 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) | |
336 | MAINT=$MAINTAINER_MODE_TRUE | |
337 | AC_SUBST(MAINT)dnl | |
338 | ] | |
339 | ) | |
340 | ||
341 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
342 | ||
872d8fea | 343 | # -*- Autoconf -*- |
7eaf73d7 | 344 | |
7eaf73d7 | 345 | |
872d8fea PC |
346 | # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
347 | ||
348 | # This program is free software; you can redistribute it and/or modify | |
349 | # it under the terms of the GNU General Public License as published by | |
350 | # the Free Software Foundation; either version 2, or (at your option) | |
351 | # any later version. | |
352 | ||
353 | # This program is distributed in the hope that it will be useful, | |
354 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
355 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
356 | # GNU General Public License for more details. | |
357 | ||
358 | # You should have received a copy of the GNU General Public License | |
359 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
360 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
361 | # 02110-1301, USA. | |
872d8fea PC |
362 | |
363 | # serial 3 | |
7eaf73d7 KC |
364 | |
365 | # AM_MISSING_PROG(NAME, PROGRAM) | |
366 | # ------------------------------ | |
367 | AC_DEFUN([AM_MISSING_PROG], | |
368 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
369 | $1=${$1-"${am_missing_run}$2"} | |
370 | AC_SUBST($1)]) | |
371 | ||
372 | ||
373 | # AM_MISSING_HAS_RUN | |
374 | # ------------------ | |
375 | # Define MISSING if not defined so far and test if it supports --run. | |
376 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
377 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
378 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
379 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
380 | # Use eval to expand $SHELL | |
381 | if eval "$MISSING --run true"; then | |
382 | am_missing_run="$MISSING --run " | |
383 | else | |
384 | am_missing_run= | |
385 | AC_MSG_WARN([`missing' script is too old or missing]) | |
386 | fi | |
387 | ]) | |
388 | ||
389 | # AM_PROG_MKDIR_P | |
390 | # --------------- | |
391 | # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | |
872d8fea PC |
392 | |
393 | # Copyright (C) 2003, 2004 Free Software Foundation, Inc. | |
394 | ||
395 | # This program is free software; you can redistribute it and/or modify | |
396 | # it under the terms of the GNU General Public License as published by | |
397 | # the Free Software Foundation; either version 2, or (at your option) | |
398 | # any later version. | |
399 | ||
400 | # This program is distributed in the hope that it will be useful, | |
401 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
402 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
403 | # GNU General Public License for more details. | |
404 | ||
405 | # You should have received a copy of the GNU General Public License | |
406 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
407 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
408 | # 02110-1301, USA. | |
872d8fea | 409 | |
7eaf73d7 KC |
410 | # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
411 | # created by `make install' are always world readable, even if the | |
412 | # installer happens to have an overly restrictive umask (e.g. 077). | |
413 | # This was a mistake. There are at least two reasons why we must not | |
414 | # use `-m 0755': | |
415 | # - it causes special bits like SGID to be ignored, | |
416 | # - it may be too restrictive (some setups expect 775 directories). | |
417 | # | |
418 | # Do not use -m 0755 and let people choose whatever they expect by | |
419 | # setting umask. | |
420 | # | |
421 | # We cannot accept any implementation of `mkdir' that recognizes `-p'. | |
422 | # Some implementations (such as Solaris 8's) are not thread-safe: if a | |
423 | # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | |
424 | # concurrently, both version can detect that a/ is missing, but only | |
425 | # one can create it and the other will error out. Consequently we | |
426 | # restrict ourselves to GNU make (using the --version option ensures | |
427 | # this.) | |
428 | AC_DEFUN([AM_PROG_MKDIR_P], | |
429 | [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
a60945f8 PC |
430 | # We used to keeping the `.' as first argument, in order to |
431 | # allow $(mkdir_p) to be used without argument. As in | |
7eaf73d7 | 432 | # $(mkdir_p) $(somedir) |
a60945f8 PC |
433 | # where $(somedir) is conditionally defined. However this is wrong |
434 | # for two reasons: | |
435 | # 1. if the package is installed by a user who cannot write `.' | |
436 | # make install will fail, | |
437 | # 2. the above comment should most certainly read | |
438 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
439 | # so it does not work when $(somedir) is undefined and | |
440 | # $(DESTDIR) is not. | |
441 | # To support the latter case, we have to write | |
442 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
443 | # so the `.' trick is pointless. | |
444 | mkdir_p='mkdir -p --' | |
7eaf73d7 KC |
445 | else |
446 | # On NextStep and OpenStep, the `mkdir' command does not | |
447 | # recognize any option. It will interpret all options as | |
448 | # directories to create, and then abort because `.' already | |
449 | # exists. | |
450 | for d in ./-p ./--version; | |
451 | do | |
452 | test -d $d && rmdir $d | |
453 | done | |
454 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
455 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
456 | mkdir_p='$(mkinstalldirs)' | |
457 | else | |
458 | mkdir_p='$(install_sh) -d' | |
459 | fi | |
460 | fi | |
461 | AC_SUBST([mkdir_p])]) | |
462 | ||
872d8fea | 463 | # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004 |
7eaf73d7 KC |
464 | # Free Software Foundation, Inc. |
465 | ||
872d8fea PC |
466 | # This program is free software; you can redistribute it and/or modify |
467 | # it under the terms of the GNU General Public License as published by | |
468 | # the Free Software Foundation; either version 2, or (at your option) | |
469 | # any later version. | |
470 | ||
471 | # This program is distributed in the hope that it will be useful, | |
472 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
473 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
474 | # GNU General Public License for more details. | |
475 | ||
476 | # You should have received a copy of the GNU General Public License | |
477 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
478 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
479 | # 02110-1301, USA. | |
872d8fea PC |
480 | |
481 | # serial 4 | |
7eaf73d7 KC |
482 | |
483 | # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR]) | |
484 | # --------------------------------------------------- | |
485 | # Add --enable-multilib to configure. | |
486 | AC_DEFUN([AM_ENABLE_MULTILIB], | |
487 | [# Default to --enable-multilib | |
488 | AC_ARG_ENABLE(multilib, | |
489 | [ --enable-multilib build many library versions (default)], | |
490 | [case "$enableval" in | |
491 | yes) multilib=yes ;; | |
492 | no) multilib=no ;; | |
493 | *) AC_MSG_ERROR([bad value $enableval for multilib option]) ;; | |
494 | esac], | |
495 | [multilib=yes]) | |
496 | ||
497 | # We may get other options which we leave undocumented: | |
498 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
499 | # See config-ml.in if you want the gory details. | |
500 | ||
501 | if test "$srcdir" = "."; then | |
502 | if test "$with_target_subdir" != "."; then | |
503 | multi_basedir="$srcdir/$with_multisrctop../$2" | |
504 | else | |
505 | multi_basedir="$srcdir/$with_multisrctop$2" | |
506 | fi | |
507 | else | |
508 | multi_basedir="$srcdir/$2" | |
509 | fi | |
510 | AC_SUBST(multi_basedir) | |
511 | ||
512 | AC_OUTPUT_COMMANDS([ | |
513 | # Only add multilib support code if we just rebuilt the top-level | |
514 | # Makefile. | |
515 | case " $CONFIG_FILES " in | |
516 | *" ]m4_default([$1],Makefile)[ "*) | |
517 | ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in | |
518 | ;; | |
519 | esac], | |
520 | [ | |
521 | srcdir="$srcdir" | |
522 | host="$host" | |
523 | target="$target" | |
524 | with_multisubdir="$with_multisubdir" | |
525 | with_multisrctop="$with_multisrctop" | |
526 | with_target_subdir="$with_target_subdir" | |
527 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
528 | multi_basedir="$multi_basedir" | |
529 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | CC="$CC"])])dnl | |
ff66d28f | 531 | |
872d8fea | 532 | # Helper functions for option handling. -*- Autoconf -*- |
ff66d28f | 533 | |
872d8fea | 534 | # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
ff66d28f | 535 | |
872d8fea PC |
536 | # This program is free software; you can redistribute it and/or modify |
537 | # it under the terms of the GNU General Public License as published by | |
538 | # the Free Software Foundation; either version 2, or (at your option) | |
539 | # any later version. | |
540 | ||
541 | # This program is distributed in the hope that it will be useful, | |
542 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
543 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
544 | # GNU General Public License for more details. | |
545 | ||
546 | # You should have received a copy of the GNU General Public License | |
547 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
548 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
549 | # 02110-1301, USA. | |
872d8fea PC |
550 | |
551 | # serial 2 | |
ff66d28f PE |
552 | |
553 | # _AM_MANGLE_OPTION(NAME) | |
554 | # ----------------------- | |
555 | AC_DEFUN([_AM_MANGLE_OPTION], | |
556 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
557 | ||
558 | # _AM_SET_OPTION(NAME) | |
559 | # ------------------------------ | |
560 | # Set option NAME. Presently that only means defining a flag for this option. | |
561 | AC_DEFUN([_AM_SET_OPTION], | |
562 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
563 | ||
564 | # _AM_SET_OPTIONS(OPTIONS) | |
565 | # ---------------------------------- | |
566 | # OPTIONS is a space-separated list of Automake options. | |
567 | AC_DEFUN([_AM_SET_OPTIONS], | |
568 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
569 | ||
570 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
571 | # ------------------------------------------- | |
572 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
573 | AC_DEFUN([_AM_IF_OPTION], | |
574 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
249ed716 | 575 | |
617a1b71 | 576 | # |
872d8fea PC |
577 | # Check to make sure that the build environment is sane. |
578 | # | |
ff66d28f | 579 | |
872d8fea PC |
580 | # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. |
581 | ||
582 | # This program is free software; you can redistribute it and/or modify | |
583 | # it under the terms of the GNU General Public License as published by | |
584 | # the Free Software Foundation; either version 2, or (at your option) | |
585 | # any later version. | |
586 | ||
587 | # This program is distributed in the hope that it will be useful, | |
588 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
589 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
590 | # GNU General Public License for more details. | |
591 | ||
592 | # You should have received a copy of the GNU General Public License | |
593 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
594 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
595 | # 02110-1301, USA. | |
872d8fea PC |
596 | |
597 | # serial 3 | |
ff66d28f PE |
598 | |
599 | # AM_SANITY_CHECK | |
600 | # --------------- | |
9a56333e | 601 | AC_DEFUN([AM_SANITY_CHECK], |
b2dad0e3 BK |
602 | [AC_MSG_CHECKING([whether build environment is sane]) |
603 | # Just in case | |
604 | sleep 1 | |
ff66d28f | 605 | echo timestamp > conftest.file |
b2dad0e3 BK |
606 | # Do `set' in a subshell so we don't clobber the current shell's |
607 | # arguments. Must try -L first in case configure is actually a | |
608 | # symlink; some systems play weird games with the mod time of symlinks | |
609 | # (eg FreeBSD returns the mod time of the symlink's containing | |
610 | # directory). | |
611 | if ( | |
ff66d28f PE |
612 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
613 | if test "$[*]" = "X"; then | |
b2dad0e3 | 614 | # -L didn't work. |
ff66d28f | 615 | set X `ls -t $srcdir/configure conftest.file` |
b2dad0e3 | 616 | fi |
ff66d28f PE |
617 | rm -f conftest.file |
618 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
619 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
b2dad0e3 BK |
620 | |
621 | # If neither matched, then we have a broken ls. This can happen | |
622 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
623 | # broken ls alias from the environment. This has actually | |
624 | # happened. Such a system could not be considered "sane". | |
625 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
626 | alias in your environment]) | |
627 | fi | |
628 | ||
ff66d28f | 629 | test "$[2]" = conftest.file |
b2dad0e3 BK |
630 | ) |
631 | then | |
632 | # Ok. | |
633 | : | |
634 | else | |
635 | AC_MSG_ERROR([newly created file is older than distributed files! | |
636 | Check your system clock]) | |
637 | fi | |
b2dad0e3 BK |
638 | AC_MSG_RESULT(yes)]) |
639 | ||
617a1b71 | 640 | # AM_PROG_INSTALL_STRIP |
872d8fea PC |
641 | |
642 | # Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
643 | ||
644 | # This program is free software; you can redistribute it and/or modify | |
645 | # it under the terms of the GNU General Public License as published by | |
646 | # the Free Software Foundation; either version 2, or (at your option) | |
647 | # any later version. | |
648 | ||
649 | # This program is distributed in the hope that it will be useful, | |
650 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
651 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
652 | # GNU General Public License for more details. | |
653 | ||
654 | # You should have received a copy of the GNU General Public License | |
655 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
656 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
657 | # 02110-1301, USA. | |
872d8fea | 658 | |
ff66d28f PE |
659 | # One issue with vendor `install' (even GNU) is that you can't |
660 | # specify the program used to strip binaries. This is especially | |
661 | # annoying in cross-compiling environments, where the build's strip | |
662 | # is unlikely to handle the host's binaries. | |
663 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
664 | # always use install-sh in `make install-strip', and initialize | |
665 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
666 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
667 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
668 | # Installed binaries are usually stripped using `strip' when the user | |
669 | # run `make install-strip'. However `strip' might not be the right | |
670 | # tool to use in cross-compilation environments, therefore Automake | |
671 | # will honor the `STRIP' environment variable to overrule this program. | |
672 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
673 | if test "$cross_compiling" != no; then | |
674 | AC_CHECK_TOOL([STRIP], [strip], :) | |
675 | fi | |
676 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
677 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
678 | ||
a60945f8 PC |
679 | # Check how to create a tarball. -*- Autoconf -*- |
680 | ||
872d8fea PC |
681 | # Copyright (C) 2004 Free Software Foundation, Inc. |
682 | ||
683 | # This program is free software; you can redistribute it and/or modify | |
684 | # it under the terms of the GNU General Public License as published by | |
685 | # the Free Software Foundation; either version 2, or (at your option) | |
686 | # any later version. | |
687 | ||
688 | # This program is distributed in the hope that it will be useful, | |
689 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
690 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
691 | # GNU General Public License for more details. | |
692 | ||
693 | # You should have received a copy of the GNU General Public License | |
694 | # along with this program; if not, write to the Free Software | |
83f51799 KC |
695 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
696 | # 02110-1301, USA. | |
872d8fea PC |
697 | |
698 | # serial 1 | |
a60945f8 PC |
699 | |
700 | ||
701 | # _AM_PROG_TAR(FORMAT) | |
702 | # -------------------- | |
703 | # Check how to create a tarball in format FORMAT. | |
704 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
705 | # | |
706 | # Substitute a variable $(am__tar) that is a command | |
707 | # writing to stdout a FORMAT-tarball containing the directory | |
708 | # $tardir. | |
709 | # tardir=directory && $(am__tar) > result.tar | |
710 | # | |
711 | # Substitute a variable $(am__untar) that extract such | |
712 | # a tarball read from stdin. | |
713 | # $(am__untar) < result.tar | |
714 | AC_DEFUN([_AM_PROG_TAR], | |
715 | [# Always define AMTAR for backward compatibility. | |
716 | AM_MISSING_PROG([AMTAR], [tar]) | |
717 | m4_if([$1], [v7], | |
718 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
719 | [m4_case([$1], [ustar],, [pax],, | |
720 | [m4_fatal([Unknown tar format])]) | |
721 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
722 | # Loop over all known methods to create a tar archive until one works. | |
723 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
724 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
725 | # Do not fold the above two line into one, because Tru64 sh and | |
726 | # Solaris sh will not grok spaces in the rhs of `-'. | |
727 | for _am_tool in $_am_tools | |
728 | do | |
729 | case $_am_tool in | |
730 | gnutar) | |
731 | for _am_tar in tar gnutar gtar; | |
732 | do | |
733 | AM_RUN_LOG([$_am_tar --version]) && break | |
734 | done | |
735 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
736 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
737 | am__untar="$_am_tar -xf -" | |
738 | ;; | |
739 | plaintar) | |
740 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
741 | # ustar tarball either. | |
742 | (tar --version) >/dev/null 2>&1 && continue | |
743 | am__tar='tar chf - "$$tardir"' | |
744 | am__tar_='tar chf - "$tardir"' | |
745 | am__untar='tar xf -' | |
746 | ;; | |
747 | pax) | |
748 | am__tar='pax -L -x $1 -w "$$tardir"' | |
749 | am__tar_='pax -L -x $1 -w "$tardir"' | |
750 | am__untar='pax -r' | |
751 | ;; | |
752 | cpio) | |
753 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
754 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
755 | am__untar='cpio -i -H $1 -d' | |
756 | ;; | |
757 | none) | |
758 | am__tar=false | |
759 | am__tar_=false | |
760 | am__untar=false | |
761 | ;; | |
762 | esac | |
763 | ||
764 | # If the value was cached, stop now. We just wanted to have am__tar | |
765 | # and am__untar set. | |
766 | test -n "${am_cv_prog_tar_$1}" && break | |
767 | ||
768 | # tar/untar a dummy directory, and stop if the command works | |
769 | rm -rf conftest.dir | |
770 | mkdir conftest.dir | |
771 | echo GrepMe > conftest.dir/file | |
772 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
773 | rm -rf conftest.dir | |
774 | if test -s conftest.tar; then | |
775 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
776 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
777 | fi | |
778 | done | |
779 | rm -rf conftest.dir | |
780 | ||
781 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
782 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
783 | AC_SUBST([am__tar]) | |
784 | AC_SUBST([am__untar]) | |
785 | ]) # _AM_PROG_TAR | |
786 | ||
cd111813 | 787 | m4_include([../config/lead-dot.m4]) |
3a24bf5d | 788 | m4_include([../config/no-executables.m4]) |
c41f82b2 KC |
789 | m4_include([../libtool.m4]) |
790 | m4_include([crossconfig.m4]) | |
791 | m4_include([linkage.m4]) | |
7eaf73d7 | 792 | m4_include([acinclude.m4]) |