12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
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($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
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'.])])
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
23
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
24
24
# serial 1 (pkg-config-0.24)
181
181
])# PKG_CHECK_MODULES
183
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
183
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
186
185
# This file is free software; the Free Software Foundation
187
186
# gives unlimited permission to copy and/or distribute it,
188
187
# with or without modifications, as long as this notice is preserved.
192
189
# AM_AUTOMAKE_VERSION(VERSION)
193
190
# ----------------------------
194
191
# Automake X.Y traces this macro to ensure aclocal.m4 has been
195
192
# generated from the m4 files accompanying Automake X.Y.
196
193
# (This private macro should not be called outside this file.)
197
194
AC_DEFUN([AM_AUTOMAKE_VERSION],
198
[am__api_version='1.11'
195
[am__api_version='1.13'
199
196
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
200
197
dnl require some minimum version. Point them to the right macro.
201
m4_if([$1], [1.11.6], [],
198
m4_if([$1], [1.13.3], [],
202
199
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
214
211
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
215
212
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
216
213
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
217
[AM_AUTOMAKE_VERSION([1.11.6])dnl
214
[AM_AUTOMAKE_VERSION([1.13.3])dnl
218
215
m4_ifndef([AC_AUTOCONF_VERSION],
219
216
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
220
217
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
222
# Copyright (C) 2011 Free Software Foundation, Inc.
219
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
224
221
# This file is free software; the Free Software Foundation
225
222
# gives unlimited permission to copy and/or distribute it,
226
223
# with or without modifications, as long as this notice is preserved.
230
225
# AM_PROG_AR([ACT-IF-FAIL])
231
226
# -------------------------
232
227
# Try to determine the archiver interface, and trigger the ar-lib wrapper
283
278
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
285
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
280
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
287
282
# This file is free software; the Free Software Foundation
288
283
# gives unlimited permission to copy and/or distribute it,
289
284
# with or without modifications, as long as this notice is preserved.
293
286
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
294
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
295
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
287
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
288
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
297
290
# Of course, Automake must honor this variable whenever it calls a
298
291
# tool from the auxiliary directory. The problem is that $srcdir (and
338
331
# AM_CONDITIONAL -*- Autoconf -*-
340
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
341
# Free Software Foundation, Inc.
333
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
343
335
# This file is free software; the Free Software Foundation
344
336
# gives unlimited permission to copy and/or distribute it,
345
337
# with or without modifications, as long as this notice is preserved.
349
339
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
350
340
# -------------------------------------
351
341
# Define a conditional.
352
342
AC_DEFUN([AM_CONDITIONAL],
354
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
355
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
343
[AC_PREREQ([2.52])dnl
344
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
345
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
356
346
AC_SUBST([$1_TRUE])dnl
357
347
AC_SUBST([$1_FALSE])dnl
358
348
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
371
361
Usually this means the macro was only invoked conditionally.]])
374
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
375
# 2010, 2011 Free Software Foundation, Inc.
364
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
377
366
# This file is free software; the Free Software Foundation
378
367
# gives unlimited permission to copy and/or distribute it,
379
368
# with or without modifications, as long as this notice is preserved.
383
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
371
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
384
372
# written in clear, in which case automake, when reading aclocal.m4,
385
373
# will think it sees a *use*, and therefore will trigger all it's
386
374
# C support machinery. Also note that it means that autoscan, seeing
403
391
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
404
392
AC_REQUIRE([AM_DEP_TRACK])dnl
406
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
407
[$1], CXX, [depcc="$CXX" am_compiler_list=],
408
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
409
[$1], UPC, [depcc="$UPC" am_compiler_list=],
410
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
411
[depcc="$$1" am_compiler_list=])
394
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
395
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
396
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
397
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
398
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
399
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
400
[depcc="$$1" am_compiler_list=])
413
402
AC_CACHE_CHECK([dependency style of $depcc],
414
403
[am_cv_$1_dependencies_compiler_type],
560
553
# Generate code to set up dependency tracking. -*- Autoconf -*-
562
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
563
# Free Software Foundation, Inc.
555
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
565
557
# This file is free software; the Free Software Foundation
566
558
# gives unlimited permission to copy and/or distribute it,
567
559
# with or without modifications, as long as this notice is preserved.
571
562
# _AM_OUTPUT_DEPENDENCY_COMMANDS
572
563
# ------------------------------
573
564
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
575
# Autoconf 2.62 quotes --file arguments for eval, but not when files
566
# Older Autoconf quotes --file arguments for eval, but not when files
576
567
# are listed without --file. Let's play safe and only enable the eval
577
568
# if we detect the quoting.
578
569
case $CONFIG_FILES in
599
590
# Extract the definition of DEPDIR, am__include, and am__quote
600
# from the Makefile without running `make'.
591
# from the Makefile without running 'make'.
601
592
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
602
593
test -z "$DEPDIR" && continue
603
594
am__include=`sed -n 's/^am__include = //p' < "$mf"`
604
test -z "am__include" && continue
595
test -z "$am__include" && continue
605
596
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
606
# When using ansi2knr, U may be empty or an underscore; expand it
607
U=`sed -n 's/^U = //p' < "$mf"`
608
597
# Find all dependency output files, they are included files with
609
598
# $(DEPDIR) in their names. We invoke sed twice because it is the
610
599
# simplest approach to changing $(DEPDIR) to its actual value in the
612
601
for file in `sed -n "
613
602
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
614
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
603
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
615
604
# Make sure the directory exists.
616
605
test -f "$dirpart/$file" && continue
617
606
fdir=`AS_DIRNAME(["$file"])`
692
678
# Define the identity of the package.
693
679
dnl Distinguish between old-style and new-style calls.
695
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
681
[AC_DIAGNOSE([obsolete],
682
[$0: two- and three-arguments forms are deprecated.])
683
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
696
684
AC_SUBST([PACKAGE], [$1])dnl
697
685
AC_SUBST([VERSION], [$2])],
698
686
[_AM_SET_OPTIONS([$1])dnl
699
687
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
700
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
689
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
701
691
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
702
692
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
703
693
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
705
695
_AM_IF_OPTION([no-define],,
706
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
707
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
696
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
697
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
709
699
# Some tools Automake needs.
710
700
AC_REQUIRE([AM_SANITY_CHECK])dnl
711
701
AC_REQUIRE([AC_ARG_PROGRAM])dnl
712
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
713
AM_MISSING_PROG(AUTOCONF, autoconf)
714
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
715
AM_MISSING_PROG(AUTOHEADER, autoheader)
716
AM_MISSING_PROG(MAKEINFO, makeinfo)
702
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
703
AM_MISSING_PROG([AUTOCONF], [autoconf])
704
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
705
AM_MISSING_PROG([AUTOHEADER], [autoheader])
706
AM_MISSING_PROG([MAKEINFO], [makeinfo])
717
707
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
718
708
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
719
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
709
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
710
# For better backward compatibility. To be removed once Automake 1.9.x
711
# dies out for good. For more background, see:
712
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
713
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
714
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
720
715
# We need awk for the "check" target. The system "awk" is bad on
721
716
# some platforms.
722
717
AC_REQUIRE([AC_PROG_AWK])dnl
727
722
[_AM_PROG_TAR([v7])])])
728
723
_AM_IF_OPTION([no-dependencies],,
729
724
[AC_PROVIDE_IFELSE([AC_PROG_CC],
730
[_AM_DEPENDENCIES(CC)],
731
[define([AC_PROG_CC],
732
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
725
[_AM_DEPENDENCIES([CC])],
726
[m4_define([AC_PROG_CC],
727
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
733
728
AC_PROVIDE_IFELSE([AC_PROG_CXX],
734
[_AM_DEPENDENCIES(CXX)],
735
[define([AC_PROG_CXX],
736
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
729
[_AM_DEPENDENCIES([CXX])],
730
[m4_define([AC_PROG_CXX],
731
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
737
732
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
738
[_AM_DEPENDENCIES(OBJC)],
739
[define([AC_PROG_OBJC],
740
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
733
[_AM_DEPENDENCIES([OBJC])],
734
[m4_define([AC_PROG_OBJC],
735
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
736
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
737
[_AM_DEPENDENCIES([OBJCXX])],
738
[m4_define([AC_PROG_OBJCXX],
739
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
742
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
743
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
744
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
745
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
741
AC_REQUIRE([AM_SILENT_RULES])dnl
742
dnl The testsuite driver may need to know about EXEEXT, so add the
743
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
744
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
746
745
AC_CONFIG_COMMANDS_PRE(dnl
747
746
[m4_provide_if([_AM_COMPILER_EXEEXT],
748
747
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
751
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
750
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
752
751
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
753
752
dnl mangled by Autoconf and run in a shell conditional statement.
754
753
m4_define([_AC_COMPILER_EXEEXT],
824
818
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
825
819
# From Jim Meyering
827
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
828
# 2011 Free Software Foundation, Inc.
821
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
830
823
# This file is free software; the Free Software Foundation
831
824
# gives unlimited permission to copy and/or distribute it,
832
825
# with or without modifications, as long as this notice is preserved.
836
827
# AM_MAINTAINER_MODE([DEFAULT-MODE])
837
828
# ----------------------------------
838
829
# Control maintainer-specific portions of Makefiles.
839
# Default is to disable them, unless `enable' is passed literally.
840
# For symmetry, `disable' may be passed as well. Anyway, the user
830
# Default is to disable them, unless 'enable' is passed literally.
831
# For symmetry, 'disable' may be passed as well. Anyway, the user
841
832
# can override the default with the --enable/--disable switch.
842
833
AC_DEFUN([AM_MAINTAINER_MODE],
843
834
[m4_case(m4_default([$1], [disable]),
848
839
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
849
840
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
850
841
AC_ARG_ENABLE([maintainer-mode],
851
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
852
(and sometimes confusing) to the casual installer],
853
[USE_MAINTAINER_MODE=$enableval],
854
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
842
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
843
am_maintainer_other[ make rules and dependencies not useful
844
(and sometimes confusing) to the casual installer])],
845
[USE_MAINTAINER_MODE=$enableval],
846
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
855
847
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
856
848
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
857
849
MAINT=$MAINTAINER_MODE_TRUE
985
966
# Use eval to expand $SHELL
986
if eval "$MISSING --run true"; then
987
am_missing_run="$MISSING --run "
967
if eval "$MISSING --is-lightweight"; then
968
am_missing_run="$MISSING "
990
AC_MSG_WARN([`missing' script is too old or missing])
971
AC_MSG_WARN(['missing' script is too old or missing])
994
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
997
# This file is free software; the Free Software Foundation
998
# gives unlimited permission to copy and/or distribute it,
999
# with or without modifications, as long as this notice is preserved.
1005
# Check for `mkdir -p'.
1006
AC_DEFUN([AM_PROG_MKDIR_P],
1007
[AC_PREREQ([2.60])dnl
1008
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1009
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1010
dnl while keeping a definition of mkdir_p for backward compatibility.
1011
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1012
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1013
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1014
dnl adjustment using top_builddir (which is defined more often than
1016
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1018
[[\\/$]]* | ?:[[\\/]]*) ;;
1019
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1023
975
# Helper functions for option handling. -*- Autoconf -*-
1025
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
977
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1028
979
# This file is free software; the Free Software Foundation
1029
980
# gives unlimited permission to copy and/or distribute it,
1030
981
# with or without modifications, as long as this notice is preserved.
1034
983
# _AM_MANGLE_OPTION(NAME)
1035
984
# -----------------------
1036
985
AC_DEFUN([_AM_MANGLE_OPTION],
1083
1026
case $srcdir in
1084
1027
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1085
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1028
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1088
# Do `set' in a subshell so we don't clobber the current shell's
1031
# Do 'set' in a subshell so we don't clobber the current shell's
1089
1032
# arguments. Must try -L first in case configure is actually a
1090
1033
# symlink; some systems play weird games with the mod time of symlinks
1091
1034
# (eg FreeBSD returns the mod time of the symlink's containing
1094
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1095
if test "$[*]" = "X"; then
1097
set X `ls -t "$srcdir/configure" conftest.file`
1100
if test "$[*]" != "X $srcdir/configure conftest.file" \
1101
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1103
# If neither matched, then we have a broken ls. This can happen
1104
# if, for instance, CONFIG_SHELL is bash and it inherits a
1105
# broken ls alias from the environment. This has actually
1106
# happened. Such a system could not be considered "sane".
1107
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1108
alias in your environment])
1038
for am_try in 1 2; do
1039
echo "timestamp, slept: $am_has_slept" > conftest.file
1040
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1041
if test "$[*]" = "X"; then
1043
set X `ls -t "$srcdir/configure" conftest.file`
1045
if test "$[*]" != "X $srcdir/configure conftest.file" \
1046
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1048
# If neither matched, then we have a broken ls. This can happen
1049
# if, for instance, CONFIG_SHELL is bash and it inherits a
1050
# broken ls alias from the environment. This has actually
1051
# happened. Such a system could not be considered "sane".
1052
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1053
alias in your environment])
1055
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1111
1062
test "$[2]" = conftest.file
1117
1068
AC_MSG_ERROR([newly created file is older than distributed files!
1118
1069
Check your system clock])
1120
AC_MSG_RESULT(yes)])
1071
AC_MSG_RESULT([yes])
1072
# If we didn't sleep, we still need to ensure time stamps of config.status and
1073
# generated files are strictly newer.
1075
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1079
AC_CONFIG_COMMANDS_PRE(
1080
[AC_MSG_CHECKING([that generated files are newer than configure])
1081
if test -n "$am_sleep_pid"; then
1082
# Hide warnings about reused PIDs.
1083
wait $am_sleep_pid 2>/dev/null
1085
AC_MSG_RESULT([done])])
1122
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1089
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1124
1091
# This file is free software; the Free Software Foundation
1125
1092
# gives unlimited permission to copy and/or distribute it,
1126
1093
# with or without modifications, as long as this notice is preserved.
1130
1095
# AM_SILENT_RULES([DEFAULT])
1131
1096
# --------------------------
1132
1097
# Enable less verbose build rules; with the default set to DEFAULT
1133
# (`yes' being less verbose, `no' or empty being verbose).
1098
# ("yes" being less verbose, "no" or empty being verbose).
1134
1099
AC_DEFUN([AM_SILENT_RULES],
1135
[AC_ARG_ENABLE([silent-rules],
1136
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1137
--disable-silent-rules verbose build output (undo: `make V=0')])
1138
case $enable_silent_rules in
1139
yes) AM_DEFAULT_VERBOSITY=0;;
1140
no) AM_DEFAULT_VERBOSITY=1;;
1141
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1100
[AC_ARG_ENABLE([silent-rules], [dnl
1102
[--enable-silent-rules],
1103
[less verbose build output (undo: "make V=1")])
1105
[--disable-silent-rules],
1106
[verbose build output (undo: "make V=0")])dnl
1108
case $enable_silent_rules in @%:@ (((
1109
yes) AM_DEFAULT_VERBOSITY=0;;
1110
no) AM_DEFAULT_VERBOSITY=1;;
1111
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1144
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1114
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1145
1115
dnl do not support nested variable expansions.
1146
1116
dnl See automake bug#9928 and bug#10237.
1147
1117
am_make=${MAKE-make}
1176
1146
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1179
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1149
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1181
1151
# This file is free software; the Free Software Foundation
1182
1152
# gives unlimited permission to copy and/or distribute it,
1183
1153
# with or without modifications, as long as this notice is preserved.
1187
1155
# AM_PROG_INSTALL_STRIP
1188
1156
# ---------------------
1189
# One issue with vendor `install' (even GNU) is that you can't
1157
# One issue with vendor 'install' (even GNU) is that you can't
1190
1158
# specify the program used to strip binaries. This is especially
1191
1159
# annoying in cross-compiling environments, where the build's strip
1192
1160
# is unlikely to handle the host's binaries.
1193
1161
# Fortunately install-sh will honor a STRIPPROG variable, so we
1194
# always use install-sh in `make install-strip', and initialize
1162
# always use install-sh in "make install-strip", and initialize
1195
1163
# STRIPPROG with the value of the STRIP variable (set by the user).
1196
1164
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1197
1165
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1198
# Installed binaries are usually stripped using `strip' when the user
1199
# run `make install-strip'. However `strip' might not be the right
1166
# Installed binaries are usually stripped using 'strip' when the user
1167
# run "make install-strip". However 'strip' might not be the right
1200
1168
# tool to use in cross-compilation environments, therefore Automake
1201
# will honor the `STRIP' environment variable to overrule this program.
1202
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1169
# will honor the 'STRIP' environment variable to overrule this program.
1170
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1203
1171
if test "$cross_compiling" != no; then
1204
1172
AC_CHECK_TOOL([STRIP], [strip], :)
1206
1174
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1207
1175
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1209
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1177
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1211
1179
# This file is free software; the Free Software Foundation
1212
1180
# gives unlimited permission to copy and/or distribute it,
1213
1181
# with or without modifications, as long as this notice is preserved.
1217
1183
# _AM_SUBST_NOTMAKE(VARIABLE)
1218
1184
# ---------------------------
1219
1185
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1248
1212
# Substitute a variable $(am__untar) that extract such
1249
1213
# a tarball read from stdin.
1250
1214
# $(am__untar) < result.tar
1251
1216
AC_DEFUN([_AM_PROG_TAR],
1252
1217
[# Always define AMTAR for backward compatibility. Yes, it's still used
1253
1218
# in the wild :-( We should find a proper way to deprecate it ...
1254
1219
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1221
# We'll loop over all known methods to create a tar archive until one works.
1222
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1255
1224
m4_if([$1], [v7],
1256
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1257
[m4_case([$1], [ustar],, [pax],,
1258
[m4_fatal([Unknown tar format])])
1259
AC_MSG_CHECKING([how to create a $1 tar archive])
1260
# Loop over all known methods to create a tar archive until one works.
1261
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1262
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1263
# Do not fold the above two line into one, because Tru64 sh and
1264
# Solaris sh will not grok spaces in the rhs of `-'.
1265
for _am_tool in $_am_tools
1269
for _am_tar in tar gnutar gtar;
1271
AM_RUN_LOG([$_am_tar --version]) && break
1273
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1274
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1275
am__untar="$_am_tar -xf -"
1278
# Must skip GNU tar: if it does not support --format= it doesn't create
1279
# ustar tarball either.
1280
(tar --version) >/dev/null 2>&1 && continue
1281
am__tar='tar chf - "$$tardir"'
1282
am__tar_='tar chf - "$tardir"'
1283
am__untar='tar xf -'
1286
am__tar='pax -L -x $1 -w "$$tardir"'
1287
am__tar_='pax -L -x $1 -w "$tardir"'
1291
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1292
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1293
am__untar='cpio -i -H $1 -d'
1302
# If the value was cached, stop now. We just wanted to have am__tar
1303
# and am__untar set.
1304
test -n "${am_cv_prog_tar_$1}" && break
1306
# tar/untar a dummy directory, and stop if the command works
1309
echo GrepMe > conftest.dir/file
1310
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1312
if test -s conftest.tar; then
1313
AM_RUN_LOG([$am__untar <conftest.tar])
1314
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1319
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1320
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1225
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1229
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1230
# There is notably a 21 bits limit for the UID and the GID. In fact,
1231
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1233
am_max_uid=2097151 # 2^21 - 1
1234
am_max_gid=$am_max_uid
1235
# The $UID and $GID variables are not portable, so we need to resort
1236
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1237
# below are definitely unexpected, so allow the users to see them
1238
# (that is, avoid stderr redirection).
1239
am_uid=`id -u || echo unknown`
1240
am_gid=`id -g || echo unknown`
1241
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1242
if test $am_uid -le $am_max_uid; then
1243
AC_MSG_RESULT([yes])
1248
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1249
if test $am_gid -le $am_max_gid; then
1250
AC_MSG_RESULT([yes])
1259
[m4_fatal([Unknown tar format])])
1261
AC_MSG_CHECKING([how to create a $1 tar archive])
1263
# Go ahead even if we have the value already cached. We do so because we
1264
# need to set the values for the 'am__tar' and 'am__untar' variables.
1265
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1267
for _am_tool in $_am_tools; do
1270
for _am_tar in tar gnutar gtar; do
1271
AM_RUN_LOG([$_am_tar --version]) && break
1273
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1274
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1275
am__untar="$_am_tar -xf -"
1278
# Must skip GNU tar: if it does not support --format= it doesn't create
1279
# ustar tarball either.
1280
(tar --version) >/dev/null 2>&1 && continue
1281
am__tar='tar chf - "$$tardir"'
1282
am__tar_='tar chf - "$tardir"'
1283
am__untar='tar xf -'
1286
am__tar='pax -L -x $1 -w "$$tardir"'
1287
am__tar_='pax -L -x $1 -w "$tardir"'
1291
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1292
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1293
am__untar='cpio -i -H $1 -d'
1302
# If the value was cached, stop now. We just wanted to have am__tar
1303
# and am__untar set.
1304
test -n "${am_cv_prog_tar_$1}" && break
1306
# tar/untar a dummy directory, and stop if the command works.
1309
echo GrepMe > conftest.dir/file
1310
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1312
if test -s conftest.tar; then
1313
AM_RUN_LOG([$am__untar <conftest.tar])
1314
AM_RUN_LOG([cat conftest.dir/file])
1315
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1320
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1321
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1321
1323
AC_SUBST([am__tar])
1322
1324
AC_SUBST([am__untar])
1323
1325
]) # _AM_PROG_TAR