blob: 7af5edf4266b318809248a4eda5ffd00df39b0b4 [file] [log] [blame]
cristybced8142013-05-31 01:23:57 +00001# generated automatically by aclocal 1.13.2 -*- Autoconf -*-
cristy854a7b32012-09-04 17:30:26 +00002
cristybced8142013-05-31 01:23:57 +00003# Copyright (C) 1996-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +00004
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
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
cristy58d34aa2013-01-24 15:11:54 +000014m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
cristy854a7b32012-09-04 17:30:26 +000015m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
cristy7d342662013-05-19 11:07:59 +000023# longlong.m4 serial 14
24dnl Copyright (C) 1999-2007, 2009-2010 Free Software Foundation, Inc.
cristybdabdd62013-03-04 17:43:36 +000025dnl This file is free software; the Free Software Foundation
26dnl gives unlimited permission to copy and/or distribute it,
27dnl with or without modifications, as long as this notice is preserved.
28
29dnl From Paul Eggert.
30
31# Define HAVE_LONG_LONG_INT if 'long long int' works.
cristy7d342662013-05-19 11:07:59 +000032# This fixes a bug in Autoconf 2.61, but can be removed once we
33# assume 2.62 everywhere.
cristybdabdd62013-03-04 17:43:36 +000034
35# Note: If the type 'long long int' exists but is only 32 bits large
36# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
37# defined. In this case you can treat 'long long int' like 'long int'.
38
39AC_DEFUN([AC_TYPE_LONG_LONG_INT],
40[
41 AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
cristy7d342662013-05-19 11:07:59 +000042 [AC_LINK_IFELSE(
43 [_AC_TYPE_LONG_LONG_SNIPPET],
44 [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
45 dnl If cross compiling, assume the bug isn't important, since
46 dnl nobody cross compiles for this platform as far as we know.
47 AC_RUN_IFELSE(
48 [AC_LANG_PROGRAM(
49 [[@%:@include <limits.h>
50 @%:@ifndef LLONG_MAX
51 @%:@ define HALF \
52 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
53 @%:@ define LLONG_MAX (HALF - 1 + HALF)
54 @%:@endif]],
55 [[long long int n = 1;
56 int i;
57 for (i = 0; ; i++)
58 {
59 long long int m = n << i;
60 if (m >> i != n)
61 return 1;
62 if (LLONG_MAX / 2 < m)
63 break;
64 }
65 return 0;]])],
66 [ac_cv_type_long_long_int=yes],
67 [ac_cv_type_long_long_int=no],
68 [ac_cv_type_long_long_int=yes])],
69 [ac_cv_type_long_long_int=no])])
cristybdabdd62013-03-04 17:43:36 +000070 if test $ac_cv_type_long_long_int = yes; then
71 AC_DEFINE([HAVE_LONG_LONG_INT], [1],
cristy7d342662013-05-19 11:07:59 +000072 [Define to 1 if the system has the type `long long int'.])
cristybdabdd62013-03-04 17:43:36 +000073 fi
74])
75
76# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
cristy7d342662013-05-19 11:07:59 +000077# This fixes a bug in Autoconf 2.61, but can be removed once we
78# assume 2.62 everywhere.
cristybdabdd62013-03-04 17:43:36 +000079
80# Note: If the type 'unsigned long long int' exists but is only 32 bits
81# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
82# will not be defined. In this case you can treat 'unsigned long long int'
83# like 'unsigned long int'.
84
85AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
86[
87 AC_CACHE_CHECK([for unsigned long long int],
88 [ac_cv_type_unsigned_long_long_int],
cristy7d342662013-05-19 11:07:59 +000089 [AC_LINK_IFELSE(
90 [_AC_TYPE_LONG_LONG_SNIPPET],
91 [ac_cv_type_unsigned_long_long_int=yes],
92 [ac_cv_type_unsigned_long_long_int=no])])
cristybdabdd62013-03-04 17:43:36 +000093 if test $ac_cv_type_unsigned_long_long_int = yes; then
94 AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
cristy7d342662013-05-19 11:07:59 +000095 [Define to 1 if the system has the type `unsigned long long int'.])
cristybdabdd62013-03-04 17:43:36 +000096 fi
97])
98
99# Expands to a C program that can be used to test for simultaneous support
100# of 'long long' and 'unsigned long long'. We don't want to say that
101# 'long long' is available if 'unsigned long long' is not, or vice versa,
102# because too many programs rely on the symmetry between signed and unsigned
103# integer types (excluding 'bool').
104AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
105[
106 AC_LANG_PROGRAM(
107 [[/* For now, do not test the preprocessor; as of 2007 there are too many
108 implementations with broken preprocessors. Perhaps this can
109 be revisited in 2012. In the meantime, code should not expect
110 #if to work with literals wider than 32 bits. */
111 /* Test literals. */
112 long long int ll = 9223372036854775807ll;
113 long long int nll = -9223372036854775807LL;
114 unsigned long long int ull = 18446744073709551615ULL;
115 /* Test constant expressions. */
116 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
117 ? 1 : -1)];
118 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
119 ? 1 : -1)];
120 int i = 63;]],
121 [[/* Test availability of runtime routines for shift and division. */
122 long long int llmax = 9223372036854775807ll;
123 unsigned long long int ullmax = 18446744073709551615ull;
124 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
125 | (llmax / ll) | (llmax % ll)
126 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
127 | (ullmax / ull) | (ullmax % ull));]])
128])
129
cristy58d34aa2013-01-24 15:11:54 +0000130# Copyright (C) 2002-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000131#
132# This file is free software; the Free Software Foundation
133# gives unlimited permission to copy and/or distribute it,
134# with or without modifications, as long as this notice is preserved.
135
cristy854a7b32012-09-04 17:30:26 +0000136# AM_AUTOMAKE_VERSION(VERSION)
137# ----------------------------
138# Automake X.Y traces this macro to ensure aclocal.m4 has been
139# generated from the m4 files accompanying Automake X.Y.
140# (This private macro should not be called outside this file.)
141AC_DEFUN([AM_AUTOMAKE_VERSION],
cristy58d34aa2013-01-24 15:11:54 +0000142[am__api_version='1.13'
cristy854a7b32012-09-04 17:30:26 +0000143dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
144dnl require some minimum version. Point them to the right macro.
cristybced8142013-05-31 01:23:57 +0000145m4_if([$1], [1.13.2], [],
cristy854a7b32012-09-04 17:30:26 +0000146 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
147])
148
149# _AM_AUTOCONF_VERSION(VERSION)
150# -----------------------------
151# aclocal traces this macro to find the Autoconf version.
152# This is a private macro too. Using m4_define simplifies
153# the logic in aclocal, which can simply ignore this definition.
154m4_define([_AM_AUTOCONF_VERSION], [])
155
156# AM_SET_CURRENT_AUTOMAKE_VERSION
157# -------------------------------
158# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
159# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
160AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
cristybced8142013-05-31 01:23:57 +0000161[AM_AUTOMAKE_VERSION([1.13.2])dnl
cristy854a7b32012-09-04 17:30:26 +0000162m4_ifndef([AC_AUTOCONF_VERSION],
163 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
164_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
165
166# AM_AUX_DIR_EXPAND -*- Autoconf -*-
167
cristy58d34aa2013-01-24 15:11:54 +0000168# Copyright (C) 2001-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000169#
170# This file is free software; the Free Software Foundation
171# gives unlimited permission to copy and/or distribute it,
172# with or without modifications, as long as this notice is preserved.
173
cristy854a7b32012-09-04 17:30:26 +0000174# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
175# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
176# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
177#
178# Of course, Automake must honor this variable whenever it calls a
179# tool from the auxiliary directory. The problem is that $srcdir (and
180# therefore $ac_aux_dir as well) can be either absolute or relative,
181# depending on how configure is run. This is pretty annoying, since
182# it makes $ac_aux_dir quite unusable in subdirectories: in the top
183# source directory, any form will work fine, but in subdirectories a
184# relative path needs to be adjusted first.
185#
186# $ac_aux_dir/missing
187# fails when called from a subdirectory if $ac_aux_dir is relative
188# $top_srcdir/$ac_aux_dir/missing
189# fails if $ac_aux_dir is absolute,
190# fails when called from a subdirectory in a VPATH build with
191# a relative $ac_aux_dir
192#
193# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
194# are both prefixed by $srcdir. In an in-source build this is usually
195# harmless because $srcdir is '.', but things will broke when you
196# start a VPATH build or use an absolute $srcdir.
197#
198# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
199# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
200# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
201# and then we would define $MISSING as
202# MISSING="\${SHELL} $am_aux_dir/missing"
203# This will work as long as MISSING is not called from configure, because
204# unfortunately $(top_srcdir) has no meaning in configure.
205# However there are other variables, like CC, which are often used in
206# configure, and could therefore not use this "fixed" $ac_aux_dir.
207#
208# Another solution, used here, is to always expand $ac_aux_dir to an
209# absolute PATH. The drawback is that using absolute paths prevent a
210# configured tree to be moved without reconfiguration.
211
212AC_DEFUN([AM_AUX_DIR_EXPAND],
213[dnl Rely on autoconf to set up CDPATH properly.
214AC_PREREQ([2.50])dnl
215# expand $ac_aux_dir to an absolute path
216am_aux_dir=`cd $ac_aux_dir && pwd`
217])
218
219# AM_CONDITIONAL -*- Autoconf -*-
220
cristy58d34aa2013-01-24 15:11:54 +0000221# Copyright (C) 1997-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000222#
223# This file is free software; the Free Software Foundation
224# gives unlimited permission to copy and/or distribute it,
225# with or without modifications, as long as this notice is preserved.
226
cristy854a7b32012-09-04 17:30:26 +0000227# AM_CONDITIONAL(NAME, SHELL-CONDITION)
228# -------------------------------------
229# Define a conditional.
230AC_DEFUN([AM_CONDITIONAL],
231[AC_PREREQ([2.52])dnl
232 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
233 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
234AC_SUBST([$1_TRUE])dnl
235AC_SUBST([$1_FALSE])dnl
236_AM_SUBST_NOTMAKE([$1_TRUE])dnl
237_AM_SUBST_NOTMAKE([$1_FALSE])dnl
238m4_define([_AM_COND_VALUE_$1], [$2])dnl
239if $2; then
240 $1_TRUE=
241 $1_FALSE='#'
242else
243 $1_TRUE='#'
244 $1_FALSE=
245fi
246AC_CONFIG_COMMANDS_PRE(
247[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
248 AC_MSG_ERROR([[conditional "$1" was never defined.
249Usually this means the macro was only invoked conditionally.]])
250fi])])
251
cristy58d34aa2013-01-24 15:11:54 +0000252# Copyright (C) 1999-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000253#
254# This file is free software; the Free Software Foundation
255# gives unlimited permission to copy and/or distribute it,
256# with or without modifications, as long as this notice is preserved.
257
cristy854a7b32012-09-04 17:30:26 +0000258
259# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
260# written in clear, in which case automake, when reading aclocal.m4,
261# will think it sees a *use*, and therefore will trigger all it's
262# C support machinery. Also note that it means that autoscan, seeing
263# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
264
265
266# _AM_DEPENDENCIES(NAME)
267# ----------------------
268# See how the compiler implements dependency checking.
269# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
270# We try a few techniques and use that to set a single cache variable.
271#
272# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
273# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
274# dependency, and given that the user is not expected to run this macro,
275# just rely on AC_PROG_CC.
276AC_DEFUN([_AM_DEPENDENCIES],
277[AC_REQUIRE([AM_SET_DEPDIR])dnl
278AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
279AC_REQUIRE([AM_MAKE_INCLUDE])dnl
280AC_REQUIRE([AM_DEP_TRACK])dnl
281
282m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
283 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
284 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
285 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
286 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
287 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
288 [depcc="$$1" am_compiler_list=])
289
290AC_CACHE_CHECK([dependency style of $depcc],
291 [am_cv_$1_dependencies_compiler_type],
292[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
293 # We make a subdir and do the tests there. Otherwise we can end up
294 # making bogus files that we don't know about and never remove. For
295 # instance it was reported that on HP-UX the gcc test will end up
296 # making a dummy file named 'D' -- because '-MD' means "put the output
297 # in D".
298 rm -rf conftest.dir
299 mkdir conftest.dir
300 # Copy depcomp to subdir because otherwise we won't find it if we're
301 # using a relative directory.
302 cp "$am_depcomp" conftest.dir
303 cd conftest.dir
304 # We will build objects and dependencies in a subdirectory because
305 # it helps to detect inapplicable dependency modes. For instance
306 # both Tru64's cc and ICC support -MD to output dependencies as a
307 # side effect of compilation, but ICC will put the dependencies in
308 # the current directory while Tru64 will put them in the object
309 # directory.
310 mkdir sub
311
312 am_cv_$1_dependencies_compiler_type=none
313 if test "$am_compiler_list" = ""; then
314 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
315 fi
316 am__universal=false
317 m4_case([$1], [CC],
318 [case " $depcc " in #(
319 *\ -arch\ *\ -arch\ *) am__universal=true ;;
320 esac],
321 [CXX],
322 [case " $depcc " in #(
323 *\ -arch\ *\ -arch\ *) am__universal=true ;;
324 esac])
325
326 for depmode in $am_compiler_list; do
327 # Setup a source with many dependencies, because some compilers
328 # like to wrap large dependency lists on column 80 (with \), and
329 # we should not choose a depcomp mode which is confused by this.
330 #
331 # We need to recreate these files for each test, as the compiler may
332 # overwrite some of them when testing with obscure command lines.
333 # This happens at least with the AIX C compiler.
334 : > sub/conftest.c
335 for i in 1 2 3 4 5 6; do
336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
337 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
338 # Solaris 10 /bin/sh.
339 echo '/* dummy */' > sub/conftst$i.h
340 done
341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
342
343 # We check with '-c' and '-o' for the sake of the "dashmstdout"
344 # mode. It turns out that the SunPro C++ compiler does not properly
345 # handle '-M -o', and we need to detect this. Also, some Intel
346 # versions had trouble with output in subdirs.
347 am__obj=sub/conftest.${OBJEXT-o}
348 am__minus_obj="-o $am__obj"
349 case $depmode in
350 gcc)
351 # This depmode causes a compiler race in universal mode.
352 test "$am__universal" = false || continue
353 ;;
354 nosideeffect)
355 # After this tag, mechanisms are not by side-effect, so they'll
356 # only be used when explicitly requested.
357 if test "x$enable_dependency_tracking" = xyes; then
358 continue
359 else
360 break
361 fi
362 ;;
363 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
364 # This compiler won't grok '-c -o', but also, the minuso test has
365 # not run yet. These depmodes are late enough in the game, and
366 # so weak that their functioning should not be impacted.
367 am__obj=conftest.${OBJEXT-o}
368 am__minus_obj=
369 ;;
370 none) break ;;
371 esac
372 if depmode=$depmode \
373 source=sub/conftest.c object=$am__obj \
374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
375 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
376 >/dev/null 2>conftest.err &&
377 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
379 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
381 # icc doesn't choke on unknown options, it will just issue warnings
382 # or remarks (even with -Werror). So we grep stderr for any message
383 # that says an option was ignored or not supported.
384 # When given -MP, icc 7.0 and 7.1 complain thusly:
385 # icc: Command line warning: ignoring option '-M'; no argument required
386 # The diagnosis changed in icc 8.0:
387 # icc: Command line remark: option '-MP' not supported
388 if (grep 'ignoring option' conftest.err ||
389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
390 am_cv_$1_dependencies_compiler_type=$depmode
391 break
392 fi
393 fi
394 done
395
396 cd ..
397 rm -rf conftest.dir
398else
399 am_cv_$1_dependencies_compiler_type=none
400fi
401])
402AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
403AM_CONDITIONAL([am__fastdep$1], [
404 test "x$enable_dependency_tracking" != xno \
405 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
406])
407
408
409# AM_SET_DEPDIR
410# -------------
411# Choose a directory name for dependency files.
412# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
413AC_DEFUN([AM_SET_DEPDIR],
414[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
415AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
416])
417
418
419# AM_DEP_TRACK
420# ------------
421AC_DEFUN([AM_DEP_TRACK],
422[AC_ARG_ENABLE([dependency-tracking], [dnl
423AS_HELP_STRING(
424 [--enable-dependency-tracking],
425 [do not reject slow dependency extractors])
426AS_HELP_STRING(
427 [--disable-dependency-tracking],
428 [speeds up one-time build])])
429if test "x$enable_dependency_tracking" != xno; then
430 am_depcomp="$ac_aux_dir/depcomp"
431 AMDEPBACKSLASH='\'
432 am__nodep='_no'
433fi
434AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
435AC_SUBST([AMDEPBACKSLASH])dnl
436_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
437AC_SUBST([am__nodep])dnl
438_AM_SUBST_NOTMAKE([am__nodep])dnl
439])
440
441# Generate code to set up dependency tracking. -*- Autoconf -*-
442
cristy58d34aa2013-01-24 15:11:54 +0000443# Copyright (C) 1999-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000444#
445# This file is free software; the Free Software Foundation
446# gives unlimited permission to copy and/or distribute it,
447# with or without modifications, as long as this notice is preserved.
448
cristy854a7b32012-09-04 17:30:26 +0000449
450# _AM_OUTPUT_DEPENDENCY_COMMANDS
451# ------------------------------
452AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
453[{
cristy58d34aa2013-01-24 15:11:54 +0000454 # Older Autoconf quotes --file arguments for eval, but not when files
cristy854a7b32012-09-04 17:30:26 +0000455 # are listed without --file. Let's play safe and only enable the eval
456 # if we detect the quoting.
457 case $CONFIG_FILES in
458 *\'*) eval set x "$CONFIG_FILES" ;;
459 *) set x $CONFIG_FILES ;;
460 esac
461 shift
462 for mf
463 do
464 # Strip MF so we end up with the name of the file.
465 mf=`echo "$mf" | sed -e 's/:.*$//'`
466 # Check whether this is an Automake generated Makefile or not.
467 # We used to match only the files named 'Makefile.in', but
468 # some people rename them; so instead we look at the file content.
469 # Grep'ing the first line is not enough: some people post-process
470 # each Makefile.in and add a new line on top of each file to say so.
471 # Grep'ing the whole file is not good either: AIX grep has a line
472 # limit of 2048, but all sed's we know have understand at least 4000.
473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
474 dirpart=`AS_DIRNAME("$mf")`
475 else
476 continue
477 fi
478 # Extract the definition of DEPDIR, am__include, and am__quote
479 # from the Makefile without running 'make'.
480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
481 test -z "$DEPDIR" && continue
482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +0000483 test -z "$am__include" && continue
cristy854a7b32012-09-04 17:30:26 +0000484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
485 # Find all dependency output files, they are included files with
486 # $(DEPDIR) in their names. We invoke sed twice because it is the
487 # simplest approach to changing $(DEPDIR) to its actual value in the
488 # expansion.
489 for file in `sed -n "
490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
492 # Make sure the directory exists.
493 test -f "$dirpart/$file" && continue
494 fdir=`AS_DIRNAME(["$file"])`
495 AS_MKDIR_P([$dirpart/$fdir])
496 # echo "creating $dirpart/$file"
497 echo '# dummy' > "$dirpart/$file"
498 done
499 done
500}
501])# _AM_OUTPUT_DEPENDENCY_COMMANDS
502
503
504# AM_OUTPUT_DEPENDENCY_COMMANDS
505# -----------------------------
506# This macro should only be invoked once -- use via AC_REQUIRE.
507#
508# This code is only required when automatic dependency tracking
509# is enabled. FIXME. This creates each '.P' file that we will
510# need in order to bootstrap the dependency handling code.
511AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
512[AC_CONFIG_COMMANDS([depfiles],
513 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
514 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
515])
516
517
cristy58d34aa2013-01-24 15:11:54 +0000518# Copyright (C) 1996-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000519#
520# This file is free software; the Free Software Foundation
521# gives unlimited permission to copy and/or distribute it,
522# with or without modifications, as long as this notice is preserved.
523
cristy854a7b32012-09-04 17:30:26 +0000524AC_DEFUN([AM_WITH_DMALLOC],
525[AC_MSG_CHECKING([if malloc debugging is wanted])
526AC_ARG_WITH([dmalloc],
527[AS_HELP_STRING([--with-dmalloc],
528 [use dmalloc, as in http://www.dmalloc.com])],
529[if test "$withval" = yes; then
530 AC_MSG_RESULT([yes])
531 AC_DEFINE([WITH_DMALLOC], [1],
532 [Define if using the dmalloc debugging malloc package])
533 LIBS="$LIBS -ldmalloc"
534 LDFLAGS="$LDFLAGS -g"
535else
536 AC_MSG_RESULT([no])
537fi], [AC_MSG_RESULT([no])])
538])
539
cristy854a7b32012-09-04 17:30:26 +0000540# Do all the work for Automake. -*- Autoconf -*-
541
cristy58d34aa2013-01-24 15:11:54 +0000542# Copyright (C) 1996-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000543#
544# This file is free software; the Free Software Foundation
545# gives unlimited permission to copy and/or distribute it,
546# with or without modifications, as long as this notice is preserved.
547
cristy854a7b32012-09-04 17:30:26 +0000548# This macro actually does too much. Some checks are only needed if
549# your package does certain things. But this isn't really a big deal.
550
551# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
552# AM_INIT_AUTOMAKE([OPTIONS])
553# -----------------------------------------------
554# The call with PACKAGE and VERSION arguments is the old style
555# call (pre autoconf-2.50), which is being phased out. PACKAGE
556# and VERSION should now be passed to AC_INIT and removed from
557# the call to AM_INIT_AUTOMAKE.
558# We support both call styles for the transition. After
559# the next Automake release, Autoconf can make the AC_INIT
560# arguments mandatory, and then we can depend on a new Autoconf
561# release and drop the old call support.
562AC_DEFUN([AM_INIT_AUTOMAKE],
cristy58d34aa2013-01-24 15:11:54 +0000563[AC_PREREQ([2.65])dnl
cristy854a7b32012-09-04 17:30:26 +0000564dnl Autoconf wants to disallow AM_ names. We explicitly allow
565dnl the ones we care about.
566m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
567AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
568AC_REQUIRE([AC_PROG_INSTALL])dnl
569if test "`cd $srcdir && pwd`" != "`pwd`"; then
570 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
571 # is not polluted with repeated "-I."
572 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
573 # test to see if srcdir already configured
574 if test -f $srcdir/config.status; then
575 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
576 fi
577fi
578
579# test whether we have cygpath
580if test -z "$CYGPATH_W"; then
581 if (cygpath --version) >/dev/null 2>/dev/null; then
582 CYGPATH_W='cygpath -w'
583 else
584 CYGPATH_W=echo
585 fi
586fi
587AC_SUBST([CYGPATH_W])
588
589# Define the identity of the package.
590dnl Distinguish between old-style and new-style calls.
591m4_ifval([$2],
592[AC_DIAGNOSE([obsolete],
cristy58d34aa2013-01-24 15:11:54 +0000593 [$0: two- and three-arguments forms are deprecated.])
cristy854a7b32012-09-04 17:30:26 +0000594m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
595 AC_SUBST([PACKAGE], [$1])dnl
596 AC_SUBST([VERSION], [$2])],
597[_AM_SET_OPTIONS([$1])dnl
598dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
599m4_if(
600 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
601 [ok:ok],,
602 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
603 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
604 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
605
606_AM_IF_OPTION([no-define],,
607[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
608 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
609
610# Some tools Automake needs.
611AC_REQUIRE([AM_SANITY_CHECK])dnl
612AC_REQUIRE([AC_ARG_PROGRAM])dnl
613AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
614AM_MISSING_PROG([AUTOCONF], [autoconf])
615AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
616AM_MISSING_PROG([AUTOHEADER], [autoheader])
617AM_MISSING_PROG([MAKEINFO], [makeinfo])
618AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
619AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
620AC_REQUIRE([AC_PROG_MKDIR_P])dnl
621# For better backward compatibility. To be removed once Automake 1.9.x
622# dies out for good. For more background, see:
623# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
624# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
625AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
626# We need awk for the "check" target. The system "awk" is bad on
627# some platforms.
628AC_REQUIRE([AC_PROG_AWK])dnl
629AC_REQUIRE([AC_PROG_MAKE_SET])dnl
630AC_REQUIRE([AM_SET_LEADING_DOT])dnl
631_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
632 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
633 [_AM_PROG_TAR([v7])])])
634_AM_IF_OPTION([no-dependencies],,
635[AC_PROVIDE_IFELSE([AC_PROG_CC],
636 [_AM_DEPENDENCIES([CC])],
637 [m4_define([AC_PROG_CC],
638 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
639AC_PROVIDE_IFELSE([AC_PROG_CXX],
640 [_AM_DEPENDENCIES([CXX])],
641 [m4_define([AC_PROG_CXX],
642 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
643AC_PROVIDE_IFELSE([AC_PROG_OBJC],
644 [_AM_DEPENDENCIES([OBJC])],
645 [m4_define([AC_PROG_OBJC],
646 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
cristy58d34aa2013-01-24 15:11:54 +0000647AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
cristy854a7b32012-09-04 17:30:26 +0000648 [_AM_DEPENDENCIES([OBJCXX])],
649 [m4_define([AC_PROG_OBJCXX],
cristy58d34aa2013-01-24 15:11:54 +0000650 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
cristy854a7b32012-09-04 17:30:26 +0000651])
cristy58d34aa2013-01-24 15:11:54 +0000652AC_REQUIRE([AM_SILENT_RULES])dnl
653dnl The testsuite driver may need to know about EXEEXT, so add the
654dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
655dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
cristy854a7b32012-09-04 17:30:26 +0000656AC_CONFIG_COMMANDS_PRE(dnl
657[m4_provide_if([_AM_COMPILER_EXEEXT],
658 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
659])
660
661dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
662dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
663dnl mangled by Autoconf and run in a shell conditional statement.
664m4_define([_AC_COMPILER_EXEEXT],
665m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
666
667
668# When config.status generates a header, we must update the stamp-h file.
669# This file resides in the same directory as the config header
670# that is generated. The stamp files are numbered to have different names.
671
672# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
673# loop where config.status creates the headers, so we can generate
674# our stamp files there.
675AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
676[# Compute $1's index in $config_headers.
677_am_arg=$1
678_am_stamp_count=1
679for _am_header in $config_headers :; do
680 case $_am_header in
681 $_am_arg | $_am_arg:* )
682 break ;;
683 * )
684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
685 esac
686done
687echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
688
cristy58d34aa2013-01-24 15:11:54 +0000689# Copyright (C) 2001-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000690#
691# This file is free software; the Free Software Foundation
692# gives unlimited permission to copy and/or distribute it,
693# with or without modifications, as long as this notice is preserved.
694
cristy854a7b32012-09-04 17:30:26 +0000695# AM_PROG_INSTALL_SH
696# ------------------
697# Define $install_sh.
698AC_DEFUN([AM_PROG_INSTALL_SH],
699[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
700if test x"${install_sh}" != xset; then
701 case $am_aux_dir in
702 *\ * | *\ *)
703 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
704 *)
705 install_sh="\${SHELL} $am_aux_dir/install-sh"
706 esac
707fi
708AC_SUBST([install_sh])])
709
cristy58d34aa2013-01-24 15:11:54 +0000710# Copyright (C) 2003-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000711#
712# This file is free software; the Free Software Foundation
713# gives unlimited permission to copy and/or distribute it,
714# with or without modifications, as long as this notice is preserved.
715
cristy854a7b32012-09-04 17:30:26 +0000716# Check whether the underlying file-system supports filenames
717# with a leading dot. For instance MS-DOS doesn't.
718AC_DEFUN([AM_SET_LEADING_DOT],
719[rm -rf .tst 2>/dev/null
720mkdir .tst 2>/dev/null
721if test -d .tst; then
722 am__leading_dot=.
723else
724 am__leading_dot=_
725fi
726rmdir .tst 2>/dev/null
727AC_SUBST([am__leading_dot])])
728
729# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
730# From Jim Meyering
731
cristy58d34aa2013-01-24 15:11:54 +0000732# Copyright (C) 1996-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000733#
734# This file is free software; the Free Software Foundation
735# gives unlimited permission to copy and/or distribute it,
736# with or without modifications, as long as this notice is preserved.
737
cristy854a7b32012-09-04 17:30:26 +0000738# AM_MAINTAINER_MODE([DEFAULT-MODE])
739# ----------------------------------
740# Control maintainer-specific portions of Makefiles.
741# Default is to disable them, unless 'enable' is passed literally.
742# For symmetry, 'disable' may be passed as well. Anyway, the user
743# can override the default with the --enable/--disable switch.
744AC_DEFUN([AM_MAINTAINER_MODE],
745[m4_case(m4_default([$1], [disable]),
746 [enable], [m4_define([am_maintainer_other], [disable])],
747 [disable], [m4_define([am_maintainer_other], [enable])],
748 [m4_define([am_maintainer_other], [enable])
749 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
750AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
751 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
752 AC_ARG_ENABLE([maintainer-mode],
753 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
754 am_maintainer_other[ make rules and dependencies not useful
755 (and sometimes confusing) to the casual installer])],
756 [USE_MAINTAINER_MODE=$enableval],
757 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
758 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
759 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
760 MAINT=$MAINTAINER_MODE_TRUE
761 AC_SUBST([MAINT])dnl
762]
763)
764
cristy854a7b32012-09-04 17:30:26 +0000765# Check to see how 'make' treats includes. -*- Autoconf -*-
766
cristy58d34aa2013-01-24 15:11:54 +0000767# Copyright (C) 2001-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000768#
769# This file is free software; the Free Software Foundation
770# gives unlimited permission to copy and/or distribute it,
771# with or without modifications, as long as this notice is preserved.
772
cristy854a7b32012-09-04 17:30:26 +0000773# AM_MAKE_INCLUDE()
774# -----------------
775# Check to see how make treats includes.
776AC_DEFUN([AM_MAKE_INCLUDE],
777[am_make=${MAKE-make}
778cat > confinc << 'END'
779am__doit:
780 @echo this is the am__doit target
781.PHONY: am__doit
782END
783# If we don't find an include directive, just comment out the code.
784AC_MSG_CHECKING([for style of include used by $am_make])
785am__include="#"
786am__quote=
787_am_result=none
788# First try GNU make style include.
789echo "include confinc" > confmf
790# Ignore all kinds of additional output from 'make'.
791case `$am_make -s -f confmf 2> /dev/null` in #(
792*the\ am__doit\ target*)
793 am__include=include
794 am__quote=
795 _am_result=GNU
796 ;;
797esac
798# Now try BSD make style include.
799if test "$am__include" = "#"; then
800 echo '.include "confinc"' > confmf
801 case `$am_make -s -f confmf 2> /dev/null` in #(
802 *the\ am__doit\ target*)
803 am__include=.include
804 am__quote="\""
805 _am_result=BSD
806 ;;
807 esac
808fi
809AC_SUBST([am__include])
810AC_SUBST([am__quote])
811AC_MSG_RESULT([$_am_result])
812rm -f confinc confmf
813])
814
cristy58d34aa2013-01-24 15:11:54 +0000815# Copyright (C) 1999-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000816#
817# This file is free software; the Free Software Foundation
818# gives unlimited permission to copy and/or distribute it,
819# with or without modifications, as long as this notice is preserved.
820
cristy854a7b32012-09-04 17:30:26 +0000821# AM_PROG_CC_C_O
822# --------------
823# Like AC_PROG_CC_C_O, but changed for automake.
824AC_DEFUN([AM_PROG_CC_C_O],
825[AC_REQUIRE([AC_PROG_CC_C_O])dnl
826AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
827AC_REQUIRE_AUX_FILE([compile])dnl
828# FIXME: we rely on the cache variable name because
829# there is no other way.
830set dummy $CC
831am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
832eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
833if test "$am_t" != yes; then
834 # Losing compiler, so override with the script.
835 # FIXME: It is wrong to rewrite CC.
836 # But if we don't then we get into trouble of one sort or another.
837 # A longer-term fix would be to have automake use am__CC in this case,
838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
839 CC="$am_aux_dir/compile $CC"
840fi
841dnl Make sure AC_PROG_CC is never called again, or it will override our
842dnl setting of CC.
843m4_define([AC_PROG_CC],
844 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
845])
846
847# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
848
cristy58d34aa2013-01-24 15:11:54 +0000849# Copyright (C) 1997-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000850#
851# This file is free software; the Free Software Foundation
852# gives unlimited permission to copy and/or distribute it,
853# with or without modifications, as long as this notice is preserved.
854
cristy854a7b32012-09-04 17:30:26 +0000855# AM_MISSING_PROG(NAME, PROGRAM)
856# ------------------------------
857AC_DEFUN([AM_MISSING_PROG],
858[AC_REQUIRE([AM_MISSING_HAS_RUN])
859$1=${$1-"${am_missing_run}$2"}
860AC_SUBST($1)])
861
cristy854a7b32012-09-04 17:30:26 +0000862# AM_MISSING_HAS_RUN
863# ------------------
cristy58d34aa2013-01-24 15:11:54 +0000864# Define MISSING if not defined so far and test if it is modern enough.
865# If it is, set am_missing_run to use it, otherwise, to nothing.
cristy854a7b32012-09-04 17:30:26 +0000866AC_DEFUN([AM_MISSING_HAS_RUN],
867[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
868AC_REQUIRE_AUX_FILE([missing])dnl
869if test x"${MISSING+set}" != xset; then
870 case $am_aux_dir in
871 *\ * | *\ *)
872 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
873 *)
874 MISSING="\${SHELL} $am_aux_dir/missing" ;;
875 esac
876fi
877# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +0000878if eval "$MISSING --is-lightweight"; then
879 am_missing_run="$MISSING "
cristy854a7b32012-09-04 17:30:26 +0000880else
881 am_missing_run=
882 AC_MSG_WARN(['missing' script is too old or missing])
883fi
884])
885
886# Helper functions for option handling. -*- Autoconf -*-
887
cristy58d34aa2013-01-24 15:11:54 +0000888# Copyright (C) 2001-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000889#
890# This file is free software; the Free Software Foundation
891# gives unlimited permission to copy and/or distribute it,
892# with or without modifications, as long as this notice is preserved.
893
cristy854a7b32012-09-04 17:30:26 +0000894# _AM_MANGLE_OPTION(NAME)
895# -----------------------
896AC_DEFUN([_AM_MANGLE_OPTION],
897[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
898
899# _AM_SET_OPTION(NAME)
900# --------------------
901# Set option NAME. Presently that only means defining a flag for this option.
902AC_DEFUN([_AM_SET_OPTION],
903[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
904
905# _AM_SET_OPTIONS(OPTIONS)
906# ------------------------
907# OPTIONS is a space-separated list of Automake options.
908AC_DEFUN([_AM_SET_OPTIONS],
909[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
910
911# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
912# -------------------------------------------
913# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
914AC_DEFUN([_AM_IF_OPTION],
915[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
916
917# Check to make sure that the build environment is sane. -*- Autoconf -*-
918
cristy58d34aa2013-01-24 15:11:54 +0000919# Copyright (C) 1996-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +0000920#
921# This file is free software; the Free Software Foundation
922# gives unlimited permission to copy and/or distribute it,
923# with or without modifications, as long as this notice is preserved.
924
cristy854a7b32012-09-04 17:30:26 +0000925# AM_SANITY_CHECK
926# ---------------
927AC_DEFUN([AM_SANITY_CHECK],
928[AC_MSG_CHECKING([whether build environment is sane])
929# Reject unsafe characters in $srcdir or the absolute working directory
930# name. Accept space and tab only in the latter.
931am_lf='
932'
933case `pwd` in
934 *[[\\\"\#\$\&\'\`$am_lf]]*)
935 AC_MSG_ERROR([unsafe absolute working directory name]);;
936esac
937case $srcdir in
938 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
939 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
940esac
941
942# Do 'set' in a subshell so we don't clobber the current shell's
943# arguments. Must try -L first in case configure is actually a
944# symlink; some systems play weird games with the mod time of symlinks
945# (eg FreeBSD returns the mod time of the symlink's containing
946# directory).
947if (
948 am_has_slept=no
949 for am_try in 1 2; do
950 echo "timestamp, slept: $am_has_slept" > conftest.file
951 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
952 if test "$[*]" = "X"; then
953 # -L didn't work.
954 set X `ls -t "$srcdir/configure" conftest.file`
955 fi
956 if test "$[*]" != "X $srcdir/configure conftest.file" \
957 && test "$[*]" != "X conftest.file $srcdir/configure"; then
958
959 # If neither matched, then we have a broken ls. This can happen
960 # if, for instance, CONFIG_SHELL is bash and it inherits a
961 # broken ls alias from the environment. This has actually
962 # happened. Such a system could not be considered "sane".
963 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
964 alias in your environment])
965 fi
966 if test "$[2]" = conftest.file || test $am_try -eq 2; then
967 break
968 fi
969 # Just in case.
970 sleep 1
971 am_has_slept=yes
972 done
973 test "$[2]" = conftest.file
974 )
975then
976 # Ok.
977 :
978else
979 AC_MSG_ERROR([newly created file is older than distributed files!
980Check your system clock])
981fi
982AC_MSG_RESULT([yes])
983# If we didn't sleep, we still need to ensure time stamps of config.status and
984# generated files are strictly newer.
985am_sleep_pid=
986if grep 'slept: no' conftest.file >/dev/null 2>&1; then
987 ( sleep 1 ) &
988 am_sleep_pid=$!
989fi
990AC_CONFIG_COMMANDS_PRE(
991 [AC_MSG_CHECKING([that generated files are newer than configure])
992 if test -n "$am_sleep_pid"; then
993 # Hide warnings about reused PIDs.
994 wait $am_sleep_pid 2>/dev/null
995 fi
996 AC_MSG_RESULT([done])])
997rm -f conftest.file
998])
999
cristy58d34aa2013-01-24 15:11:54 +00001000# Copyright (C) 2009-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +00001001#
1002# This file is free software; the Free Software Foundation
1003# gives unlimited permission to copy and/or distribute it,
1004# with or without modifications, as long as this notice is preserved.
1005
cristy854a7b32012-09-04 17:30:26 +00001006# AM_SILENT_RULES([DEFAULT])
1007# --------------------------
1008# Enable less verbose build rules; with the default set to DEFAULT
1009# ("yes" being less verbose, "no" or empty being verbose).
1010AC_DEFUN([AM_SILENT_RULES],
1011[AC_ARG_ENABLE([silent-rules], [dnl
1012AS_HELP_STRING(
1013 [--enable-silent-rules],
1014 [less verbose build output (undo: "make V=1")])
1015AS_HELP_STRING(
1016 [--disable-silent-rules],
1017 [verbose build output (undo: "make V=0")])dnl
1018])
1019case $enable_silent_rules in @%:@ (((
1020 yes) AM_DEFAULT_VERBOSITY=0;;
1021 no) AM_DEFAULT_VERBOSITY=1;;
1022 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1023esac
1024dnl
1025dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1026dnl do not support nested variable expansions.
1027dnl See automake bug#9928 and bug#10237.
1028am_make=${MAKE-make}
1029AC_CACHE_CHECK([whether $am_make supports nested variables],
1030 [am_cv_make_support_nested_variables],
1031 [if AS_ECHO([['TRUE=$(BAR$(V))
1032BAR0=false
1033BAR1=true
1034V=1
1035am__doit:
1036 @$(TRUE)
1037.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1038 am_cv_make_support_nested_variables=yes
1039else
1040 am_cv_make_support_nested_variables=no
1041fi])
1042if test $am_cv_make_support_nested_variables = yes; then
1043 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1044 AM_V='$(V)'
1045 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1046else
1047 AM_V=$AM_DEFAULT_VERBOSITY
1048 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1049fi
1050AC_SUBST([AM_V])dnl
1051AM_SUBST_NOTMAKE([AM_V])dnl
1052AC_SUBST([AM_DEFAULT_V])dnl
1053AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1054AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1055AM_BACKSLASH='\'
1056AC_SUBST([AM_BACKSLASH])dnl
1057_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1058])
1059
cristy58d34aa2013-01-24 15:11:54 +00001060# Copyright (C) 2001-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +00001061#
1062# This file is free software; the Free Software Foundation
1063# gives unlimited permission to copy and/or distribute it,
1064# with or without modifications, as long as this notice is preserved.
1065
cristy854a7b32012-09-04 17:30:26 +00001066# AM_PROG_INSTALL_STRIP
1067# ---------------------
1068# One issue with vendor 'install' (even GNU) is that you can't
1069# specify the program used to strip binaries. This is especially
1070# annoying in cross-compiling environments, where the build's strip
1071# is unlikely to handle the host's binaries.
1072# Fortunately install-sh will honor a STRIPPROG variable, so we
1073# always use install-sh in "make install-strip", and initialize
1074# STRIPPROG with the value of the STRIP variable (set by the user).
1075AC_DEFUN([AM_PROG_INSTALL_STRIP],
1076[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1077# Installed binaries are usually stripped using 'strip' when the user
1078# run "make install-strip". However 'strip' might not be the right
1079# tool to use in cross-compilation environments, therefore Automake
1080# will honor the 'STRIP' environment variable to overrule this program.
1081dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1082if test "$cross_compiling" != no; then
1083 AC_CHECK_TOOL([STRIP], [strip], :)
1084fi
1085INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1086AC_SUBST([INSTALL_STRIP_PROGRAM])])
1087
cristy58d34aa2013-01-24 15:11:54 +00001088# Copyright (C) 2006-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +00001089#
1090# This file is free software; the Free Software Foundation
1091# gives unlimited permission to copy and/or distribute it,
1092# with or without modifications, as long as this notice is preserved.
1093
cristy854a7b32012-09-04 17:30:26 +00001094# _AM_SUBST_NOTMAKE(VARIABLE)
1095# ---------------------------
1096# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1097# This macro is traced by Automake.
1098AC_DEFUN([_AM_SUBST_NOTMAKE])
1099
1100# AM_SUBST_NOTMAKE(VARIABLE)
1101# --------------------------
1102# Public sister of _AM_SUBST_NOTMAKE.
1103AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1104
1105# Check how to create a tarball. -*- Autoconf -*-
1106
cristy58d34aa2013-01-24 15:11:54 +00001107# Copyright (C) 2004-2013 Free Software Foundation, Inc.
cristy854a7b32012-09-04 17:30:26 +00001108#
1109# This file is free software; the Free Software Foundation
1110# gives unlimited permission to copy and/or distribute it,
1111# with or without modifications, as long as this notice is preserved.
1112
cristy854a7b32012-09-04 17:30:26 +00001113# _AM_PROG_TAR(FORMAT)
1114# --------------------
1115# Check how to create a tarball in format FORMAT.
1116# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1117#
1118# Substitute a variable $(am__tar) that is a command
1119# writing to stdout a FORMAT-tarball containing the directory
1120# $tardir.
1121# tardir=directory && $(am__tar) > result.tar
1122#
1123# Substitute a variable $(am__untar) that extract such
1124# a tarball read from stdin.
1125# $(am__untar) < result.tar
cristye69bdbe2013-05-03 21:40:44 +00001126#
cristy854a7b32012-09-04 17:30:26 +00001127AC_DEFUN([_AM_PROG_TAR],
1128[# Always define AMTAR for backward compatibility. Yes, it's still used
1129# in the wild :-( We should find a proper way to deprecate it ...
1130AC_SUBST([AMTAR], ['$${TAR-tar}'])
cristye69bdbe2013-05-03 21:40:44 +00001131
1132# We'll loop over all known methods to create a tar archive until one works.
cristy854a7b32012-09-04 17:30:26 +00001133_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
cristy854a7b32012-09-04 17:30:26 +00001134
cristye69bdbe2013-05-03 21:40:44 +00001135m4_if([$1], [v7],
1136 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
cristy854a7b32012-09-04 17:30:26 +00001137
cristye69bdbe2013-05-03 21:40:44 +00001138 [m4_case([$1],
1139 [ustar],
1140 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1141 # There is notably a 21 bits limit for the UID and the GID. In fact,
1142 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1143 # and bug#13588).
1144 am_max_uid=2097151 # 2^21 - 1
1145 am_max_gid=$am_max_uid
1146 # The $UID and $GID variables are not portable, so we need to resort
1147 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1148 # below are definitely unexpected, so allow the users to see them
1149 # (that is, avoid stderr redirection).
1150 am_uid=`id -u || echo unknown`
1151 am_gid=`id -g || echo unknown`
1152 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1153 if test $am_uid -le $am_max_uid; then
1154 AC_MSG_RESULT([yes])
1155 else
1156 AC_MSG_RESULT([no])
1157 _am_tools=none
1158 fi
1159 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1160 if test $am_gid -le $am_max_gid; then
1161 AC_MSG_RESULT([yes])
1162 else
1163 AC_MSG_RESULT([no])
1164 _am_tools=none
1165 fi],
1166
1167 [pax],
1168 [],
1169
1170 [m4_fatal([Unknown tar format])])
1171
1172 AC_MSG_CHECKING([how to create a $1 tar archive])
1173
1174 # Go ahead even if we have the value already cached. We do so because we
1175 # need to set the values for the 'am__tar' and 'am__untar' variables.
1176 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1177
1178 for _am_tool in $_am_tools; do
1179 case $_am_tool in
1180 gnutar)
1181 for _am_tar in tar gnutar gtar; do
1182 AM_RUN_LOG([$_am_tar --version]) && break
1183 done
1184 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1185 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1186 am__untar="$_am_tar -xf -"
1187 ;;
1188 plaintar)
1189 # Must skip GNU tar: if it does not support --format= it doesn't create
1190 # ustar tarball either.
1191 (tar --version) >/dev/null 2>&1 && continue
1192 am__tar='tar chf - "$$tardir"'
1193 am__tar_='tar chf - "$tardir"'
1194 am__untar='tar xf -'
1195 ;;
1196 pax)
1197 am__tar='pax -L -x $1 -w "$$tardir"'
1198 am__tar_='pax -L -x $1 -w "$tardir"'
1199 am__untar='pax -r'
1200 ;;
1201 cpio)
1202 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1203 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1204 am__untar='cpio -i -H $1 -d'
1205 ;;
1206 none)
1207 am__tar=false
1208 am__tar_=false
1209 am__untar=false
1210 ;;
1211 esac
1212
1213 # If the value was cached, stop now. We just wanted to have am__tar
1214 # and am__untar set.
1215 test -n "${am_cv_prog_tar_$1}" && break
1216
1217 # tar/untar a dummy directory, and stop if the command works.
1218 rm -rf conftest.dir
1219 mkdir conftest.dir
1220 echo GrepMe > conftest.dir/file
1221 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1222 rm -rf conftest.dir
1223 if test -s conftest.tar; then
1224 AM_RUN_LOG([$am__untar <conftest.tar])
1225 AM_RUN_LOG([cat conftest.dir/file])
1226 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1227 fi
1228 done
cristy854a7b32012-09-04 17:30:26 +00001229 rm -rf conftest.dir
cristy854a7b32012-09-04 17:30:26 +00001230
cristye69bdbe2013-05-03 21:40:44 +00001231 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1232 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
cristybced8142013-05-31 01:23:57 +00001233
cristy854a7b32012-09-04 17:30:26 +00001234AC_SUBST([am__tar])
1235AC_SUBST([am__untar])
1236]) # _AM_PROG_TAR
1237
1238m4_include([m4/ac_func_fseeko.m4])
cristy854a7b32012-09-04 17:30:26 +00001239m4_include([m4/ax_c___attribute__.m4])
1240m4_include([m4/ax_cflags_warn_all.m4])
1241m4_include([m4/ax_check_compile_flag.m4])
1242m4_include([m4/ax_compare_version.m4])
cristy016e8b82012-12-26 12:11:06 +00001243m4_include([m4/ax_compiler_vendor.m4])
cristy854a7b32012-09-04 17:30:26 +00001244m4_include([m4/ax_cxx_bool.m4])
1245m4_include([m4/ax_cxx_namespace_std.m4])
1246m4_include([m4/ax_cxx_namespaces.m4])
1247m4_include([m4/ax_gcc_archflag.m4])
1248m4_include([m4/ax_gcc_x86_cpuid.m4])
cristy75314cc2012-09-15 23:08:29 +00001249m4_include([m4/ax_lang_compiler_ms.m4])
cristy854a7b32012-09-04 17:30:26 +00001250m4_include([m4/ax_opencl.m4])
1251m4_include([m4/ax_prefix_config_h.m4])
1252m4_include([m4/ax_prog_perl_version.m4])
1253m4_include([m4/ax_pthread.m4])
1254m4_include([m4/cxx_have_std_libs.m4])
1255m4_include([m4/framework.m4])
cristy9b86f202012-11-28 21:55:35 +00001256m4_include([m4/ld-version-script.m4])
cristy854a7b32012-09-04 17:30:26 +00001257m4_include([m4/libtool.m4])
cristy854a7b32012-09-04 17:30:26 +00001258m4_include([m4/ltoptions.m4])
1259m4_include([m4/ltsugar.m4])
1260m4_include([m4/ltversion.m4])
1261m4_include([m4/lt~obsolete.m4])
1262m4_include([m4/magick_check_pthread_lib.m4])
1263m4_include([m4/magick_func_mmap_fileio.m4])
1264m4_include([m4/pkg.m4])