1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008 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.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
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'.])])
14
22
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
16
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
169
178
])# PKG_CHECK_MODULES
171
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
180
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
173
182
# This file is free software; the Free Software Foundation
174
183
# gives unlimited permission to copy and/or distribute it,
178
187
# ----------------------------
179
188
# Automake X.Y traces this macro to ensure aclocal.m4 has been
180
189
# generated from the m4 files accompanying Automake X.Y.
181
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.10'
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.10.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], [])
183
206
# AM_SET_CURRENT_AUTOMAKE_VERSION
184
207
# -------------------------------
185
# Call AM_AUTOMAKE_VERSION so it can be traced.
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
186
209
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
187
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
188
[AM_AUTOMAKE_VERSION([1.9.6])])
211
[AM_AUTOMAKE_VERSION([1.10.1])dnl
212
m4_ifndef([AC_AUTOCONF_VERSION],
213
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
214
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
190
216
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
243
269
# AM_CONDITIONAL -*- Autoconf -*-
245
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
271
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
246
272
# Free Software Foundation, Inc.
248
274
# This file is free software; the Free Software Foundation
249
275
# gives unlimited permission to copy and/or distribute it,
250
276
# with or without modifications, as long as this notice is preserved.
254
280
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
255
281
# -------------------------------------
273
301
Usually this means the macro was only invoked conditionally.]])
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
304
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
278
305
# Free Software Foundation, Inc.
280
307
# This file is free software; the Free Software Foundation
281
308
# gives unlimited permission to copy and/or distribute it,
282
309
# with or without modifications, as long as this notice is preserved.
286
313
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
287
314
# written in clear, in which case automake, when reading aclocal.m4,
309
336
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
310
337
[$1], CXX, [depcc="$CXX" am_compiler_list=],
311
338
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
339
[$1], UPC, [depcc="$UPC" am_compiler_list=],
312
340
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
313
341
[depcc="$$1" am_compiler_list=])
451
481
# some people rename them; so instead we look at the file content.
452
482
# Grep'ing the first line is not enough: some people post-process
453
483
# each Makefile.in and add a new line on top of each file to say so.
454
# So let's grep whole file.
455
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
484
# Grep'ing the whole file is not good either: AIX grep has a line
485
# limit of 2048, but all sed's we know have understand at least 4000.
486
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
456
487
dirpart=`AS_DIRNAME("$mf")`
512
543
# Do all the work for Automake. -*- Autoconf -*-
514
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
515
# Free Software Foundation, Inc.
545
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
546
# 2005, 2006, 2008 Free Software Foundation, Inc.
517
548
# This file is free software; the Free Software Foundation
518
549
# gives unlimited permission to copy and/or distribute it,
519
550
# with or without modifications, as long as this notice is preserved.
523
554
# This macro actually does too much. Some checks are only needed if
524
555
# your package does certain things. But this isn't really a big deal.
535
566
# arguments mandatory, and then we can depend on a new Autoconf
536
567
# release and drop the old call support.
537
568
AC_DEFUN([AM_INIT_AUTOMAKE],
538
[AC_PREREQ([2.58])dnl
569
[AC_PREREQ([2.60])dnl
539
570
dnl Autoconf wants to disallow AM_ names. We explicitly allow
540
571
dnl the ones we care about.
541
572
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
542
573
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
543
574
AC_REQUIRE([AC_PROG_INSTALL])dnl
544
# test to see if srcdir already configured
545
if test "`cd $srcdir && pwd`" != "`pwd`" &&
546
test -f $srcdir/config.status; then
547
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
575
if test "`cd $srcdir && pwd`" != "`pwd`"; then
576
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
577
# is not polluted with repeated "-I."
578
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
579
# test to see if srcdir already configured
580
if test -f $srcdir/config.status; then
581
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
550
585
# test whether we have cygpath
564
599
AC_SUBST([PACKAGE], [$1])dnl
565
600
AC_SUBST([VERSION], [$2])],
566
601
[_AM_SET_OPTIONS([$1])dnl
602
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
603
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
604
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
567
605
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
568
606
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
612
654
# our stamp files there.
613
655
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
614
656
[# Compute $1's index in $config_headers.
615
658
_am_stamp_count=1
616
659
for _am_header in $config_headers :; do
617
660
case $_am_header in
661
$_am_arg | $_am_arg:* )
621
664
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
624
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
667
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
626
669
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
713
756
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
715
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
758
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
716
759
# Free Software Foundation, Inc.
718
761
# This file is free software; the Free Software Foundation
719
762
# gives unlimited permission to copy and/or distribute it,
720
763
# with or without modifications, as long as this notice is preserved.
724
767
# AM_MISSING_PROG(NAME, PROGRAM)
725
768
# ------------------------------
735
778
# If it does, set am_missing_run to use it, otherwise, to nothing.
736
779
AC_DEFUN([AM_MISSING_HAS_RUN],
737
780
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
781
AC_REQUIRE_AUX_FILE([missing])dnl
738
782
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
739
783
# Use eval to expand $SHELL
740
784
if eval "$MISSING --run true"; then
748
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
792
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
750
794
# This file is free software; the Free Software Foundation
751
795
# gives unlimited permission to copy and/or distribute it,
754
798
# AM_PROG_MKDIR_P
755
799
# ---------------
756
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
758
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
759
# created by `make install' are always world readable, even if the
760
# installer happens to have an overly restrictive umask (e.g. 077).
761
# This was a mistake. There are at least two reasons why we must not
763
# - it causes special bits like SGID to be ignored,
764
# - it may be too restrictive (some setups expect 775 directories).
766
# Do not use -m 0755 and let people choose whatever they expect by
769
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
770
# Some implementations (such as Solaris 8's) are not thread-safe: if a
771
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
772
# concurrently, both version can detect that a/ is missing, but only
773
# one can create it and the other will error out. Consequently we
774
# restrict ourselves to GNU make (using the --version option ensures
800
# Check for `mkdir -p'.
776
801
AC_DEFUN([AM_PROG_MKDIR_P],
777
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
778
# We used to keeping the `.' as first argument, in order to
779
# allow $(mkdir_p) to be used without argument. As in
780
# $(mkdir_p) $(somedir)
781
# where $(somedir) is conditionally defined. However this is wrong
783
# 1. if the package is installed by a user who cannot write `.'
784
# make install will fail,
785
# 2. the above comment should most certainly read
786
# $(mkdir_p) $(DESTDIR)$(somedir)
787
# so it does not work when $(somedir) is undefined and
789
# To support the latter case, we have to write
790
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
791
# so the `.' trick is pointless.
792
mkdir_p='mkdir -p --'
794
# On NextStep and OpenStep, the `mkdir' command does not
795
# recognize any option. It will interpret all options as
796
# directories to create, and then abort because `.' already
798
for d in ./-p ./--version;
800
test -d $d && rmdir $d
802
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
803
if test -f "$ac_aux_dir/mkinstalldirs"; then
804
mkdir_p='$(mkinstalldirs)'
806
mkdir_p='$(install_sh) -d'
809
AC_SUBST([mkdir_p])])
802
[AC_PREREQ([2.60])dnl
803
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
804
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
805
dnl while keeping a definition of mkdir_p for backward compatibility.
806
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
807
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
808
dnl Makefile.ins that do not define MKDIR_P, so we do our own
809
dnl adjustment using top_builddir (which is defined more often than
811
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
813
[[\\/$]]* | ?:[[\\/]]*) ;;
814
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
811
818
# Helper functions for option handling. -*- Autoconf -*-
918
925
if test "$cross_compiling" != no; then
919
926
AC_CHECK_TOOL([STRIP], [strip], :)
921
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
928
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
922
929
AC_SUBST([INSTALL_STRIP_PROGRAM])])
931
# Copyright (C) 2006 Free Software Foundation, Inc.
933
# This file is free software; the Free Software Foundation
934
# gives unlimited permission to copy and/or distribute it,
935
# with or without modifications, as long as this notice is preserved.
937
# _AM_SUBST_NOTMAKE(VARIABLE)
938
# ---------------------------
939
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
940
# This macro is traced by Automake.
941
AC_DEFUN([_AM_SUBST_NOTMAKE])
924
943
# Check how to create a tarball. -*- Autoconf -*-
926
945
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.