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.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
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.10'
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.10.2], [],
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.10.2])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 -*-
116
143
Usually this means the macro was only invoked conditionally.]])
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
146
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
121
147
# Free Software Foundation, Inc.
123
149
# This file is free software; the Free Software Foundation
124
150
# gives unlimited permission to copy and/or distribute it,
125
151
# with or without modifications, as long as this notice is preserved.
129
155
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130
156
# written in clear, in which case automake, when reading aclocal.m4,
269
297
AMDEPBACKSLASH='\'
271
299
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272
AC_SUBST([AMDEPBACKSLASH])
300
AC_SUBST([AMDEPBACKSLASH])dnl
301
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
275
304
# Generate code to set up dependency tracking. -*- Autoconf -*-
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
306
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
278
307
# Free Software Foundation, Inc.
280
309
# This file is free software; the Free Software Foundation
281
310
# gives unlimited permission to copy and/or distribute it,
282
311
# with or without modifications, as long as this notice is preserved.
286
315
# _AM_OUTPUT_DEPENDENCY_COMMANDS
287
316
# ------------------------------
288
317
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289
[for mf in $CONFIG_FILES; do
290
# Strip MF so we end up with the name of the file.
291
mf=`echo "$mf" | sed -e 's/:.*$//'`
292
# Check whether this is an Automake generated Makefile or not.
293
# We used to match only the files named `Makefile.in', but
294
# some people rename them; so instead we look at the file content.
295
# Grep'ing the first line is not enough: some people post-process
296
# each Makefile.in and add a new line on top of each file to say so.
297
# So let's grep whole file.
298
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299
dirpart=`AS_DIRNAME("$mf")`
303
# Extract the definition of DEPDIR, am__include, and am__quote
304
# from the Makefile without running `make'.
305
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306
test -z "$DEPDIR" && continue
307
am__include=`sed -n 's/^am__include = //p' < "$mf"`
308
test -z "am__include" && continue
309
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310
# When using ansi2knr, U may be empty or an underscore; expand it
311
U=`sed -n 's/^U = //p' < "$mf"`
312
# Find all dependency output files, they are included files with
313
# $(DEPDIR) in their names. We invoke sed twice because it is the
314
# simplest approach to changing $(DEPDIR) to its actual value in the
316
for file in `sed -n "
317
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319
# Make sure the directory exists.
320
test -f "$dirpart/$file" && continue
321
fdir=`AS_DIRNAME(["$file"])`
322
AS_MKDIR_P([$dirpart/$fdir])
323
# echo "creating $dirpart/$file"
324
echo '# dummy' > "$dirpart/$file"
319
# Autoconf 2.62 quotes --file arguments for eval, but not when files
320
# are listed without --file. Let's play safe and only enable the eval
321
# if we detect the quoting.
322
case $CONFIG_FILES in
323
*\'*) eval set x "$CONFIG_FILES" ;;
324
*) set x $CONFIG_FILES ;;
329
# Strip MF so we end up with the name of the file.
330
mf=`echo "$mf" | sed -e 's/:.*$//'`
331
# Check whether this is an Automake generated Makefile or not.
332
# We used to match only the files named `Makefile.in', but
333
# some people rename them; so instead we look at the file content.
334
# Grep'ing the first line is not enough: some people post-process
335
# each Makefile.in and add a new line on top of each file to say so.
336
# Grep'ing the whole file is not good either: AIX grep has a line
337
# limit of 2048, but all sed's we know have understand at least 4000.
338
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
339
dirpart=`AS_DIRNAME("$mf")`
343
# Extract the definition of DEPDIR, am__include, and am__quote
344
# from the Makefile without running `make'.
345
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
346
test -z "$DEPDIR" && continue
347
am__include=`sed -n 's/^am__include = //p' < "$mf"`
348
test -z "am__include" && continue
349
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
350
# When using ansi2knr, U may be empty or an underscore; expand it
351
U=`sed -n 's/^U = //p' < "$mf"`
352
# Find all dependency output files, they are included files with
353
# $(DEPDIR) in their names. We invoke sed twice because it is the
354
# simplest approach to changing $(DEPDIR) to its actual value in the
356
for file in `sed -n "
357
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
358
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
359
# Make sure the directory exists.
360
test -f "$dirpart/$file" && continue
361
fdir=`AS_DIRNAME(["$file"])`
362
AS_MKDIR_P([$dirpart/$fdir])
363
# echo "creating $dirpart/$file"
364
echo '# dummy' > "$dirpart/$file"
327
368
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
355
396
# Do all the work for Automake. -*- Autoconf -*-
357
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
358
# Free Software Foundation, Inc.
398
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
399
# 2005, 2006, 2008 Free Software Foundation, Inc.
360
401
# This file is free software; the Free Software Foundation
361
402
# gives unlimited permission to copy and/or distribute it,
362
403
# with or without modifications, as long as this notice is preserved.
366
407
# This macro actually does too much. Some checks are only needed if
367
408
# your package does certain things. But this isn't really a big deal.
378
419
# arguments mandatory, and then we can depend on a new Autoconf
379
420
# release and drop the old call support.
380
421
AC_DEFUN([AM_INIT_AUTOMAKE],
381
[AC_PREREQ([2.58])dnl
422
[AC_PREREQ([2.60])dnl
382
423
dnl Autoconf wants to disallow AM_ names. We explicitly allow
383
424
dnl the ones we care about.
384
425
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
385
426
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
386
427
AC_REQUIRE([AC_PROG_INSTALL])dnl
387
# test to see if srcdir already configured
388
if test "`cd $srcdir && pwd`" != "`pwd`" &&
389
test -f $srcdir/config.status; then
390
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
428
if test "`cd $srcdir && pwd`" != "`pwd`"; then
429
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
430
# is not polluted with repeated "-I."
431
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
432
# test to see if srcdir already configured
433
if test -f $srcdir/config.status; then
434
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
393
438
# test whether we have cygpath
626
680
# AM_PROG_MKDIR_P
627
681
# ---------------
628
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
630
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
631
# created by `make install' are always world readable, even if the
632
# installer happens to have an overly restrictive umask (e.g. 077).
633
# This was a mistake. There are at least two reasons why we must not
635
# - it causes special bits like SGID to be ignored,
636
# - it may be too restrictive (some setups expect 775 directories).
638
# Do not use -m 0755 and let people choose whatever they expect by
641
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
642
# Some implementations (such as Solaris 8's) are not thread-safe: if a
643
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
644
# concurrently, both version can detect that a/ is missing, but only
645
# one can create it and the other will error out. Consequently we
646
# restrict ourselves to GNU make (using the --version option ensures
682
# Check for `mkdir -p'.
648
683
AC_DEFUN([AM_PROG_MKDIR_P],
649
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
650
# We used to keeping the `.' as first argument, in order to
651
# allow $(mkdir_p) to be used without argument. As in
652
# $(mkdir_p) $(somedir)
653
# where $(somedir) is conditionally defined. However this is wrong
655
# 1. if the package is installed by a user who cannot write `.'
656
# make install will fail,
657
# 2. the above comment should most certainly read
658
# $(mkdir_p) $(DESTDIR)$(somedir)
659
# so it does not work when $(somedir) is undefined and
661
# To support the latter case, we have to write
662
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
663
# so the `.' trick is pointless.
664
mkdir_p='mkdir -p --'
666
# On NextStep and OpenStep, the `mkdir' command does not
667
# recognize any option. It will interpret all options as
668
# directories to create, and then abort because `.' already
670
for d in ./-p ./--version;
672
test -d $d && rmdir $d
674
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
675
if test -f "$ac_aux_dir/mkinstalldirs"; then
676
mkdir_p='$(mkinstalldirs)'
678
mkdir_p='$(install_sh) -d'
681
AC_SUBST([mkdir_p])])
684
[AC_PREREQ([2.60])dnl
685
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
686
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
687
dnl while keeping a definition of mkdir_p for backward compatibility.
688
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
689
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
690
dnl Makefile.ins that do not define MKDIR_P, so we do our own
691
dnl adjustment using top_builddir (which is defined more often than
693
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
695
[[\\/$]]* | ?:[[\\/]]*) ;;
696
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
683
700
# Helper functions for option handling. -*- Autoconf -*-
685
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
702
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
687
704
# This file is free software; the Free Software Foundation
688
705
# gives unlimited permission to copy and/or distribute it,
689
706
# with or without modifications, as long as this notice is preserved.
693
710
# _AM_MANGLE_OPTION(NAME)
694
711
# -----------------------
790
807
if test "$cross_compiling" != no; then
791
808
AC_CHECK_TOOL([STRIP], [strip], :)
793
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
810
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
794
811
AC_SUBST([INSTALL_STRIP_PROGRAM])])
813
# Copyright (C) 2006 Free Software Foundation, Inc.
815
# This file is free software; the Free Software Foundation
816
# gives unlimited permission to copy and/or distribute it,
817
# with or without modifications, as long as this notice is preserved.
819
# _AM_SUBST_NOTMAKE(VARIABLE)
820
# ---------------------------
821
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
822
# This macro is traced by Automake.
823
AC_DEFUN([_AM_SUBST_NOTMAKE])
796
825
# Check how to create a tarball. -*- Autoconf -*-
798
827
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.