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