179
187
# ----------------------------
180
188
# Automake X.Y traces this macro to ensure aclocal.m4 has been
181
189
# generated from the m4 files accompanying Automake X.Y.
182
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
190
# (This private macro should not be called outside this file.)
191
AC_DEFUN([AM_AUTOMAKE_VERSION],
192
[am__api_version='1.11'
193
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
194
dnl require some minimum version. Point them to the right macro.
195
m4_if([$1], [1.11.1], [],
196
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
199
# _AM_AUTOCONF_VERSION(VERSION)
200
# -----------------------------
201
# aclocal traces this macro to find the Autoconf version.
202
# This is a private macro too. Using m4_define simplifies
203
# the logic in aclocal, which can simply ignore this definition.
204
m4_define([_AM_AUTOCONF_VERSION], [])
184
206
# AM_SET_CURRENT_AUTOMAKE_VERSION
185
207
# -------------------------------
186
# Call AM_AUTOMAKE_VERSION so it can be traced.
187
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
209
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
188
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
189
[AM_AUTOMAKE_VERSION([1.9.6])])
211
[AM_AUTOMAKE_VERSION([1.11.1])dnl
212
m4_ifndef([AC_AUTOCONF_VERSION],
213
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
214
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
191
216
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
274
302
Usually this means the macro was only invoked conditionally.]])
278
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
305
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
279
306
# Free Software Foundation, Inc.
281
308
# This file is free software; the Free Software Foundation
282
309
# gives unlimited permission to copy and/or distribute it,
283
310
# with or without modifications, as long as this notice is preserved.
287
314
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
288
315
# written in clear, in which case automake, when reading aclocal.m4,
416
msvisualcpp | msvcmsys)
417
# This compiler won't grok `-c -o', but also, the minuso test has
418
# not run yet. These depmodes are late enough in the game, and
419
# so weak that their functioning should not be impacted.
420
am__obj=conftest.${OBJEXT-o}
370
# We check with `-c' and `-o' for the sake of the "dashmstdout"
371
# mode. It turns out that the SunPro C++ compiler does not properly
372
# handle `-M -o', and we need to detect this.
373
425
if depmode=$depmode \
374
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
426
source=sub/conftest.c object=$am__obj \
375
427
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
376
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
428
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
377
429
>/dev/null 2>conftest.err &&
430
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
378
431
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
379
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
432
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
380
433
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
381
434
# icc doesn't choke on unknown options, it will just issue warnings
382
435
# or remarks (even with -Werror). So we grep stderr for any message
427
480
AMDEPBACKSLASH='\'
429
482
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
430
AC_SUBST([AMDEPBACKSLASH])
483
AC_SUBST([AMDEPBACKSLASH])dnl
484
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
433
487
# Generate code to set up dependency tracking. -*- Autoconf -*-
435
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
489
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
436
490
# Free Software Foundation, Inc.
438
492
# This file is free software; the Free Software Foundation
439
493
# gives unlimited permission to copy and/or distribute it,
440
494
# with or without modifications, as long as this notice is preserved.
444
498
# _AM_OUTPUT_DEPENDENCY_COMMANDS
445
499
# ------------------------------
446
500
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
447
[for mf in $CONFIG_FILES; do
448
# Strip MF so we end up with the name of the file.
449
mf=`echo "$mf" | sed -e 's/:.*$//'`
450
# Check whether this is an Automake generated Makefile or not.
451
# We used to match only the files named `Makefile.in', but
452
# some people rename them; so instead we look at the file content.
453
# Grep'ing the first line is not enough: some people post-process
454
# each Makefile.in and add a new line on top of each file to say so.
455
# So let's grep whole file.
456
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
457
dirpart=`AS_DIRNAME("$mf")`
461
# Extract the definition of DEPDIR, am__include, and am__quote
462
# from the Makefile without running `make'.
463
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
464
test -z "$DEPDIR" && continue
465
am__include=`sed -n 's/^am__include = //p' < "$mf"`
466
test -z "am__include" && continue
467
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
468
# When using ansi2knr, U may be empty or an underscore; expand it
469
U=`sed -n 's/^U = //p' < "$mf"`
470
# Find all dependency output files, they are included files with
471
# $(DEPDIR) in their names. We invoke sed twice because it is the
472
# simplest approach to changing $(DEPDIR) to its actual value in the
474
for file in `sed -n "
475
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
476
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
477
# Make sure the directory exists.
478
test -f "$dirpart/$file" && continue
479
fdir=`AS_DIRNAME(["$file"])`
480
AS_MKDIR_P([$dirpart/$fdir])
481
# echo "creating $dirpart/$file"
482
echo '# dummy' > "$dirpart/$file"
502
# Autoconf 2.62 quotes --file arguments for eval, but not when files
503
# are listed without --file. Let's play safe and only enable the eval
504
# if we detect the quoting.
505
case $CONFIG_FILES in
506
*\'*) eval set x "$CONFIG_FILES" ;;
507
*) set x $CONFIG_FILES ;;
512
# Strip MF so we end up with the name of the file.
513
mf=`echo "$mf" | sed -e 's/:.*$//'`
514
# Check whether this is an Automake generated Makefile or not.
515
# We used to match only the files named `Makefile.in', but
516
# some people rename them; so instead we look at the file content.
517
# Grep'ing the first line is not enough: some people post-process
518
# each Makefile.in and add a new line on top of each file to say so.
519
# Grep'ing the whole file is not good either: AIX grep has a line
520
# limit of 2048, but all sed's we know have understand at least 4000.
521
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
522
dirpart=`AS_DIRNAME("$mf")`
526
# Extract the definition of DEPDIR, am__include, and am__quote
527
# from the Makefile without running `make'.
528
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
529
test -z "$DEPDIR" && continue
530
am__include=`sed -n 's/^am__include = //p' < "$mf"`
531
test -z "am__include" && continue
532
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
533
# When using ansi2knr, U may be empty or an underscore; expand it
534
U=`sed -n 's/^U = //p' < "$mf"`
535
# Find all dependency output files, they are included files with
536
# $(DEPDIR) in their names. We invoke sed twice because it is the
537
# simplest approach to changing $(DEPDIR) to its actual value in the
539
for file in `sed -n "
540
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
541
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
542
# Make sure the directory exists.
543
test -f "$dirpart/$file" && continue
544
fdir=`AS_DIRNAME(["$file"])`
545
AS_MKDIR_P([$dirpart/$fdir])
546
# echo "creating $dirpart/$file"
547
echo '# dummy' > "$dirpart/$file"
485
551
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
513
579
# Do all the work for Automake. -*- Autoconf -*-
515
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
516
# Free Software Foundation, Inc.
581
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
582
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
518
584
# This file is free software; the Free Software Foundation
519
585
# gives unlimited permission to copy and/or distribute it,
520
586
# with or without modifications, as long as this notice is preserved.
524
590
# This macro actually does too much. Some checks are only needed if
525
591
# your package does certain things. But this isn't really a big deal.
536
602
# arguments mandatory, and then we can depend on a new Autoconf
537
603
# release and drop the old call support.
538
604
AC_DEFUN([AM_INIT_AUTOMAKE],
539
[AC_PREREQ([2.58])dnl
605
[AC_PREREQ([2.62])dnl
540
606
dnl Autoconf wants to disallow AM_ names. We explicitly allow
541
607
dnl the ones we care about.
542
608
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
543
609
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
544
610
AC_REQUIRE([AC_PROG_INSTALL])dnl
545
# test to see if srcdir already configured
546
if test "`cd $srcdir && pwd`" != "`pwd`" &&
547
test -f $srcdir/config.status; then
548
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
611
if test "`cd $srcdir && pwd`" != "`pwd`"; then
612
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
613
# is not polluted with repeated "-I."
614
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
615
# test to see if srcdir already configured
616
if test -f $srcdir/config.status; then
617
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
551
621
# test whether we have cygpath
589
662
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
590
663
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
591
664
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
592
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
593
[_AM_PROG_TAR([v7])])])
665
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
666
[_AM_PROG_TAR([v7])])])
594
667
_AM_IF_OPTION([no-dependencies],,
595
668
[AC_PROVIDE_IFELSE([AC_PROG_CC],
596
[_AM_DEPENDENCIES(CC)],
597
[define([AC_PROG_CC],
598
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
669
[_AM_DEPENDENCIES(CC)],
670
[define([AC_PROG_CC],
671
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
599
672
AC_PROVIDE_IFELSE([AC_PROG_CXX],
600
[_AM_DEPENDENCIES(CXX)],
601
[define([AC_PROG_CXX],
602
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
673
[_AM_DEPENDENCIES(CXX)],
674
[define([AC_PROG_CXX],
675
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
676
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
677
[_AM_DEPENDENCIES(OBJC)],
678
[define([AC_PROG_OBJC],
679
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
681
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
682
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
683
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
684
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
685
AC_CONFIG_COMMANDS_PRE(dnl
686
[m4_provide_if([_AM_COMPILER_EXEEXT],
687
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
690
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
691
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
692
dnl mangled by Autoconf and run in a shell conditional statement.
693
m4_define([_AC_COMPILER_EXEEXT],
694
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
607
697
# When config.status generates a header, we must update the stamp-h file.
755
861
# AM_PROG_MKDIR_P
756
862
# ---------------
757
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
759
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
760
# created by `make install' are always world readable, even if the
761
# installer happens to have an overly restrictive umask (e.g. 077).
762
# This was a mistake. There are at least two reasons why we must not
764
# - it causes special bits like SGID to be ignored,
765
# - it may be too restrictive (some setups expect 775 directories).
767
# Do not use -m 0755 and let people choose whatever they expect by
770
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
771
# Some implementations (such as Solaris 8's) are not thread-safe: if a
772
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
773
# concurrently, both version can detect that a/ is missing, but only
774
# one can create it and the other will error out. Consequently we
775
# restrict ourselves to GNU make (using the --version option ensures
863
# Check for `mkdir -p'.
777
864
AC_DEFUN([AM_PROG_MKDIR_P],
778
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
779
# We used to keeping the `.' as first argument, in order to
780
# allow $(mkdir_p) to be used without argument. As in
781
# $(mkdir_p) $(somedir)
782
# where $(somedir) is conditionally defined. However this is wrong
784
# 1. if the package is installed by a user who cannot write `.'
785
# make install will fail,
786
# 2. the above comment should most certainly read
787
# $(mkdir_p) $(DESTDIR)$(somedir)
788
# so it does not work when $(somedir) is undefined and
790
# To support the latter case, we have to write
791
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
792
# so the `.' trick is pointless.
793
mkdir_p='mkdir -p --'
795
# On NextStep and OpenStep, the `mkdir' command does not
796
# recognize any option. It will interpret all options as
797
# directories to create, and then abort because `.' already
799
for d in ./-p ./--version;
801
test -d $d && rmdir $d
803
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
804
if test -f "$ac_aux_dir/mkinstalldirs"; then
805
mkdir_p='$(mkinstalldirs)'
807
mkdir_p='$(install_sh) -d'
810
AC_SUBST([mkdir_p])])
865
[AC_PREREQ([2.60])dnl
866
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
867
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
868
dnl while keeping a definition of mkdir_p for backward compatibility.
869
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
870
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
871
dnl Makefile.ins that do not define MKDIR_P, so we do our own
872
dnl adjustment using top_builddir (which is defined more often than
874
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
876
[[\\/$]]* | ?:[[\\/]]*) ;;
877
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
812
881
# Helper functions for option handling. -*- Autoconf -*-
814
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
883
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
816
885
# This file is free software; the Free Software Foundation
817
886
# gives unlimited permission to copy and/or distribute it,
818
887
# with or without modifications, as long as this notice is preserved.
822
891
# _AM_MANGLE_OPTION(NAME)
823
892
# -----------------------
862
931
echo timestamp > conftest.file
932
# Reject unsafe characters in $srcdir or the absolute working directory
933
# name. Accept space and tab only in the latter.
937
*[[\\\"\#\$\&\'\`$am_lf]]*)
938
AC_MSG_ERROR([unsafe absolute working directory name]);;
941
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
942
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
863
945
# Do `set' in a subshell so we don't clobber the current shell's
864
946
# arguments. Must try -L first in case configure is actually a
865
947
# symlink; some systems play weird games with the mod time of symlinks
866
948
# (eg FreeBSD returns the mod time of the symlink's containing
869
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
951
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
870
952
if test "$[*]" = "X"; then
871
953
# -L didn't work.
872
set X `ls -t $srcdir/configure conftest.file`
954
set X `ls -t "$srcdir/configure" conftest.file`
874
956
rm -f conftest.file
875
957
if test "$[*]" != "X $srcdir/configure conftest.file" \
919
1001
if test "$cross_compiling" != no; then
920
1002
AC_CHECK_TOOL([STRIP], [strip], :)
922
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1004
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
923
1005
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1007
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1009
# This file is free software; the Free Software Foundation
1010
# gives unlimited permission to copy and/or distribute it,
1011
# with or without modifications, as long as this notice is preserved.
1015
# _AM_SUBST_NOTMAKE(VARIABLE)
1016
# ---------------------------
1017
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1018
# This macro is traced by Automake.
1019
AC_DEFUN([_AM_SUBST_NOTMAKE])
1021
# AM_SUBST_NOTMAKE(VARIABLE)
1022
# ---------------------------
1023
# Public sister of _AM_SUBST_NOTMAKE.
1024
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
925
1026
# Check how to create a tarball. -*- Autoconf -*-
927
1028
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.