Update automatically managed build utilities.
[autoys] / aclocal.m4
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23 # ===========================================================================
24 # http://www.gnu.org/software/autoconf-archive/ax_append_flag.html
25 # ===========================================================================
26 #
27 # SYNOPSIS
28 #
29 # AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])
30 #
31 # DESCRIPTION
32 #
33 # FLAG is appended to the FLAGS-VARIABLE shell variable, with a space
34 # added in between.
35 #
36 # If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
37 # CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains
38 # FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly
39 # FLAG.
40 #
41 # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.
42 #
43 # LICENSE
44 #
45 # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
46 # Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
47 #
48 # This program is free software: you can redistribute it and/or modify it
49 # under the terms of the GNU General Public License as published by the
50 # Free Software Foundation, either version 3 of the License, or (at your
51 # option) any later version.
52 #
53 # This program is distributed in the hope that it will be useful, but
54 # WITHOUT ANY WARRANTY; without even the implied warranty of
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
56 # Public License for more details.
57 #
58 # You should have received a copy of the GNU General Public License along
59 # with this program. If not, see <http://www.gnu.org/licenses/>.
60 #
61 # As a special exception, the respective Autoconf Macro's copyright owner
62 # gives unlimited permission to copy, distribute and modify the configure
63 # scripts that are the output of Autoconf when processing the Macro. You
64 # need not follow the terms of the GNU General Public License when using
65 # or distributing such scripts, even though portions of the text of the
66 # Macro appear in them. The GNU General Public License (GPL) does govern
67 # all other use of the material that constitutes the Autoconf Macro.
68 #
69 # This special exception to the GPL applies to versions of the Autoconf
70 # Macro released by the Autoconf Archive. When you make and distribute a
71 # modified version of the Autoconf Macro, you may extend this special
72 # exception to the GPL to apply to your modified version as well.
73
74 #serial 2
75
76 AC_DEFUN([AX_APPEND_FLAG],
77 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
78 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl
79 AS_VAR_SET_IF(FLAGS,
80 [case " AS_VAR_GET(FLAGS) " in
81 *" $1 "*)
82 AC_RUN_LOG([: FLAGS already contains $1])
83 ;;
84 *)
85 AC_RUN_LOG([: FLAGS="$FLAGS $1"])
86 AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"])
87 ;;
88 esac],
89 [AS_VAR_SET(FLAGS,["$1"])])
90 AS_VAR_POPDEF([FLAGS])dnl
91 ])dnl AX_APPEND_FLAG
92
93 # ===========================================================================
94 # http://www.gnu.org/software/autoconf-archive/ax_cflags_warn_all.html
95 # ===========================================================================
96 #
97 # SYNOPSIS
98 #
99 # AX_CFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
100 # AX_CXXFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
101 # AX_FCFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
102 #
103 # DESCRIPTION
104 #
105 # Try to find a compiler option that enables most reasonable warnings.
106 #
107 # For the GNU compiler it will be -Wall (and -ansi -pedantic) The result
108 # is added to the shellvar being CFLAGS, CXXFLAGS, or FCFLAGS by default.
109 #
110 # Currently this macro knows about the GCC, Solaris, Digital Unix, AIX,
111 # HP-UX, IRIX, NEC SX-5 (Super-UX 10), Cray J90 (Unicos 10.0.0.8), and
112 # Intel compilers. For a given compiler, the Fortran flags are much more
113 # experimental than their C equivalents.
114 #
115 # - $1 shell-variable-to-add-to : CFLAGS, CXXFLAGS, or FCFLAGS
116 # - $2 add-value-if-not-found : nothing
117 # - $3 action-if-found : add value to shellvariable
118 # - $4 action-if-not-found : nothing
119 #
120 # NOTE: These macros depend on AX_APPEND_FLAG.
121 #
122 # LICENSE
123 #
124 # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
125 # Copyright (c) 2010 Rhys Ulerich <rhys.ulerich@gmail.com>
126 #
127 # This program is free software; you can redistribute it and/or modify it
128 # under the terms of the GNU General Public License as published by the
129 # Free Software Foundation; either version 3 of the License, or (at your
130 # option) any later version.
131 #
132 # This program is distributed in the hope that it will be useful, but
133 # WITHOUT ANY WARRANTY; without even the implied warranty of
134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
135 # Public License for more details.
136 #
137 # You should have received a copy of the GNU General Public License along
138 # with this program. If not, see <http://www.gnu.org/licenses/>.
139 #
140 # As a special exception, the respective Autoconf Macro's copyright owner
141 # gives unlimited permission to copy, distribute and modify the configure
142 # scripts that are the output of Autoconf when processing the Macro. You
143 # need not follow the terms of the GNU General Public License when using
144 # or distributing such scripts, even though portions of the text of the
145 # Macro appear in them. The GNU General Public License (GPL) does govern
146 # all other use of the material that constitutes the Autoconf Macro.
147 #
148 # This special exception to the GPL applies to versions of the Autoconf
149 # Macro released by the Autoconf Archive. When you make and distribute a
150 # modified version of the Autoconf Macro, you may extend this special
151 # exception to the GPL to apply to your modified version as well.
152
153 #serial 13
154
155 AC_DEFUN([AX_FLAGS_WARN_ALL],[dnl
156 AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl
157 AS_VAR_PUSHDEF([VAR],[ac_cv_[]_AC_LANG_ABBREV[]flags_warn_all])dnl
158 AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum warnings],
159 VAR,[VAR="no, unknown"
160 ac_save_[]FLAGS="$[]FLAGS"
161 for ac_arg dnl
162 in "-warn all % -warn all" dnl Intel
163 "-pedantic % -Wall" dnl GCC
164 "-xstrconst % -v" dnl Solaris C
165 "-std1 % -verbose -w0 -warnprotos" dnl Digital Unix
166 "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" dnl AIX
167 "-ansi -ansiE % -fullwarn" dnl IRIX
168 "+ESlit % +w1" dnl HP-UX C
169 "-Xc % -pvctl[,]fullmsg" dnl NEC SX-5 (Super-UX 10)
170 "-h conform % -h msglevel 2" dnl Cray C (Unicos)
171 #
172 do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
173 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
174 [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
175 done
176 FLAGS="$ac_save_[]FLAGS"
177 ])
178 AS_VAR_POPDEF([FLAGS])dnl
179 case ".$VAR" in
180 .ok|.ok,*) m4_ifvaln($3,$3) ;;
181 .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;;
182 *) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;;
183 esac
184 AS_VAR_POPDEF([VAR])dnl
185 ])dnl AX_FLAGS_WARN_ALL
186 dnl implementation tactics:
187 dnl the for-argument contains a list of options. The first part of
188 dnl these does only exist to detect the compiler - usually it is
189 dnl a global option to enable -ansi or -extrawarnings. All other
190 dnl compilers will fail about it. That was needed since a lot of
191 dnl compilers will give false positives for some option-syntax
192 dnl like -Woption or -Xoption as they think of it is a pass-through
193 dnl to later compile stages or something. The "%" is used as a
194 dnl delimiter. A non-option comment can be given after "%%" marks
195 dnl which will be shown but not added to the respective C/CXXFLAGS.
196
197 AC_DEFUN([AX_CFLAGS_WARN_ALL],[dnl
198 AC_LANG_PUSH([C])
199 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
200 AC_LANG_POP([C])
201 ])
202
203 AC_DEFUN([AX_CXXFLAGS_WARN_ALL],[dnl
204 AC_LANG_PUSH([C++])
205 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
206 AC_LANG_POP([C++])
207 ])
208
209 AC_DEFUN([AX_FCFLAGS_WARN_ALL],[dnl
210 AC_LANG_PUSH([Fortran])
211 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
212 AC_LANG_POP([Fortran])
213 ])
214
215 dnl *@--NOTICE--@* Common File Distribution
216
217 dnl --- *@-mdw_AUTO_VERSION-@* ---
218 dnl
219 dnl Author: Mark Wooding
220 dnl
221 dnl Synopsis: mdw_AUTO_VERSION
222 dnl
223 dnl Arguments: ---
224 dnl
225 dnl Use: Defines an m4 macro AUTO_VERSION which contains the current
226 dnl version number, worked out in some clever way.
227
228 AC_DEFUN([mdw_AUTO_VERSION], [nobody cares...])
229 m4_define([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([
230 ver=UNKNOWN
231 for pre in ./ config/; do
232 for post in "" .in; do
233 try=${pre}auto-version${post}
234 if test -x $try; then ver=$("$try"); break; fi
235 done
236 done
237 echo -n "$ver"
238 ]))])
239
240
241 dnl *@--NOTICE--@* Common File Distribution
242
243 dnl --- *@-mdw_SILENT_RULES-@* ---
244 dnl
245 dnl Author: Mark Wooding
246 dnl
247 dnl Synopsis: mdw_SILENT_RULES
248 dnl
249 dnl Arguments: ---
250 dnl
251 dnl Use: Enables the Automake `silent-rules' feature, if available.
252
253 AC_DEFUN([mdw_SILENT_RULES], [
254 m4_ifdef([AM_SILENT_RULES], [
255 AM_SILENT_RULES([yes])
256 ], [
257 AC_SUBST([AM_DEFAULT_VERBOSITY], [1])
258 ])
259 ])
260
261
262 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
263 # Foundation, Inc.
264 #
265 # This file is free software; the Free Software Foundation
266 # gives unlimited permission to copy and/or distribute it,
267 # with or without modifications, as long as this notice is preserved.
268
269 # serial 1
270
271 # AM_AUTOMAKE_VERSION(VERSION)
272 # ----------------------------
273 # Automake X.Y traces this macro to ensure aclocal.m4 has been
274 # generated from the m4 files accompanying Automake X.Y.
275 # (This private macro should not be called outside this file.)
276 AC_DEFUN([AM_AUTOMAKE_VERSION],
277 [am__api_version='1.11'
278 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
279 dnl require some minimum version. Point them to the right macro.
280 m4_if([$1], [1.11.6], [],
281 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
282 ])
283
284 # _AM_AUTOCONF_VERSION(VERSION)
285 # -----------------------------
286 # aclocal traces this macro to find the Autoconf version.
287 # This is a private macro too. Using m4_define simplifies
288 # the logic in aclocal, which can simply ignore this definition.
289 m4_define([_AM_AUTOCONF_VERSION], [])
290
291 # AM_SET_CURRENT_AUTOMAKE_VERSION
292 # -------------------------------
293 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
294 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
295 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
296 [AM_AUTOMAKE_VERSION([1.11.6])dnl
297 m4_ifndef([AC_AUTOCONF_VERSION],
298 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
299 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
300
301 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
302
303 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
304 #
305 # This file is free software; the Free Software Foundation
306 # gives unlimited permission to copy and/or distribute it,
307 # with or without modifications, as long as this notice is preserved.
308
309 # serial 1
310
311 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
312 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
313 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
314 #
315 # Of course, Automake must honor this variable whenever it calls a
316 # tool from the auxiliary directory. The problem is that $srcdir (and
317 # therefore $ac_aux_dir as well) can be either absolute or relative,
318 # depending on how configure is run. This is pretty annoying, since
319 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
320 # source directory, any form will work fine, but in subdirectories a
321 # relative path needs to be adjusted first.
322 #
323 # $ac_aux_dir/missing
324 # fails when called from a subdirectory if $ac_aux_dir is relative
325 # $top_srcdir/$ac_aux_dir/missing
326 # fails if $ac_aux_dir is absolute,
327 # fails when called from a subdirectory in a VPATH build with
328 # a relative $ac_aux_dir
329 #
330 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
331 # are both prefixed by $srcdir. In an in-source build this is usually
332 # harmless because $srcdir is `.', but things will broke when you
333 # start a VPATH build or use an absolute $srcdir.
334 #
335 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
336 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
337 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
338 # and then we would define $MISSING as
339 # MISSING="\${SHELL} $am_aux_dir/missing"
340 # This will work as long as MISSING is not called from configure, because
341 # unfortunately $(top_srcdir) has no meaning in configure.
342 # However there are other variables, like CC, which are often used in
343 # configure, and could therefore not use this "fixed" $ac_aux_dir.
344 #
345 # Another solution, used here, is to always expand $ac_aux_dir to an
346 # absolute PATH. The drawback is that using absolute paths prevent a
347 # configured tree to be moved without reconfiguration.
348
349 AC_DEFUN([AM_AUX_DIR_EXPAND],
350 [dnl Rely on autoconf to set up CDPATH properly.
351 AC_PREREQ([2.50])dnl
352 # expand $ac_aux_dir to an absolute path
353 am_aux_dir=`cd $ac_aux_dir && pwd`
354 ])
355
356 # AM_CONDITIONAL -*- Autoconf -*-
357
358 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
359 # Free Software Foundation, Inc.
360 #
361 # This file is free software; the Free Software Foundation
362 # gives unlimited permission to copy and/or distribute it,
363 # with or without modifications, as long as this notice is preserved.
364
365 # serial 9
366
367 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
368 # -------------------------------------
369 # Define a conditional.
370 AC_DEFUN([AM_CONDITIONAL],
371 [AC_PREREQ(2.52)dnl
372 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
373 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
374 AC_SUBST([$1_TRUE])dnl
375 AC_SUBST([$1_FALSE])dnl
376 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
377 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
378 m4_define([_AM_COND_VALUE_$1], [$2])dnl
379 if $2; then
380 $1_TRUE=
381 $1_FALSE='#'
382 else
383 $1_TRUE='#'
384 $1_FALSE=
385 fi
386 AC_CONFIG_COMMANDS_PRE(
387 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
388 AC_MSG_ERROR([[conditional "$1" was never defined.
389 Usually this means the macro was only invoked conditionally.]])
390 fi])])
391
392 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
393 # 2010, 2011 Free Software Foundation, Inc.
394 #
395 # This file is free software; the Free Software Foundation
396 # gives unlimited permission to copy and/or distribute it,
397 # with or without modifications, as long as this notice is preserved.
398
399 # serial 12
400
401 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
402 # written in clear, in which case automake, when reading aclocal.m4,
403 # will think it sees a *use*, and therefore will trigger all it's
404 # C support machinery. Also note that it means that autoscan, seeing
405 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
406
407
408 # _AM_DEPENDENCIES(NAME)
409 # ----------------------
410 # See how the compiler implements dependency checking.
411 # NAME is "CC", "CXX", "GCJ", or "OBJC".
412 # We try a few techniques and use that to set a single cache variable.
413 #
414 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
415 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
416 # dependency, and given that the user is not expected to run this macro,
417 # just rely on AC_PROG_CC.
418 AC_DEFUN([_AM_DEPENDENCIES],
419 [AC_REQUIRE([AM_SET_DEPDIR])dnl
420 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
421 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
422 AC_REQUIRE([AM_DEP_TRACK])dnl
423
424 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
425 [$1], CXX, [depcc="$CXX" am_compiler_list=],
426 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
427 [$1], UPC, [depcc="$UPC" am_compiler_list=],
428 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
429 [depcc="$$1" am_compiler_list=])
430
431 AC_CACHE_CHECK([dependency style of $depcc],
432 [am_cv_$1_dependencies_compiler_type],
433 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
434 # We make a subdir and do the tests there. Otherwise we can end up
435 # making bogus files that we don't know about and never remove. For
436 # instance it was reported that on HP-UX the gcc test will end up
437 # making a dummy file named `D' -- because `-MD' means `put the output
438 # in D'.
439 rm -rf conftest.dir
440 mkdir conftest.dir
441 # Copy depcomp to subdir because otherwise we won't find it if we're
442 # using a relative directory.
443 cp "$am_depcomp" conftest.dir
444 cd conftest.dir
445 # We will build objects and dependencies in a subdirectory because
446 # it helps to detect inapplicable dependency modes. For instance
447 # both Tru64's cc and ICC support -MD to output dependencies as a
448 # side effect of compilation, but ICC will put the dependencies in
449 # the current directory while Tru64 will put them in the object
450 # directory.
451 mkdir sub
452
453 am_cv_$1_dependencies_compiler_type=none
454 if test "$am_compiler_list" = ""; then
455 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
456 fi
457 am__universal=false
458 m4_case([$1], [CC],
459 [case " $depcc " in #(
460 *\ -arch\ *\ -arch\ *) am__universal=true ;;
461 esac],
462 [CXX],
463 [case " $depcc " in #(
464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
465 esac])
466
467 for depmode in $am_compiler_list; do
468 # Setup a source with many dependencies, because some compilers
469 # like to wrap large dependency lists on column 80 (with \), and
470 # we should not choose a depcomp mode which is confused by this.
471 #
472 # We need to recreate these files for each test, as the compiler may
473 # overwrite some of them when testing with obscure command lines.
474 # This happens at least with the AIX C compiler.
475 : > sub/conftest.c
476 for i in 1 2 3 4 5 6; do
477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
479 # Solaris 8's {/usr,}/bin/sh.
480 touch sub/conftst$i.h
481 done
482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
483
484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
485 # mode. It turns out that the SunPro C++ compiler does not properly
486 # handle `-M -o', and we need to detect this. Also, some Intel
487 # versions had trouble with output in subdirs
488 am__obj=sub/conftest.${OBJEXT-o}
489 am__minus_obj="-o $am__obj"
490 case $depmode in
491 gcc)
492 # This depmode causes a compiler race in universal mode.
493 test "$am__universal" = false || continue
494 ;;
495 nosideeffect)
496 # after this tag, mechanisms are not by side-effect, so they'll
497 # only be used when explicitly requested
498 if test "x$enable_dependency_tracking" = xyes; then
499 continue
500 else
501 break
502 fi
503 ;;
504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
505 # This compiler won't grok `-c -o', but also, the minuso test has
506 # not run yet. These depmodes are late enough in the game, and
507 # so weak that their functioning should not be impacted.
508 am__obj=conftest.${OBJEXT-o}
509 am__minus_obj=
510 ;;
511 none) break ;;
512 esac
513 if depmode=$depmode \
514 source=sub/conftest.c object=$am__obj \
515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
517 >/dev/null 2>conftest.err &&
518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
522 # icc doesn't choke on unknown options, it will just issue warnings
523 # or remarks (even with -Werror). So we grep stderr for any message
524 # that says an option was ignored or not supported.
525 # When given -MP, icc 7.0 and 7.1 complain thusly:
526 # icc: Command line warning: ignoring option '-M'; no argument required
527 # The diagnosis changed in icc 8.0:
528 # icc: Command line remark: option '-MP' not supported
529 if (grep 'ignoring option' conftest.err ||
530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
531 am_cv_$1_dependencies_compiler_type=$depmode
532 break
533 fi
534 fi
535 done
536
537 cd ..
538 rm -rf conftest.dir
539 else
540 am_cv_$1_dependencies_compiler_type=none
541 fi
542 ])
543 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
544 AM_CONDITIONAL([am__fastdep$1], [
545 test "x$enable_dependency_tracking" != xno \
546 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
547 ])
548
549
550 # AM_SET_DEPDIR
551 # -------------
552 # Choose a directory name for dependency files.
553 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
554 AC_DEFUN([AM_SET_DEPDIR],
555 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
556 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
557 ])
558
559
560 # AM_DEP_TRACK
561 # ------------
562 AC_DEFUN([AM_DEP_TRACK],
563 [AC_ARG_ENABLE(dependency-tracking,
564 [ --disable-dependency-tracking speeds up one-time build
565 --enable-dependency-tracking do not reject slow dependency extractors])
566 if test "x$enable_dependency_tracking" != xno; then
567 am_depcomp="$ac_aux_dir/depcomp"
568 AMDEPBACKSLASH='\'
569 am__nodep='_no'
570 fi
571 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
572 AC_SUBST([AMDEPBACKSLASH])dnl
573 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
574 AC_SUBST([am__nodep])dnl
575 _AM_SUBST_NOTMAKE([am__nodep])dnl
576 ])
577
578 # Generate code to set up dependency tracking. -*- Autoconf -*-
579
580 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
581 # Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 #serial 5
588
589 # _AM_OUTPUT_DEPENDENCY_COMMANDS
590 # ------------------------------
591 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
592 [{
593 # Autoconf 2.62 quotes --file arguments for eval, but not when files
594 # are listed without --file. Let's play safe and only enable the eval
595 # if we detect the quoting.
596 case $CONFIG_FILES in
597 *\'*) eval set x "$CONFIG_FILES" ;;
598 *) set x $CONFIG_FILES ;;
599 esac
600 shift
601 for mf
602 do
603 # Strip MF so we end up with the name of the file.
604 mf=`echo "$mf" | sed -e 's/:.*$//'`
605 # Check whether this is an Automake generated Makefile or not.
606 # We used to match only the files named `Makefile.in', but
607 # some people rename them; so instead we look at the file content.
608 # Grep'ing the first line is not enough: some people post-process
609 # each Makefile.in and add a new line on top of each file to say so.
610 # Grep'ing the whole file is not good either: AIX grep has a line
611 # limit of 2048, but all sed's we know have understand at least 4000.
612 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
613 dirpart=`AS_DIRNAME("$mf")`
614 else
615 continue
616 fi
617 # Extract the definition of DEPDIR, am__include, and am__quote
618 # from the Makefile without running `make'.
619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
620 test -z "$DEPDIR" && continue
621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
622 test -z "am__include" && continue
623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
624 # When using ansi2knr, U may be empty or an underscore; expand it
625 U=`sed -n 's/^U = //p' < "$mf"`
626 # Find all dependency output files, they are included files with
627 # $(DEPDIR) in their names. We invoke sed twice because it is the
628 # simplest approach to changing $(DEPDIR) to its actual value in the
629 # expansion.
630 for file in `sed -n "
631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
633 # Make sure the directory exists.
634 test -f "$dirpart/$file" && continue
635 fdir=`AS_DIRNAME(["$file"])`
636 AS_MKDIR_P([$dirpart/$fdir])
637 # echo "creating $dirpart/$file"
638 echo '# dummy' > "$dirpart/$file"
639 done
640 done
641 }
642 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
643
644
645 # AM_OUTPUT_DEPENDENCY_COMMANDS
646 # -----------------------------
647 # This macro should only be invoked once -- use via AC_REQUIRE.
648 #
649 # This code is only required when automatic dependency tracking
650 # is enabled. FIXME. This creates each `.P' file that we will
651 # need in order to bootstrap the dependency handling code.
652 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
653 [AC_CONFIG_COMMANDS([depfiles],
654 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
655 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
656 ])
657
658 # Do all the work for Automake. -*- Autoconf -*-
659
660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
661 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
662 #
663 # This file is free software; the Free Software Foundation
664 # gives unlimited permission to copy and/or distribute it,
665 # with or without modifications, as long as this notice is preserved.
666
667 # serial 16
668
669 # This macro actually does too much. Some checks are only needed if
670 # your package does certain things. But this isn't really a big deal.
671
672 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
673 # AM_INIT_AUTOMAKE([OPTIONS])
674 # -----------------------------------------------
675 # The call with PACKAGE and VERSION arguments is the old style
676 # call (pre autoconf-2.50), which is being phased out. PACKAGE
677 # and VERSION should now be passed to AC_INIT and removed from
678 # the call to AM_INIT_AUTOMAKE.
679 # We support both call styles for the transition. After
680 # the next Automake release, Autoconf can make the AC_INIT
681 # arguments mandatory, and then we can depend on a new Autoconf
682 # release and drop the old call support.
683 AC_DEFUN([AM_INIT_AUTOMAKE],
684 [AC_PREREQ([2.62])dnl
685 dnl Autoconf wants to disallow AM_ names. We explicitly allow
686 dnl the ones we care about.
687 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
688 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
689 AC_REQUIRE([AC_PROG_INSTALL])dnl
690 if test "`cd $srcdir && pwd`" != "`pwd`"; then
691 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
692 # is not polluted with repeated "-I."
693 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
694 # test to see if srcdir already configured
695 if test -f $srcdir/config.status; then
696 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
697 fi
698 fi
699
700 # test whether we have cygpath
701 if test -z "$CYGPATH_W"; then
702 if (cygpath --version) >/dev/null 2>/dev/null; then
703 CYGPATH_W='cygpath -w'
704 else
705 CYGPATH_W=echo
706 fi
707 fi
708 AC_SUBST([CYGPATH_W])
709
710 # Define the identity of the package.
711 dnl Distinguish between old-style and new-style calls.
712 m4_ifval([$2],
713 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
714 AC_SUBST([PACKAGE], [$1])dnl
715 AC_SUBST([VERSION], [$2])],
716 [_AM_SET_OPTIONS([$1])dnl
717 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
718 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
719 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
720 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
721 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
722
723 _AM_IF_OPTION([no-define],,
724 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
725 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
726
727 # Some tools Automake needs.
728 AC_REQUIRE([AM_SANITY_CHECK])dnl
729 AC_REQUIRE([AC_ARG_PROGRAM])dnl
730 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
731 AM_MISSING_PROG(AUTOCONF, autoconf)
732 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
733 AM_MISSING_PROG(AUTOHEADER, autoheader)
734 AM_MISSING_PROG(MAKEINFO, makeinfo)
735 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
736 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
737 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
738 # We need awk for the "check" target. The system "awk" is bad on
739 # some platforms.
740 AC_REQUIRE([AC_PROG_AWK])dnl
741 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
742 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
743 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
744 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
745 [_AM_PROG_TAR([v7])])])
746 _AM_IF_OPTION([no-dependencies],,
747 [AC_PROVIDE_IFELSE([AC_PROG_CC],
748 [_AM_DEPENDENCIES(CC)],
749 [define([AC_PROG_CC],
750 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
751 AC_PROVIDE_IFELSE([AC_PROG_CXX],
752 [_AM_DEPENDENCIES(CXX)],
753 [define([AC_PROG_CXX],
754 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
755 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
756 [_AM_DEPENDENCIES(OBJC)],
757 [define([AC_PROG_OBJC],
758 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
759 ])
760 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
761 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
762 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
763 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
764 AC_CONFIG_COMMANDS_PRE(dnl
765 [m4_provide_if([_AM_COMPILER_EXEEXT],
766 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
767 ])
768
769 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
770 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
771 dnl mangled by Autoconf and run in a shell conditional statement.
772 m4_define([_AC_COMPILER_EXEEXT],
773 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
774
775
776 # When config.status generates a header, we must update the stamp-h file.
777 # This file resides in the same directory as the config header
778 # that is generated. The stamp files are numbered to have different names.
779
780 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
781 # loop where config.status creates the headers, so we can generate
782 # our stamp files there.
783 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
784 [# Compute $1's index in $config_headers.
785 _am_arg=$1
786 _am_stamp_count=1
787 for _am_header in $config_headers :; do
788 case $_am_header in
789 $_am_arg | $_am_arg:* )
790 break ;;
791 * )
792 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
793 esac
794 done
795 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
796
797 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
798 # Inc.
799 #
800 # This file is free software; the Free Software Foundation
801 # gives unlimited permission to copy and/or distribute it,
802 # with or without modifications, as long as this notice is preserved.
803
804 # serial 1
805
806 # AM_PROG_INSTALL_SH
807 # ------------------
808 # Define $install_sh.
809 AC_DEFUN([AM_PROG_INSTALL_SH],
810 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
811 if test x"${install_sh}" != xset; then
812 case $am_aux_dir in
813 *\ * | *\ *)
814 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
815 *)
816 install_sh="\${SHELL} $am_aux_dir/install-sh"
817 esac
818 fi
819 AC_SUBST(install_sh)])
820
821 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
822 #
823 # This file is free software; the Free Software Foundation
824 # gives unlimited permission to copy and/or distribute it,
825 # with or without modifications, as long as this notice is preserved.
826
827 # serial 2
828
829 # Check whether the underlying file-system supports filenames
830 # with a leading dot. For instance MS-DOS doesn't.
831 AC_DEFUN([AM_SET_LEADING_DOT],
832 [rm -rf .tst 2>/dev/null
833 mkdir .tst 2>/dev/null
834 if test -d .tst; then
835 am__leading_dot=.
836 else
837 am__leading_dot=_
838 fi
839 rmdir .tst 2>/dev/null
840 AC_SUBST([am__leading_dot])])
841
842 # Check to see how 'make' treats includes. -*- Autoconf -*-
843
844 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
845 #
846 # This file is free software; the Free Software Foundation
847 # gives unlimited permission to copy and/or distribute it,
848 # with or without modifications, as long as this notice is preserved.
849
850 # serial 4
851
852 # AM_MAKE_INCLUDE()
853 # -----------------
854 # Check to see how make treats includes.
855 AC_DEFUN([AM_MAKE_INCLUDE],
856 [am_make=${MAKE-make}
857 cat > confinc << 'END'
858 am__doit:
859 @echo this is the am__doit target
860 .PHONY: am__doit
861 END
862 # If we don't find an include directive, just comment out the code.
863 AC_MSG_CHECKING([for style of include used by $am_make])
864 am__include="#"
865 am__quote=
866 _am_result=none
867 # First try GNU make style include.
868 echo "include confinc" > confmf
869 # Ignore all kinds of additional output from `make'.
870 case `$am_make -s -f confmf 2> /dev/null` in #(
871 *the\ am__doit\ target*)
872 am__include=include
873 am__quote=
874 _am_result=GNU
875 ;;
876 esac
877 # Now try BSD make style include.
878 if test "$am__include" = "#"; then
879 echo '.include "confinc"' > confmf
880 case `$am_make -s -f confmf 2> /dev/null` in #(
881 *the\ am__doit\ target*)
882 am__include=.include
883 am__quote="\""
884 _am_result=BSD
885 ;;
886 esac
887 fi
888 AC_SUBST([am__include])
889 AC_SUBST([am__quote])
890 AC_MSG_RESULT([$_am_result])
891 rm -f confinc confmf
892 ])
893
894 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
895
896 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
897 # Free Software Foundation, Inc.
898 #
899 # This file is free software; the Free Software Foundation
900 # gives unlimited permission to copy and/or distribute it,
901 # with or without modifications, as long as this notice is preserved.
902
903 # serial 6
904
905 # AM_MISSING_PROG(NAME, PROGRAM)
906 # ------------------------------
907 AC_DEFUN([AM_MISSING_PROG],
908 [AC_REQUIRE([AM_MISSING_HAS_RUN])
909 $1=${$1-"${am_missing_run}$2"}
910 AC_SUBST($1)])
911
912
913 # AM_MISSING_HAS_RUN
914 # ------------------
915 # Define MISSING if not defined so far and test if it supports --run.
916 # If it does, set am_missing_run to use it, otherwise, to nothing.
917 AC_DEFUN([AM_MISSING_HAS_RUN],
918 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
919 AC_REQUIRE_AUX_FILE([missing])dnl
920 if test x"${MISSING+set}" != xset; then
921 case $am_aux_dir in
922 *\ * | *\ *)
923 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
924 *)
925 MISSING="\${SHELL} $am_aux_dir/missing" ;;
926 esac
927 fi
928 # Use eval to expand $SHELL
929 if eval "$MISSING --run true"; then
930 am_missing_run="$MISSING --run "
931 else
932 am_missing_run=
933 AC_MSG_WARN([`missing' script is too old or missing])
934 fi
935 ])
936
937 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
938 # Inc.
939 #
940 # This file is free software; the Free Software Foundation
941 # gives unlimited permission to copy and/or distribute it,
942 # with or without modifications, as long as this notice is preserved.
943
944 # serial 1
945
946 # AM_PROG_MKDIR_P
947 # ---------------
948 # Check for `mkdir -p'.
949 AC_DEFUN([AM_PROG_MKDIR_P],
950 [AC_PREREQ([2.60])dnl
951 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
952 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
953 dnl while keeping a definition of mkdir_p for backward compatibility.
954 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
955 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
956 dnl Makefile.ins that do not define MKDIR_P, so we do our own
957 dnl adjustment using top_builddir (which is defined more often than
958 dnl MKDIR_P).
959 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
960 case $mkdir_p in
961 [[\\/$]]* | ?:[[\\/]]*) ;;
962 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
963 esac
964 ])
965
966 # Helper functions for option handling. -*- Autoconf -*-
967
968 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
969 # Foundation, Inc.
970 #
971 # This file is free software; the Free Software Foundation
972 # gives unlimited permission to copy and/or distribute it,
973 # with or without modifications, as long as this notice is preserved.
974
975 # serial 5
976
977 # _AM_MANGLE_OPTION(NAME)
978 # -----------------------
979 AC_DEFUN([_AM_MANGLE_OPTION],
980 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
981
982 # _AM_SET_OPTION(NAME)
983 # --------------------
984 # Set option NAME. Presently that only means defining a flag for this option.
985 AC_DEFUN([_AM_SET_OPTION],
986 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
987
988 # _AM_SET_OPTIONS(OPTIONS)
989 # ------------------------
990 # OPTIONS is a space-separated list of Automake options.
991 AC_DEFUN([_AM_SET_OPTIONS],
992 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
993
994 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
995 # -------------------------------------------
996 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
997 AC_DEFUN([_AM_IF_OPTION],
998 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
999
1000 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
1001 # 2011 Free Software Foundation, Inc.
1002 #
1003 # This file is free software; the Free Software Foundation
1004 # gives unlimited permission to copy and/or distribute it,
1005 # with or without modifications, as long as this notice is preserved.
1006
1007 # serial 2
1008
1009 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1010 # ---------------------------------------------------------------------------
1011 # Adds support for distributing Python modules and packages. To
1012 # install modules, copy them to $(pythondir), using the python_PYTHON
1013 # automake variable. To install a package with the same name as the
1014 # automake package, install to $(pkgpythondir), or use the
1015 # pkgpython_PYTHON automake variable.
1016 #
1017 # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
1018 # locations to install python extension modules (shared libraries).
1019 # Another macro is required to find the appropriate flags to compile
1020 # extension modules.
1021 #
1022 # If your package is configured with a different prefix to python,
1023 # users will have to add the install directory to the PYTHONPATH
1024 # environment variable, or create a .pth file (see the python
1025 # documentation for details).
1026 #
1027 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1028 # cause an error if the version of python installed on the system
1029 # doesn't meet the requirement. MINIMUM-VERSION should consist of
1030 # numbers and dots only.
1031 AC_DEFUN([AM_PATH_PYTHON],
1032 [
1033 dnl Find a Python interpreter. Python versions prior to 2.0 are not
1034 dnl supported. (2.0 was released on October 16, 2000).
1035 m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1036 [python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
1037 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
1038
1039 AC_ARG_VAR([PYTHON], [the Python interpreter])
1040
1041 m4_if([$1],[],[
1042 dnl No version check is needed.
1043 # Find any Python interpreter.
1044 if test -z "$PYTHON"; then
1045 AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
1046 fi
1047 am_display_PYTHON=python
1048 ], [
1049 dnl A version check is needed.
1050 if test -n "$PYTHON"; then
1051 # If the user set $PYTHON, use it and don't search something else.
1052 AC_MSG_CHECKING([whether $PYTHON version >= $1])
1053 AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
1054 [AC_MSG_RESULT(yes)],
1055 [AC_MSG_ERROR(too old)])
1056 am_display_PYTHON=$PYTHON
1057 else
1058 # Otherwise, try each interpreter until we find one that satisfies
1059 # VERSION.
1060 AC_CACHE_CHECK([for a Python interpreter with version >= $1],
1061 [am_cv_pathless_PYTHON],[
1062 for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
1063 test "$am_cv_pathless_PYTHON" = none && break
1064 AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
1065 done])
1066 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1067 if test "$am_cv_pathless_PYTHON" = none; then
1068 PYTHON=:
1069 else
1070 AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
1071 fi
1072 am_display_PYTHON=$am_cv_pathless_PYTHON
1073 fi
1074 ])
1075
1076 if test "$PYTHON" = :; then
1077 dnl Run any user-specified action, or abort.
1078 m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
1079 else
1080
1081 dnl Query Python for its version number. Getting [:3] seems to be
1082 dnl the best way to do this; it's what "site.py" does in the standard
1083 dnl library.
1084
1085 AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1086 [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
1087 AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1088
1089 dnl Use the values of $prefix and $exec_prefix for the corresponding
1090 dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
1091 dnl distinct variables so they can be overridden if need be. However,
1092 dnl general consensus is that you shouldn't need this ability.
1093
1094 AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
1095 AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
1096
1097 dnl At times (like when building shared libraries) you may want
1098 dnl to know which OS platform Python thinks this is.
1099
1100 AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1101 [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1102 AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1103
1104
1105 dnl Set up 4 directories:
1106
1107 dnl pythondir -- where to install python scripts. This is the
1108 dnl site-packages directory, not the python standard library
1109 dnl directory like in previous automake betas. This behavior
1110 dnl is more consistent with lispdir.m4 for example.
1111 dnl Query distutils for this directory.
1112 AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1113 [am_cv_python_pythondir],
1114 [if test "x$prefix" = xNONE
1115 then
1116 am_py_prefix=$ac_default_prefix
1117 else
1118 am_py_prefix=$prefix
1119 fi
1120 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
1121 case $am_cv_python_pythondir in
1122 $am_py_prefix*)
1123 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1124 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1125 ;;
1126 *)
1127 case $am_py_prefix in
1128 /usr|/System*) ;;
1129 *)
1130 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1131 ;;
1132 esac
1133 ;;
1134 esac
1135 ])
1136 AC_SUBST([pythondir], [$am_cv_python_pythondir])
1137
1138 dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
1139 dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
1140 dnl more consistent with the rest of automake.
1141
1142 AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1143
1144 dnl pyexecdir -- directory for installing python extension modules
1145 dnl (shared libraries)
1146 dnl Query distutils for this directory.
1147 AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1148 [am_cv_python_pyexecdir],
1149 [if test "x$exec_prefix" = xNONE
1150 then
1151 am_py_exec_prefix=$am_py_prefix
1152 else
1153 am_py_exec_prefix=$exec_prefix
1154 fi
1155 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
1156 case $am_cv_python_pyexecdir in
1157 $am_py_exec_prefix*)
1158 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
1159 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
1160 ;;
1161 *)
1162 case $am_py_exec_prefix in
1163 /usr|/System*) ;;
1164 *)
1165 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
1166 ;;
1167 esac
1168 ;;
1169 esac
1170 ])
1171 AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1172
1173 dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1174
1175 AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1176
1177 dnl Run any user-specified action.
1178 $2
1179 fi
1180
1181 ])
1182
1183
1184 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1185 # ---------------------------------------------------------------------------
1186 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1187 # Run ACTION-IF-FALSE otherwise.
1188 # This test uses sys.hexversion instead of the string equivalent (first
1189 # word of sys.version), in order to cope with versions such as 2.2c1.
1190 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1191 AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1192 [prog="import sys
1193 # split strings by '.' and convert to numeric. Append some zeros
1194 # because we need at least 4 digits for the hex conversion.
1195 # map returns an iterator in Python 3.0 and a list in 2.x
1196 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1197 minverhex = 0
1198 # xrange is not present in Python 3.0 and range returns an iterator
1199 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1200 sys.exit(sys.hexversion < minverhex)"
1201 AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1202
1203 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1204 #
1205 # This file is free software; the Free Software Foundation
1206 # gives unlimited permission to copy and/or distribute it,
1207 # with or without modifications, as long as this notice is preserved.
1208
1209 # serial 1
1210
1211 # AM_RUN_LOG(COMMAND)
1212 # -------------------
1213 # Run COMMAND, save the exit status in ac_status, and log it.
1214 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1215 AC_DEFUN([AM_RUN_LOG],
1216 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1217 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1218 ac_status=$?
1219 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1220 (exit $ac_status); }])
1221
1222 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1223
1224 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1225 # Free Software Foundation, Inc.
1226 #
1227 # This file is free software; the Free Software Foundation
1228 # gives unlimited permission to copy and/or distribute it,
1229 # with or without modifications, as long as this notice is preserved.
1230
1231 # serial 5
1232
1233 # AM_SANITY_CHECK
1234 # ---------------
1235 AC_DEFUN([AM_SANITY_CHECK],
1236 [AC_MSG_CHECKING([whether build environment is sane])
1237 # Just in case
1238 sleep 1
1239 echo timestamp > conftest.file
1240 # Reject unsafe characters in $srcdir or the absolute working directory
1241 # name. Accept space and tab only in the latter.
1242 am_lf='
1243 '
1244 case `pwd` in
1245 *[[\\\"\#\$\&\'\`$am_lf]]*)
1246 AC_MSG_ERROR([unsafe absolute working directory name]);;
1247 esac
1248 case $srcdir in
1249 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1250 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1251 esac
1252
1253 # Do `set' in a subshell so we don't clobber the current shell's
1254 # arguments. Must try -L first in case configure is actually a
1255 # symlink; some systems play weird games with the mod time of symlinks
1256 # (eg FreeBSD returns the mod time of the symlink's containing
1257 # directory).
1258 if (
1259 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1260 if test "$[*]" = "X"; then
1261 # -L didn't work.
1262 set X `ls -t "$srcdir/configure" conftest.file`
1263 fi
1264 rm -f conftest.file
1265 if test "$[*]" != "X $srcdir/configure conftest.file" \
1266 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1267
1268 # If neither matched, then we have a broken ls. This can happen
1269 # if, for instance, CONFIG_SHELL is bash and it inherits a
1270 # broken ls alias from the environment. This has actually
1271 # happened. Such a system could not be considered "sane".
1272 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1273 alias in your environment])
1274 fi
1275
1276 test "$[2]" = conftest.file
1277 )
1278 then
1279 # Ok.
1280 :
1281 else
1282 AC_MSG_ERROR([newly created file is older than distributed files!
1283 Check your system clock])
1284 fi
1285 AC_MSG_RESULT(yes)])
1286
1287 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1288 #
1289 # This file is free software; the Free Software Foundation
1290 # gives unlimited permission to copy and/or distribute it,
1291 # with or without modifications, as long as this notice is preserved.
1292
1293 # serial 2
1294
1295 # AM_SILENT_RULES([DEFAULT])
1296 # --------------------------
1297 # Enable less verbose build rules; with the default set to DEFAULT
1298 # (`yes' being less verbose, `no' or empty being verbose).
1299 AC_DEFUN([AM_SILENT_RULES],
1300 [AC_ARG_ENABLE([silent-rules],
1301 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1302 --disable-silent-rules verbose build output (undo: `make V=0')])
1303 case $enable_silent_rules in
1304 yes) AM_DEFAULT_VERBOSITY=0;;
1305 no) AM_DEFAULT_VERBOSITY=1;;
1306 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1307 esac
1308 dnl
1309 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1310 dnl do not support nested variable expansions.
1311 dnl See automake bug#9928 and bug#10237.
1312 am_make=${MAKE-make}
1313 AC_CACHE_CHECK([whether $am_make supports nested variables],
1314 [am_cv_make_support_nested_variables],
1315 [if AS_ECHO([['TRUE=$(BAR$(V))
1316 BAR0=false
1317 BAR1=true
1318 V=1
1319 am__doit:
1320 @$(TRUE)
1321 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1322 am_cv_make_support_nested_variables=yes
1323 else
1324 am_cv_make_support_nested_variables=no
1325 fi])
1326 if test $am_cv_make_support_nested_variables = yes; then
1327 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1328 AM_V='$(V)'
1329 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1330 else
1331 AM_V=$AM_DEFAULT_VERBOSITY
1332 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1333 fi
1334 AC_SUBST([AM_V])dnl
1335 AM_SUBST_NOTMAKE([AM_V])dnl
1336 AC_SUBST([AM_DEFAULT_V])dnl
1337 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1338 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1339 AM_BACKSLASH='\'
1340 AC_SUBST([AM_BACKSLASH])dnl
1341 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1342 ])
1343
1344 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1345 #
1346 # This file is free software; the Free Software Foundation
1347 # gives unlimited permission to copy and/or distribute it,
1348 # with or without modifications, as long as this notice is preserved.
1349
1350 # serial 1
1351
1352 # AM_PROG_INSTALL_STRIP
1353 # ---------------------
1354 # One issue with vendor `install' (even GNU) is that you can't
1355 # specify the program used to strip binaries. This is especially
1356 # annoying in cross-compiling environments, where the build's strip
1357 # is unlikely to handle the host's binaries.
1358 # Fortunately install-sh will honor a STRIPPROG variable, so we
1359 # always use install-sh in `make install-strip', and initialize
1360 # STRIPPROG with the value of the STRIP variable (set by the user).
1361 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1362 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1363 # Installed binaries are usually stripped using `strip' when the user
1364 # run `make install-strip'. However `strip' might not be the right
1365 # tool to use in cross-compilation environments, therefore Automake
1366 # will honor the `STRIP' environment variable to overrule this program.
1367 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1368 if test "$cross_compiling" != no; then
1369 AC_CHECK_TOOL([STRIP], [strip], :)
1370 fi
1371 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1372 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1373
1374 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1375 #
1376 # This file is free software; the Free Software Foundation
1377 # gives unlimited permission to copy and/or distribute it,
1378 # with or without modifications, as long as this notice is preserved.
1379
1380 # serial 3
1381
1382 # _AM_SUBST_NOTMAKE(VARIABLE)
1383 # ---------------------------
1384 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1385 # This macro is traced by Automake.
1386 AC_DEFUN([_AM_SUBST_NOTMAKE])
1387
1388 # AM_SUBST_NOTMAKE(VARIABLE)
1389 # --------------------------
1390 # Public sister of _AM_SUBST_NOTMAKE.
1391 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1392
1393 # Check how to create a tarball. -*- Autoconf -*-
1394
1395 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1396 #
1397 # This file is free software; the Free Software Foundation
1398 # gives unlimited permission to copy and/or distribute it,
1399 # with or without modifications, as long as this notice is preserved.
1400
1401 # serial 2
1402
1403 # _AM_PROG_TAR(FORMAT)
1404 # --------------------
1405 # Check how to create a tarball in format FORMAT.
1406 # FORMAT should be one of `v7', `ustar', or `pax'.
1407 #
1408 # Substitute a variable $(am__tar) that is a command
1409 # writing to stdout a FORMAT-tarball containing the directory
1410 # $tardir.
1411 # tardir=directory && $(am__tar) > result.tar
1412 #
1413 # Substitute a variable $(am__untar) that extract such
1414 # a tarball read from stdin.
1415 # $(am__untar) < result.tar
1416 AC_DEFUN([_AM_PROG_TAR],
1417 [# Always define AMTAR for backward compatibility. Yes, it's still used
1418 # in the wild :-( We should find a proper way to deprecate it ...
1419 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1420 m4_if([$1], [v7],
1421 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1422 [m4_case([$1], [ustar],, [pax],,
1423 [m4_fatal([Unknown tar format])])
1424 AC_MSG_CHECKING([how to create a $1 tar archive])
1425 # Loop over all known methods to create a tar archive until one works.
1426 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1427 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1428 # Do not fold the above two line into one, because Tru64 sh and
1429 # Solaris sh will not grok spaces in the rhs of `-'.
1430 for _am_tool in $_am_tools
1431 do
1432 case $_am_tool in
1433 gnutar)
1434 for _am_tar in tar gnutar gtar;
1435 do
1436 AM_RUN_LOG([$_am_tar --version]) && break
1437 done
1438 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1439 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1440 am__untar="$_am_tar -xf -"
1441 ;;
1442 plaintar)
1443 # Must skip GNU tar: if it does not support --format= it doesn't create
1444 # ustar tarball either.
1445 (tar --version) >/dev/null 2>&1 && continue
1446 am__tar='tar chf - "$$tardir"'
1447 am__tar_='tar chf - "$tardir"'
1448 am__untar='tar xf -'
1449 ;;
1450 pax)
1451 am__tar='pax -L -x $1 -w "$$tardir"'
1452 am__tar_='pax -L -x $1 -w "$tardir"'
1453 am__untar='pax -r'
1454 ;;
1455 cpio)
1456 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1457 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1458 am__untar='cpio -i -H $1 -d'
1459 ;;
1460 none)
1461 am__tar=false
1462 am__tar_=false
1463 am__untar=false
1464 ;;
1465 esac
1466
1467 # If the value was cached, stop now. We just wanted to have am__tar
1468 # and am__untar set.
1469 test -n "${am_cv_prog_tar_$1}" && break
1470
1471 # tar/untar a dummy directory, and stop if the command works
1472 rm -rf conftest.dir
1473 mkdir conftest.dir
1474 echo GrepMe > conftest.dir/file
1475 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1476 rm -rf conftest.dir
1477 if test -s conftest.tar; then
1478 AM_RUN_LOG([$am__untar <conftest.tar])
1479 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1480 fi
1481 done
1482 rm -rf conftest.dir
1483
1484 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1485 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1486 AC_SUBST([am__tar])
1487 AC_SUBST([am__untar])
1488 ]) # _AM_PROG_TAR
1489