1
# generated automatically by aclocal 1.11.5 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
1
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
18
17
[m4_warning([this file was generated for autoconf 2.69.
19
18
You have another version of autoconf. It may work, but is not guaranteed to.
20
19
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'.])])
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
22
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
26
24
# This file is free software; the Free Software Foundation
27
25
# gives unlimited permission to copy and/or distribute it,
28
26
# with or without modifications, as long as this notice is preserved.
32
30
# AM_AUTOMAKE_VERSION(VERSION)
33
31
# ----------------------------
35
33
# generated from the m4 files accompanying Automake X.Y.
36
34
# (This private macro should not be called outside this file.)
37
35
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
[am__api_version='1.11'
36
[am__api_version='1.12'
39
37
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
38
dnl require some minimum version. Point them to the right macro.
41
m4_if([$1], [1.11.5], [],
39
m4_if([$1], [1.12.2], [],
42
40
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
54
52
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
53
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
54
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
[AM_AUTOMAKE_VERSION([1.11.5])dnl
55
[AM_AUTOMAKE_VERSION([1.12.2])dnl
58
56
m4_ifndef([AC_AUTOCONF_VERSION],
59
57
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
58
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
62
60
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
62
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
66
64
# This file is free software; the Free Software Foundation
67
65
# gives unlimited permission to copy and/or distribute it,
68
66
# with or without modifications, as long as this notice is preserved.
72
70
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
71
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
72
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
76
74
# Of course, Automake must honor this variable whenever it calls a
77
75
# tool from the auxiliary directory. The problem is that $srcdir (and
117
115
# AM_CONDITIONAL -*- Autoconf -*-
119
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
# Free Software Foundation, Inc.
117
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
122
119
# This file is free software; the Free Software Foundation
123
120
# gives unlimited permission to copy and/or distribute it,
124
121
# with or without modifications, as long as this notice is preserved.
128
125
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
126
# -------------------------------------
130
127
# Define a conditional.
131
128
AC_DEFUN([AM_CONDITIONAL],
133
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
134
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
[AC_PREREQ([2.52])dnl
130
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
131
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135
132
AC_SUBST([$1_TRUE])dnl
136
133
AC_SUBST([$1_FALSE])dnl
137
134
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
147
Usually this means the macro was only invoked conditionally.]])
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
# 2010, 2011 Free Software Foundation, Inc.
150
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
156
152
# This file is free software; the Free Software Foundation
157
153
# gives unlimited permission to copy and/or distribute it,
158
154
# with or without modifications, as long as this notice is preserved.
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
158
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
163
159
# written in clear, in which case automake, when reading aclocal.m4,
164
160
# will think it sees a *use*, and therefore will trigger all it's
165
161
# C support machinery. Also note that it means that autoscan, seeing
182
178
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
179
AC_REQUIRE([AM_DEP_TRACK])dnl
185
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
186
[$1], CXX, [depcc="$CXX" am_compiler_list=],
187
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
[$1], UPC, [depcc="$UPC" am_compiler_list=],
189
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
190
[depcc="$$1" am_compiler_list=])
181
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
182
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
183
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
184
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
185
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
186
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
187
[depcc="$$1" am_compiler_list=])
192
189
AC_CACHE_CHECK([dependency style of $depcc],
193
190
[am_cv_$1_dependencies_compiler_type],
236
233
: > sub/conftest.c
237
234
for i in 1 2 3 4 5 6; do
238
235
echo '#include "conftst'$i'.h"' >> sub/conftest.c
239
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
240
# Solaris 8's {/usr,}/bin/sh.
241
touch sub/conftst$i.h
236
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
237
# Solaris 10 /bin/sh.
238
echo '/* dummy */' > sub/conftst$i.h
243
240
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
245
# We check with `-c' and `-o' for the sake of the "dashmstdout"
242
# We check with '-c' and '-o' for the sake of the "dashmstdout"
246
243
# mode. It turns out that the SunPro C++ compiler does not properly
247
# handle `-M -o', and we need to detect this. Also, some Intel
248
# versions had trouble with output in subdirs
244
# handle '-M -o', and we need to detect this. Also, some Intel
245
# versions had trouble with output in subdirs.
249
246
am__obj=sub/conftest.${OBJEXT-o}
250
247
am__minus_obj="-o $am__obj"
323
320
AC_DEFUN([AM_DEP_TRACK],
324
[AC_ARG_ENABLE(dependency-tracking,
325
[ --disable-dependency-tracking speeds up one-time build
326
--enable-dependency-tracking do not reject slow dependency extractors])
321
[AC_ARG_ENABLE([dependency-tracking], [dnl
323
[--enable-dependency-tracking],
324
[do not reject slow dependency extractors])
326
[--disable-dependency-tracking],
327
[speeds up one-time build])])
327
328
if test "x$enable_dependency_tracking" != xno; then
328
329
am_depcomp="$ac_aux_dir/depcomp"
329
330
AMDEPBACKSLASH='\'
339
340
# Generate code to set up dependency tracking. -*- Autoconf -*-
341
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
# Free Software Foundation, Inc.
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
344
344
# This file is free software; the Free Software Foundation
345
345
# gives unlimited permission to copy and/or distribute it,
346
346
# with or without modifications, as long as this notice is preserved.
350
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
351
# ------------------------------
364
364
# Strip MF so we end up with the name of the file.
365
365
mf=`echo "$mf" | sed -e 's/:.*$//'`
366
366
# Check whether this is an Automake generated Makefile or not.
367
# We used to match only the files named `Makefile.in', but
367
# We used to match only the files named 'Makefile.in', but
368
368
# some people rename them; so instead we look at the file content.
369
369
# Grep'ing the first line is not enough: some people post-process
370
370
# each Makefile.in and add a new line on top of each file to say so.
378
378
# Extract the definition of DEPDIR, am__include, and am__quote
379
# from the Makefile without running `make'.
379
# from the Makefile without running 'make'.
380
380
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
381
test -z "$DEPDIR" && continue
382
382
am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
383
test -z "am__include" && continue
384
384
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
# When using ansi2knr, U may be empty or an underscore; expand it
386
U=`sed -n 's/^U = //p' < "$mf"`
387
385
# Find all dependency output files, they are included files with
388
386
# $(DEPDIR) in their names. We invoke sed twice because it is the
389
387
# simplest approach to changing $(DEPDIR) to its actual value in the
391
389
for file in `sed -n "
392
390
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
391
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
392
# Make sure the directory exists.
395
393
test -f "$dirpart/$file" && continue
396
394
fdir=`AS_DIRNAME(["$file"])`
419
417
# Do all the work for Automake. -*- Autoconf -*-
421
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
422
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
419
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
424
421
# This file is free software; the Free Software Foundation
425
422
# gives unlimited permission to copy and/or distribute it,
426
423
# with or without modifications, as long as this notice is preserved.
430
427
# This macro actually does too much. Some checks are only needed if
431
428
# your package does certain things. But this isn't really a big deal.
471
468
# Define the identity of the package.
472
469
dnl Distinguish between old-style and new-style calls.
474
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
471
[AC_DIAGNOSE([obsolete],
472
[$0: two- and three-arguments forms are deprecated. For more info, see:
473
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
474
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
475
475
AC_SUBST([PACKAGE], [$1])dnl
476
476
AC_SUBST([VERSION], [$2])],
477
477
[_AM_SET_OPTIONS([$1])dnl
478
478
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
479
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
480
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
480
482
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
481
483
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
482
484
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
484
486
_AM_IF_OPTION([no-define],,
485
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
486
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
487
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
488
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
488
490
# Some tools Automake needs.
489
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
490
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
491
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
492
AM_MISSING_PROG(AUTOCONF, autoconf)
493
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
494
AM_MISSING_PROG(AUTOHEADER, autoheader)
495
AM_MISSING_PROG(MAKEINFO, makeinfo)
493
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
494
AM_MISSING_PROG([AUTOCONF], [autoconf])
495
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
496
AM_MISSING_PROG([AUTOHEADER], [autoheader])
497
AM_MISSING_PROG([MAKEINFO], [makeinfo])
496
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
497
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
498
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
500
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
501
# For better backward compatibility. To be removed once Automake 1.9.x
502
# dies out for good. For more background, see:
503
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
504
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
505
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
499
506
# We need awk for the "check" target. The system "awk" is bad on
500
507
# some platforms.
501
508
AC_REQUIRE([AC_PROG_AWK])dnl
506
513
[_AM_PROG_TAR([v7])])])
507
514
_AM_IF_OPTION([no-dependencies],,
508
515
[AC_PROVIDE_IFELSE([AC_PROG_CC],
509
[_AM_DEPENDENCIES(CC)],
510
[define([AC_PROG_CC],
511
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
516
[_AM_DEPENDENCIES([CC])],
517
[m4_define([AC_PROG_CC],
518
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
512
519
AC_PROVIDE_IFELSE([AC_PROG_CXX],
513
[_AM_DEPENDENCIES(CXX)],
514
[define([AC_PROG_CXX],
515
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
520
[_AM_DEPENDENCIES([CXX])],
521
[m4_define([AC_PROG_CXX],
522
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
516
523
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
517
[_AM_DEPENDENCIES(OBJC)],
518
[define([AC_PROG_OBJC],
519
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
524
[_AM_DEPENDENCIES([OBJC])],
525
[m4_define([AC_PROG_OBJC],
526
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
527
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
528
dnl but we still cater to Autoconf 2.62.
529
m4_ifdef([AC_PROG_OBJCXX],
530
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
531
[_AM_DEPENDENCIES([OBJCXX])],
532
[m4_define([AC_PROG_OBJCXX],
533
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
521
535
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
522
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
523
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
536
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
537
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
524
538
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
525
539
AC_CONFIG_COMMANDS_PRE(dnl
526
540
[m4_provide_if([_AM_COMPILER_EXEEXT],
527
541
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
530
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
544
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
531
545
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
532
546
dnl mangled by Autoconf and run in a shell conditional statement.
533
547
m4_define([_AC_COMPILER_EXEEXT],
556
570
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
558
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
572
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
561
574
# This file is free software; the Free Software Foundation
562
575
# gives unlimited permission to copy and/or distribute it,
563
576
# with or without modifications, as long as this notice is preserved.
567
580
# AM_PROG_INSTALL_SH
568
581
# ------------------
603
616
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
604
617
# From Jim Meyering
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
607
# 2011 Free Software Foundation, Inc.
619
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
609
621
# This file is free software; the Free Software Foundation
610
622
# gives unlimited permission to copy and/or distribute it,
611
623
# with or without modifications, as long as this notice is preserved.
615
627
# AM_MAINTAINER_MODE([DEFAULT-MODE])
616
628
# ----------------------------------
617
629
# Control maintainer-specific portions of Makefiles.
618
# Default is to disable them, unless `enable' is passed literally.
619
# For symmetry, `disable' may be passed as well. Anyway, the user
630
# Default is to disable them, unless 'enable' is passed literally.
631
# For symmetry, 'disable' may be passed as well. Anyway, the user
620
632
# can override the default with the --enable/--disable switch.
621
633
AC_DEFUN([AM_MAINTAINER_MODE],
622
634
[m4_case(m4_default([$1], [disable]),
627
639
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
628
640
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
629
641
AC_ARG_ENABLE([maintainer-mode],
630
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
631
(and sometimes confusing) to the casual installer],
632
[USE_MAINTAINER_MODE=$enableval],
633
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
642
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
643
am_maintainer_other[ make rules and dependencies not useful
644
(and sometimes confusing) to the casual installer])],
645
[USE_MAINTAINER_MODE=$enableval],
646
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
634
647
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
635
648
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
636
649
MAINT=$MAINTAINER_MODE_TRUE
643
656
# Check to see how 'make' treats includes. -*- Autoconf -*-
645
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
658
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
647
660
# This file is free software; the Free Software Foundation
648
661
# gives unlimited permission to copy and/or distribute it,
649
662
# with or without modifications, as long as this notice is preserved.
653
666
# AM_MAKE_INCLUDE()
654
667
# -----------------
692
705
rm -f confinc confmf
695
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
696
# Free Software Foundation, Inc.
708
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
698
710
# This file is free software; the Free Software Foundation
699
711
# gives unlimited permission to copy and/or distribute it,
730
742
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
732
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
733
# Free Software Foundation, Inc.
744
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
735
746
# This file is free software; the Free Software Foundation
736
747
# gives unlimited permission to copy and/or distribute it,
737
748
# with or without modifications, as long as this notice is preserved.
741
752
# AM_MISSING_PROG(NAME, PROGRAM)
742
753
# ------------------------------
766
777
am_missing_run="$MISSING --run "
769
AC_MSG_WARN([`missing' script is too old or missing])
780
AC_MSG_WARN(['missing' script is too old or missing])
773
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
784
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
776
786
# This file is free software; the Free Software Foundation
777
787
# gives unlimited permission to copy and/or distribute it,
778
788
# with or without modifications, as long as this notice is preserved.
782
792
# AM_PROG_MKDIR_P
783
793
# ---------------
784
# Check for `mkdir -p'.
794
# Check for 'mkdir -p'.
785
795
AC_DEFUN([AM_PROG_MKDIR_P],
786
796
[AC_PREREQ([2.60])dnl
787
797
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
798
dnl FIXME to be removed in Automake 1.13.
799
AC_DIAGNOSE([obsolete],
800
[$0: this macro is deprecated, and will soon be removed.
801
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
802
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
788
803
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
789
804
dnl while keeping a definition of mkdir_p for backward compatibility.
790
805
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
802
817
# Helper functions for option handling. -*- Autoconf -*-
804
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
819
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
807
821
# This file is free software; the Free Software Foundation
808
822
# gives unlimited permission to copy and/or distribute it,
809
823
# with or without modifications, as long as this notice is preserved.
813
827
# _AM_MANGLE_OPTION(NAME)
814
828
# -----------------------
833
847
AC_DEFUN([_AM_IF_OPTION],
834
848
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
836
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
837
# 2011 Free Software Foundation, Inc.
850
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
839
852
# This file is free software; the Free Software Foundation
840
853
# gives unlimited permission to copy and/or distribute it,
841
854
# with or without modifications, as long as this notice is preserved.
845
858
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
846
859
# ---------------------------------------------------------------------------
885
898
dnl A version check is needed.
886
899
if test -n "$PYTHON"; then
887
900
# If the user set $PYTHON, use it and don't search something else.
888
AC_MSG_CHECKING([whether $PYTHON version >= $1])
901
AC_MSG_CHECKING([whether $PYTHON version is >= $1])
889
902
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
890
[AC_MSG_RESULT(yes)],
891
[AC_MSG_ERROR(too old)])
903
[AC_MSG_RESULT([yes])],
905
AC_MSG_ERROR([Python interpreter is too old])])
892
906
am_display_PYTHON=$PYTHON
894
908
# Otherwise, try each interpreter until we find one that satisfies
1036
1050
sys.exit(sys.hexversion < minverhex)"
1037
1051
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1039
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1053
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1041
1055
# This file is free software; the Free Software Foundation
1042
1056
# gives unlimited permission to copy and/or distribute it,
1058
1072
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1060
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1061
# Free Software Foundation, Inc.
1074
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
1063
1076
# This file is free software; the Free Software Foundation
1064
1077
# gives unlimited permission to copy and/or distribute it,
1065
1078
# with or without modifications, as long as this notice is preserved.
1069
1082
# AM_SANITY_CHECK
1070
1083
# ---------------
1071
1084
AC_DEFUN([AM_SANITY_CHECK],
1072
1085
[AC_MSG_CHECKING([whether build environment is sane])
1075
echo timestamp > conftest.file
1076
1086
# Reject unsafe characters in $srcdir or the absolute working directory
1077
1087
# name. Accept space and tab only in the latter.
1084
1094
case $srcdir in
1085
1095
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1086
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1096
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1089
# Do `set' in a subshell so we don't clobber the current shell's
1099
# Do 'set' in a subshell so we don't clobber the current shell's
1090
1100
# arguments. Must try -L first in case configure is actually a
1091
1101
# symlink; some systems play weird games with the mod time of symlinks
1092
1102
# (eg FreeBSD returns the mod time of the symlink's containing
1095
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1096
if test "$[*]" = "X"; then
1098
set X `ls -t "$srcdir/configure" conftest.file`
1101
if test "$[*]" != "X $srcdir/configure conftest.file" \
1102
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1104
# If neither matched, then we have a broken ls. This can happen
1105
# if, for instance, CONFIG_SHELL is bash and it inherits a
1106
# broken ls alias from the environment. This has actually
1107
# happened. Such a system could not be considered "sane".
1108
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1109
alias in your environment])
1106
for am_try in 1 2; do
1107
echo "timestamp, slept: $am_has_slept" > conftest.file
1108
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1109
if test "$[*]" = "X"; then
1111
set X `ls -t "$srcdir/configure" conftest.file`
1113
if test "$[*]" != "X $srcdir/configure conftest.file" \
1114
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1116
# If neither matched, then we have a broken ls. This can happen
1117
# if, for instance, CONFIG_SHELL is bash and it inherits a
1118
# broken ls alias from the environment. This has actually
1119
# happened. Such a system could not be considered "sane".
1120
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1121
alias in your environment])
1123
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1112
1130
test "$[2]" = conftest.file
1118
1136
AC_MSG_ERROR([newly created file is older than distributed files!
1119
1137
Check your system clock])
1121
AC_MSG_RESULT(yes)])
1139
AC_MSG_RESULT([yes])
1140
# If we didn't sleep, we still need to ensure time stamps of config.status and
1141
# generated files are strictly newer.
1143
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1147
AC_CONFIG_COMMANDS_PRE(
1148
[AC_MSG_CHECKING([that generated files are newer than configure])
1149
if test -n "$am_sleep_pid"; then
1150
# Hide warnings about reused PIDs.
1151
wait $am_sleep_pid 2>/dev/null
1153
AC_MSG_RESULT([done])])
1123
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1157
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
1125
1159
# This file is free software; the Free Software Foundation
1126
1160
# gives unlimited permission to copy and/or distribute it,
1127
1161
# with or without modifications, as long as this notice is preserved.
1131
1165
# AM_SILENT_RULES([DEFAULT])
1132
1166
# --------------------------
1133
1167
# Enable less verbose build rules; with the default set to DEFAULT
1134
# (`yes' being less verbose, `no' or empty being verbose).
1168
# ("yes" being less verbose, "no" or empty being verbose).
1135
1169
AC_DEFUN([AM_SILENT_RULES],
1136
[AC_ARG_ENABLE([silent-rules],
1137
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1138
--disable-silent-rules verbose build output (undo: `make V=0')])
1139
case $enable_silent_rules in
1140
yes) AM_DEFAULT_VERBOSITY=0;;
1141
no) AM_DEFAULT_VERBOSITY=1;;
1142
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1170
[AC_ARG_ENABLE([silent-rules], [dnl
1172
[--enable-silent-rules],
1173
[less verbose build output (undo: "make V=1")])
1175
[--disable-silent-rules],
1176
[verbose build output (undo: "make V=0")])dnl
1178
case $enable_silent_rules in @%:@ (((
1179
yes) AM_DEFAULT_VERBOSITY=0;;
1180
no) AM_DEFAULT_VERBOSITY=1;;
1181
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1145
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1184
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1146
1185
dnl do not support nested variable expansions.
1147
1186
dnl See automake bug#9928 and bug#10237.
1148
1187
am_make=${MAKE-make}
1177
1216
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1180
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1219
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1182
1221
# This file is free software; the Free Software Foundation
1183
1222
# gives unlimited permission to copy and/or distribute it,
1184
1223
# with or without modifications, as long as this notice is preserved.
1188
1227
# AM_PROG_INSTALL_STRIP
1189
1228
# ---------------------
1190
# One issue with vendor `install' (even GNU) is that you can't
1229
# One issue with vendor 'install' (even GNU) is that you can't
1191
1230
# specify the program used to strip binaries. This is especially
1192
1231
# annoying in cross-compiling environments, where the build's strip
1193
1232
# is unlikely to handle the host's binaries.
1194
1233
# Fortunately install-sh will honor a STRIPPROG variable, so we
1195
# always use install-sh in `make install-strip', and initialize
1234
# always use install-sh in "make install-strip", and initialize
1196
1235
# STRIPPROG with the value of the STRIP variable (set by the user).
1197
1236
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1198
1237
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1199
# Installed binaries are usually stripped using `strip' when the user
1200
# run `make install-strip'. However `strip' might not be the right
1238
# Installed binaries are usually stripped using 'strip' when the user
1239
# run "make install-strip". However 'strip' might not be the right
1201
1240
# tool to use in cross-compilation environments, therefore Automake
1202
# will honor the `STRIP' environment variable to overrule this program.
1203
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1241
# will honor the 'STRIP' environment variable to overrule this program.
1242
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1204
1243
if test "$cross_compiling" != no; then
1205
1244
AC_CHECK_TOOL([STRIP], [strip], :)
1207
1246
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1208
1247
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1210
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1249
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
1212
1251
# This file is free software; the Free Software Foundation
1213
1252
# gives unlimited permission to copy and/or distribute it,
1229
1268
# Check how to create a tarball. -*- Autoconf -*-
1231
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1270
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
1233
1272
# This file is free software; the Free Software Foundation
1234
1273
# gives unlimited permission to copy and/or distribute it,
1235
1274
# with or without modifications, as long as this notice is preserved.
1239
1278
# _AM_PROG_TAR(FORMAT)
1240
1279
# --------------------
1241
1280
# Check how to create a tarball in format FORMAT.
1242
# FORMAT should be one of `v7', `ustar', or `pax'.
1281
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1244
1283
# Substitute a variable $(am__tar) that is a command
1245
1284
# writing to stdout a FORMAT-tarball containing the directory
1484
1523
])# PKG_CHECK_MODULES
1526
# PKG_INSTALLDIR(DIRECTORY)
1527
# -------------------------
1528
# Substitutes the variable pkgconfigdir as the location where a module
1529
# should install pkg-config .pc files. By default the directory is
1530
# $libdir/pkgconfig, but the default can be changed by passing
1531
# DIRECTORY. The user can override through the --with-pkgconfigdir
1533
AC_DEFUN([PKG_INSTALLDIR],
1534
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
1535
m4_pushdef([pkg_description],
1536
[pkg-config installation directory @<:@]pkg_default[@:>@])
1537
AC_ARG_WITH([pkgconfigdir],
1538
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
1539
[with_pkgconfigdir=]pkg_default)
1540
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
1541
m4_popdef([pkg_default])
1542
m4_popdef([pkg_description])
1543
]) dnl PKG_INSTALLDIR
1546
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
1547
# -------------------------
1548
# Substitutes the variable noarch_pkgconfigdir as the location where a
1549
# module should install arch-independent pkg-config .pc files. By
1550
# default the directory is $datadir/pkgconfig, but the default can be
1551
# changed by passing DIRECTORY. The user can override through the
1552
# --with-noarch-pkgconfigdir parameter.
1553
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
1554
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
1555
m4_pushdef([pkg_description],
1556
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
1557
AC_ARG_WITH([noarch-pkgconfigdir],
1558
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
1559
[with_noarch_pkgconfigdir=]pkg_default)
1560
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
1561
m4_popdef([pkg_default])
1562
m4_popdef([pkg_description])
1563
]) dnl PKG_NOARCH_INSTALLDIR
1486
1565
# Configure paths for GLIB
1487
1566
# Owen Taylor 1997-2001