blob: 92ed7c2415fe5d46b9948655fdf87f4803f032c8 [file] [log] [blame]
Lev Walkinb3751942012-09-02 19:36:47 -07001# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
Lev Walkinf15320b2004-06-03 03:38:44 +00002
Lev Walkin5af1a692006-08-18 01:54:27 +00003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Lev Walkinb3751942012-09-02 19:36:47 -07004# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00005# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
Lev Walkinb3751942012-09-02 19:36:47 -070014m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17[m4_warning([this file was generated for autoconf 2.63.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
Lev Walkin4c776e52010-11-08 02:07:31 -080021
Lev Walkinb3751942012-09-02 19:36:47 -070022# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
23#
24# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
25# Written by Scott James Remnant, 2004.
26#
27# This file is free software; the Free Software Foundation gives
28# unlimited permission to copy and/or distribute it, with or without
29# modifications, as long as this notice is preserved.
30
31# serial 5 lt~obsolete.m4
32
33# These exist entirely to fool aclocal when bootstrapping libtool.
34#
35# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
36# which have later been changed to m4_define as they aren't part of the
37# exported API, or moved to Autoconf or Automake where they belong.
38#
39# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
40# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
41# using a macro with the same name in our local m4/libtool.m4 it'll
42# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
43# and doesn't know about Autoconf macros at all.)
44#
45# So we provide this file, which has a silly filename so it's always
46# included after everything else. This provides aclocal with the
47# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
48# because those macros already exist, or will be overwritten later.
49# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
50#
51# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
52# Yes, that means every name once taken will need to remain here until
53# we give up compatibility with versions before 1.7, at which point
54# we need to keep only those names which we still refer to.
55
56# This is to help aclocal find these macros, as it can't see m4_define.
57AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
58
59m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
60m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
61m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
62m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
63m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
64m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
65m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
66m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
67m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
68m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
69m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
70m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
71m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
72m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
73m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
74m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
75m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
76m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
77m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
78m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
79m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
80m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
81m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
82m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
83m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
84m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
85m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
86m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
87m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
88m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
89m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
90m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
91m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
92m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
93m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
94m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
95m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
96m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
97m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
98m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
99m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
100m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
101m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
102m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
103m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
104m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
105m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
106m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
107m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
108m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
109m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
110m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
111m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
112m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
113m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
114m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
115m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
116m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
117m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
118m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
119m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
120
121# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000122#
123# This file is free software; the Free Software Foundation
124# gives unlimited permission to copy and/or distribute it,
125# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000126
127# AM_AUTOMAKE_VERSION(VERSION)
128# ----------------------------
129# Automake X.Y traces this macro to ensure aclocal.m4 has been
130# generated from the m4 files accompanying Automake X.Y.
Lev Walkin4c776e52010-11-08 02:07:31 -0800131# (This private macro should not be called outside this file.)
132AC_DEFUN([AM_AUTOMAKE_VERSION],
Lev Walkinb3751942012-09-02 19:36:47 -0700133[am__api_version='1.11'
Lev Walkin4c776e52010-11-08 02:07:31 -0800134dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
135dnl require some minimum version. Point them to the right macro.
Lev Walkinb3751942012-09-02 19:36:47 -0700136m4_if([$1], [1.11.1], [],
Lev Walkin4c776e52010-11-08 02:07:31 -0800137 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
138])
139
140# _AM_AUTOCONF_VERSION(VERSION)
141# -----------------------------
142# aclocal traces this macro to find the Autoconf version.
143# This is a private macro too. Using m4_define simplifies
144# the logic in aclocal, which can simply ignore this definition.
145m4_define([_AM_AUTOCONF_VERSION], [])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000146
147# AM_SET_CURRENT_AUTOMAKE_VERSION
148# -------------------------------
Lev Walkin4c776e52010-11-08 02:07:31 -0800149# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Lev Walkinb3751942012-09-02 19:36:47 -0700150# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000151AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Lev Walkinb3751942012-09-02 19:36:47 -0700152[AM_AUTOMAKE_VERSION([1.11.1])dnl
153m4_ifndef([AC_AUTOCONF_VERSION],
154 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
155_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000156
Lev Walkin5af1a692006-08-18 01:54:27 +0000157# AM_AUX_DIR_EXPAND -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000158
Lev Walkin5af1a692006-08-18 01:54:27 +0000159# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
160#
161# This file is free software; the Free Software Foundation
162# gives unlimited permission to copy and/or distribute it,
163# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000164
165# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
166# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
167# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
168#
169# Of course, Automake must honor this variable whenever it calls a
170# tool from the auxiliary directory. The problem is that $srcdir (and
171# therefore $ac_aux_dir as well) can be either absolute or relative,
172# depending on how configure is run. This is pretty annoying, since
173# it makes $ac_aux_dir quite unusable in subdirectories: in the top
174# source directory, any form will work fine, but in subdirectories a
175# relative path needs to be adjusted first.
176#
177# $ac_aux_dir/missing
178# fails when called from a subdirectory if $ac_aux_dir is relative
179# $top_srcdir/$ac_aux_dir/missing
180# fails if $ac_aux_dir is absolute,
181# fails when called from a subdirectory in a VPATH build with
182# a relative $ac_aux_dir
183#
184# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
185# are both prefixed by $srcdir. In an in-source build this is usually
186# harmless because $srcdir is `.', but things will broke when you
187# start a VPATH build or use an absolute $srcdir.
188#
189# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
190# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
191# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
192# and then we would define $MISSING as
193# MISSING="\${SHELL} $am_aux_dir/missing"
194# This will work as long as MISSING is not called from configure, because
195# unfortunately $(top_srcdir) has no meaning in configure.
196# However there are other variables, like CC, which are often used in
197# configure, and could therefore not use this "fixed" $ac_aux_dir.
198#
199# Another solution, used here, is to always expand $ac_aux_dir to an
200# absolute PATH. The drawback is that using absolute paths prevent a
201# configured tree to be moved without reconfiguration.
202
203AC_DEFUN([AM_AUX_DIR_EXPAND],
204[dnl Rely on autoconf to set up CDPATH properly.
205AC_PREREQ([2.50])dnl
206# expand $ac_aux_dir to an absolute path
207am_aux_dir=`cd $ac_aux_dir && pwd`
208])
209
Lev Walkin5af1a692006-08-18 01:54:27 +0000210# AM_CONDITIONAL -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000211
Lev Walkinb3751942012-09-02 19:36:47 -0700212# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
Lev Walkin5af1a692006-08-18 01:54:27 +0000213# Free Software Foundation, Inc.
214#
215# This file is free software; the Free Software Foundation
216# gives unlimited permission to copy and/or distribute it,
217# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000218
Lev Walkinb3751942012-09-02 19:36:47 -0700219# serial 9
Lev Walkin8e8b5482004-06-17 23:42:48 +0000220
221# AM_CONDITIONAL(NAME, SHELL-CONDITION)
222# -------------------------------------
223# Define a conditional.
224AC_DEFUN([AM_CONDITIONAL],
225[AC_PREREQ(2.52)dnl
226 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
227 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Lev Walkin4c776e52010-11-08 02:07:31 -0800228AC_SUBST([$1_TRUE])dnl
229AC_SUBST([$1_FALSE])dnl
230_AM_SUBST_NOTMAKE([$1_TRUE])dnl
231_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Lev Walkinb3751942012-09-02 19:36:47 -0700232m4_define([_AM_COND_VALUE_$1], [$2])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000233if $2; then
234 $1_TRUE=
235 $1_FALSE='#'
236else
237 $1_TRUE='#'
238 $1_FALSE=
239fi
240AC_CONFIG_COMMANDS_PRE(
241[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Lev Walkin5af1a692006-08-18 01:54:27 +0000242 AC_MSG_ERROR([[conditional "$1" was never defined.
243Usually this means the macro was only invoked conditionally.]])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000244fi])])
245
Lev Walkinb3751942012-09-02 19:36:47 -0700246# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
Lev Walkin8e8b5482004-06-17 23:42:48 +0000247# Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000248#
249# This file is free software; the Free Software Foundation
250# gives unlimited permission to copy and/or distribute it,
251# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000252
Lev Walkinb3751942012-09-02 19:36:47 -0700253# serial 10
Lev Walkinf15320b2004-06-03 03:38:44 +0000254
255# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
256# written in clear, in which case automake, when reading aclocal.m4,
257# will think it sees a *use*, and therefore will trigger all it's
258# C support machinery. Also note that it means that autoscan, seeing
259# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
260
261
Lev Walkin8e8b5482004-06-17 23:42:48 +0000262# _AM_DEPENDENCIES(NAME)
263# ----------------------
264# See how the compiler implements dependency checking.
265# NAME is "CC", "CXX", "GCJ", or "OBJC".
266# We try a few techniques and use that to set a single cache variable.
267#
268# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
269# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
270# dependency, and given that the user is not expected to run this macro,
271# just rely on AC_PROG_CC.
272AC_DEFUN([_AM_DEPENDENCIES],
273[AC_REQUIRE([AM_SET_DEPDIR])dnl
274AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
275AC_REQUIRE([AM_MAKE_INCLUDE])dnl
276AC_REQUIRE([AM_DEP_TRACK])dnl
277
278ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
279 [$1], CXX, [depcc="$CXX" am_compiler_list=],
280 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Lev Walkin4c776e52010-11-08 02:07:31 -0800281 [$1], UPC, [depcc="$UPC" am_compiler_list=],
Lev Walkin8e8b5482004-06-17 23:42:48 +0000282 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
283 [depcc="$$1" am_compiler_list=])
284
285AC_CACHE_CHECK([dependency style of $depcc],
286 [am_cv_$1_dependencies_compiler_type],
287[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
288 # We make a subdir and do the tests there. Otherwise we can end up
289 # making bogus files that we don't know about and never remove. For
290 # instance it was reported that on HP-UX the gcc test will end up
291 # making a dummy file named `D' -- because `-MD' means `put the output
292 # in D'.
293 mkdir conftest.dir
294 # Copy depcomp to subdir because otherwise we won't find it if we're
295 # using a relative directory.
296 cp "$am_depcomp" conftest.dir
297 cd conftest.dir
298 # We will build objects and dependencies in a subdirectory because
299 # it helps to detect inapplicable dependency modes. For instance
300 # both Tru64's cc and ICC support -MD to output dependencies as a
301 # side effect of compilation, but ICC will put the dependencies in
302 # the current directory while Tru64 will put them in the object
303 # directory.
304 mkdir sub
305
306 am_cv_$1_dependencies_compiler_type=none
307 if test "$am_compiler_list" = ""; then
308 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
309 fi
Lev Walkinb3751942012-09-02 19:36:47 -0700310 am__universal=false
311 m4_case([$1], [CC],
312 [case " $depcc " in #(
313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
314 esac],
315 [CXX],
316 [case " $depcc " in #(
317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
318 esac])
319
Lev Walkin8e8b5482004-06-17 23:42:48 +0000320 for depmode in $am_compiler_list; do
321 # Setup a source with many dependencies, because some compilers
322 # like to wrap large dependency lists on column 80 (with \), and
323 # we should not choose a depcomp mode which is confused by this.
324 #
325 # We need to recreate these files for each test, as the compiler may
326 # overwrite some of them when testing with obscure command lines.
327 # This happens at least with the AIX C compiler.
328 : > sub/conftest.c
329 for i in 1 2 3 4 5 6; do
330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
331 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
332 # Solaris 8's {/usr,}/bin/sh.
333 touch sub/conftst$i.h
334 done
335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
336
Lev Walkinb3751942012-09-02 19:36:47 -0700337 # We check with `-c' and `-o' for the sake of the "dashmstdout"
338 # mode. It turns out that the SunPro C++ compiler does not properly
339 # handle `-M -o', and we need to detect this. Also, some Intel
340 # versions had trouble with output in subdirs
341 am__obj=sub/conftest.${OBJEXT-o}
342 am__minus_obj="-o $am__obj"
Lev Walkin8e8b5482004-06-17 23:42:48 +0000343 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -0700344 gcc)
345 # This depmode causes a compiler race in universal mode.
346 test "$am__universal" = false || continue
347 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +0000348 nosideeffect)
349 # after this tag, mechanisms are not by side-effect, so they'll
350 # only be used when explicitly requested
351 if test "x$enable_dependency_tracking" = xyes; then
352 continue
353 else
354 break
355 fi
356 ;;
Lev Walkinb3751942012-09-02 19:36:47 -0700357 msvisualcpp | msvcmsys)
358 # This compiler won't grok `-c -o', but also, the minuso test has
359 # not run yet. These depmodes are late enough in the game, and
360 # so weak that their functioning should not be impacted.
361 am__obj=conftest.${OBJEXT-o}
362 am__minus_obj=
363 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +0000364 none) break ;;
365 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +0000366 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -0700367 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -0700369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000370 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -0800371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +0000372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -0700373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +0000374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
375 # icc doesn't choke on unknown options, it will just issue warnings
376 # or remarks (even with -Werror). So we grep stderr for any message
377 # that says an option was ignored or not supported.
378 # When given -MP, icc 7.0 and 7.1 complain thusly:
379 # icc: Command line warning: ignoring option '-M'; no argument required
380 # The diagnosis changed in icc 8.0:
381 # icc: Command line remark: option '-MP' not supported
382 if (grep 'ignoring option' conftest.err ||
383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
384 am_cv_$1_dependencies_compiler_type=$depmode
385 break
386 fi
387 fi
388 done
389
390 cd ..
391 rm -rf conftest.dir
392else
393 am_cv_$1_dependencies_compiler_type=none
394fi
395])
396AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
397AM_CONDITIONAL([am__fastdep$1], [
398 test "x$enable_dependency_tracking" != xno \
399 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
400])
Lev Walkinf15320b2004-06-03 03:38:44 +0000401
402
Lev Walkin8e8b5482004-06-17 23:42:48 +0000403# AM_SET_DEPDIR
404# -------------
405# Choose a directory name for dependency files.
406# This macro is AC_REQUIREd in _AM_DEPENDENCIES
407AC_DEFUN([AM_SET_DEPDIR],
408[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
409AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
410])
411
412
413# AM_DEP_TRACK
414# ------------
415AC_DEFUN([AM_DEP_TRACK],
416[AC_ARG_ENABLE(dependency-tracking,
417[ --disable-dependency-tracking speeds up one-time build
418 --enable-dependency-tracking do not reject slow dependency extractors])
419if test "x$enable_dependency_tracking" != xno; then
420 am_depcomp="$ac_aux_dir/depcomp"
421 AMDEPBACKSLASH='\'
422fi
423AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Lev Walkin4c776e52010-11-08 02:07:31 -0800424AC_SUBST([AMDEPBACKSLASH])dnl
425_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000426])
427
Lev Walkin5af1a692006-08-18 01:54:27 +0000428# Generate code to set up dependency tracking. -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000429
Lev Walkinb3751942012-09-02 19:36:47 -0700430# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
Lev Walkin5af1a692006-08-18 01:54:27 +0000431# Free Software Foundation, Inc.
432#
433# This file is free software; the Free Software Foundation
434# gives unlimited permission to copy and/or distribute it,
435# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000436
Lev Walkinb3751942012-09-02 19:36:47 -0700437#serial 5
Lev Walkin8e8b5482004-06-17 23:42:48 +0000438
439# _AM_OUTPUT_DEPENDENCY_COMMANDS
440# ------------------------------
441AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Lev Walkinb3751942012-09-02 19:36:47 -0700442[{
443 # Autoconf 2.62 quotes --file arguments for eval, but not when files
444 # are listed without --file. Let's play safe and only enable the eval
445 # if we detect the quoting.
446 case $CONFIG_FILES in
447 *\'*) eval set x "$CONFIG_FILES" ;;
448 *) set x $CONFIG_FILES ;;
449 esac
450 shift
451 for mf
452 do
453 # Strip MF so we end up with the name of the file.
454 mf=`echo "$mf" | sed -e 's/:.*$//'`
455 # Check whether this is an Automake generated Makefile or not.
456 # We used to match only the files named `Makefile.in', but
457 # some people rename them; so instead we look at the file content.
458 # Grep'ing the first line is not enough: some people post-process
459 # each Makefile.in and add a new line on top of each file to say so.
460 # Grep'ing the whole file is not good either: AIX grep has a line
461 # limit of 2048, but all sed's we know have understand at least 4000.
462 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
463 dirpart=`AS_DIRNAME("$mf")`
464 else
465 continue
466 fi
467 # Extract the definition of DEPDIR, am__include, and am__quote
468 # from the Makefile without running `make'.
469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
470 test -z "$DEPDIR" && continue
471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
472 test -z "am__include" && continue
473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
474 # When using ansi2knr, U may be empty or an underscore; expand it
475 U=`sed -n 's/^U = //p' < "$mf"`
476 # Find all dependency output files, they are included files with
477 # $(DEPDIR) in their names. We invoke sed twice because it is the
478 # simplest approach to changing $(DEPDIR) to its actual value in the
479 # expansion.
480 for file in `sed -n "
481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
483 # Make sure the directory exists.
484 test -f "$dirpart/$file" && continue
485 fdir=`AS_DIRNAME(["$file"])`
486 AS_MKDIR_P([$dirpart/$fdir])
487 # echo "creating $dirpart/$file"
488 echo '# dummy' > "$dirpart/$file"
489 done
Lev Walkin8e8b5482004-06-17 23:42:48 +0000490 done
Lev Walkinb3751942012-09-02 19:36:47 -0700491}
Lev Walkin8e8b5482004-06-17 23:42:48 +0000492])# _AM_OUTPUT_DEPENDENCY_COMMANDS
493
494
495# AM_OUTPUT_DEPENDENCY_COMMANDS
496# -----------------------------
497# This macro should only be invoked once -- use via AC_REQUIRE.
498#
499# This code is only required when automatic dependency tracking
500# is enabled. FIXME. This creates each `.P' file that we will
501# need in order to bootstrap the dependency handling code.
502AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
503[AC_CONFIG_COMMANDS([depfiles],
504 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
505 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
506])
507
Lev Walkin5af1a692006-08-18 01:54:27 +0000508# Do all the work for Automake. -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000509
Lev Walkin4c776e52010-11-08 02:07:31 -0800510# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Lev Walkinb3751942012-09-02 19:36:47 -0700511# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000512#
513# This file is free software; the Free Software Foundation
514# gives unlimited permission to copy and/or distribute it,
515# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000516
Lev Walkinb3751942012-09-02 19:36:47 -0700517# serial 16
Lev Walkin8e8b5482004-06-17 23:42:48 +0000518
Lev Walkin5af1a692006-08-18 01:54:27 +0000519# This macro actually does too much. Some checks are only needed if
520# your package does certain things. But this isn't really a big deal.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000521
522# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
523# AM_INIT_AUTOMAKE([OPTIONS])
524# -----------------------------------------------
525# The call with PACKAGE and VERSION arguments is the old style
526# call (pre autoconf-2.50), which is being phased out. PACKAGE
527# and VERSION should now be passed to AC_INIT and removed from
528# the call to AM_INIT_AUTOMAKE.
529# We support both call styles for the transition. After
530# the next Automake release, Autoconf can make the AC_INIT
531# arguments mandatory, and then we can depend on a new Autoconf
532# release and drop the old call support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000533AC_DEFUN([AM_INIT_AUTOMAKE],
Lev Walkinb3751942012-09-02 19:36:47 -0700534[AC_PREREQ([2.62])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000535dnl Autoconf wants to disallow AM_ names. We explicitly allow
536dnl the ones we care about.
537m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
538AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
539AC_REQUIRE([AC_PROG_INSTALL])dnl
Lev Walkin4c776e52010-11-08 02:07:31 -0800540if test "`cd $srcdir && pwd`" != "`pwd`"; then
541 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
542 # is not polluted with repeated "-I."
543 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
544 # test to see if srcdir already configured
545 if test -f $srcdir/config.status; then
546 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
547 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000548fi
549
Lev Walkin8e8b5482004-06-17 23:42:48 +0000550# test whether we have cygpath
551if test -z "$CYGPATH_W"; then
552 if (cygpath --version) >/dev/null 2>/dev/null; then
553 CYGPATH_W='cygpath -w'
554 else
555 CYGPATH_W=echo
556 fi
557fi
558AC_SUBST([CYGPATH_W])
559
Lev Walkinf15320b2004-06-03 03:38:44 +0000560# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000561dnl Distinguish between old-style and new-style calls.
562m4_ifval([$2],
563[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
564 AC_SUBST([PACKAGE], [$1])dnl
565 AC_SUBST([VERSION], [$2])],
566[_AM_SET_OPTIONS([$1])dnl
Lev Walkin4c776e52010-11-08 02:07:31 -0800567dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
568m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
569 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000570 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
571 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
572
573_AM_IF_OPTION([no-define],,
Lev Walkinf15320b2004-06-03 03:38:44 +0000574[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000575 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
Lev Walkinf15320b2004-06-03 03:38:44 +0000576
577# Some tools Automake needs.
578AC_REQUIRE([AM_SANITY_CHECK])dnl
579AC_REQUIRE([AC_ARG_PROGRAM])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000580AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
Lev Walkinf15320b2004-06-03 03:38:44 +0000581AM_MISSING_PROG(AUTOCONF, autoconf)
Lev Walkin8e8b5482004-06-17 23:42:48 +0000582AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
Lev Walkinf15320b2004-06-03 03:38:44 +0000583AM_MISSING_PROG(AUTOHEADER, autoheader)
584AM_MISSING_PROG(MAKEINFO, makeinfo)
Lev Walkinb3751942012-09-02 19:36:47 -0700585AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
586AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000587AC_REQUIRE([AM_PROG_MKDIR_P])dnl
Lev Walkinf15320b2004-06-03 03:38:44 +0000588# We need awk for the "check" target. The system "awk" is bad on
589# some platforms.
590AC_REQUIRE([AC_PROG_AWK])dnl
591AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000592AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Lev Walkin5af1a692006-08-18 01:54:27 +0000593_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Lev Walkinb3751942012-09-02 19:36:47 -0700594 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
595 [_AM_PROG_TAR([v7])])])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000596_AM_IF_OPTION([no-dependencies],,
597[AC_PROVIDE_IFELSE([AC_PROG_CC],
Lev Walkinb3751942012-09-02 19:36:47 -0700598 [_AM_DEPENDENCIES(CC)],
599 [define([AC_PROG_CC],
600 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000601AC_PROVIDE_IFELSE([AC_PROG_CXX],
Lev Walkinb3751942012-09-02 19:36:47 -0700602 [_AM_DEPENDENCIES(CXX)],
603 [define([AC_PROG_CXX],
604 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
Lev Walkin4c776e52010-11-08 02:07:31 -0800605AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Lev Walkinb3751942012-09-02 19:36:47 -0700606 [_AM_DEPENDENCIES(OBJC)],
607 [define([AC_PROG_OBJC],
608 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
Lev Walkinf15320b2004-06-03 03:38:44 +0000609])
Lev Walkinb3751942012-09-02 19:36:47 -0700610_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
611dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
612dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
613dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
614AC_CONFIG_COMMANDS_PRE(dnl
615[m4_provide_if([_AM_COMPILER_EXEEXT],
616 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000617])
618
Lev Walkinb3751942012-09-02 19:36:47 -0700619dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
620dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
621dnl mangled by Autoconf and run in a shell conditional statement.
622m4_define([_AC_COMPILER_EXEEXT],
623m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
624
Lev Walkin8e8b5482004-06-17 23:42:48 +0000625
626# When config.status generates a header, we must update the stamp-h file.
627# This file resides in the same directory as the config header
628# that is generated. The stamp files are numbered to have different names.
629
630# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
631# loop where config.status creates the headers, so we can generate
632# our stamp files there.
633AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
634[# Compute $1's index in $config_headers.
Lev Walkinb3751942012-09-02 19:36:47 -0700635_am_arg=$1
Lev Walkin8e8b5482004-06-17 23:42:48 +0000636_am_stamp_count=1
637for _am_header in $config_headers :; do
638 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -0700639 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +0000640 break ;;
641 * )
642 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
643 esac
644done
Lev Walkinb3751942012-09-02 19:36:47 -0700645echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000646
Lev Walkinb3751942012-09-02 19:36:47 -0700647# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000648#
649# This file is free software; the Free Software Foundation
650# gives unlimited permission to copy and/or distribute it,
651# with or without modifications, as long as this notice is preserved.
652
Lev Walkin8e8b5482004-06-17 23:42:48 +0000653# AM_PROG_INSTALL_SH
654# ------------------
655# Define $install_sh.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000656AC_DEFUN([AM_PROG_INSTALL_SH],
657[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Lev Walkinb3751942012-09-02 19:36:47 -0700658if test x"${install_sh}" != xset; then
659 case $am_aux_dir in
660 *\ * | *\ *)
661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
662 *)
663 install_sh="\${SHELL} $am_aux_dir/install-sh"
664 esac
665fi
Lev Walkin8e8b5482004-06-17 23:42:48 +0000666AC_SUBST(install_sh)])
667
Lev Walkin5af1a692006-08-18 01:54:27 +0000668# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
669#
670# This file is free software; the Free Software Foundation
671# gives unlimited permission to copy and/or distribute it,
672# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000673
Lev Walkin5af1a692006-08-18 01:54:27 +0000674# serial 2
Lev Walkin8e8b5482004-06-17 23:42:48 +0000675
676# Check whether the underlying file-system supports filenames
677# with a leading dot. For instance MS-DOS doesn't.
678AC_DEFUN([AM_SET_LEADING_DOT],
679[rm -rf .tst 2>/dev/null
680mkdir .tst 2>/dev/null
681if test -d .tst; then
682 am__leading_dot=.
683else
684 am__leading_dot=_
685fi
686rmdir .tst 2>/dev/null
687AC_SUBST([am__leading_dot])])
688
Lev Walkin5af1a692006-08-18 01:54:27 +0000689# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
Lev Walkin8e8b5482004-06-17 23:42:48 +0000690# Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000691#
692# This file is free software; the Free Software Foundation
693# gives unlimited permission to copy and/or distribute it,
694# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000695
Lev Walkin5af1a692006-08-18 01:54:27 +0000696# serial 5
Lev Walkin8e8b5482004-06-17 23:42:48 +0000697
698# AM_PROG_LEX
699# -----------
700# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
701# "missing" invocation, for better error output.
702AC_DEFUN([AM_PROG_LEX],
703[AC_PREREQ(2.50)dnl
704AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
705AC_REQUIRE([AC_PROG_LEX])dnl
706if test "$LEX" = :; then
707 LEX=${am_missing_run}flex
708fi])
709
Lev Walkin5af1a692006-08-18 01:54:27 +0000710# Check to see how 'make' treats includes. -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000711
Lev Walkinb3751942012-09-02 19:36:47 -0700712# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000713#
714# This file is free software; the Free Software Foundation
715# gives unlimited permission to copy and/or distribute it,
716# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000717
Lev Walkinb3751942012-09-02 19:36:47 -0700718# serial 4
Lev Walkin8e8b5482004-06-17 23:42:48 +0000719
720# AM_MAKE_INCLUDE()
721# -----------------
722# Check to see how make treats includes.
723AC_DEFUN([AM_MAKE_INCLUDE],
724[am_make=${MAKE-make}
725cat > confinc << 'END'
726am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -0700727 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +0000728.PHONY: am__doit
729END
730# If we don't find an include directive, just comment out the code.
731AC_MSG_CHECKING([for style of include used by $am_make])
732am__include="#"
733am__quote=
734_am_result=none
735# First try GNU make style include.
736echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -0700737# Ignore all kinds of additional output from `make'.
738case `$am_make -s -f confmf 2> /dev/null` in #(
739*the\ am__doit\ target*)
740 am__include=include
741 am__quote=
742 _am_result=GNU
743 ;;
744esac
Lev Walkin8e8b5482004-06-17 23:42:48 +0000745# Now try BSD make style include.
746if test "$am__include" = "#"; then
747 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -0700748 case `$am_make -s -f confmf 2> /dev/null` in #(
749 *the\ am__doit\ target*)
750 am__include=.include
751 am__quote="\""
752 _am_result=BSD
753 ;;
754 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +0000755fi
756AC_SUBST([am__include])
757AC_SUBST([am__quote])
758AC_MSG_RESULT([$_am_result])
759rm -f confinc confmf
760])
761
Lev Walkin5af1a692006-08-18 01:54:27 +0000762# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000763
Lev Walkinb3751942012-09-02 19:36:47 -0700764# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
Lev Walkin5af1a692006-08-18 01:54:27 +0000765# Free Software Foundation, Inc.
766#
767# This file is free software; the Free Software Foundation
768# gives unlimited permission to copy and/or distribute it,
769# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000770
Lev Walkinb3751942012-09-02 19:36:47 -0700771# serial 6
Lev Walkin8e8b5482004-06-17 23:42:48 +0000772
773# AM_MISSING_PROG(NAME, PROGRAM)
774# ------------------------------
775AC_DEFUN([AM_MISSING_PROG],
776[AC_REQUIRE([AM_MISSING_HAS_RUN])
777$1=${$1-"${am_missing_run}$2"}
778AC_SUBST($1)])
779
780
781# AM_MISSING_HAS_RUN
782# ------------------
783# Define MISSING if not defined so far and test if it supports --run.
784# If it does, set am_missing_run to use it, otherwise, to nothing.
785AC_DEFUN([AM_MISSING_HAS_RUN],
786[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Lev Walkin4c776e52010-11-08 02:07:31 -0800787AC_REQUIRE_AUX_FILE([missing])dnl
Lev Walkinb3751942012-09-02 19:36:47 -0700788if test x"${MISSING+set}" != xset; then
789 case $am_aux_dir in
790 *\ * | *\ *)
791 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
792 *)
793 MISSING="\${SHELL} $am_aux_dir/missing" ;;
794 esac
795fi
Lev Walkin8e8b5482004-06-17 23:42:48 +0000796# Use eval to expand $SHELL
797if eval "$MISSING --run true"; then
798 am_missing_run="$MISSING --run "
799else
800 am_missing_run=
801 AC_MSG_WARN([`missing' script is too old or missing])
802fi
803])
804
Lev Walkin4c776e52010-11-08 02:07:31 -0800805# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000806#
807# This file is free software; the Free Software Foundation
808# gives unlimited permission to copy and/or distribute it,
809# with or without modifications, as long as this notice is preserved.
810
Lev Walkin8e8b5482004-06-17 23:42:48 +0000811# AM_PROG_MKDIR_P
812# ---------------
Lev Walkin4c776e52010-11-08 02:07:31 -0800813# Check for `mkdir -p'.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000814AC_DEFUN([AM_PROG_MKDIR_P],
Lev Walkin4c776e52010-11-08 02:07:31 -0800815[AC_PREREQ([2.60])dnl
816AC_REQUIRE([AC_PROG_MKDIR_P])dnl
817dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
818dnl while keeping a definition of mkdir_p for backward compatibility.
819dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
820dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
821dnl Makefile.ins that do not define MKDIR_P, so we do our own
822dnl adjustment using top_builddir (which is defined more often than
823dnl MKDIR_P).
824AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
825case $mkdir_p in
826 [[\\/$]]* | ?:[[\\/]]*) ;;
827 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
828esac
829])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000830
Lev Walkin5af1a692006-08-18 01:54:27 +0000831# Helper functions for option handling. -*- Autoconf -*-
Lev Walkin8e8b5482004-06-17 23:42:48 +0000832
Lev Walkinb3751942012-09-02 19:36:47 -0700833# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
Lev Walkin5af1a692006-08-18 01:54:27 +0000834#
835# This file is free software; the Free Software Foundation
836# gives unlimited permission to copy and/or distribute it,
837# with or without modifications, as long as this notice is preserved.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000838
Lev Walkinb3751942012-09-02 19:36:47 -0700839# serial 4
Lev Walkin8e8b5482004-06-17 23:42:48 +0000840
841# _AM_MANGLE_OPTION(NAME)
842# -----------------------
843AC_DEFUN([_AM_MANGLE_OPTION],
844[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
845
846# _AM_SET_OPTION(NAME)
847# ------------------------------
848# Set option NAME. Presently that only means defining a flag for this option.
849AC_DEFUN([_AM_SET_OPTION],
850[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
851
852# _AM_SET_OPTIONS(OPTIONS)
853# ----------------------------------
854# OPTIONS is a space-separated list of Automake options.
855AC_DEFUN([_AM_SET_OPTIONS],
Lev Walkinb3751942012-09-02 19:36:47 -0700856[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Lev Walkin8e8b5482004-06-17 23:42:48 +0000857
858# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
859# -------------------------------------------
860# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
861AC_DEFUN([_AM_IF_OPTION],
862[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Lev Walkinf15320b2004-06-03 03:38:44 +0000863
Lev Walkin5af1a692006-08-18 01:54:27 +0000864# Check to make sure that the build environment is sane. -*- Autoconf -*-
865
Lev Walkinb3751942012-09-02 19:36:47 -0700866# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
Lev Walkin5af1a692006-08-18 01:54:27 +0000867# Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +0000868#
Lev Walkin5af1a692006-08-18 01:54:27 +0000869# This file is free software; the Free Software Foundation
870# gives unlimited permission to copy and/or distribute it,
871# with or without modifications, as long as this notice is preserved.
Lev Walkinf15320b2004-06-03 03:38:44 +0000872
Lev Walkinb3751942012-09-02 19:36:47 -0700873# serial 5
Lev Walkinf15320b2004-06-03 03:38:44 +0000874
875# AM_SANITY_CHECK
876# ---------------
877AC_DEFUN([AM_SANITY_CHECK],
878[AC_MSG_CHECKING([whether build environment is sane])
879# Just in case
880sleep 1
881echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -0700882# Reject unsafe characters in $srcdir or the absolute working directory
883# name. Accept space and tab only in the latter.
884am_lf='
885'
886case `pwd` in
887 *[[\\\"\#\$\&\'\`$am_lf]]*)
888 AC_MSG_ERROR([unsafe absolute working directory name]);;
889esac
890case $srcdir in
891 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
892 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
893esac
894
Lev Walkinf15320b2004-06-03 03:38:44 +0000895# Do `set' in a subshell so we don't clobber the current shell's
896# arguments. Must try -L first in case configure is actually a
897# symlink; some systems play weird games with the mod time of symlinks
898# (eg FreeBSD returns the mod time of the symlink's containing
899# directory).
900if (
Lev Walkinb3751942012-09-02 19:36:47 -0700901 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +0000902 if test "$[*]" = "X"; then
903 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -0700904 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +0000905 fi
906 rm -f conftest.file
907 if test "$[*]" != "X $srcdir/configure conftest.file" \
908 && test "$[*]" != "X conftest.file $srcdir/configure"; then
909
910 # If neither matched, then we have a broken ls. This can happen
911 # if, for instance, CONFIG_SHELL is bash and it inherits a
912 # broken ls alias from the environment. This has actually
913 # happened. Such a system could not be considered "sane".
914 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
915alias in your environment])
916 fi
917
918 test "$[2]" = conftest.file
919 )
920then
921 # Ok.
922 :
923else
924 AC_MSG_ERROR([newly created file is older than distributed files!
925Check your system clock])
926fi
927AC_MSG_RESULT(yes)])
928
Lev Walkin5af1a692006-08-18 01:54:27 +0000929# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
930#
931# This file is free software; the Free Software Foundation
932# gives unlimited permission to copy and/or distribute it,
933# with or without modifications, as long as this notice is preserved.
934
Lev Walkin8e8b5482004-06-17 23:42:48 +0000935# AM_PROG_INSTALL_STRIP
Lev Walkin5af1a692006-08-18 01:54:27 +0000936# ---------------------
Lev Walkinf15320b2004-06-03 03:38:44 +0000937# One issue with vendor `install' (even GNU) is that you can't
938# specify the program used to strip binaries. This is especially
939# annoying in cross-compiling environments, where the build's strip
940# is unlikely to handle the host's binaries.
941# Fortunately install-sh will honor a STRIPPROG variable, so we
942# always use install-sh in `make install-strip', and initialize
943# STRIPPROG with the value of the STRIP variable (set by the user).
944AC_DEFUN([AM_PROG_INSTALL_STRIP],
945[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Lev Walkin8e8b5482004-06-17 23:42:48 +0000946# Installed binaries are usually stripped using `strip' when the user
947# run `make install-strip'. However `strip' might not be the right
948# tool to use in cross-compilation environments, therefore Automake
949# will honor the `STRIP' environment variable to overrule this program.
950dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
951if test "$cross_compiling" != no; then
952 AC_CHECK_TOOL([STRIP], [strip], :)
953fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Lev Walkinf15320b2004-06-03 03:38:44 +0000955AC_SUBST([INSTALL_STRIP_PROGRAM])])
956
Lev Walkinb3751942012-09-02 19:36:47 -0700957# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
Lev Walkin4c776e52010-11-08 02:07:31 -0800958#
959# This file is free software; the Free Software Foundation
960# gives unlimited permission to copy and/or distribute it,
961# with or without modifications, as long as this notice is preserved.
962
Lev Walkinb3751942012-09-02 19:36:47 -0700963# serial 2
964
Lev Walkin4c776e52010-11-08 02:07:31 -0800965# _AM_SUBST_NOTMAKE(VARIABLE)
966# ---------------------------
Lev Walkinb3751942012-09-02 19:36:47 -0700967# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Lev Walkin4c776e52010-11-08 02:07:31 -0800968# This macro is traced by Automake.
969AC_DEFUN([_AM_SUBST_NOTMAKE])
970
Lev Walkinb3751942012-09-02 19:36:47 -0700971# AM_SUBST_NOTMAKE(VARIABLE)
972# ---------------------------
973# Public sister of _AM_SUBST_NOTMAKE.
974AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
975
Lev Walkin5af1a692006-08-18 01:54:27 +0000976# Check how to create a tarball. -*- Autoconf -*-
977
978# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
979#
980# This file is free software; the Free Software Foundation
981# gives unlimited permission to copy and/or distribute it,
982# with or without modifications, as long as this notice is preserved.
983
984# serial 2
985
986# _AM_PROG_TAR(FORMAT)
987# --------------------
988# Check how to create a tarball in format FORMAT.
989# FORMAT should be one of `v7', `ustar', or `pax'.
990#
991# Substitute a variable $(am__tar) that is a command
992# writing to stdout a FORMAT-tarball containing the directory
993# $tardir.
994# tardir=directory && $(am__tar) > result.tar
995#
996# Substitute a variable $(am__untar) that extract such
997# a tarball read from stdin.
998# $(am__untar) < result.tar
999AC_DEFUN([_AM_PROG_TAR],
1000[# Always define AMTAR for backward compatibility.
1001AM_MISSING_PROG([AMTAR], [tar])
1002m4_if([$1], [v7],
1003 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1004 [m4_case([$1], [ustar],, [pax],,
1005 [m4_fatal([Unknown tar format])])
1006AC_MSG_CHECKING([how to create a $1 tar archive])
1007# Loop over all known methods to create a tar archive until one works.
1008_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1009_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1010# Do not fold the above two line into one, because Tru64 sh and
1011# Solaris sh will not grok spaces in the rhs of `-'.
1012for _am_tool in $_am_tools
1013do
1014 case $_am_tool in
1015 gnutar)
1016 for _am_tar in tar gnutar gtar;
1017 do
1018 AM_RUN_LOG([$_am_tar --version]) && break
1019 done
1020 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1021 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1022 am__untar="$_am_tar -xf -"
1023 ;;
1024 plaintar)
1025 # Must skip GNU tar: if it does not support --format= it doesn't create
1026 # ustar tarball either.
1027 (tar --version) >/dev/null 2>&1 && continue
1028 am__tar='tar chf - "$$tardir"'
1029 am__tar_='tar chf - "$tardir"'
1030 am__untar='tar xf -'
1031 ;;
1032 pax)
1033 am__tar='pax -L -x $1 -w "$$tardir"'
1034 am__tar_='pax -L -x $1 -w "$tardir"'
1035 am__untar='pax -r'
1036 ;;
1037 cpio)
1038 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1039 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1040 am__untar='cpio -i -H $1 -d'
1041 ;;
1042 none)
1043 am__tar=false
1044 am__tar_=false
1045 am__untar=false
1046 ;;
1047 esac
1048
1049 # If the value was cached, stop now. We just wanted to have am__tar
1050 # and am__untar set.
1051 test -n "${am_cv_prog_tar_$1}" && break
1052
1053 # tar/untar a dummy directory, and stop if the command works
1054 rm -rf conftest.dir
1055 mkdir conftest.dir
1056 echo GrepMe > conftest.dir/file
1057 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1058 rm -rf conftest.dir
1059 if test -s conftest.tar; then
1060 AM_RUN_LOG([$am__untar <conftest.tar])
1061 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1062 fi
1063done
1064rm -rf conftest.dir
1065
1066AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1067AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1068AC_SUBST([am__tar])
1069AC_SUBST([am__untar])
1070]) # _AM_PROG_TAR
1071
Lev Walkine7c4b962010-11-09 03:10:36 -08001072m4_include([m4/libtool.m4])
1073m4_include([m4/ltoptions.m4])
1074m4_include([m4/ltsugar.m4])
1075m4_include([m4/ltversion.m4])
1076m4_include([m4/lt~obsolete.m4])