11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
[m4_warning([this file was generated for autoconf 2.67.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
18
19
You have another version of autoconf. It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
24
25
# This file is free software; the Free Software Foundation
25
26
# gives unlimited permission to copy and/or distribute it,
50
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
[AM_AUTOMAKE_VERSION([1.13.3])dnl
54
55
m4_ifndef([AC_AUTOCONF_VERSION],
55
56
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
62
63
# This file is free software; the Free Software Foundation
63
64
# gives unlimited permission to copy and/or distribute it,
64
65
# with or without modifications, as long as this notice is preserved.
66
67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70
71
# Of course, Automake must honor this variable whenever it calls a
71
72
# tool from the auxiliary directory. The problem is that $srcdir (and
111
112
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
# Free Software Foundation, Inc.
114
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
116
116
# This file is free software; the Free Software Foundation
117
117
# gives unlimited permission to copy and/or distribute it,
118
118
# with or without modifications, as long as this notice is preserved.
122
120
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
121
# -------------------------------------
124
122
# Define a conditional.
125
123
AC_DEFUN([AM_CONDITIONAL],
127
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
124
[AC_PREREQ([2.52])dnl
125
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
126
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
127
AC_SUBST([$1_TRUE])dnl
130
128
AC_SUBST([$1_FALSE])dnl
131
129
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
144
142
Usually this means the macro was only invoked conditionally.]])
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
# Free Software Foundation, Inc.
145
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
150
147
# This file is free software; the Free Software Foundation
151
148
# gives unlimited permission to copy and/or distribute it,
152
149
# with or without modifications, as long as this notice is preserved.
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
152
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
157
153
# written in clear, in which case automake, when reading aclocal.m4,
158
154
# will think it sees a *use*, and therefore will trigger all it's
159
155
# C support machinery. Also note that it means that autoscan, seeing
176
172
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
173
AC_REQUIRE([AM_DEP_TRACK])dnl
179
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180
[$1], CXX, [depcc="$CXX" am_compiler_list=],
181
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
[$1], UPC, [depcc="$UPC" am_compiler_list=],
183
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184
[depcc="$$1" am_compiler_list=])
175
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
176
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
177
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
180
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181
[depcc="$$1" am_compiler_list=])
186
183
AC_CACHE_CHECK([dependency style of $depcc],
187
184
[am_cv_$1_dependencies_compiler_type],
316
314
AC_DEFUN([AM_DEP_TRACK],
317
[AC_ARG_ENABLE(dependency-tracking,
318
[ --disable-dependency-tracking speeds up one-time build
319
--enable-dependency-tracking do not reject slow dependency extractors])
315
[AC_ARG_ENABLE([dependency-tracking], [dnl
317
[--enable-dependency-tracking],
318
[do not reject slow dependency extractors])
320
[--disable-dependency-tracking],
321
[speeds up one-time build])])
320
322
if test "x$enable_dependency_tracking" != xno; then
321
323
am_depcomp="$ac_aux_dir/depcomp"
322
324
AMDEPBACKSLASH='\'
324
327
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
328
AC_SUBST([AMDEPBACKSLASH])dnl
326
329
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
330
AC_SUBST([am__nodep])dnl
331
_AM_SUBST_NOTMAKE([am__nodep])dnl
329
334
# Generate code to set up dependency tracking. -*- Autoconf -*-
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
# Free Software Foundation, Inc.
336
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
334
338
# This file is free software; the Free Software Foundation
335
339
# gives unlimited permission to copy and/or distribute it,
336
340
# with or without modifications, as long as this notice is preserved.
340
343
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
344
# ------------------------------
342
345
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344
# Autoconf 2.62 quotes --file arguments for eval, but not when files
347
# Older Autoconf quotes --file arguments for eval, but not when files
345
348
# are listed without --file. Let's play safe and only enable the eval
346
349
# if we detect the quoting.
347
350
case $CONFIG_FILES in
368
371
# Extract the definition of DEPDIR, am__include, and am__quote
369
# from the Makefile without running `make'.
372
# from the Makefile without running 'make'.
370
373
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
374
test -z "$DEPDIR" && continue
372
375
am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
test -z "am__include" && continue
376
test -z "$am__include" && continue
374
377
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
# When using ansi2knr, U may be empty or an underscore; expand it
376
U=`sed -n 's/^U = //p' < "$mf"`
377
378
# Find all dependency output files, they are included files with
378
379
# $(DEPDIR) in their names. We invoke sed twice because it is the
379
380
# simplest approach to changing $(DEPDIR) to its actual value in the
381
382
for file in `sed -n "
382
383
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
384
385
# Make sure the directory exists.
385
386
test -f "$dirpart/$file" && continue
386
387
fdir=`AS_DIRNAME(["$file"])`
461
459
# Define the identity of the package.
462
460
dnl Distinguish between old-style and new-style calls.
464
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
462
[AC_DIAGNOSE([obsolete],
463
[$0: two- and three-arguments forms are deprecated.])
464
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
465
AC_SUBST([PACKAGE], [$1])dnl
466
466
AC_SUBST([VERSION], [$2])],
467
467
[_AM_SET_OPTIONS([$1])dnl
468
468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
470
472
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
473
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
474
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
474
476
_AM_IF_OPTION([no-define],,
475
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
477
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
478
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
478
480
# Some tools Automake needs.
479
481
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
482
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
AM_MISSING_PROG(AUTOCONF, autoconf)
483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
AM_MISSING_PROG(MAKEINFO, makeinfo)
483
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
484
AM_MISSING_PROG([AUTOCONF], [autoconf])
485
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
486
AM_MISSING_PROG([AUTOHEADER], [autoheader])
487
AM_MISSING_PROG([MAKEINFO], [makeinfo])
486
488
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
489
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
490
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
491
# For better backward compatibility. To be removed once Automake 1.9.x
492
# dies out for good. For more background, see:
493
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
494
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
495
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
489
496
# We need awk for the "check" target. The system "awk" is bad on
490
497
# some platforms.
491
498
AC_REQUIRE([AC_PROG_AWK])dnl
496
503
[_AM_PROG_TAR([v7])])])
497
504
_AM_IF_OPTION([no-dependencies],,
498
505
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
[_AM_DEPENDENCIES(CC)],
500
[define([AC_PROG_CC],
501
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
506
[_AM_DEPENDENCIES([CC])],
507
[m4_define([AC_PROG_CC],
508
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
502
509
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
[_AM_DEPENDENCIES(CXX)],
504
[define([AC_PROG_CXX],
505
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
510
[_AM_DEPENDENCIES([CXX])],
511
[m4_define([AC_PROG_CXX],
512
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
506
513
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
[_AM_DEPENDENCIES(OBJC)],
508
[define([AC_PROG_OBJC],
509
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
514
[_AM_DEPENDENCIES([OBJC])],
515
[m4_define([AC_PROG_OBJC],
516
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
517
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
518
[_AM_DEPENDENCIES([OBJCXX])],
519
[m4_define([AC_PROG_OBJCXX],
520
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
522
AC_REQUIRE([AM_SILENT_RULES])dnl
523
dnl The testsuite driver may need to know about EXEEXT, so add the
524
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
525
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
526
AC_CONFIG_COMMANDS_PRE(dnl
516
527
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
528
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
531
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
521
532
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
533
dnl mangled by Autoconf and run in a shell conditional statement.
523
534
m4_define([_AC_COMPILER_EXEEXT],
590
599
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
591
600
# From Jim Meyering
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
# Free Software Foundation, Inc.
602
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
596
604
# This file is free software; the Free Software Foundation
597
605
# gives unlimited permission to copy and/or distribute it,
598
606
# with or without modifications, as long as this notice is preserved.
602
608
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
609
# ----------------------------------
604
610
# Control maintainer-specific portions of Makefiles.
605
# Default is to disable them, unless `enable' is passed literally.
606
# For symmetry, `disable' may be passed as well. Anyway, the user
611
# Default is to disable them, unless 'enable' is passed literally.
612
# For symmetry, 'disable' may be passed as well. Anyway, the user
607
613
# can override the default with the --enable/--disable switch.
608
614
AC_DEFUN([AM_MAINTAINER_MODE],
609
615
[m4_case(m4_default([$1], [disable]),
611
617
[disable], [m4_define([am_maintainer_other], [enable])],
612
618
[m4_define([am_maintainer_other], [enable])
613
619
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
620
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
621
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
622
AC_ARG_ENABLE([maintainer-mode],
617
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
618
(and sometimes confusing) to the casual installer],
619
[USE_MAINTAINER_MODE=$enableval],
620
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
623
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
624
am_maintainer_other[ make rules and dependencies not useful
625
(and sometimes confusing) to the casual installer])],
626
[USE_MAINTAINER_MODE=$enableval],
627
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
628
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
629
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
630
MAINT=$MAINTAINER_MODE_TRUE
786
788
# Helper functions for option handling. -*- Autoconf -*-
788
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
790
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
790
792
# This file is free software; the Free Software Foundation
791
793
# gives unlimited permission to copy and/or distribute it,
792
794
# with or without modifications, as long as this notice is preserved.
796
796
# _AM_MANGLE_OPTION(NAME)
797
797
# -----------------------
798
798
AC_DEFUN([_AM_MANGLE_OPTION],
799
799
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
801
801
# _AM_SET_OPTION(NAME)
802
# ------------------------------
802
# --------------------
803
803
# Set option NAME. Presently that only means defining a flag for this option.
804
804
AC_DEFUN([_AM_SET_OPTION],
805
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
805
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
807
807
# _AM_SET_OPTIONS(OPTIONS)
808
# ----------------------------------
808
# ------------------------
809
809
# OPTIONS is a space-separated list of Automake options.
810
810
AC_DEFUN([_AM_SET_OPTIONS],
811
811
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
846
840
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
847
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
841
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
850
# Do `set' in a subshell so we don't clobber the current shell's
844
# Do 'set' in a subshell so we don't clobber the current shell's
851
845
# arguments. Must try -L first in case configure is actually a
852
846
# symlink; some systems play weird games with the mod time of symlinks
853
847
# (eg FreeBSD returns the mod time of the symlink's containing
856
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
857
if test "$[*]" = "X"; then
859
set X `ls -t "$srcdir/configure" conftest.file`
862
if test "$[*]" != "X $srcdir/configure conftest.file" \
863
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
865
# If neither matched, then we have a broken ls. This can happen
866
# if, for instance, CONFIG_SHELL is bash and it inherits a
867
# broken ls alias from the environment. This has actually
868
# happened. Such a system could not be considered "sane".
869
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
870
alias in your environment])
851
for am_try in 1 2; do
852
echo "timestamp, slept: $am_has_slept" > conftest.file
853
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
854
if test "$[*]" = "X"; then
856
set X `ls -t "$srcdir/configure" conftest.file`
858
if test "$[*]" != "X $srcdir/configure conftest.file" \
859
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
861
# If neither matched, then we have a broken ls. This can happen
862
# if, for instance, CONFIG_SHELL is bash and it inherits a
863
# broken ls alias from the environment. This has actually
864
# happened. Such a system could not be considered "sane".
865
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
866
alias in your environment])
868
if test "$[2]" = conftest.file || test $am_try -eq 2; then
873
875
test "$[2]" = conftest.file
879
881
AC_MSG_ERROR([newly created file is older than distributed files!
880
882
Check your system clock])
885
# If we didn't sleep, we still need to ensure time stamps of config.status and
886
# generated files are strictly newer.
888
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
892
AC_CONFIG_COMMANDS_PRE(
893
[AC_MSG_CHECKING([that generated files are newer than configure])
894
if test -n "$am_sleep_pid"; then
895
# Hide warnings about reused PIDs.
896
wait $am_sleep_pid 2>/dev/null
898
AC_MSG_RESULT([done])])
884
# Copyright (C) 2009 Free Software Foundation, Inc.
902
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
886
904
# This file is free software; the Free Software Foundation
887
905
# gives unlimited permission to copy and/or distribute it,
888
906
# with or without modifications, as long as this notice is preserved.
892
908
# AM_SILENT_RULES([DEFAULT])
893
909
# --------------------------
894
910
# Enable less verbose build rules; with the default set to DEFAULT
895
# (`yes' being less verbose, `no' or empty being verbose).
911
# ("yes" being less verbose, "no" or empty being verbose).
896
912
AC_DEFUN([AM_SILENT_RULES],
897
[AC_ARG_ENABLE([silent-rules],
898
[ --enable-silent-rules less verbose build output (undo: `make V=1')
899
--disable-silent-rules verbose build output (undo: `make V=0')])
900
case $enable_silent_rules in
901
yes) AM_DEFAULT_VERBOSITY=0;;
902
no) AM_DEFAULT_VERBOSITY=1;;
903
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
913
[AC_ARG_ENABLE([silent-rules], [dnl
915
[--enable-silent-rules],
916
[less verbose build output (undo: "make V=1")])
918
[--disable-silent-rules],
919
[verbose build output (undo: "make V=0")])dnl
921
case $enable_silent_rules in @%:@ (((
922
yes) AM_DEFAULT_VERBOSITY=0;;
923
no) AM_DEFAULT_VERBOSITY=1;;
924
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
927
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
928
dnl do not support nested variable expansions.
929
dnl See automake bug#9928 and bug#10237.
931
AC_CACHE_CHECK([whether $am_make supports nested variables],
932
[am_cv_make_support_nested_variables],
933
[if AS_ECHO([['TRUE=$(BAR$(V))
939
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
940
am_cv_make_support_nested_variables=yes
942
am_cv_make_support_nested_variables=no
944
if test $am_cv_make_support_nested_variables = yes; then
945
dnl Using '$V' instead of '$(V)' breaks IRIX make.
947
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
949
AM_V=$AM_DEFAULT_VERBOSITY
950
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
953
AM_SUBST_NOTMAKE([AM_V])dnl
954
AC_SUBST([AM_DEFAULT_V])dnl
955
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
905
956
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
907
958
AC_SUBST([AM_BACKSLASH])dnl
908
959
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
911
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
962
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
913
964
# This file is free software; the Free Software Foundation
914
965
# gives unlimited permission to copy and/or distribute it,
917
968
# AM_PROG_INSTALL_STRIP
918
969
# ---------------------
919
# One issue with vendor `install' (even GNU) is that you can't
970
# One issue with vendor 'install' (even GNU) is that you can't
920
971
# specify the program used to strip binaries. This is especially
921
972
# annoying in cross-compiling environments, where the build's strip
922
973
# is unlikely to handle the host's binaries.
923
974
# Fortunately install-sh will honor a STRIPPROG variable, so we
924
# always use install-sh in `make install-strip', and initialize
975
# always use install-sh in "make install-strip", and initialize
925
976
# STRIPPROG with the value of the STRIP variable (set by the user).
926
977
AC_DEFUN([AM_PROG_INSTALL_STRIP],
927
978
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
928
# Installed binaries are usually stripped using `strip' when the user
929
# run `make install-strip'. However `strip' might not be the right
979
# Installed binaries are usually stripped using 'strip' when the user
980
# run "make install-strip". However 'strip' might not be the right
930
981
# tool to use in cross-compilation environments, therefore Automake
931
# will honor the `STRIP' environment variable to overrule this program.
932
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
982
# will honor the 'STRIP' environment variable to overrule this program.
983
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
933
984
if test "$cross_compiling" != no; then
934
985
AC_CHECK_TOOL([STRIP], [strip], :)
936
987
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
937
988
AC_SUBST([INSTALL_STRIP_PROGRAM])])
939
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
990
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
941
992
# This file is free software; the Free Software Foundation
942
993
# gives unlimited permission to copy and/or distribute it,
943
994
# with or without modifications, as long as this notice is preserved.
947
996
# _AM_SUBST_NOTMAKE(VARIABLE)
948
997
# ---------------------------
949
998
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
951
1000
AC_DEFUN([_AM_SUBST_NOTMAKE])
953
1002
# AM_SUBST_NOTMAKE(VARIABLE)
954
# ---------------------------
1003
# --------------------------
955
1004
# Public sister of _AM_SUBST_NOTMAKE.
956
1005
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
958
1007
# Check how to create a tarball. -*- Autoconf -*-
960
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1009
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
962
1011
# This file is free software; the Free Software Foundation
963
1012
# gives unlimited permission to copy and/or distribute it,
964
1013
# with or without modifications, as long as this notice is preserved.
968
1015
# _AM_PROG_TAR(FORMAT)
969
1016
# --------------------
970
1017
# Check how to create a tarball in format FORMAT.
971
# FORMAT should be one of `v7', `ustar', or `pax'.
1018
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
973
1020
# Substitute a variable $(am__tar) that is a command
974
1021
# writing to stdout a FORMAT-tarball containing the directory
978
1025
# Substitute a variable $(am__untar) that extract such
979
1026
# a tarball read from stdin.
980
1027
# $(am__untar) < result.tar
981
1029
AC_DEFUN([_AM_PROG_TAR],
982
[# Always define AMTAR for backward compatibility.
983
AM_MISSING_PROG([AMTAR], [tar])
1030
[# Always define AMTAR for backward compatibility. Yes, it's still used
1031
# in the wild :-( We should find a proper way to deprecate it ...
1032
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1034
# We'll loop over all known methods to create a tar archive until one works.
1035
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
984
1037
m4_if([$1], [v7],
985
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
986
[m4_case([$1], [ustar],, [pax],,
987
[m4_fatal([Unknown tar format])])
988
AC_MSG_CHECKING([how to create a $1 tar archive])
989
# Loop over all known methods to create a tar archive until one works.
990
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
991
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
992
# Do not fold the above two line into one, because Tru64 sh and
993
# Solaris sh will not grok spaces in the rhs of `-'.
994
for _am_tool in $_am_tools
998
for _am_tar in tar gnutar gtar;
1000
AM_RUN_LOG([$_am_tar --version]) && break
1002
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1003
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1004
am__untar="$_am_tar -xf -"
1007
# Must skip GNU tar: if it does not support --format= it doesn't create
1008
# ustar tarball either.
1009
(tar --version) >/dev/null 2>&1 && continue
1010
am__tar='tar chf - "$$tardir"'
1011
am__tar_='tar chf - "$tardir"'
1012
am__untar='tar xf -'
1015
am__tar='pax -L -x $1 -w "$$tardir"'
1016
am__tar_='pax -L -x $1 -w "$tardir"'
1020
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1021
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1022
am__untar='cpio -i -H $1 -d'
1031
# If the value was cached, stop now. We just wanted to have am__tar
1032
# and am__untar set.
1033
test -n "${am_cv_prog_tar_$1}" && break
1035
# tar/untar a dummy directory, and stop if the command works
1038
echo GrepMe > conftest.dir/file
1039
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1041
if test -s conftest.tar; then
1042
AM_RUN_LOG([$am__untar <conftest.tar])
1043
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1048
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1049
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1038
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1042
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1043
# There is notably a 21 bits limit for the UID and the GID. In fact,
1044
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1046
am_max_uid=2097151 # 2^21 - 1
1047
am_max_gid=$am_max_uid
1048
# The $UID and $GID variables are not portable, so we need to resort
1049
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1050
# below are definitely unexpected, so allow the users to see them
1051
# (that is, avoid stderr redirection).
1052
am_uid=`id -u || echo unknown`
1053
am_gid=`id -g || echo unknown`
1054
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1055
if test $am_uid -le $am_max_uid; then
1056
AC_MSG_RESULT([yes])
1061
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1062
if test $am_gid -le $am_max_gid; then
1063
AC_MSG_RESULT([yes])
1072
[m4_fatal([Unknown tar format])])
1074
AC_MSG_CHECKING([how to create a $1 tar archive])
1076
# Go ahead even if we have the value already cached. We do so because we
1077
# need to set the values for the 'am__tar' and 'am__untar' variables.
1078
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1080
for _am_tool in $_am_tools; do
1083
for _am_tar in tar gnutar gtar; do
1084
AM_RUN_LOG([$_am_tar --version]) && break
1086
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1087
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1088
am__untar="$_am_tar -xf -"
1091
# Must skip GNU tar: if it does not support --format= it doesn't create
1092
# ustar tarball either.
1093
(tar --version) >/dev/null 2>&1 && continue
1094
am__tar='tar chf - "$$tardir"'
1095
am__tar_='tar chf - "$tardir"'
1096
am__untar='tar xf -'
1099
am__tar='pax -L -x $1 -w "$$tardir"'
1100
am__tar_='pax -L -x $1 -w "$tardir"'
1104
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1105
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1106
am__untar='cpio -i -H $1 -d'
1115
# If the value was cached, stop now. We just wanted to have am__tar
1116
# and am__untar set.
1117
test -n "${am_cv_prog_tar_$1}" && break
1119
# tar/untar a dummy directory, and stop if the command works.
1122
echo GrepMe > conftest.dir/file
1123
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1125
if test -s conftest.tar; then
1126
AM_RUN_LOG([$am__untar <conftest.tar])
1127
AM_RUN_LOG([cat conftest.dir/file])
1128
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1133
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1134
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1050
1136
AC_SUBST([am__tar])
1051
1137
AC_SUBST([am__untar])
1052
1138
]) # _AM_PROG_TAR