1
# generated automatically by aclocal 1.11a -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6
# This file is free software; the Free Software Foundation
7
# gives unlimited permission to copy and/or distribute it,
8
# with or without modifications, as long as this notice is preserved.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68b.1-36a2],,
18
[m4_warning([this file was generated for autoconf 2.68b.1-36a2.
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
If you have problems, you may need to regenerate the build system entirely.
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
24
# serial 1 (pkg-config-0.24)
26
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
28
# This program is free software; you can redistribute it and/or modify
29
# it under the terms of the GNU General Public License as published by
30
# the Free Software Foundation; either version 2 of the License, or
31
# (at your option) any later version.
33
# This program is distributed in the hope that it will be useful, but
34
# WITHOUT ANY WARRANTY; without even the implied warranty of
35
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36
# General Public License for more details.
38
# You should have received a copy of the GNU General Public License
39
# along with this program; if not, write to the Free Software
40
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42
# As a special exception to the GNU General Public License, if you
43
# distribute this file as part of a program that contains a
44
# configuration script generated by Autoconf, you may include it under
45
# the same distribution terms that you use for the rest of that program.
47
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
48
# ----------------------------------
49
AC_DEFUN([PKG_PROG_PKG_CONFIG],
50
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
51
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
52
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
53
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
54
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
56
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
57
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
59
if test -n "$PKG_CONFIG"; then
60
_pkg_min_version=m4_default([$1], [0.9.0])
61
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
62
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
69
])# PKG_PROG_PKG_CONFIG
71
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
73
# Check to see whether a particular set of modules exists. Similar
74
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
76
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77
# only at the first occurence in configure.ac, so if the first place
78
# it's called might be skipped (such as if it is within an "if", you
79
# have to call PKG_CHECK_EXISTS manually
80
# --------------------------------------------------------------
81
AC_DEFUN([PKG_CHECK_EXISTS],
82
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83
if test -n "$PKG_CONFIG" && \
84
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
90
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91
# ---------------------------------------------
92
m4_define([_PKG_CONFIG],
93
[if test -n "$$1"; then
95
elif test -n "$PKG_CONFIG"; then
96
PKG_CHECK_EXISTS([$3],
97
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
104
# _PKG_SHORT_ERRORS_SUPPORTED
105
# -----------------------------
106
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
107
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
108
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
109
_pkg_short_errors_supported=yes
111
_pkg_short_errors_supported=no
113
])# _PKG_SHORT_ERRORS_SUPPORTED
116
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
117
# [ACTION-IF-NOT-FOUND])
120
# Note that if there is a possibility the first call to
121
# PKG_CHECK_MODULES might not happen, you should be sure to include an
122
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
125
# --------------------------------------------------------------
126
AC_DEFUN([PKG_CHECK_MODULES],
127
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
128
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
129
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
132
AC_MSG_CHECKING([for $1])
134
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
135
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
137
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
138
and $1[]_LIBS to avoid the need to call pkg-config.
139
See the pkg-config man page for more details.])
141
if test $pkg_failed = yes; then
143
_PKG_SHORT_ERRORS_SUPPORTED
144
if test $_pkg_short_errors_supported = yes; then
145
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
147
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
149
# Put the nasty error message in config.log where it belongs
150
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
152
m4_default([$4], [AC_MSG_ERROR(
153
[Package requirements ($2) were not met:
157
Consider adjusting the PKG_CONFIG_PATH environment variable if you
158
installed software in a non-standard prefix.
162
elif test $pkg_failed = untried; then
164
m4_default([$4], [AC_MSG_FAILURE(
165
[The pkg-config script could not be found or is too old. Make sure it
166
is in your PATH or set the PKG_CONFIG environment variable to the full
171
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
174
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
175
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
179
])# PKG_CHECK_MODULES
181
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
183
# This file is free software; the Free Software Foundation
184
# gives unlimited permission to copy and/or distribute it,
185
# with or without modifications, as long as this notice is preserved.
189
# AM_AUTOMAKE_VERSION(VERSION)
190
# ----------------------------
191
# Automake X.Y traces this macro to ensure aclocal.m4 has been
192
# generated from the m4 files accompanying Automake X.Y.
193
# (This private macro should not be called outside this file.)
194
AC_DEFUN([AM_AUTOMAKE_VERSION],
195
[am__api_version='1.11a'
196
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
197
dnl require some minimum version. Point them to the right macro.
198
m4_if([$1], [1.11a], [],
199
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
202
# _AM_AUTOCONF_VERSION(VERSION)
203
# -----------------------------
204
# aclocal traces this macro to find the Autoconf version.
205
# This is a private macro too. Using m4_define simplifies
206
# the logic in aclocal, which can simply ignore this definition.
207
m4_define([_AM_AUTOCONF_VERSION], [])
209
# AM_SET_CURRENT_AUTOMAKE_VERSION
210
# -------------------------------
211
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
212
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
213
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
214
[AM_AUTOMAKE_VERSION([1.11a])dnl
215
m4_ifndef([AC_AUTOCONF_VERSION],
216
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
217
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
219
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
221
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
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.
229
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
230
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
231
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
233
# Of course, Automake must honor this variable whenever it calls a
234
# tool from the auxiliary directory. The problem is that $srcdir (and
235
# therefore $ac_aux_dir as well) can be either absolute or relative,
236
# depending on how configure is run. This is pretty annoying, since
237
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
238
# source directory, any form will work fine, but in subdirectories a
239
# relative path needs to be adjusted first.
241
# $ac_aux_dir/missing
242
# fails when called from a subdirectory if $ac_aux_dir is relative
243
# $top_srcdir/$ac_aux_dir/missing
244
# fails if $ac_aux_dir is absolute,
245
# fails when called from a subdirectory in a VPATH build with
246
# a relative $ac_aux_dir
248
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
249
# are both prefixed by $srcdir. In an in-source build this is usually
250
# harmless because $srcdir is '.', but things will broke when you
251
# start a VPATH build or use an absolute $srcdir.
253
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
254
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
255
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
256
# and then we would define $MISSING as
257
# MISSING="\${SHELL} $am_aux_dir/missing"
258
# This will work as long as MISSING is not called from configure, because
259
# unfortunately $(top_srcdir) has no meaning in configure.
260
# However there are other variables, like CC, which are often used in
261
# configure, and could therefore not use this "fixed" $ac_aux_dir.
263
# Another solution, used here, is to always expand $ac_aux_dir to an
264
# absolute PATH. The drawback is that using absolute paths prevent a
265
# configured tree to be moved without reconfiguration.
267
AC_DEFUN([AM_AUX_DIR_EXPAND],
268
[dnl Rely on autoconf to set up CDPATH properly.
270
# expand $ac_aux_dir to an absolute path
271
am_aux_dir=`cd $ac_aux_dir && pwd`
274
# AM_CONDITIONAL -*- Autoconf -*-
276
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
278
# This file is free software; the Free Software Foundation
279
# gives unlimited permission to copy and/or distribute it,
280
# with or without modifications, as long as this notice is preserved.
284
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
285
# -------------------------------------
286
# Define a conditional.
287
AC_DEFUN([AM_CONDITIONAL],
288
[AC_PREREQ([2.52])dnl
289
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
290
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
291
AC_SUBST([$1_TRUE])dnl
292
AC_SUBST([$1_FALSE])dnl
293
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
294
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
295
m4_define([_AM_COND_VALUE_$1], [$2])dnl
303
AC_CONFIG_COMMANDS_PRE(
304
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
305
AC_MSG_ERROR([[conditional "$1" was never defined.
306
Usually this means the macro was only invoked conditionally.]])
309
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
311
# This file is free software; the Free Software Foundation
312
# gives unlimited permission to copy and/or distribute it,
313
# with or without modifications, as long as this notice is preserved.
317
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
318
# written in clear, in which case automake, when reading aclocal.m4,
319
# will think it sees a *use*, and therefore will trigger all it's
320
# C support machinery. Also note that it means that autoscan, seeing
321
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
324
# _AM_DEPENDENCIES(NAME)
325
# ----------------------
326
# See how the compiler implements dependency checking.
327
# NAME is "CC", "CXX", "GCJ", or "OBJC".
328
# We try a few techniques and use that to set a single cache variable.
330
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
331
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
332
# dependency, and given that the user is not expected to run this macro,
333
# just rely on AC_PROG_CC.
334
AC_DEFUN([_AM_DEPENDENCIES],
335
[AC_REQUIRE([AM_SET_DEPDIR])dnl
336
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
337
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
338
AC_REQUIRE([AM_DEP_TRACK])dnl
340
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
341
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
342
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
343
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
344
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
345
[depcc="$$1" am_compiler_list=])
347
AC_CACHE_CHECK([dependency style of $depcc],
348
[am_cv_$1_dependencies_compiler_type],
349
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
350
# We make a subdir and do the tests there. Otherwise we can end up
351
# making bogus files that we don't know about and never remove. For
352
# instance it was reported that on HP-UX the gcc test will end up
353
# making a dummy file named 'D' -- because '-MD' means "put the output
357
# Copy depcomp to subdir because otherwise we won't find it if we're
358
# using a relative directory.
359
cp "$am_depcomp" conftest.dir
361
# We will build objects and dependencies in a subdirectory because
362
# it helps to detect inapplicable dependency modes. For instance
363
# both Tru64's cc and ICC support -MD to output dependencies as a
364
# side effect of compilation, but ICC will put the dependencies in
365
# the current directory while Tru64 will put them in the object
369
am_cv_$1_dependencies_compiler_type=none
370
if test "$am_compiler_list" = ""; then
371
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
375
[case " $depcc " in #(
376
*\ -arch\ *\ -arch\ *) am__universal=true ;;
379
[case " $depcc " in #(
380
*\ -arch\ *\ -arch\ *) am__universal=true ;;
383
for depmode in $am_compiler_list; do
384
# Setup a source with many dependencies, because some compilers
385
# like to wrap large dependency lists on column 80 (with \), and
386
# we should not choose a depcomp mode which is confused by this.
388
# We need to recreate these files for each test, as the compiler may
389
# overwrite some of them when testing with obscure command lines.
390
# This happens at least with the AIX C compiler.
392
for i in 1 2 3 4 5 6; do
393
echo '#include "conftst'$i'.h"' >> sub/conftest.c
394
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
395
# Solaris 10 /bin/sh.
396
echo '/* dummy */' > sub/conftst$i.h
398
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
400
# We check with '-c' and '-o' for the sake of the "dashmstdout"
401
# mode. It turns out that the SunPro C++ compiler does not properly
402
# handle '-M -o', and we need to detect this. Also, some Intel
403
# versions had trouble with output in subdirs.
404
am__obj=sub/conftest.${OBJEXT-o}
405
am__minus_obj="-o $am__obj"
408
# This depmode causes a compiler race in universal mode.
409
test "$am__universal" = false || continue
412
# After this tag, mechanisms are not by side-effect, so they'll
413
# only be used when explicitly requested.
414
if test "x$enable_dependency_tracking" = xyes; then
420
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
421
# This compiler won't grok '-c -o', but also, the minuso test has
422
# not run yet. These depmodes are late enough in the game, and
423
# so weak that their functioning should not be impacted.
424
am__obj=conftest.${OBJEXT-o}
429
if depmode=$depmode \
430
source=sub/conftest.c object=$am__obj \
431
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
432
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
433
>/dev/null 2>conftest.err &&
434
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
435
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
436
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
437
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
438
# icc doesn't choke on unknown options, it will just issue warnings
439
# or remarks (even with -Werror). So we grep stderr for any message
440
# that says an option was ignored or not supported.
441
# When given -MP, icc 7.0 and 7.1 complain thusly:
442
# icc: Command line warning: ignoring option '-M'; no argument required
443
# The diagnosis changed in icc 8.0:
444
# icc: Command line remark: option '-MP' not supported
445
if (grep 'ignoring option' conftest.err ||
446
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
447
am_cv_$1_dependencies_compiler_type=$depmode
456
am_cv_$1_dependencies_compiler_type=none
459
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
460
AM_CONDITIONAL([am__fastdep$1], [
461
test "x$enable_dependency_tracking" != xno \
462
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
468
# Choose a directory name for dependency files.
469
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
470
AC_DEFUN([AM_SET_DEPDIR],
471
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
472
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
478
AC_DEFUN([AM_DEP_TRACK],
479
[AC_ARG_ENABLE([dependency-tracking], [dnl
481
[--enable-dependency-tracking],
482
[do not reject slow dependency extractors])
484
[--disable-dependency-tracking],
485
[speeds up one-time build])])
486
if test "x$enable_dependency_tracking" != xno; then
487
am_depcomp="$ac_aux_dir/depcomp"
491
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
492
AC_SUBST([AMDEPBACKSLASH])dnl
493
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
494
AC_SUBST([am__nodep])dnl
495
_AM_SUBST_NOTMAKE([am__nodep])dnl
498
# Generate code to set up dependency tracking. -*- Autoconf -*-
500
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
502
# This file is free software; the Free Software Foundation
503
# gives unlimited permission to copy and/or distribute it,
504
# with or without modifications, as long as this notice is preserved.
508
# _AM_OUTPUT_DEPENDENCY_COMMANDS
509
# ------------------------------
510
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
512
# Autoconf 2.62 quotes --file arguments for eval, but not when files
513
# are listed without --file. Let's play safe and only enable the eval
514
# if we detect the quoting.
515
case $CONFIG_FILES in
516
*\'*) eval set x "$CONFIG_FILES" ;;
517
*) set x $CONFIG_FILES ;;
522
# Strip MF so we end up with the name of the file.
523
mf=`echo "$mf" | sed -e 's/:.*$//'`
524
# Check whether this is an Automake generated Makefile or not.
525
# We used to match only the files named 'Makefile.in', but
526
# some people rename them; so instead we look at the file content.
527
# Grep'ing the first line is not enough: some people post-process
528
# each Makefile.in and add a new line on top of each file to say so.
529
# Grep'ing the whole file is not good either: AIX grep has a line
530
# limit of 2048, but all sed's we know have understand at least 4000.
531
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
532
dirpart=`AS_DIRNAME("$mf")`
536
# Extract the definition of DEPDIR, am__include, and am__quote
537
# from the Makefile without running 'make'.
538
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
539
test -z "$DEPDIR" && continue
540
am__include=`sed -n 's/^am__include = //p' < "$mf"`
541
test -z "am__include" && continue
542
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
543
# Find all dependency output files, they are included files with
544
# $(DEPDIR) in their names. We invoke sed twice because it is the
545
# simplest approach to changing $(DEPDIR) to its actual value in the
547
for file in `sed -n "
548
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
549
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
550
# Make sure the directory exists.
551
test -f "$dirpart/$file" && continue
552
fdir=`AS_DIRNAME(["$file"])`
553
AS_MKDIR_P([$dirpart/$fdir])
554
# echo "creating $dirpart/$file"
555
echo '# dummy' > "$dirpart/$file"
559
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
562
# AM_OUTPUT_DEPENDENCY_COMMANDS
563
# -----------------------------
564
# This macro should only be invoked once -- use via AC_REQUIRE.
566
# This code is only required when automatic dependency tracking
567
# is enabled. FIXME. This creates each '.P' file that we will
568
# need in order to bootstrap the dependency handling code.
569
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
570
[AC_CONFIG_COMMANDS([depfiles],
571
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
572
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
575
# Do all the work for Automake. -*- Autoconf -*-
577
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
579
# This file is free software; the Free Software Foundation
580
# gives unlimited permission to copy and/or distribute it,
581
# with or without modifications, as long as this notice is preserved.
585
# This macro actually does too much. Some checks are only needed if
586
# your package does certain things. But this isn't really a big deal.
588
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
589
# AM_INIT_AUTOMAKE([OPTIONS])
590
# -----------------------------------------------
591
# The call with PACKAGE and VERSION arguments is the old style
592
# call (pre autoconf-2.50), which is being phased out. PACKAGE
593
# and VERSION should now be passed to AC_INIT and removed from
594
# the call to AM_INIT_AUTOMAKE.
595
# We support both call styles for the transition. After
596
# the next Automake release, Autoconf can make the AC_INIT
597
# arguments mandatory, and then we can depend on a new Autoconf
598
# release and drop the old call support.
599
AC_DEFUN([AM_INIT_AUTOMAKE],
600
[AC_PREREQ([2.62])dnl
601
dnl Autoconf wants to disallow AM_ names. We explicitly allow
602
dnl the ones we care about.
603
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
604
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
605
AC_REQUIRE([AC_PROG_INSTALL])dnl
606
if test "`cd $srcdir && pwd`" != "`pwd`"; then
607
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
608
# is not polluted with repeated "-I."
609
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
610
# test to see if srcdir already configured
611
if test -f $srcdir/config.status; then
612
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
616
# test whether we have cygpath
617
if test -z "$CYGPATH_W"; then
618
if (cygpath --version) >/dev/null 2>/dev/null; then
619
CYGPATH_W='cygpath -w'
624
AC_SUBST([CYGPATH_W])
626
# Define the identity of the package.
627
dnl Distinguish between old-style and new-style calls.
629
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
630
AC_SUBST([PACKAGE], [$1])dnl
631
AC_SUBST([VERSION], [$2])],
632
[_AM_SET_OPTIONS([$1])dnl
633
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
635
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
637
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
638
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
639
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
641
_AM_IF_OPTION([no-define],,
642
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
643
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
645
# Some tools Automake needs.
646
AC_REQUIRE([AM_SANITY_CHECK])dnl
647
AC_REQUIRE([AC_ARG_PROGRAM])dnl
648
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
649
AM_MISSING_PROG([AUTOCONF], [autoconf])
650
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
651
AM_MISSING_PROG([AUTOHEADER], [autoheader])
652
AM_MISSING_PROG([MAKEINFO], [makeinfo])
653
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
654
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
655
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
656
# We need awk for the "check" target. The system "awk" is bad on
658
AC_REQUIRE([AC_PROG_AWK])dnl
659
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
660
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
661
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
662
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
663
[_AM_PROG_TAR([v7])])])
664
_AM_IF_OPTION([no-dependencies],,
665
[AC_PROVIDE_IFELSE([AC_PROG_CC],
666
[_AM_DEPENDENCIES([CC])],
667
[define([AC_PROG_CC],
668
defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
669
AC_PROVIDE_IFELSE([AC_PROG_CXX],
670
[_AM_DEPENDENCIES([CXX])],
671
[define([AC_PROG_CXX],
672
defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
673
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
674
[_AM_DEPENDENCIES([OBJC])],
675
[define([AC_PROG_OBJC],
676
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
678
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
679
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
680
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
681
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
682
AC_CONFIG_COMMANDS_PRE(dnl
683
[m4_provide_if([_AM_COMPILER_EXEEXT],
684
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
687
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
688
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
689
dnl mangled by Autoconf and run in a shell conditional statement.
690
m4_define([_AC_COMPILER_EXEEXT],
691
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
694
# When config.status generates a header, we must update the stamp-h file.
695
# This file resides in the same directory as the config header
696
# that is generated. The stamp files are numbered to have different names.
698
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
699
# loop where config.status creates the headers, so we can generate
700
# our stamp files there.
701
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
702
[# Compute $1's index in $config_headers.
705
for _am_header in $config_headers :; do
707
$_am_arg | $_am_arg:* )
710
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
713
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
715
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
717
# This file is free software; the Free Software Foundation
718
# gives unlimited permission to copy and/or distribute it,
719
# with or without modifications, as long as this notice is preserved.
725
# Define $install_sh.
726
AC_DEFUN([AM_PROG_INSTALL_SH],
727
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
728
if test x"${install_sh}" != xset; then
731
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
733
install_sh="\${SHELL} $am_aux_dir/install-sh"
736
AC_SUBST([install_sh])])
738
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
740
# This file is free software; the Free Software Foundation
741
# gives unlimited permission to copy and/or distribute it,
742
# with or without modifications, as long as this notice is preserved.
746
# Check whether the underlying file-system supports filenames
747
# with a leading dot. For instance MS-DOS doesn't.
748
AC_DEFUN([AM_SET_LEADING_DOT],
749
[rm -rf .tst 2>/dev/null
750
mkdir .tst 2>/dev/null
751
if test -d .tst; then
756
rmdir .tst 2>/dev/null
757
AC_SUBST([am__leading_dot])])
759
# Check to see how 'make' treats includes. -*- Autoconf -*-
761
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
763
# This file is free software; the Free Software Foundation
764
# gives unlimited permission to copy and/or distribute it,
765
# with or without modifications, as long as this notice is preserved.
771
# Check to see how make treats includes.
772
AC_DEFUN([AM_MAKE_INCLUDE],
773
[am_make=${MAKE-make}
774
cat > confinc << 'END'
776
@echo this is the am__doit target
779
# If we don't find an include directive, just comment out the code.
780
AC_MSG_CHECKING([for style of include used by $am_make])
784
# First try GNU make style include.
785
echo "include confinc" > confmf
786
# Ignore all kinds of additional output from 'make'.
787
case `$am_make -s -f confmf 2> /dev/null` in #(
788
*the\ am__doit\ target*)
794
# Now try BSD make style include.
795
if test "$am__include" = "#"; then
796
echo '.include "confinc"' > confmf
797
case `$am_make -s -f confmf 2> /dev/null` in #(
798
*the\ am__doit\ target*)
805
AC_SUBST([am__include])
806
AC_SUBST([am__quote])
807
AC_MSG_RESULT([$_am_result])
811
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
813
# This file is free software; the Free Software Foundation
814
# gives unlimited permission to copy and/or distribute it,
815
# with or without modifications, as long as this notice is preserved.
821
# Like AC_PROG_CC_C_O, but changed for automake.
822
AC_DEFUN([AM_PROG_CC_C_O],
823
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
824
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
825
AC_REQUIRE_AUX_FILE([compile])dnl
826
# FIXME: we rely on the cache variable name because
827
# there is no other way.
829
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
830
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
831
if test "$am_t" != yes; then
832
# Losing compiler, so override with the script.
833
# FIXME: It is wrong to rewrite CC.
834
# But if we don't then we get into trouble of one sort or another.
835
# A longer-term fix would be to have automake use am__CC in this case,
836
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
837
CC="$am_aux_dir/compile $CC"
839
dnl Make sure AC_PROG_CC is never called again, or it will override our
841
m4_define([AC_PROG_CC],
842
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
845
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
847
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
849
# This file is free software; the Free Software Foundation
850
# gives unlimited permission to copy and/or distribute it,
851
# with or without modifications, as long as this notice is preserved.
855
# AM_MISSING_PROG(NAME, PROGRAM)
856
# ------------------------------
857
AC_DEFUN([AM_MISSING_PROG],
858
[AC_REQUIRE([AM_MISSING_HAS_RUN])
859
$1=${$1-"${am_missing_run}$2"}
865
# Define MISSING if not defined so far and test if it supports --run.
866
# If it does, set am_missing_run to use it, otherwise, to nothing.
867
AC_DEFUN([AM_MISSING_HAS_RUN],
868
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
869
AC_REQUIRE_AUX_FILE([missing])dnl
870
if test x"${MISSING+set}" != xset; then
873
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
875
MISSING="\${SHELL} $am_aux_dir/missing" ;;
878
# Use eval to expand $SHELL
879
if eval "$MISSING --run true"; then
880
am_missing_run="$MISSING --run "
883
AC_MSG_WARN(['missing' script is too old or missing])
887
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
889
# This file is free software; the Free Software Foundation
890
# gives unlimited permission to copy and/or distribute it,
891
# with or without modifications, as long as this notice is preserved.
897
# Check for 'mkdir -p'.
898
AC_DEFUN([AM_PROG_MKDIR_P],
899
[AC_PREREQ([2.60])dnl
900
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
901
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
902
dnl while keeping a definition of mkdir_p for backward compatibility.
903
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
904
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
905
dnl Makefile.ins that do not define MKDIR_P, so we do our own
906
dnl adjustment using top_builddir (which is defined more often than
908
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
910
[[\\/$]]* | ?:[[\\/]]*) ;;
911
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
915
# Helper functions for option handling. -*- Autoconf -*-
917
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
919
# This file is free software; the Free Software Foundation
920
# gives unlimited permission to copy and/or distribute it,
921
# with or without modifications, as long as this notice is preserved.
925
# _AM_MANGLE_OPTION(NAME)
926
# -----------------------
927
AC_DEFUN([_AM_MANGLE_OPTION],
928
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
930
# _AM_SET_OPTION(NAME)
931
# --------------------
932
# Set option NAME. Presently that only means defining a flag for this option.
933
AC_DEFUN([_AM_SET_OPTION],
934
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
936
# _AM_SET_OPTIONS(OPTIONS)
937
# ------------------------
938
# OPTIONS is a space-separated list of Automake options.
939
AC_DEFUN([_AM_SET_OPTIONS],
940
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
942
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
943
# -------------------------------------------
944
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
945
AC_DEFUN([_AM_IF_OPTION],
946
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
948
# Check to make sure that the build environment is sane. -*- Autoconf -*-
950
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
952
# This file is free software; the Free Software Foundation
953
# gives unlimited permission to copy and/or distribute it,
954
# with or without modifications, as long as this notice is preserved.
960
AC_DEFUN([AM_SANITY_CHECK],
961
[AC_MSG_CHECKING([whether build environment is sane])
962
# Reject unsafe characters in $srcdir or the absolute working directory
963
# name. Accept space and tab only in the latter.
967
*[[\\\"\#\$\&\'\`$am_lf]]*)
968
AC_MSG_ERROR([unsafe absolute working directory name]);;
971
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
972
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
975
# Do 'set' in a subshell so we don't clobber the current shell's
976
# arguments. Must try -L first in case configure is actually a
977
# symlink; some systems play weird games with the mod time of symlinks
978
# (eg FreeBSD returns the mod time of the symlink's containing
982
for am_try in 1 2; do
983
echo "timestamp, slept: $am_has_slept" > conftest.file
984
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
985
if test "$[*]" = "X"; then
987
set X `ls -t "$srcdir/configure" conftest.file`
989
if test "$[*]" != "X $srcdir/configure conftest.file" \
990
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
992
# If neither matched, then we have a broken ls. This can happen
993
# if, for instance, CONFIG_SHELL is bash and it inherits a
994
# broken ls alias from the environment. This has actually
995
# happened. Such a system could not be considered "sane".
996
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
997
alias in your environment])
999
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1006
test "$[2]" = conftest.file
1012
AC_MSG_ERROR([newly created file is older than distributed files!
1013
Check your system clock])
1015
AC_MSG_RESULT([yes])
1016
# If we didn't sleep, we still need to ensure time stamps of config.status and
1017
# generated files are strictly newer.
1019
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1023
AC_CONFIG_COMMANDS_PRE(
1024
[AC_MSG_CHECKING([that generated files are newer than configure])
1025
if test -n "$am_sleep_pid"; then
1026
# Hide warnings about reused PIDs.
1027
wait $am_sleep_pid 2>/dev/null
1029
AC_MSG_RESULT([done])])
1033
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
1035
# This file is free software; the Free Software Foundation
1036
# gives unlimited permission to copy and/or distribute it,
1037
# with or without modifications, as long as this notice is preserved.
1041
# AM_SILENT_RULES([DEFAULT])
1042
# --------------------------
1043
# Enable less verbose build rules; with the default set to DEFAULT
1044
# ("yes" being less verbose, "no" or empty being verbose).
1045
AC_DEFUN([AM_SILENT_RULES],
1046
[AC_ARG_ENABLE([silent-rules], [dnl
1048
[--enable-silent-rules],
1049
[less verbose build output (undo: "make V=1")])
1051
[--disable-silent-rules],
1052
[verbose build output (undo: "make V=0")])dnl
1054
case $enable_silent_rules in @%:@ (((
1055
yes) AM_DEFAULT_VERBOSITY=0;;
1056
no) AM_DEFAULT_VERBOSITY=1;;
1057
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1060
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1061
dnl do not support nested variable expansions.
1062
dnl See automake bug#9928 and bug#10237.
1063
am_make=${MAKE-make}
1064
AC_CACHE_CHECK([whether $am_make supports nested variables],
1065
[am_cv_make_support_nested_variables],
1066
[if AS_ECHO([['TRUE=$(BAR$(V))
1072
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1073
am_cv_make_support_nested_variables=yes
1075
am_cv_make_support_nested_variables=no
1077
if test $am_cv_make_support_nested_variables = yes; then
1078
dnl Using '$V' instead of '$(V)' breaks IRIX make.
1080
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1082
AM_V=$AM_DEFAULT_VERBOSITY
1083
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1086
AM_SUBST_NOTMAKE([AM_V])dnl
1087
AC_SUBST([AM_DEFAULT_V])dnl
1088
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1089
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1091
AC_SUBST([AM_BACKSLASH])dnl
1092
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1095
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
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.
1103
# AM_PROG_INSTALL_STRIP
1104
# ---------------------
1105
# One issue with vendor 'install' (even GNU) is that you can't
1106
# specify the program used to strip binaries. This is especially
1107
# annoying in cross-compiling environments, where the build's strip
1108
# is unlikely to handle the host's binaries.
1109
# Fortunately install-sh will honor a STRIPPROG variable, so we
1110
# always use install-sh in "make install-strip", and initialize
1111
# STRIPPROG with the value of the STRIP variable (set by the user).
1112
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1113
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1114
# Installed binaries are usually stripped using 'strip' when the user
1115
# run "make install-strip". However 'strip' might not be the right
1116
# tool to use in cross-compilation environments, therefore Automake
1117
# will honor the 'STRIP' environment variable to overrule this program.
1118
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1119
if test "$cross_compiling" != no; then
1120
AC_CHECK_TOOL([STRIP], [strip], :)
1122
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1123
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1125
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
1127
# This file is free software; the Free Software Foundation
1128
# gives unlimited permission to copy and/or distribute it,
1129
# with or without modifications, as long as this notice is preserved.
1133
# _AM_SUBST_NOTMAKE(VARIABLE)
1134
# ---------------------------
1135
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1136
# This macro is traced by Automake.
1137
AC_DEFUN([_AM_SUBST_NOTMAKE])
1139
# AM_SUBST_NOTMAKE(VARIABLE)
1140
# --------------------------
1141
# Public sister of _AM_SUBST_NOTMAKE.
1142
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1144
# Check how to create a tarball. -*- Autoconf -*-
1146
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
1148
# This file is free software; the Free Software Foundation
1149
# gives unlimited permission to copy and/or distribute it,
1150
# with or without modifications, as long as this notice is preserved.
1154
# _AM_PROG_TAR(FORMAT)
1155
# --------------------
1156
# Check how to create a tarball in format FORMAT.
1157
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1159
# Substitute a variable $(am__tar) that is a command
1160
# writing to stdout a FORMAT-tarball containing the directory
1162
# tardir=directory && $(am__tar) > result.tar
1164
# Substitute a variable $(am__untar) that extract such
1165
# a tarball read from stdin.
1166
# $(am__untar) < result.tar
1167
AC_DEFUN([_AM_PROG_TAR],
1168
[# Always define AMTAR for backward compatibility. Yes, it's still used
1169
# in the wild :-( We should find a proper way to deprecate it ...
1170
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1172
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1173
[m4_case([$1], [ustar],, [pax],,
1174
[m4_fatal([Unknown tar format])])
1175
AC_MSG_CHECKING([how to create a $1 tar archive])
1176
# Loop over all known methods to create a tar archive until one works.
1177
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1178
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1179
# Do not fold the above two line into one, because Tru64 sh and
1180
# Solaris sh will not grok spaces in the rhs of '-'.
1181
for _am_tool in $_am_tools
1185
for _am_tar in tar gnutar gtar;
1187
AM_RUN_LOG([$_am_tar --version]) && break
1189
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1190
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1191
am__untar="$_am_tar -xf -"
1194
# Must skip GNU tar: if it does not support --format= it doesn't create
1195
# ustar tarball either.
1196
(tar --version) >/dev/null 2>&1 && continue
1197
am__tar='tar chf - "$$tardir"'
1198
am__tar_='tar chf - "$tardir"'
1199
am__untar='tar xf -'
1202
am__tar='pax -L -x $1 -w "$$tardir"'
1203
am__tar_='pax -L -x $1 -w "$tardir"'
1207
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1208
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1209
am__untar='cpio -i -H $1 -d'
1218
# If the value was cached, stop now. We just wanted to have am__tar
1219
# and am__untar set.
1220
test -n "${am_cv_prog_tar_$1}" && break
1222
# tar/untar a dummy directory, and stop if the command works
1225
echo GrepMe > conftest.dir/file
1226
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1228
if test -s conftest.tar; then
1229
AM_RUN_LOG([$am__untar <conftest.tar])
1230
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1235
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1236
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1238
AC_SUBST([am__untar])
1241
m4_include([m4/00gnulib.m4])
1242
m4_include([m4/alloca.m4])
1243
m4_include([m4/assert.m4])
1244
m4_include([m4/btowc.m4])
1245
m4_include([m4/calloc.m4])
1246
m4_include([m4/canonicalize.m4])
1247
m4_include([m4/close-stream.m4])
1248
m4_include([m4/close.m4])
1249
m4_include([m4/closeout.m4])
1250
m4_include([m4/codeset.m4])
1251
m4_include([m4/config-h.m4])
1252
m4_include([m4/configmake.m4])
1253
m4_include([m4/dirname.m4])
1254
m4_include([m4/double-slash-root.m4])
1255
m4_include([m4/dup2.m4])
1256
m4_include([m4/eealloc.m4])
1257
m4_include([m4/environ.m4])
1258
m4_include([m4/errno_h.m4])
1259
m4_include([m4/error.m4])
1260
m4_include([m4/extensions.m4])
1261
m4_include([m4/fchdir.m4])
1262
m4_include([m4/fcntl-o.m4])
1263
m4_include([m4/fcntl_h.m4])
1264
m4_include([m4/fdopen.m4])
1265
m4_include([m4/fpending.m4])
1266
m4_include([m4/fstat.m4])
1267
m4_include([m4/fsync.m4])
1268
m4_include([m4/getcwd.m4])
1269
m4_include([m4/getopt.m4])
1270
m4_include([m4/getpagesize.m4])
1271
m4_include([m4/gettext.m4])
1272
m4_include([m4/gettimeofday.m4])
1273
m4_include([m4/glibc21.m4])
1274
m4_include([m4/gnulib-common.m4])
1275
m4_include([m4/gnulib-comp.m4])
1276
m4_include([m4/iconv.m4])
1277
m4_include([m4/include_next.m4])
1278
m4_include([m4/inline.m4])
1279
m4_include([m4/intlmacosx.m4])
1280
m4_include([m4/inttypes-pri.m4])
1281
m4_include([m4/inttypes.m4])
1282
m4_include([m4/langinfo_h.m4])
1283
m4_include([m4/largefile.m4])
1284
m4_include([m4/lcmessage.m4])
1285
m4_include([m4/lib-ignore.m4])
1286
m4_include([m4/lib-ld.m4])
1287
m4_include([m4/lib-link.m4])
1288
m4_include([m4/lib-prefix.m4])
1289
m4_include([m4/libtool.m4])
1290
m4_include([m4/localcharset.m4])
1291
m4_include([m4/locale-fr.m4])
1292
m4_include([m4/locale-ja.m4])
1293
m4_include([m4/locale-tr.m4])
1294
m4_include([m4/locale-zh.m4])
1295
m4_include([m4/locale_h.m4])
1296
m4_include([m4/localename.m4])
1297
m4_include([m4/lock.m4])
1298
m4_include([m4/longlong.m4])
1299
m4_include([m4/lseek.m4])
1300
m4_include([m4/lstat.m4])
1301
m4_include([m4/ltoptions.m4])
1302
m4_include([m4/ltsugar.m4])
1303
m4_include([m4/ltversion.m4])
1304
m4_include([m4/lt~obsolete.m4])
1305
m4_include([m4/malloc.m4])
1306
m4_include([m4/malloca.m4])
1307
m4_include([m4/manywarnings.m4])
1308
m4_include([m4/mbrtowc.m4])
1309
m4_include([m4/mbsinit.m4])
1310
m4_include([m4/mbstate_t.m4])
1311
m4_include([m4/mbtowc.m4])
1312
m4_include([m4/mkstemp.m4])
1313
m4_include([m4/mmap-anon.m4])
1314
m4_include([m4/mode_t.m4])
1315
m4_include([m4/msvc-inval.m4])
1316
m4_include([m4/msvc-nothrow.m4])
1317
m4_include([m4/multiarch.m4])
1318
m4_include([m4/nl_langinfo.m4])
1319
m4_include([m4/nls.m4])
1320
m4_include([m4/nocrash.m4])
1321
m4_include([m4/o-direct.m4])
1322
m4_include([m4/open.m4])
1323
m4_include([m4/pathmax.m4])
1324
m4_include([m4/po.m4])
1325
m4_include([m4/priv-set.m4])
1326
m4_include([m4/progtest.m4])
1327
m4_include([m4/putenv.m4])
1328
m4_include([m4/quote.m4])
1329
m4_include([m4/quotearg.m4])
1330
m4_include([m4/read.m4])
1331
m4_include([m4/readlink.m4])
1332
m4_include([m4/realloc.m4])
1333
m4_include([m4/regex.m4])
1334
m4_include([m4/rpmatch.m4])
1335
m4_include([m4/safe-read.m4])
1336
m4_include([m4/setenv.m4])
1337
m4_include([m4/setlocale.m4])
1338
m4_include([m4/sleep.m4])
1339
m4_include([m4/ssize_t.m4])
1340
m4_include([m4/stat.m4])
1341
m4_include([m4/stdarg.m4])
1342
m4_include([m4/stdbool.m4])
1343
m4_include([m4/stddef_h.m4])
1344
m4_include([m4/stdint.m4])
1345
m4_include([m4/stdio_h.m4])
1346
m4_include([m4/stdlib_h.m4])
1347
m4_include([m4/strcase.m4])
1348
m4_include([m4/strdup.m4])
1349
m4_include([m4/strerror.m4])
1350
m4_include([m4/strerror_r.m4])
1351
m4_include([m4/string_h.m4])
1352
m4_include([m4/strings_h.m4])
1353
m4_include([m4/strndup.m4])
1354
m4_include([m4/strnlen.m4])
1355
m4_include([m4/strtoll.m4])
1356
m4_include([m4/strtoull.m4])
1357
m4_include([m4/symlink.m4])
1358
m4_include([m4/sys_socket_h.m4])
1359
m4_include([m4/sys_stat_h.m4])
1360
m4_include([m4/sys_time_h.m4])
1361
m4_include([m4/sys_types_h.m4])
1362
m4_include([m4/tempname.m4])
1363
m4_include([m4/thread.m4])
1364
m4_include([m4/threadlib.m4])
1365
m4_include([m4/time_h.m4])
1366
m4_include([m4/unistd_h.m4])
1367
m4_include([m4/unlink.m4])
1368
m4_include([m4/unlinkdir.m4])
1369
m4_include([m4/usleep.m4])
1370
m4_include([m4/version-etc.m4])
1371
m4_include([m4/warn-on-use.m4])
1372
m4_include([m4/warnings.m4])
1373
m4_include([m4/wchar_h.m4])
1374
m4_include([m4/wchar_t.m4])
1375
m4_include([m4/wcrtomb.m4])
1376
m4_include([m4/wctob.m4])
1377
m4_include([m4/wctomb.m4])
1378
m4_include([m4/wctype_h.m4])
1379
m4_include([m4/wint_t.m4])
1380
m4_include([m4/xalloc.m4])
1381
m4_include([m4/xstrndup.m4])
1382
m4_include([m4/xstrtol.m4])
1383
m4_include([m4/yield.m4])