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