11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[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.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
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'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
16
24
# This file is free software; the Free Software Foundation
17
25
# gives unlimited permission to copy and/or distribute it,
21
29
# ----------------------------
22
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
31
# generated from the m4 files accompanying Automake X.Y.
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.11'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.11.1], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
26
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
49
# -------------------------------
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
30
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
[AM_AUTOMAKE_VERSION([1.9.6])])
53
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
33
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
139
167
Usually this means the macro was only invoked conditionally.]])
143
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
170
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
144
171
# Free Software Foundation, Inc.
146
173
# This file is free software; the Free Software Foundation
147
174
# gives unlimited permission to copy and/or distribute it,
148
175
# with or without modifications, as long as this notice is preserved.
152
179
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
153
180
# written in clear, in which case automake, when reading aclocal.m4,
281
msvisualcpp | msvcmsys)
282
# This compiler won't grok `-c -o', but also, the minuso test has
283
# not run yet. These depmodes are late enough in the game, and
284
# so weak that their functioning should not be impacted.
285
am__obj=conftest.${OBJEXT-o}
235
# We check with `-c' and `-o' for the sake of the "dashmstdout"
236
# mode. It turns out that the SunPro C++ compiler does not properly
237
# handle `-M -o', and we need to detect this.
238
290
if depmode=$depmode \
239
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
291
source=sub/conftest.c object=$am__obj \
240
292
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
241
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
293
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
242
294
>/dev/null 2>conftest.err &&
295
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
243
296
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
244
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
297
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
245
298
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
246
299
# icc doesn't choke on unknown options, it will just issue warnings
247
300
# or remarks (even with -Werror). So we grep stderr for any message
292
345
AMDEPBACKSLASH='\'
294
347
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
295
AC_SUBST([AMDEPBACKSLASH])
348
AC_SUBST([AMDEPBACKSLASH])dnl
349
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
298
352
# Generate code to set up dependency tracking. -*- Autoconf -*-
300
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
354
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
301
355
# Free Software Foundation, Inc.
303
357
# This file is free software; the Free Software Foundation
304
358
# gives unlimited permission to copy and/or distribute it,
305
359
# with or without modifications, as long as this notice is preserved.
309
363
# _AM_OUTPUT_DEPENDENCY_COMMANDS
310
364
# ------------------------------
311
365
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
312
[for mf in $CONFIG_FILES; do
313
# Strip MF so we end up with the name of the file.
314
mf=`echo "$mf" | sed -e 's/:.*$//'`
315
# Check whether this is an Automake generated Makefile or not.
316
# We used to match only the files named `Makefile.in', but
317
# some people rename them; so instead we look at the file content.
318
# Grep'ing the first line is not enough: some people post-process
319
# each Makefile.in and add a new line on top of each file to say so.
320
# So let's grep whole file.
321
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
322
dirpart=`AS_DIRNAME("$mf")`
326
# Extract the definition of DEPDIR, am__include, and am__quote
327
# from the Makefile without running `make'.
328
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
329
test -z "$DEPDIR" && continue
330
am__include=`sed -n 's/^am__include = //p' < "$mf"`
331
test -z "am__include" && continue
332
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
333
# When using ansi2knr, U may be empty or an underscore; expand it
334
U=`sed -n 's/^U = //p' < "$mf"`
335
# Find all dependency output files, they are included files with
336
# $(DEPDIR) in their names. We invoke sed twice because it is the
337
# simplest approach to changing $(DEPDIR) to its actual value in the
339
for file in `sed -n "
340
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
341
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
342
# Make sure the directory exists.
343
test -f "$dirpart/$file" && continue
344
fdir=`AS_DIRNAME(["$file"])`
345
AS_MKDIR_P([$dirpart/$fdir])
346
# echo "creating $dirpart/$file"
347
echo '# dummy' > "$dirpart/$file"
367
# Autoconf 2.62 quotes --file arguments for eval, but not when files
368
# are listed without --file. Let's play safe and only enable the eval
369
# if we detect the quoting.
370
case $CONFIG_FILES in
371
*\'*) eval set x "$CONFIG_FILES" ;;
372
*) set x $CONFIG_FILES ;;
377
# Strip MF so we end up with the name of the file.
378
mf=`echo "$mf" | sed -e 's/:.*$//'`
379
# Check whether this is an Automake generated Makefile or not.
380
# We used to match only the files named `Makefile.in', but
381
# some people rename them; so instead we look at the file content.
382
# Grep'ing the first line is not enough: some people post-process
383
# each Makefile.in and add a new line on top of each file to say so.
384
# Grep'ing the whole file is not good either: AIX grep has a line
385
# limit of 2048, but all sed's we know have understand at least 4000.
386
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
387
dirpart=`AS_DIRNAME("$mf")`
391
# Extract the definition of DEPDIR, am__include, and am__quote
392
# from the Makefile without running `make'.
393
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
394
test -z "$DEPDIR" && continue
395
am__include=`sed -n 's/^am__include = //p' < "$mf"`
396
test -z "am__include" && continue
397
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
398
# When using ansi2knr, U may be empty or an underscore; expand it
399
U=`sed -n 's/^U = //p' < "$mf"`
400
# Find all dependency output files, they are included files with
401
# $(DEPDIR) in their names. We invoke sed twice because it is the
402
# simplest approach to changing $(DEPDIR) to its actual value in the
404
for file in `sed -n "
405
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
406
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
407
# Make sure the directory exists.
408
test -f "$dirpart/$file" && continue
409
fdir=`AS_DIRNAME(["$file"])`
410
AS_MKDIR_P([$dirpart/$fdir])
411
# echo "creating $dirpart/$file"
412
echo '# dummy' > "$dirpart/$file"
350
416
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
378
444
# Do all the work for Automake. -*- Autoconf -*-
380
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
381
# Free Software Foundation, Inc.
446
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
447
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
383
449
# This file is free software; the Free Software Foundation
384
450
# gives unlimited permission to copy and/or distribute it,
385
451
# with or without modifications, as long as this notice is preserved.
389
455
# This macro actually does too much. Some checks are only needed if
390
456
# your package does certain things. But this isn't really a big deal.
401
467
# arguments mandatory, and then we can depend on a new Autoconf
402
468
# release and drop the old call support.
403
469
AC_DEFUN([AM_INIT_AUTOMAKE],
404
[AC_PREREQ([2.58])dnl
470
[AC_PREREQ([2.62])dnl
405
471
dnl Autoconf wants to disallow AM_ names. We explicitly allow
406
472
dnl the ones we care about.
407
473
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
408
474
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
409
475
AC_REQUIRE([AC_PROG_INSTALL])dnl
410
# test to see if srcdir already configured
411
if test "`cd $srcdir && pwd`" != "`pwd`" &&
412
test -f $srcdir/config.status; then
413
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
476
if test "`cd $srcdir && pwd`" != "`pwd`"; then
477
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
478
# is not polluted with repeated "-I."
479
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
480
# test to see if srcdir already configured
481
if test -f $srcdir/config.status; then
482
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
416
486
# test whether we have cygpath
454
527
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
455
528
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
456
529
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
457
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
458
[_AM_PROG_TAR([v7])])])
530
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
531
[_AM_PROG_TAR([v7])])])
459
532
_AM_IF_OPTION([no-dependencies],,
460
533
[AC_PROVIDE_IFELSE([AC_PROG_CC],
461
[_AM_DEPENDENCIES(CC)],
462
[define([AC_PROG_CC],
463
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
534
[_AM_DEPENDENCIES(CC)],
535
[define([AC_PROG_CC],
536
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
464
537
AC_PROVIDE_IFELSE([AC_PROG_CXX],
465
[_AM_DEPENDENCIES(CXX)],
466
[define([AC_PROG_CXX],
467
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
538
[_AM_DEPENDENCIES(CXX)],
539
[define([AC_PROG_CXX],
540
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
541
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
542
[_AM_DEPENDENCIES(OBJC)],
543
[define([AC_PROG_OBJC],
544
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
546
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
547
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
548
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
549
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
550
AC_CONFIG_COMMANDS_PRE(dnl
551
[m4_provide_if([_AM_COMPILER_EXEEXT],
552
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
555
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
556
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
557
dnl mangled by Autoconf and run in a shell conditional statement.
558
m4_define([_AC_COMPILER_EXEEXT],
559
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
472
562
# When config.status generates a header, we must update the stamp-h file.
620
726
# AM_PROG_MKDIR_P
621
727
# ---------------
622
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
624
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
625
# created by `make install' are always world readable, even if the
626
# installer happens to have an overly restrictive umask (e.g. 077).
627
# This was a mistake. There are at least two reasons why we must not
629
# - it causes special bits like SGID to be ignored,
630
# - it may be too restrictive (some setups expect 775 directories).
632
# Do not use -m 0755 and let people choose whatever they expect by
635
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
636
# Some implementations (such as Solaris 8's) are not thread-safe: if a
637
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
638
# concurrently, both version can detect that a/ is missing, but only
639
# one can create it and the other will error out. Consequently we
640
# restrict ourselves to GNU make (using the --version option ensures
728
# Check for `mkdir -p'.
642
729
AC_DEFUN([AM_PROG_MKDIR_P],
643
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
644
# We used to keeping the `.' as first argument, in order to
645
# allow $(mkdir_p) to be used without argument. As in
646
# $(mkdir_p) $(somedir)
647
# where $(somedir) is conditionally defined. However this is wrong
649
# 1. if the package is installed by a user who cannot write `.'
650
# make install will fail,
651
# 2. the above comment should most certainly read
652
# $(mkdir_p) $(DESTDIR)$(somedir)
653
# so it does not work when $(somedir) is undefined and
655
# To support the latter case, we have to write
656
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
657
# so the `.' trick is pointless.
658
mkdir_p='mkdir -p --'
660
# On NextStep and OpenStep, the `mkdir' command does not
661
# recognize any option. It will interpret all options as
662
# directories to create, and then abort because `.' already
664
for d in ./-p ./--version;
666
test -d $d && rmdir $d
668
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
669
if test -f "$ac_aux_dir/mkinstalldirs"; then
670
mkdir_p='$(mkinstalldirs)'
672
mkdir_p='$(install_sh) -d'
675
AC_SUBST([mkdir_p])])
730
[AC_PREREQ([2.60])dnl
731
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
732
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
733
dnl while keeping a definition of mkdir_p for backward compatibility.
734
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
735
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
736
dnl Makefile.ins that do not define MKDIR_P, so we do our own
737
dnl adjustment using top_builddir (which is defined more often than
739
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
741
[[\\/$]]* | ?:[[\\/]]*) ;;
742
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
677
746
# Helper functions for option handling. -*- Autoconf -*-
679
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
748
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
681
750
# This file is free software; the Free Software Foundation
682
751
# gives unlimited permission to copy and/or distribute it,
683
752
# with or without modifications, as long as this notice is preserved.
687
756
# _AM_MANGLE_OPTION(NAME)
688
757
# -----------------------
727
796
echo timestamp > conftest.file
797
# Reject unsafe characters in $srcdir or the absolute working directory
798
# name. Accept space and tab only in the latter.
802
*[[\\\"\#\$\&\'\`$am_lf]]*)
803
AC_MSG_ERROR([unsafe absolute working directory name]);;
806
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
807
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
728
810
# Do `set' in a subshell so we don't clobber the current shell's
729
811
# arguments. Must try -L first in case configure is actually a
730
812
# symlink; some systems play weird games with the mod time of symlinks
731
813
# (eg FreeBSD returns the mod time of the symlink's containing
734
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
816
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
735
817
if test "$[*]" = "X"; then
736
818
# -L didn't work.
737
set X `ls -t $srcdir/configure conftest.file`
819
set X `ls -t "$srcdir/configure" conftest.file`
739
821
rm -f conftest.file
740
822
if test "$[*]" != "X $srcdir/configure conftest.file" \
784
866
if test "$cross_compiling" != no; then
785
867
AC_CHECK_TOOL([STRIP], [strip], :)
787
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
869
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
788
870
AC_SUBST([INSTALL_STRIP_PROGRAM])])
872
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
874
# This file is free software; the Free Software Foundation
875
# gives unlimited permission to copy and/or distribute it,
876
# with or without modifications, as long as this notice is preserved.
880
# _AM_SUBST_NOTMAKE(VARIABLE)
881
# ---------------------------
882
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
883
# This macro is traced by Automake.
884
AC_DEFUN([_AM_SUBST_NOTMAKE])
886
# AM_SUBST_NOTMAKE(VARIABLE)
887
# ---------------------------
888
# Public sister of _AM_SUBST_NOTMAKE.
889
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
790
891
# Check how to create a tarball. -*- Autoconf -*-
792
893
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.