1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
525
525
# AM_CONDITIONAL -*- Autoconf -*-
527
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
527
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
528
528
# Free Software Foundation, Inc.
530
530
# This file is free software; the Free Software Foundation
531
531
# gives unlimited permission to copy and/or distribute it,
532
532
# with or without modifications, as long as this notice is preserved.
536
536
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
537
537
# -------------------------------------
557
558
Usually this means the macro was only invoked conditionally.]])
560
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
561
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
561
562
# Free Software Foundation, Inc.
563
564
# This file is free software; the Free Software Foundation
564
565
# gives unlimited permission to copy and/or distribute it,
565
566
# with or without modifications, as long as this notice is preserved.
569
570
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
570
571
# written in clear, in which case automake, when reading aclocal.m4,
672
msvisualcpp | msvcmsys)
673
# This compiler won't grok `-c -o', but also, the minuso test has
674
# not run yet. These depmodes are late enough in the game, and
675
# so weak that their functioning should not be impacted.
676
am__obj=conftest.${OBJEXT-o}
653
# We check with `-c' and `-o' for the sake of the "dashmstdout"
654
# mode. It turns out that the SunPro C++ compiler does not properly
655
# handle `-M -o', and we need to detect this.
656
681
if depmode=$depmode \
657
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
682
source=sub/conftest.c object=$am__obj \
658
683
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
659
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
684
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
660
685
>/dev/null 2>conftest.err &&
661
686
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
662
687
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
663
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
688
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
664
689
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
665
690
# icc doesn't choke on unknown options, it will just issue warnings
666
691
# or remarks (even with -Werror). So we grep stderr for any message
724
749
# gives unlimited permission to copy and/or distribute it,
725
750
# with or without modifications, as long as this notice is preserved.
729
754
# _AM_OUTPUT_DEPENDENCY_COMMANDS
730
755
# ------------------------------
731
756
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
732
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
733
# are listed without --file. Let's play safe and only enable the eval
734
# if we detect the quoting.
735
case $CONFIG_FILES in
736
*\'*) eval set x "$CONFIG_FILES" ;;
737
*) set x $CONFIG_FILES ;;
742
# Strip MF so we end up with the name of the file.
743
mf=`echo "$mf" | sed -e 's/:.*$//'`
744
# Check whether this is an Automake generated Makefile or not.
745
# We used to match only the files named `Makefile.in', but
746
# some people rename them; so instead we look at the file content.
747
# Grep'ing the first line is not enough: some people post-process
748
# each Makefile.in and add a new line on top of each file to say so.
749
# Grep'ing the whole file is not good either: AIX grep has a line
750
# limit of 2048, but all sed's we know have understand at least 4000.
751
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
752
dirpart=`AS_DIRNAME("$mf")`
756
# Extract the definition of DEPDIR, am__include, and am__quote
757
# from the Makefile without running `make'.
758
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
759
test -z "$DEPDIR" && continue
760
am__include=`sed -n 's/^am__include = //p' < "$mf"`
761
test -z "am__include" && continue
762
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
763
# When using ansi2knr, U may be empty or an underscore; expand it
764
U=`sed -n 's/^U = //p' < "$mf"`
765
# Find all dependency output files, they are included files with
766
# $(DEPDIR) in their names. We invoke sed twice because it is the
767
# simplest approach to changing $(DEPDIR) to its actual value in the
769
for file in `sed -n "
770
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
771
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
772
# Make sure the directory exists.
773
test -f "$dirpart/$file" && continue
774
fdir=`AS_DIRNAME(["$file"])`
775
AS_MKDIR_P([$dirpart/$fdir])
776
# echo "creating $dirpart/$file"
777
echo '# dummy' > "$dirpart/$file"
758
# Autoconf 2.62 quotes --file arguments for eval, but not when files
759
# are listed without --file. Let's play safe and only enable the eval
760
# if we detect the quoting.
761
case $CONFIG_FILES in
762
*\'*) eval set x "$CONFIG_FILES" ;;
763
*) set x $CONFIG_FILES ;;
768
# Strip MF so we end up with the name of the file.
769
mf=`echo "$mf" | sed -e 's/:.*$//'`
770
# Check whether this is an Automake generated Makefile or not.
771
# We used to match only the files named `Makefile.in', but
772
# some people rename them; so instead we look at the file content.
773
# Grep'ing the first line is not enough: some people post-process
774
# each Makefile.in and add a new line on top of each file to say so.
775
# Grep'ing the whole file is not good either: AIX grep has a line
776
# limit of 2048, but all sed's we know have understand at least 4000.
777
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
778
dirpart=`AS_DIRNAME("$mf")`
782
# Extract the definition of DEPDIR, am__include, and am__quote
783
# from the Makefile without running `make'.
784
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
785
test -z "$DEPDIR" && continue
786
am__include=`sed -n 's/^am__include = //p' < "$mf"`
787
test -z "am__include" && continue
788
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
789
# When using ansi2knr, U may be empty or an underscore; expand it
790
U=`sed -n 's/^U = //p' < "$mf"`
791
# Find all dependency output files, they are included files with
792
# $(DEPDIR) in their names. We invoke sed twice because it is the
793
# simplest approach to changing $(DEPDIR) to its actual value in the
795
for file in `sed -n "
796
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
797
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
798
# Make sure the directory exists.
799
test -f "$dirpart/$file" && continue
800
fdir=`AS_DIRNAME(["$file"])`
801
AS_MKDIR_P([$dirpart/$fdir])
802
# echo "creating $dirpart/$file"
803
echo '# dummy' > "$dirpart/$file"
780
807
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
796
823
# Do all the work for Automake. -*- Autoconf -*-
798
825
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
799
# 2005, 2006, 2008 Free Software Foundation, Inc.
826
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
801
828
# This file is free software; the Free Software Foundation
802
829
# gives unlimited permission to copy and/or distribute it,
803
830
# with or without modifications, as long as this notice is preserved.
807
834
# This macro actually does too much. Some checks are only needed if
808
835
# your package does certain things. But this isn't really a big deal.
879
906
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
880
907
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
881
908
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
882
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
883
[_AM_PROG_TAR([v7])])])
909
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
910
[_AM_PROG_TAR([v7])])])
884
911
_AM_IF_OPTION([no-dependencies],,
885
912
[AC_PROVIDE_IFELSE([AC_PROG_CC],
886
[_AM_DEPENDENCIES(CC)],
887
[define([AC_PROG_CC],
888
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
913
[_AM_DEPENDENCIES(CC)],
914
[define([AC_PROG_CC],
915
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
889
916
AC_PROVIDE_IFELSE([AC_PROG_CXX],
890
[_AM_DEPENDENCIES(CXX)],
891
[define([AC_PROG_CXX],
892
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
917
[_AM_DEPENDENCIES(CXX)],
918
[define([AC_PROG_CXX],
919
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
893
920
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
894
[_AM_DEPENDENCIES(OBJC)],
895
[define([AC_PROG_OBJC],
896
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
921
[_AM_DEPENDENCIES(OBJC)],
922
[define([AC_PROG_OBJC],
923
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
925
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
926
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
927
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
928
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
929
AC_CONFIG_COMMANDS_PRE(dnl
930
[m4_provide_if([_AM_COMPILER_EXEEXT],
931
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
934
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
935
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
936
dnl mangled by Autoconf and run in a shell conditional statement.
937
m4_define([_AC_COMPILER_EXEEXT],
938
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
901
941
# When config.status generates a header, we must update the stamp-h file.
957
1004
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
958
1005
# From Jim Meyering
960
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
1007
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
961
1008
# Free Software Foundation, Inc.
963
1010
# This file is free software; the Free Software Foundation
964
1011
# gives unlimited permission to copy and/or distribute it,
965
1012
# with or without modifications, as long as this notice is preserved.
1016
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1017
# ----------------------------------
1018
# Control maintainer-specific portions of Makefiles.
1019
# Default is to disable them, unless `enable' is passed literally.
1020
# For symmetry, `disable' may be passed as well. Anyway, the user
1021
# can override the default with the --enable/--disable switch.
969
1022
AC_DEFUN([AM_MAINTAINER_MODE],
970
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
971
dnl maintainer-mode is disabled by default
972
AC_ARG_ENABLE(maintainer-mode,
973
[ --enable-maintainer-mode enable make rules and dependencies not useful
1023
[m4_case(m4_default([$1], [disable]),
1024
[enable], [m4_define([am_maintainer_other], [disable])],
1025
[disable], [m4_define([am_maintainer_other], [enable])],
1026
[m4_define([am_maintainer_other], [enable])
1027
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1028
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1029
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1030
AC_ARG_ENABLE([maintainer-mode],
1031
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
974
1032
(and sometimes confusing) to the casual installer],
975
USE_MAINTAINER_MODE=$enableval,
976
USE_MAINTAINER_MODE=no)
1033
[USE_MAINTAINER_MODE=$enableval],
1034
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
977
1035
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
978
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1036
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
979
1037
MAINT=$MAINTAINER_MODE_TRUE
1038
AC_SUBST([MAINT])dnl
1010
1068
_am_result=none
1011
1069
# First try GNU make style include.
1012
1070
echo "include confinc" > confmf
1013
# We grep out `Entering directory' and `Leaving directory'
1014
# messages which can occur if `w' ends up in MAKEFLAGS.
1015
# In particular we don't look at `^make:' because GNU make might
1016
# be invoked under some other name (usually "gmake"), in which
1017
# case it prints its new name instead of `make'.
1018
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1071
# Ignore all kinds of additional output from `make'.
1072
case `$am_make -s -f confmf 2> /dev/null` in #(
1073
*the\ am__doit\ target*)
1023
1079
# Now try BSD make style include.
1024
1080
if test "$am__include" = "#"; then
1025
1081
echo '.include "confinc"' > confmf
1026
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1027
am__include=.include
1082
case `$am_make -s -f confmf 2> /dev/null` in #(
1083
*the\ am__doit\ target*)
1084
am__include=.include
1032
1090
AC_SUBST([am__include])
1033
1091
AC_SUBST([am__quote])
1073
1131
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1075
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1133
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1076
1134
# Free Software Foundation, Inc.
1078
1136
# This file is free software; the Free Software Foundation
1079
1137
# gives unlimited permission to copy and/or distribute it,
1080
1138
# with or without modifications, as long as this notice is preserved.
1084
1142
# AM_MISSING_PROG(NAME, PROGRAM)
1085
1143
# ------------------------------
1279
1342
dnl doesn't work.
1280
1343
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1281
1344
[am_cv_python_pythondir],
1282
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
1283
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
1345
[if test "x$prefix" = xNONE
1347
am_py_prefix=$ac_default_prefix
1349
am_py_prefix=$prefix
1351
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
1352
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
1353
case $am_cv_python_pythondir in
1355
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1356
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1284
1360
AC_SUBST([pythondir], [$am_cv_python_pythondir])
1286
1362
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
1296
1372
dnl doesn't work.
1297
1373
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1298
1374
[am_cv_python_pyexecdir],
1299
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
1300
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
1375
[if test "x$exec_prefix" = xNONE
1377
am_py_exec_prefix=$am_py_prefix
1379
am_py_exec_prefix=$exec_prefix
1381
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
1382
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
1383
case $am_cv_python_pyexecdir in
1384
$am_py_exec_prefix*)
1385
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
1386
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
1301
1390
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1303
1392
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1317
1406
# Run ACTION-IF-FALSE otherwise.
1318
1407
# This test uses sys.hexversion instead of the string equivalent (first
1319
1408
# word of sys.version), in order to cope with versions such as 2.2c1.
1320
# hexversion has been introduced in Python 1.5.2; it's probably not
1321
# worth to support older versions (1.5.1 was released on October 31, 1998).
1409
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1322
1410
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1323
[prog="import sys, string
1324
1412
# split strings by '.' and convert to numeric. Append some zeros
1325
1413
# because we need at least 4 digits for the hex conversion.
1326
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
1414
# map returns an iterator in Python 3.0 and a list in 2.x
1415
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1328
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
1417
# xrange is not present in Python 3.0 and range returns an iterator
1418
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1329
1419
sys.exit(sys.hexversion < minverhex)"
1330
1420
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1366
1456
echo timestamp > conftest.file
1457
# Reject unsafe characters in $srcdir or the absolute working directory
1458
# name. Accept space and tab only in the latter.
1462
*[[\\\"\#\$\&\'\`$am_lf]]*)
1463
AC_MSG_ERROR([unsafe absolute working directory name]);;
1466
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1467
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1367
1470
# Do `set' in a subshell so we don't clobber the current shell's
1368
1471
# arguments. Must try -L first in case configure is actually a
1369
1472
# symlink; some systems play weird games with the mod time of symlinks
1370
1473
# (eg FreeBSD returns the mod time of the symlink's containing
1373
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1476
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1374
1477
if test "$[*]" = "X"; then
1375
1478
# -L didn't work.
1376
set X `ls -t $srcdir/configure conftest.file`
1479
set X `ls -t "$srcdir/configure" conftest.file`
1378
1481
rm -f conftest.file
1379
1482
if test "$[*]" != "X $srcdir/configure conftest.file" \
1426
1529
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1427
1530
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1429
# Copyright (C) 2006 Free Software Foundation, Inc.
1532
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1431
1534
# This file is free software; the Free Software Foundation
1432
1535
# gives unlimited permission to copy and/or distribute it,
1433
1536
# with or without modifications, as long as this notice is preserved.
1435
1540
# _AM_SUBST_NOTMAKE(VARIABLE)
1436
1541
# ---------------------------
1437
1542
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1438
1543
# This macro is traced by Automake.
1439
1544
AC_DEFUN([_AM_SUBST_NOTMAKE])
1546
# AM_SUBST_NOTMAKE(VARIABLE)
1547
# ---------------------------
1548
# Public sister of _AM_SUBST_NOTMAKE.
1549
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1441
1551
# Check how to create a tarball. -*- Autoconf -*-
1443
1553
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.