11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.60],,
15
[m4_fatal([this file was generated for autoconf 2.60.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
19
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
21
# This file is free software; the Free Software Foundation
22
# gives unlimited permission to copy and/or distribute it,
23
# with or without modifications, as long as this notice is preserved.
25
# AM_AUTOMAKE_VERSION(VERSION)
26
# ----------------------------
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
28
# generated from the m4 files accompanying Automake X.Y.
29
# (This private macro should not be called outside this file.)
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
31
[am__api_version='1.10'
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
33
dnl require some minimum version. Point them to the right macro.
34
m4_if([$1], [1.10], [],
35
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38
# _AM_AUTOCONF_VERSION(VERSION)
39
# -----------------------------
40
# aclocal traces this macro to find the Autoconf version.
41
# This is a private macro too. Using m4_define simplifies
42
# the logic in aclocal, which can simply ignore this definition.
43
m4_define([_AM_AUTOCONF_VERSION], [])
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
46
# -------------------------------
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
50
[AM_AUTOMAKE_VERSION([1.10])dnl
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
53
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
55
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
57
# This file is free software; the Free Software Foundation
58
# gives unlimited permission to copy and/or distribute it,
59
# with or without modifications, as long as this notice is preserved.
61
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
62
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
63
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
65
# Of course, Automake must honor this variable whenever it calls a
66
# tool from the auxiliary directory. The problem is that $srcdir (and
67
# therefore $ac_aux_dir as well) can be either absolute or relative,
68
# depending on how configure is run. This is pretty annoying, since
69
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
70
# source directory, any form will work fine, but in subdirectories a
71
# relative path needs to be adjusted first.
74
# fails when called from a subdirectory if $ac_aux_dir is relative
75
# $top_srcdir/$ac_aux_dir/missing
76
# fails if $ac_aux_dir is absolute,
77
# fails when called from a subdirectory in a VPATH build with
78
# a relative $ac_aux_dir
80
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
81
# are both prefixed by $srcdir. In an in-source build this is usually
82
# harmless because $srcdir is `.', but things will broke when you
83
# start a VPATH build or use an absolute $srcdir.
85
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
86
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
87
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
88
# and then we would define $MISSING as
89
# MISSING="\${SHELL} $am_aux_dir/missing"
90
# This will work as long as MISSING is not called from configure, because
91
# unfortunately $(top_srcdir) has no meaning in configure.
92
# However there are other variables, like CC, which are often used in
93
# configure, and could therefore not use this "fixed" $ac_aux_dir.
95
# Another solution, used here, is to always expand $ac_aux_dir to an
96
# absolute PATH. The drawback is that using absolute paths prevent a
97
# configured tree to be moved without reconfiguration.
99
AC_DEFUN([AM_AUX_DIR_EXPAND],
100
[dnl Rely on autoconf to set up CDPATH properly.
102
# expand $ac_aux_dir to an absolute path
103
am_aux_dir=`cd $ac_aux_dir && pwd`
106
# AM_CONDITIONAL -*- Autoconf -*-
108
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
109
# Free Software Foundation, Inc.
111
# This file is free software; the Free Software Foundation
112
# gives unlimited permission to copy and/or distribute it,
113
# with or without modifications, as long as this notice is preserved.
117
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
118
# -------------------------------------
119
# Define a conditional.
120
AC_DEFUN([AM_CONDITIONAL],
122
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
123
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
124
AC_SUBST([$1_TRUE])dnl
125
AC_SUBST([$1_FALSE])dnl
126
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
127
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
135
AC_CONFIG_COMMANDS_PRE(
136
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
137
AC_MSG_ERROR([[conditional "$1" was never defined.
138
Usually this means the macro was only invoked conditionally.]])
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
142
# Free Software Foundation, Inc.
144
# This file is free software; the Free Software Foundation
145
# gives unlimited permission to copy and/or distribute it,
146
# with or without modifications, as long as this notice is preserved.
150
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
151
# written in clear, in which case automake, when reading aclocal.m4,
152
# will think it sees a *use*, and therefore will trigger all it's
153
# C support machinery. Also note that it means that autoscan, seeing
154
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
157
# _AM_DEPENDENCIES(NAME)
158
# ----------------------
159
# See how the compiler implements dependency checking.
160
# NAME is "CC", "CXX", "GCJ", or "OBJC".
161
# We try a few techniques and use that to set a single cache variable.
163
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165
# dependency, and given that the user is not expected to run this macro,
166
# just rely on AC_PROG_CC.
167
AC_DEFUN([_AM_DEPENDENCIES],
168
[AC_REQUIRE([AM_SET_DEPDIR])dnl
169
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171
AC_REQUIRE([AM_DEP_TRACK])dnl
173
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
174
[$1], CXX, [depcc="$CXX" am_compiler_list=],
175
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176
[$1], UPC, [depcc="$UPC" am_compiler_list=],
177
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
178
[depcc="$$1" am_compiler_list=])
180
AC_CACHE_CHECK([dependency style of $depcc],
181
[am_cv_$1_dependencies_compiler_type],
182
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
183
# We make a subdir and do the tests there. Otherwise we can end up
184
# making bogus files that we don't know about and never remove. For
185
# instance it was reported that on HP-UX the gcc test will end up
186
# making a dummy file named `D' -- because `-MD' means `put the output
189
# Copy depcomp to subdir because otherwise we won't find it if we're
190
# using a relative directory.
191
cp "$am_depcomp" conftest.dir
193
# We will build objects and dependencies in a subdirectory because
194
# it helps to detect inapplicable dependency modes. For instance
195
# both Tru64's cc and ICC support -MD to output dependencies as a
196
# side effect of compilation, but ICC will put the dependencies in
197
# the current directory while Tru64 will put them in the object
201
am_cv_$1_dependencies_compiler_type=none
202
if test "$am_compiler_list" = ""; then
203
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
205
for depmode in $am_compiler_list; do
206
# Setup a source with many dependencies, because some compilers
207
# like to wrap large dependency lists on column 80 (with \), and
208
# we should not choose a depcomp mode which is confused by this.
210
# We need to recreate these files for each test, as the compiler may
211
# overwrite some of them when testing with obscure command lines.
212
# This happens at least with the AIX C compiler.
214
for i in 1 2 3 4 5 6; do
215
echo '#include "conftst'$i'.h"' >> sub/conftest.c
216
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
217
# Solaris 8's {/usr,}/bin/sh.
218
touch sub/conftst$i.h
220
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
224
# after this tag, mechanisms are not by side-effect, so they'll
225
# only be used when explicitly requested
226
if test "x$enable_dependency_tracking" = xyes; then
234
# We check with `-c' and `-o' for the sake of the "dashmstdout"
235
# mode. It turns out that the SunPro C++ compiler does not properly
236
# handle `-M -o', and we need to detect this.
237
if depmode=$depmode \
238
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
239
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
240
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
241
>/dev/null 2>conftest.err &&
242
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
243
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
244
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
245
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
246
# icc doesn't choke on unknown options, it will just issue warnings
247
# or remarks (even with -Werror). So we grep stderr for any message
248
# that says an option was ignored or not supported.
249
# When given -MP, icc 7.0 and 7.1 complain thusly:
250
# icc: Command line warning: ignoring option '-M'; no argument required
251
# The diagnosis changed in icc 8.0:
252
# icc: Command line remark: option '-MP' not supported
253
if (grep 'ignoring option' conftest.err ||
254
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
255
am_cv_$1_dependencies_compiler_type=$depmode
264
am_cv_$1_dependencies_compiler_type=none
267
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
268
AM_CONDITIONAL([am__fastdep$1], [
269
test "x$enable_dependency_tracking" != xno \
270
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
276
# Choose a directory name for dependency files.
277
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
278
AC_DEFUN([AM_SET_DEPDIR],
279
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
280
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
286
AC_DEFUN([AM_DEP_TRACK],
287
[AC_ARG_ENABLE(dependency-tracking,
288
[ --disable-dependency-tracking speeds up one-time build
289
--enable-dependency-tracking do not reject slow dependency extractors])
290
if test "x$enable_dependency_tracking" != xno; then
291
am_depcomp="$ac_aux_dir/depcomp"
294
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
295
AC_SUBST([AMDEPBACKSLASH])dnl
296
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
299
# Generate code to set up dependency tracking. -*- Autoconf -*-
301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
302
# Free Software Foundation, Inc.
304
# This file is free software; the Free Software Foundation
305
# gives unlimited permission to copy and/or distribute it,
306
# with or without modifications, as long as this notice is preserved.
310
# _AM_OUTPUT_DEPENDENCY_COMMANDS
311
# ------------------------------
312
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
313
[for mf in $CONFIG_FILES; do
314
# Strip MF so we end up with the name of the file.
315
mf=`echo "$mf" | sed -e 's/:.*$//'`
316
# Check whether this is an Automake generated Makefile or not.
317
# We used to match only the files named `Makefile.in', but
318
# some people rename them; so instead we look at the file content.
319
# Grep'ing the first line is not enough: some people post-process
320
# each Makefile.in and add a new line on top of each file to say so.
321
# Grep'ing the whole file is not good either: AIX grep has a line
322
# limit of 2048, but all sed's we know have understand at least 4000.
323
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
324
dirpart=`AS_DIRNAME("$mf")`
328
# Extract the definition of DEPDIR, am__include, and am__quote
329
# from the Makefile without running `make'.
330
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
331
test -z "$DEPDIR" && continue
332
am__include=`sed -n 's/^am__include = //p' < "$mf"`
333
test -z "am__include" && continue
334
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
335
# When using ansi2knr, U may be empty or an underscore; expand it
336
U=`sed -n 's/^U = //p' < "$mf"`
337
# Find all dependency output files, they are included files with
338
# $(DEPDIR) in their names. We invoke sed twice because it is the
339
# simplest approach to changing $(DEPDIR) to its actual value in the
341
for file in `sed -n "
342
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
343
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
344
# Make sure the directory exists.
345
test -f "$dirpart/$file" && continue
346
fdir=`AS_DIRNAME(["$file"])`
347
AS_MKDIR_P([$dirpart/$fdir])
348
# echo "creating $dirpart/$file"
349
echo '# dummy' > "$dirpart/$file"
352
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
355
# AM_OUTPUT_DEPENDENCY_COMMANDS
356
# -----------------------------
357
# This macro should only be invoked once -- use via AC_REQUIRE.
359
# This code is only required when automatic dependency tracking
360
# is enabled. FIXME. This creates each `.P' file that we will
361
# need in order to bootstrap the dependency handling code.
362
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
363
[AC_CONFIG_COMMANDS([depfiles],
364
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
365
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
368
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
369
# Free Software Foundation, Inc.
371
# This file is free software; the Free Software Foundation
372
# gives unlimited permission to copy and/or distribute it,
373
# with or without modifications, as long as this notice is preserved.
377
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
378
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
380
# Do all the work for Automake. -*- Autoconf -*-
382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
383
# 2005, 2006 Free Software Foundation, Inc.
385
# This file is free software; the Free Software Foundation
386
# gives unlimited permission to copy and/or distribute it,
387
# with or without modifications, as long as this notice is preserved.
391
# This macro actually does too much. Some checks are only needed if
392
# your package does certain things. But this isn't really a big deal.
394
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
395
# AM_INIT_AUTOMAKE([OPTIONS])
396
# -----------------------------------------------
397
# The call with PACKAGE and VERSION arguments is the old style
398
# call (pre autoconf-2.50), which is being phased out. PACKAGE
399
# and VERSION should now be passed to AC_INIT and removed from
400
# the call to AM_INIT_AUTOMAKE.
401
# We support both call styles for the transition. After
402
# the next Automake release, Autoconf can make the AC_INIT
403
# arguments mandatory, and then we can depend on a new Autoconf
404
# release and drop the old call support.
405
AC_DEFUN([AM_INIT_AUTOMAKE],
406
[AC_PREREQ([2.60])dnl
407
dnl Autoconf wants to disallow AM_ names. We explicitly allow
408
dnl the ones we care about.
409
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
410
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
411
AC_REQUIRE([AC_PROG_INSTALL])dnl
412
if test "`cd $srcdir && pwd`" != "`pwd`"; then
413
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
414
# is not polluted with repeated "-I."
415
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
416
# test to see if srcdir already configured
417
if test -f $srcdir/config.status; then
418
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
422
# test whether we have cygpath
423
if test -z "$CYGPATH_W"; then
424
if (cygpath --version) >/dev/null 2>/dev/null; then
425
CYGPATH_W='cygpath -w'
430
AC_SUBST([CYGPATH_W])
432
# Define the identity of the package.
433
dnl Distinguish between old-style and new-style calls.
435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
436
AC_SUBST([PACKAGE], [$1])dnl
437
AC_SUBST([VERSION], [$2])],
438
[_AM_SET_OPTIONS([$1])dnl
439
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
440
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
441
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
442
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
443
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
445
_AM_IF_OPTION([no-define],,
446
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
447
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
449
# Some tools Automake needs.
450
AC_REQUIRE([AM_SANITY_CHECK])dnl
451
AC_REQUIRE([AC_ARG_PROGRAM])dnl
452
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
453
AM_MISSING_PROG(AUTOCONF, autoconf)
454
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
455
AM_MISSING_PROG(AUTOHEADER, autoheader)
456
AM_MISSING_PROG(MAKEINFO, makeinfo)
458
AM_PROG_INSTALL_STRIP
459
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
460
# We need awk for the "check" target. The system "awk" is bad on
462
AC_REQUIRE([AC_PROG_AWK])dnl
463
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
464
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
465
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
466
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
467
[_AM_PROG_TAR([v7])])])
468
_AM_IF_OPTION([no-dependencies],,
469
[AC_PROVIDE_IFELSE([AC_PROG_CC],
470
[_AM_DEPENDENCIES(CC)],
471
[define([AC_PROG_CC],
472
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
473
AC_PROVIDE_IFELSE([AC_PROG_CXX],
474
[_AM_DEPENDENCIES(CXX)],
475
[define([AC_PROG_CXX],
476
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
477
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
478
[_AM_DEPENDENCIES(OBJC)],
479
[define([AC_PROG_OBJC],
480
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
485
# When config.status generates a header, we must update the stamp-h file.
486
# This file resides in the same directory as the config header
487
# that is generated. The stamp files are numbered to have different names.
489
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
490
# loop where config.status creates the headers, so we can generate
491
# our stamp files there.
492
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
493
[# Compute $1's index in $config_headers.
495
for _am_header in $config_headers :; do
500
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
503
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
505
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
507
# This file is free software; the Free Software Foundation
508
# gives unlimited permission to copy and/or distribute it,
509
# with or without modifications, as long as this notice is preserved.
513
# Define $install_sh.
514
AC_DEFUN([AM_PROG_INSTALL_SH],
515
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
516
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
517
AC_SUBST(install_sh)])
519
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
521
# This file is free software; the Free Software Foundation
522
# gives unlimited permission to copy and/or distribute it,
523
# with or without modifications, as long as this notice is preserved.
527
# Check whether the underlying file-system supports filenames
528
# with a leading dot. For instance MS-DOS doesn't.
529
AC_DEFUN([AM_SET_LEADING_DOT],
530
[rm -rf .tst 2>/dev/null
531
mkdir .tst 2>/dev/null
532
if test -d .tst; then
537
rmdir .tst 2>/dev/null
538
AC_SUBST([am__leading_dot])])
540
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
543
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
544
# Free Software Foundation, Inc.
546
# This file is free software; the Free Software Foundation
547
# gives unlimited permission to copy and/or distribute it,
548
# with or without modifications, as long as this notice is preserved.
552
AC_DEFUN([AM_MAINTAINER_MODE],
553
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
554
dnl maintainer-mode is disabled by default
555
AC_ARG_ENABLE(maintainer-mode,
556
[ --enable-maintainer-mode enable make rules and dependencies not useful
557
(and sometimes confusing) to the casual installer],
558
USE_MAINTAINER_MODE=$enableval,
559
USE_MAINTAINER_MODE=no)
560
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
561
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
562
MAINT=$MAINTAINER_MODE_TRUE
567
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
569
# Check to see how 'make' treats includes. -*- Autoconf -*-
571
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
573
# This file is free software; the Free Software Foundation
574
# gives unlimited permission to copy and/or distribute it,
575
# with or without modifications, as long as this notice is preserved.
581
# Check to see how make treats includes.
582
AC_DEFUN([AM_MAKE_INCLUDE],
583
[am_make=${MAKE-make}
584
cat > confinc << 'END'
589
# If we don't find an include directive, just comment out the code.
590
AC_MSG_CHECKING([for style of include used by $am_make])
594
# First try GNU make style include.
595
echo "include confinc" > confmf
596
# We grep out `Entering directory' and `Leaving directory'
597
# messages which can occur if `w' ends up in MAKEFLAGS.
598
# In particular we don't look at `^make:' because GNU make might
599
# be invoked under some other name (usually "gmake"), in which
600
# case it prints its new name instead of `make'.
601
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
606
# Now try BSD make style include.
607
if test "$am__include" = "#"; then
608
echo '.include "confinc"' > confmf
609
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
615
AC_SUBST([am__include])
616
AC_SUBST([am__quote])
617
AC_MSG_RESULT([$_am_result])
621
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
623
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
624
# Free Software Foundation, Inc.
626
# This file is free software; the Free Software Foundation
627
# gives unlimited permission to copy and/or distribute it,
628
# with or without modifications, as long as this notice is preserved.
632
# AM_MISSING_PROG(NAME, PROGRAM)
633
# ------------------------------
634
AC_DEFUN([AM_MISSING_PROG],
635
[AC_REQUIRE([AM_MISSING_HAS_RUN])
636
$1=${$1-"${am_missing_run}$2"}
642
# Define MISSING if not defined so far and test if it supports --run.
643
# If it does, set am_missing_run to use it, otherwise, to nothing.
644
AC_DEFUN([AM_MISSING_HAS_RUN],
645
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
646
AC_REQUIRE_AUX_FILE([missing])dnl
647
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
648
# Use eval to expand $SHELL
649
if eval "$MISSING --run true"; then
650
am_missing_run="$MISSING --run "
653
AC_MSG_WARN([`missing' script is too old or missing])
657
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
659
# This file is free software; the Free Software Foundation
660
# gives unlimited permission to copy and/or distribute it,
661
# with or without modifications, as long as this notice is preserved.
665
# Check for `mkdir -p'.
666
AC_DEFUN([AM_PROG_MKDIR_P],
667
[AC_PREREQ([2.60])dnl
668
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
669
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
670
dnl while keeping a definition of mkdir_p for backward compatibility.
671
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
672
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
673
dnl Makefile.ins that do not define MKDIR_P, so we do our own
674
dnl adjustment using top_builddir (which is defined more often than
676
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
678
[[\\/$]]* | ?:[[\\/]]*) ;;
679
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
683
# Helper functions for option handling. -*- Autoconf -*-
685
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
687
# This file is free software; the Free Software Foundation
688
# gives unlimited permission to copy and/or distribute it,
689
# with or without modifications, as long as this notice is preserved.
693
# _AM_MANGLE_OPTION(NAME)
694
# -----------------------
695
AC_DEFUN([_AM_MANGLE_OPTION],
696
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
698
# _AM_SET_OPTION(NAME)
699
# ------------------------------
700
# Set option NAME. Presently that only means defining a flag for this option.
701
AC_DEFUN([_AM_SET_OPTION],
702
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
704
# _AM_SET_OPTIONS(OPTIONS)
705
# ----------------------------------
706
# OPTIONS is a space-separated list of Automake options.
707
AC_DEFUN([_AM_SET_OPTIONS],
708
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
710
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
711
# -------------------------------------------
712
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
713
AC_DEFUN([_AM_IF_OPTION],
714
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
716
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
717
# Free Software Foundation, Inc.
719
# This file is free software; the Free Software Foundation
720
# gives unlimited permission to copy and/or distribute it,
721
# with or without modifications, as long as this notice is preserved.
723
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
724
# ---------------------------------------------------------------------------
725
# Adds support for distributing Python modules and packages. To
726
# install modules, copy them to $(pythondir), using the python_PYTHON
727
# automake variable. To install a package with the same name as the
728
# automake package, install to $(pkgpythondir), or use the
729
# pkgpython_PYTHON automake variable.
731
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
732
# locations to install python extension modules (shared libraries).
733
# Another macro is required to find the appropriate flags to compile
736
# If your package is configured with a different prefix to python,
737
# users will have to add the install directory to the PYTHONPATH
738
# environment variable, or create a .pth file (see the python
739
# documentation for details).
741
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
742
# cause an error if the version of python installed on the system
743
# doesn't meet the requirement. MINIMUM-VERSION should consist of
744
# numbers and dots only.
745
AC_DEFUN([AM_PATH_PYTHON],
747
dnl Find a Python interpreter. Python versions prior to 1.5 are not
748
dnl supported because the default installation locations changed from
749
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
751
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
752
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
753
python2.1 python2.0 python1.6 python1.5])
756
dnl No version check is needed.
757
# Find any Python interpreter.
758
if test -z "$PYTHON"; then
759
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
761
am_display_PYTHON=python
763
dnl A version check is needed.
764
if test -n "$PYTHON"; then
765
# If the user set $PYTHON, use it and don't search something else.
766
AC_MSG_CHECKING([whether $PYTHON version >= $1])
767
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
768
[AC_MSG_RESULT(yes)],
769
[AC_MSG_ERROR(too old)])
770
am_display_PYTHON=$PYTHON
772
# Otherwise, try each interpreter until we find one that satisfies
774
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
775
[am_cv_pathless_PYTHON],[
776
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
777
test "$am_cv_pathless_PYTHON" = none && break
778
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
780
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
781
if test "$am_cv_pathless_PYTHON" = none; then
784
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
786
am_display_PYTHON=$am_cv_pathless_PYTHON
790
if test "$PYTHON" = :; then
791
dnl Run any user-specified action, or abort.
792
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
795
dnl Query Python for its version number. Getting [:3] seems to be
796
dnl the best way to do this; it's what "site.py" does in the standard
799
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
800
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
801
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
803
dnl Use the values of $prefix and $exec_prefix for the corresponding
804
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
805
dnl distinct variables so they can be overridden if need be. However,
806
dnl general consensus is that you shouldn't need this ability.
808
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
809
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
811
dnl At times (like when building shared libraries) you may want
812
dnl to know which OS platform Python thinks this is.
814
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
815
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
816
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
819
dnl Set up 4 directories:
821
dnl pythondir -- where to install python scripts. This is the
822
dnl site-packages directory, not the python standard library
823
dnl directory like in previous automake betas. This behavior
824
dnl is more consistent with lispdir.m4 for example.
825
dnl Query distutils for this directory. distutils does not exist in
826
dnl Python 1.5, so we fall back to the hardcoded directory if it
828
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
829
[am_cv_python_pythondir],
830
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
831
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
832
AC_SUBST([pythondir], [$am_cv_python_pythondir])
834
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
835
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
836
dnl more consistent with the rest of automake.
838
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
840
dnl pyexecdir -- directory for installing python extension modules
841
dnl (shared libraries)
842
dnl Query distutils for this directory. distutils does not exist in
843
dnl Python 1.5, so we fall back to the hardcoded directory if it
845
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
846
[am_cv_python_pyexecdir],
847
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
848
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
849
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
851
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
853
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
855
dnl Run any user-specified action.
862
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
863
# ---------------------------------------------------------------------------
864
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
865
# Run ACTION-IF-FALSE otherwise.
866
# This test uses sys.hexversion instead of the string equivalent (first
867
# word of sys.version), in order to cope with versions such as 2.2c1.
868
# hexversion has been introduced in Python 1.5.2; it's probably not
869
# worth to support older versions (1.5.1 was released on October 31, 1998).
870
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
871
[prog="import sys, string
872
# split strings by '.' and convert to numeric. Append some zeros
873
# because we need at least 4 digits for the hex conversion.
874
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
876
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
877
sys.exit(sys.hexversion < minverhex)"
878
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
880
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
882
# This file is free software; the Free Software Foundation
883
# gives unlimited permission to copy and/or distribute it,
884
# with or without modifications, as long as this notice is preserved.
886
# AM_RUN_LOG(COMMAND)
887
# -------------------
888
# Run COMMAND, save the exit status in ac_status, and log it.
889
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
890
AC_DEFUN([AM_RUN_LOG],
891
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
892
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
894
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
895
(exit $ac_status); }])
897
# Check to make sure that the build environment is sane. -*- Autoconf -*-
899
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
900
# Free Software Foundation, Inc.
902
# This file is free software; the Free Software Foundation
903
# gives unlimited permission to copy and/or distribute it,
904
# with or without modifications, as long as this notice is preserved.
910
AC_DEFUN([AM_SANITY_CHECK],
911
[AC_MSG_CHECKING([whether build environment is sane])
914
echo timestamp > conftest.file
915
# Do `set' in a subshell so we don't clobber the current shell's
916
# arguments. Must try -L first in case configure is actually a
917
# symlink; some systems play weird games with the mod time of symlinks
918
# (eg FreeBSD returns the mod time of the symlink's containing
921
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
922
if test "$[*]" = "X"; then
924
set X `ls -t $srcdir/configure conftest.file`
927
if test "$[*]" != "X $srcdir/configure conftest.file" \
928
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
930
# If neither matched, then we have a broken ls. This can happen
931
# if, for instance, CONFIG_SHELL is bash and it inherits a
932
# broken ls alias from the environment. This has actually
933
# happened. Such a system could not be considered "sane".
934
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
935
alias in your environment])
938
test "$[2]" = conftest.file
944
AC_MSG_ERROR([newly created file is older than distributed files!
945
Check your system clock])
949
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
951
# This file is free software; the Free Software Foundation
952
# gives unlimited permission to copy and/or distribute it,
953
# with or without modifications, as long as this notice is preserved.
955
# AM_PROG_INSTALL_STRIP
956
# ---------------------
957
# One issue with vendor `install' (even GNU) is that you can't
958
# specify the program used to strip binaries. This is especially
959
# annoying in cross-compiling environments, where the build's strip
960
# is unlikely to handle the host's binaries.
961
# Fortunately install-sh will honor a STRIPPROG variable, so we
962
# always use install-sh in `make install-strip', and initialize
963
# STRIPPROG with the value of the STRIP variable (set by the user).
964
AC_DEFUN([AM_PROG_INSTALL_STRIP],
965
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
966
# Installed binaries are usually stripped using `strip' when the user
967
# run `make install-strip'. However `strip' might not be the right
968
# tool to use in cross-compilation environments, therefore Automake
969
# will honor the `STRIP' environment variable to overrule this program.
970
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
971
if test "$cross_compiling" != no; then
972
AC_CHECK_TOOL([STRIP], [strip], :)
974
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
975
AC_SUBST([INSTALL_STRIP_PROGRAM])])
977
# Copyright (C) 2006 Free Software Foundation, Inc.
979
# This file is free software; the Free Software Foundation
980
# gives unlimited permission to copy and/or distribute it,
981
# with or without modifications, as long as this notice is preserved.
983
# _AM_SUBST_NOTMAKE(VARIABLE)
984
# ---------------------------
985
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
986
# This macro is traced by Automake.
987
AC_DEFUN([_AM_SUBST_NOTMAKE])
989
# Check how to create a tarball. -*- Autoconf -*-
991
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
993
# This file is free software; the Free Software Foundation
994
# gives unlimited permission to copy and/or distribute it,
995
# with or without modifications, as long as this notice is preserved.
999
# _AM_PROG_TAR(FORMAT)
1000
# --------------------
1001
# Check how to create a tarball in format FORMAT.
1002
# FORMAT should be one of `v7', `ustar', or `pax'.
1004
# Substitute a variable $(am__tar) that is a command
1005
# writing to stdout a FORMAT-tarball containing the directory
1007
# tardir=directory && $(am__tar) > result.tar
1009
# Substitute a variable $(am__untar) that extract such
1010
# a tarball read from stdin.
1011
# $(am__untar) < result.tar
1012
AC_DEFUN([_AM_PROG_TAR],
1013
[# Always define AMTAR for backward compatibility.
1014
AM_MISSING_PROG([AMTAR], [tar])
1016
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1017
[m4_case([$1], [ustar],, [pax],,
1018
[m4_fatal([Unknown tar format])])
1019
AC_MSG_CHECKING([how to create a $1 tar archive])
1020
# Loop over all known methods to create a tar archive until one works.
1021
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1022
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1023
# Do not fold the above two line into one, because Tru64 sh and
1024
# Solaris sh will not grok spaces in the rhs of `-'.
1025
for _am_tool in $_am_tools
1029
for _am_tar in tar gnutar gtar;
1031
AM_RUN_LOG([$_am_tar --version]) && break
1033
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1034
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1035
am__untar="$_am_tar -xf -"
1038
# Must skip GNU tar: if it does not support --format= it doesn't create
1039
# ustar tarball either.
1040
(tar --version) >/dev/null 2>&1 && continue
1041
am__tar='tar chf - "$$tardir"'
1042
am__tar_='tar chf - "$tardir"'
1043
am__untar='tar xf -'
1046
am__tar='pax -L -x $1 -w "$$tardir"'
1047
am__tar_='pax -L -x $1 -w "$tardir"'
1051
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1052
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1053
am__untar='cpio -i -H $1 -d'
1062
# If the value was cached, stop now. We just wanted to have am__tar
1063
# and am__untar set.
1064
test -n "${am_cv_prog_tar_$1}" && break
1066
# tar/untar a dummy directory, and stop if the command works
1069
echo GrepMe > conftest.dir/file
1070
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1072
if test -s conftest.tar; then
1073
AM_RUN_LOG([$am__untar <conftest.tar])
1074
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1079
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1080
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1082
AC_SUBST([am__untar])
14
1085
dnl AM_GCONF_SOURCE_2
15
1086
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
1087
dnl (i.e. pass to gconftool-2
7367
8249
])# PKG_CHECK_MODULES
7369
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
7371
# This file is free software; the Free Software Foundation
7372
# gives unlimited permission to copy and/or distribute it,
7373
# with or without modifications, as long as this notice is preserved.
7375
# AM_AUTOMAKE_VERSION(VERSION)
7376
# ----------------------------
7377
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7378
# generated from the m4 files accompanying Automake X.Y.
7379
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7381
# AM_SET_CURRENT_AUTOMAKE_VERSION
7382
# -------------------------------
7383
# Call AM_AUTOMAKE_VERSION so it can be traced.
7384
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7385
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7386
[AM_AUTOMAKE_VERSION([1.9.6])])
7388
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7390
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7392
# This file is free software; the Free Software Foundation
7393
# gives unlimited permission to copy and/or distribute it,
7394
# with or without modifications, as long as this notice is preserved.
7396
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7397
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7398
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7400
# Of course, Automake must honor this variable whenever it calls a
7401
# tool from the auxiliary directory. The problem is that $srcdir (and
7402
# therefore $ac_aux_dir as well) can be either absolute or relative,
7403
# depending on how configure is run. This is pretty annoying, since
7404
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7405
# source directory, any form will work fine, but in subdirectories a
7406
# relative path needs to be adjusted first.
7408
# $ac_aux_dir/missing
7409
# fails when called from a subdirectory if $ac_aux_dir is relative
7410
# $top_srcdir/$ac_aux_dir/missing
7411
# fails if $ac_aux_dir is absolute,
7412
# fails when called from a subdirectory in a VPATH build with
7413
# a relative $ac_aux_dir
7415
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7416
# are both prefixed by $srcdir. In an in-source build this is usually
7417
# harmless because $srcdir is `.', but things will broke when you
7418
# start a VPATH build or use an absolute $srcdir.
7420
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7421
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7422
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7423
# and then we would define $MISSING as
7424
# MISSING="\${SHELL} $am_aux_dir/missing"
7425
# This will work as long as MISSING is not called from configure, because
7426
# unfortunately $(top_srcdir) has no meaning in configure.
7427
# However there are other variables, like CC, which are often used in
7428
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7430
# Another solution, used here, is to always expand $ac_aux_dir to an
7431
# absolute PATH. The drawback is that using absolute paths prevent a
7432
# configured tree to be moved without reconfiguration.
7434
AC_DEFUN([AM_AUX_DIR_EXPAND],
7435
[dnl Rely on autoconf to set up CDPATH properly.
7436
AC_PREREQ([2.50])dnl
7437
# expand $ac_aux_dir to an absolute path
7438
am_aux_dir=`cd $ac_aux_dir && pwd`
7441
# AM_CONDITIONAL -*- Autoconf -*-
7443
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7444
# Free Software Foundation, Inc.
7446
# This file is free software; the Free Software Foundation
7447
# gives unlimited permission to copy and/or distribute it,
7448
# with or without modifications, as long as this notice is preserved.
7452
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7453
# -------------------------------------
7454
# Define a conditional.
7455
AC_DEFUN([AM_CONDITIONAL],
7457
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7458
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7460
AC_SUBST([$1_FALSE])
7468
AC_CONFIG_COMMANDS_PRE(
7469
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7470
AC_MSG_ERROR([[conditional "$1" was never defined.
7471
Usually this means the macro was only invoked conditionally.]])
7475
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7476
# Free Software Foundation, Inc.
7478
# This file is free software; the Free Software Foundation
7479
# gives unlimited permission to copy and/or distribute it,
7480
# with or without modifications, as long as this notice is preserved.
7484
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7485
# written in clear, in which case automake, when reading aclocal.m4,
7486
# will think it sees a *use*, and therefore will trigger all it's
7487
# C support machinery. Also note that it means that autoscan, seeing
7488
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7491
# _AM_DEPENDENCIES(NAME)
7492
# ----------------------
7493
# See how the compiler implements dependency checking.
7494
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7495
# We try a few techniques and use that to set a single cache variable.
7497
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7498
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7499
# dependency, and given that the user is not expected to run this macro,
7500
# just rely on AC_PROG_CC.
7501
AC_DEFUN([_AM_DEPENDENCIES],
7502
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7503
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7504
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7505
AC_REQUIRE([AM_DEP_TRACK])dnl
7507
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7508
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7509
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7510
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7511
[depcc="$$1" am_compiler_list=])
7513
AC_CACHE_CHECK([dependency style of $depcc],
7514
[am_cv_$1_dependencies_compiler_type],
7515
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7516
# We make a subdir and do the tests there. Otherwise we can end up
7517
# making bogus files that we don't know about and never remove. For
7518
# instance it was reported that on HP-UX the gcc test will end up
7519
# making a dummy file named `D' -- because `-MD' means `put the output
7522
# Copy depcomp to subdir because otherwise we won't find it if we're
7523
# using a relative directory.
7524
cp "$am_depcomp" conftest.dir
7526
# We will build objects and dependencies in a subdirectory because
7527
# it helps to detect inapplicable dependency modes. For instance
7528
# both Tru64's cc and ICC support -MD to output dependencies as a
7529
# side effect of compilation, but ICC will put the dependencies in
7530
# the current directory while Tru64 will put them in the object
7534
am_cv_$1_dependencies_compiler_type=none
7535
if test "$am_compiler_list" = ""; then
7536
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7538
for depmode in $am_compiler_list; do
7539
# Setup a source with many dependencies, because some compilers
7540
# like to wrap large dependency lists on column 80 (with \), and
7541
# we should not choose a depcomp mode which is confused by this.
7543
# We need to recreate these files for each test, as the compiler may
7544
# overwrite some of them when testing with obscure command lines.
7545
# This happens at least with the AIX C compiler.
7547
for i in 1 2 3 4 5 6; do
7548
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7549
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7550
# Solaris 8's {/usr,}/bin/sh.
7551
touch sub/conftst$i.h
7553
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7557
# after this tag, mechanisms are not by side-effect, so they'll
7558
# only be used when explicitly requested
7559
if test "x$enable_dependency_tracking" = xyes; then
7567
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7568
# mode. It turns out that the SunPro C++ compiler does not properly
7569
# handle `-M -o', and we need to detect this.
7570
if depmode=$depmode \
7571
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7572
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7573
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7574
>/dev/null 2>conftest.err &&
7575
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7576
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7577
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7578
# icc doesn't choke on unknown options, it will just issue warnings
7579
# or remarks (even with -Werror). So we grep stderr for any message
7580
# that says an option was ignored or not supported.
7581
# When given -MP, icc 7.0 and 7.1 complain thusly:
7582
# icc: Command line warning: ignoring option '-M'; no argument required
7583
# The diagnosis changed in icc 8.0:
7584
# icc: Command line remark: option '-MP' not supported
7585
if (grep 'ignoring option' conftest.err ||
7586
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7587
am_cv_$1_dependencies_compiler_type=$depmode
7596
am_cv_$1_dependencies_compiler_type=none
7599
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7600
AM_CONDITIONAL([am__fastdep$1], [
7601
test "x$enable_dependency_tracking" != xno \
7602
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7608
# Choose a directory name for dependency files.
7609
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7610
AC_DEFUN([AM_SET_DEPDIR],
7611
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7612
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7618
AC_DEFUN([AM_DEP_TRACK],
7619
[AC_ARG_ENABLE(dependency-tracking,
7620
[ --disable-dependency-tracking speeds up one-time build
7621
--enable-dependency-tracking do not reject slow dependency extractors])
7622
if test "x$enable_dependency_tracking" != xno; then
7623
am_depcomp="$ac_aux_dir/depcomp"
7626
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7627
AC_SUBST([AMDEPBACKSLASH])
7630
# Generate code to set up dependency tracking. -*- Autoconf -*-
7632
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7633
# Free Software Foundation, Inc.
7635
# This file is free software; the Free Software Foundation
7636
# gives unlimited permission to copy and/or distribute it,
7637
# with or without modifications, as long as this notice is preserved.
7641
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7642
# ------------------------------
7643
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7644
[for mf in $CONFIG_FILES; do
7645
# Strip MF so we end up with the name of the file.
7646
mf=`echo "$mf" | sed -e 's/:.*$//'`
7647
# Check whether this is an Automake generated Makefile or not.
7648
# We used to match only the files named `Makefile.in', but
7649
# some people rename them; so instead we look at the file content.
7650
# Grep'ing the first line is not enough: some people post-process
7651
# each Makefile.in and add a new line on top of each file to say so.
7652
# So let's grep whole file.
7653
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7654
dirpart=`AS_DIRNAME("$mf")`
7658
# Extract the definition of DEPDIR, am__include, and am__quote
7659
# from the Makefile without running `make'.
7660
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7661
test -z "$DEPDIR" && continue
7662
am__include=`sed -n 's/^am__include = //p' < "$mf"`
7663
test -z "am__include" && continue
7664
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7665
# When using ansi2knr, U may be empty or an underscore; expand it
7666
U=`sed -n 's/^U = //p' < "$mf"`
7667
# Find all dependency output files, they are included files with
7668
# $(DEPDIR) in their names. We invoke sed twice because it is the
7669
# simplest approach to changing $(DEPDIR) to its actual value in the
7671
for file in `sed -n "
7672
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7673
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7674
# Make sure the directory exists.
7675
test -f "$dirpart/$file" && continue
7676
fdir=`AS_DIRNAME(["$file"])`
7677
AS_MKDIR_P([$dirpart/$fdir])
7678
# echo "creating $dirpart/$file"
7679
echo '# dummy' > "$dirpart/$file"
7682
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7685
# AM_OUTPUT_DEPENDENCY_COMMANDS
7686
# -----------------------------
7687
# This macro should only be invoked once -- use via AC_REQUIRE.
7689
# This code is only required when automatic dependency tracking
7690
# is enabled. FIXME. This creates each `.P' file that we will
7691
# need in order to bootstrap the dependency handling code.
7692
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7693
[AC_CONFIG_COMMANDS([depfiles],
7694
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7695
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7698
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7699
# Free Software Foundation, Inc.
7701
# This file is free software; the Free Software Foundation
7702
# gives unlimited permission to copy and/or distribute it,
7703
# with or without modifications, as long as this notice is preserved.
7707
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7708
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7710
# Do all the work for Automake. -*- Autoconf -*-
7712
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7713
# Free Software Foundation, Inc.
7715
# This file is free software; the Free Software Foundation
7716
# gives unlimited permission to copy and/or distribute it,
7717
# with or without modifications, as long as this notice is preserved.
7721
# This macro actually does too much. Some checks are only needed if
7722
# your package does certain things. But this isn't really a big deal.
7724
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7725
# AM_INIT_AUTOMAKE([OPTIONS])
7726
# -----------------------------------------------
7727
# The call with PACKAGE and VERSION arguments is the old style
7728
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7729
# and VERSION should now be passed to AC_INIT and removed from
7730
# the call to AM_INIT_AUTOMAKE.
7731
# We support both call styles for the transition. After
7732
# the next Automake release, Autoconf can make the AC_INIT
7733
# arguments mandatory, and then we can depend on a new Autoconf
7734
# release and drop the old call support.
7735
AC_DEFUN([AM_INIT_AUTOMAKE],
7736
[AC_PREREQ([2.58])dnl
7737
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7738
dnl the ones we care about.
7739
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7740
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7741
AC_REQUIRE([AC_PROG_INSTALL])dnl
7742
# test to see if srcdir already configured
7743
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7744
test -f $srcdir/config.status; then
7745
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7748
# test whether we have cygpath
7749
if test -z "$CYGPATH_W"; then
7750
if (cygpath --version) >/dev/null 2>/dev/null; then
7751
CYGPATH_W='cygpath -w'
7756
AC_SUBST([CYGPATH_W])
7758
# Define the identity of the package.
7759
dnl Distinguish between old-style and new-style calls.
7761
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7762
AC_SUBST([PACKAGE], [$1])dnl
7763
AC_SUBST([VERSION], [$2])],
7764
[_AM_SET_OPTIONS([$1])dnl
7765
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7766
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7768
_AM_IF_OPTION([no-define],,
7769
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7770
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7772
# Some tools Automake needs.
7773
AC_REQUIRE([AM_SANITY_CHECK])dnl
7774
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7775
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7776
AM_MISSING_PROG(AUTOCONF, autoconf)
7777
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7778
AM_MISSING_PROG(AUTOHEADER, autoheader)
7779
AM_MISSING_PROG(MAKEINFO, makeinfo)
7781
AM_PROG_INSTALL_STRIP
7782
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7783
# We need awk for the "check" target. The system "awk" is bad on
7785
AC_REQUIRE([AC_PROG_AWK])dnl
7786
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7787
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7788
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7789
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7790
[_AM_PROG_TAR([v7])])])
7791
_AM_IF_OPTION([no-dependencies],,
7792
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7793
[_AM_DEPENDENCIES(CC)],
7794
[define([AC_PROG_CC],
7795
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7796
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7797
[_AM_DEPENDENCIES(CXX)],
7798
[define([AC_PROG_CXX],
7799
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7804
# When config.status generates a header, we must update the stamp-h file.
7805
# This file resides in the same directory as the config header
7806
# that is generated. The stamp files are numbered to have different names.
7808
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7809
# loop where config.status creates the headers, so we can generate
7810
# our stamp files there.
7811
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7812
[# Compute $1's index in $config_headers.
7814
for _am_header in $config_headers :; do
7819
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7822
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7824
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7826
# This file is free software; the Free Software Foundation
7827
# gives unlimited permission to copy and/or distribute it,
7828
# with or without modifications, as long as this notice is preserved.
7830
# AM_PROG_INSTALL_SH
7831
# ------------------
7832
# Define $install_sh.
7833
AC_DEFUN([AM_PROG_INSTALL_SH],
7834
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7835
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7836
AC_SUBST(install_sh)])
7838
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7840
# This file is free software; the Free Software Foundation
7841
# gives unlimited permission to copy and/or distribute it,
7842
# with or without modifications, as long as this notice is preserved.
7846
# Check whether the underlying file-system supports filenames
7847
# with a leading dot. For instance MS-DOS doesn't.
7848
AC_DEFUN([AM_SET_LEADING_DOT],
7849
[rm -rf .tst 2>/dev/null
7850
mkdir .tst 2>/dev/null
7851
if test -d .tst; then
7856
rmdir .tst 2>/dev/null
7857
AC_SUBST([am__leading_dot])])
7859
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7862
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7863
# Free Software Foundation, Inc.
7865
# This file is free software; the Free Software Foundation
7866
# gives unlimited permission to copy and/or distribute it,
7867
# with or without modifications, as long as this notice is preserved.
7871
AC_DEFUN([AM_MAINTAINER_MODE],
7872
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7873
dnl maintainer-mode is disabled by default
7874
AC_ARG_ENABLE(maintainer-mode,
7875
[ --enable-maintainer-mode enable make rules and dependencies not useful
7876
(and sometimes confusing) to the casual installer],
7877
USE_MAINTAINER_MODE=$enableval,
7878
USE_MAINTAINER_MODE=no)
7879
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7880
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7881
MAINT=$MAINTAINER_MODE_TRUE
7886
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7888
# Check to see how 'make' treats includes. -*- Autoconf -*-
7890
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7892
# This file is free software; the Free Software Foundation
7893
# gives unlimited permission to copy and/or distribute it,
7894
# with or without modifications, as long as this notice is preserved.
7900
# Check to see how make treats includes.
7901
AC_DEFUN([AM_MAKE_INCLUDE],
7902
[am_make=${MAKE-make}
7903
cat > confinc << 'END'
7908
# If we don't find an include directive, just comment out the code.
7909
AC_MSG_CHECKING([for style of include used by $am_make])
7913
# First try GNU make style include.
7914
echo "include confinc" > confmf
7915
# We grep out `Entering directory' and `Leaving directory'
7916
# messages which can occur if `w' ends up in MAKEFLAGS.
7917
# In particular we don't look at `^make:' because GNU make might
7918
# be invoked under some other name (usually "gmake"), in which
7919
# case it prints its new name instead of `make'.
7920
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7925
# Now try BSD make style include.
7926
if test "$am__include" = "#"; then
7927
echo '.include "confinc"' > confmf
7928
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7929
am__include=.include
7934
AC_SUBST([am__include])
7935
AC_SUBST([am__quote])
7936
AC_MSG_RESULT([$_am_result])
7937
rm -f confinc confmf
7940
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7942
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7943
# Free Software Foundation, Inc.
7945
# This file is free software; the Free Software Foundation
7946
# gives unlimited permission to copy and/or distribute it,
7947
# with or without modifications, as long as this notice is preserved.
7951
# AM_MISSING_PROG(NAME, PROGRAM)
7952
# ------------------------------
7953
AC_DEFUN([AM_MISSING_PROG],
7954
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7955
$1=${$1-"${am_missing_run}$2"}
7959
# AM_MISSING_HAS_RUN
7960
# ------------------
7961
# Define MISSING if not defined so far and test if it supports --run.
7962
# If it does, set am_missing_run to use it, otherwise, to nothing.
7963
AC_DEFUN([AM_MISSING_HAS_RUN],
7964
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7965
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7966
# Use eval to expand $SHELL
7967
if eval "$MISSING --run true"; then
7968
am_missing_run="$MISSING --run "
7971
AC_MSG_WARN([`missing' script is too old or missing])
7975
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7977
# This file is free software; the Free Software Foundation
7978
# gives unlimited permission to copy and/or distribute it,
7979
# with or without modifications, as long as this notice is preserved.
7983
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7985
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7986
# created by `make install' are always world readable, even if the
7987
# installer happens to have an overly restrictive umask (e.g. 077).
7988
# This was a mistake. There are at least two reasons why we must not
7990
# - it causes special bits like SGID to be ignored,
7991
# - it may be too restrictive (some setups expect 775 directories).
7993
# Do not use -m 0755 and let people choose whatever they expect by
7996
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7997
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7998
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7999
# concurrently, both version can detect that a/ is missing, but only
8000
# one can create it and the other will error out. Consequently we
8001
# restrict ourselves to GNU make (using the --version option ensures
8003
AC_DEFUN([AM_PROG_MKDIR_P],
8004
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8005
# We used to keeping the `.' as first argument, in order to
8006
# allow $(mkdir_p) to be used without argument. As in
8007
# $(mkdir_p) $(somedir)
8008
# where $(somedir) is conditionally defined. However this is wrong
8010
# 1. if the package is installed by a user who cannot write `.'
8011
# make install will fail,
8012
# 2. the above comment should most certainly read
8013
# $(mkdir_p) $(DESTDIR)$(somedir)
8014
# so it does not work when $(somedir) is undefined and
8015
# $(DESTDIR) is not.
8016
# To support the latter case, we have to write
8017
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8018
# so the `.' trick is pointless.
8019
mkdir_p='mkdir -p --'
8021
# On NextStep and OpenStep, the `mkdir' command does not
8022
# recognize any option. It will interpret all options as
8023
# directories to create, and then abort because `.' already
8025
for d in ./-p ./--version;
8027
test -d $d && rmdir $d
8029
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8030
if test -f "$ac_aux_dir/mkinstalldirs"; then
8031
mkdir_p='$(mkinstalldirs)'
8033
mkdir_p='$(install_sh) -d'
8036
AC_SUBST([mkdir_p])])
8038
# Helper functions for option handling. -*- Autoconf -*-
8040
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8042
# This file is free software; the Free Software Foundation
8043
# gives unlimited permission to copy and/or distribute it,
8044
# with or without modifications, as long as this notice is preserved.
8048
# _AM_MANGLE_OPTION(NAME)
8049
# -----------------------
8050
AC_DEFUN([_AM_MANGLE_OPTION],
8051
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8053
# _AM_SET_OPTION(NAME)
8054
# ------------------------------
8055
# Set option NAME. Presently that only means defining a flag for this option.
8056
AC_DEFUN([_AM_SET_OPTION],
8057
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8059
# _AM_SET_OPTIONS(OPTIONS)
8060
# ----------------------------------
8061
# OPTIONS is a space-separated list of Automake options.
8062
AC_DEFUN([_AM_SET_OPTIONS],
8063
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8065
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8066
# -------------------------------------------
8067
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8068
AC_DEFUN([_AM_IF_OPTION],
8069
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8071
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8072
# Free Software Foundation, Inc.
8074
# This file is free software; the Free Software Foundation
8075
# gives unlimited permission to copy and/or distribute it,
8076
# with or without modifications, as long as this notice is preserved.
8078
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8079
# ---------------------------------------------------------------------------
8080
# Adds support for distributing Python modules and packages. To
8081
# install modules, copy them to $(pythondir), using the python_PYTHON
8082
# automake variable. To install a package with the same name as the
8083
# automake package, install to $(pkgpythondir), or use the
8084
# pkgpython_PYTHON automake variable.
8086
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
8087
# locations to install python extension modules (shared libraries).
8088
# Another macro is required to find the appropriate flags to compile
8089
# extension modules.
8091
# If your package is configured with a different prefix to python,
8092
# users will have to add the install directory to the PYTHONPATH
8093
# environment variable, or create a .pth file (see the python
8094
# documentation for details).
8096
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
8097
# cause an error if the version of python installed on the system
8098
# doesn't meet the requirement. MINIMUM-VERSION should consist of
8099
# numbers and dots only.
8100
AC_DEFUN([AM_PATH_PYTHON],
8102
dnl Find a Python interpreter. Python versions prior to 1.5 are not
8103
dnl supported because the default installation locations changed from
8104
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
8106
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
8107
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
8108
python2.1 python2.0 python1.6 python1.5])
8111
dnl No version check is needed.
8112
# Find any Python interpreter.
8113
if test -z "$PYTHON"; then
8114
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
8116
am_display_PYTHON=python
8118
dnl A version check is needed.
8119
if test -n "$PYTHON"; then
8120
# If the user set $PYTHON, use it and don't search something else.
8121
AC_MSG_CHECKING([whether $PYTHON version >= $1])
8122
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
8123
[AC_MSG_RESULT(yes)],
8124
[AC_MSG_ERROR(too old)])
8125
am_display_PYTHON=$PYTHON
8127
# Otherwise, try each interpreter until we find one that satisfies
8129
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
8130
[am_cv_pathless_PYTHON],[
8131
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
8132
test "$am_cv_pathless_PYTHON" = none && break
8133
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
8135
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8136
if test "$am_cv_pathless_PYTHON" = none; then
8139
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
8141
am_display_PYTHON=$am_cv_pathless_PYTHON
8145
if test "$PYTHON" = :; then
8146
dnl Run any user-specified action, or abort.
8147
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
8150
dnl Query Python for its version number. Getting [:3] seems to be
8151
dnl the best way to do this; it's what "site.py" does in the standard
8154
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
8155
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
8156
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
8158
dnl Use the values of $prefix and $exec_prefix for the corresponding
8159
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
8160
dnl distinct variables so they can be overridden if need be. However,
8161
dnl general consensus is that you shouldn't need this ability.
8163
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
8164
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
8166
dnl At times (like when building shared libraries) you may want
8167
dnl to know which OS platform Python thinks this is.
8169
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
8170
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
8171
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
8174
dnl Set up 4 directories:
8176
dnl pythondir -- where to install python scripts. This is the
8177
dnl site-packages directory, not the python standard library
8178
dnl directory like in previous automake betas. This behavior
8179
dnl is more consistent with lispdir.m4 for example.
8180
dnl Query distutils for this directory. distutils does not exist in
8181
dnl Python 1.5, so we fall back to the hardcoded directory if it
8183
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
8184
[am_cv_python_pythondir],
8185
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
8186
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
8187
AC_SUBST([pythondir], [$am_cv_python_pythondir])
8189
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
8190
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
8191
dnl more consistent with the rest of automake.
8193
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
8195
dnl pyexecdir -- directory for installing python extension modules
8196
dnl (shared libraries)
8197
dnl Query distutils for this directory. distutils does not exist in
8198
dnl Python 1.5, so we fall back to the hardcoded directory if it
8200
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
8201
[am_cv_python_pyexecdir],
8202
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
8203
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
8204
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
8206
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
8208
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
8210
dnl Run any user-specified action.
8217
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
8218
# ---------------------------------------------------------------------------
8219
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
8220
# Run ACTION-IF-FALSE otherwise.
8221
# This test uses sys.hexversion instead of the string equivalent (first
8222
# word of sys.version), in order to cope with versions such as 2.2c1.
8223
# hexversion has been introduced in Python 1.5.2; it's probably not
8224
# worth to support older versions (1.5.1 was released on October 31, 1998).
8225
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
8226
[prog="import sys, string
8227
# split strings by '.' and convert to numeric. Append some zeros
8228
# because we need at least 4 digits for the hex conversion.
8229
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
8231
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
8232
sys.exit(sys.hexversion < minverhex)"
8233
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
8235
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8237
# This file is free software; the Free Software Foundation
8238
# gives unlimited permission to copy and/or distribute it,
8239
# with or without modifications, as long as this notice is preserved.
8241
# AM_RUN_LOG(COMMAND)
8242
# -------------------
8243
# Run COMMAND, save the exit status in ac_status, and log it.
8244
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8245
AC_DEFUN([AM_RUN_LOG],
8246
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8247
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8249
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8250
(exit $ac_status); }])
8252
# Check to make sure that the build environment is sane. -*- Autoconf -*-
8254
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8255
# Free Software Foundation, Inc.
8257
# This file is free software; the Free Software Foundation
8258
# gives unlimited permission to copy and/or distribute it,
8259
# with or without modifications, as long as this notice is preserved.
8265
AC_DEFUN([AM_SANITY_CHECK],
8266
[AC_MSG_CHECKING([whether build environment is sane])
8269
echo timestamp > conftest.file
8270
# Do `set' in a subshell so we don't clobber the current shell's
8271
# arguments. Must try -L first in case configure is actually a
8272
# symlink; some systems play weird games with the mod time of symlinks
8273
# (eg FreeBSD returns the mod time of the symlink's containing
8276
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8277
if test "$[*]" = "X"; then
8279
set X `ls -t $srcdir/configure conftest.file`
8282
if test "$[*]" != "X $srcdir/configure conftest.file" \
8283
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8285
# If neither matched, then we have a broken ls. This can happen
8286
# if, for instance, CONFIG_SHELL is bash and it inherits a
8287
# broken ls alias from the environment. This has actually
8288
# happened. Such a system could not be considered "sane".
8289
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8290
alias in your environment])
8293
test "$[2]" = conftest.file
8299
AC_MSG_ERROR([newly created file is older than distributed files!
8300
Check your system clock])
8302
AC_MSG_RESULT(yes)])
8304
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8306
# This file is free software; the Free Software Foundation
8307
# gives unlimited permission to copy and/or distribute it,
8308
# with or without modifications, as long as this notice is preserved.
8310
# AM_PROG_INSTALL_STRIP
8311
# ---------------------
8312
# One issue with vendor `install' (even GNU) is that you can't
8313
# specify the program used to strip binaries. This is especially
8314
# annoying in cross-compiling environments, where the build's strip
8315
# is unlikely to handle the host's binaries.
8316
# Fortunately install-sh will honor a STRIPPROG variable, so we
8317
# always use install-sh in `make install-strip', and initialize
8318
# STRIPPROG with the value of the STRIP variable (set by the user).
8319
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8320
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8321
# Installed binaries are usually stripped using `strip' when the user
8322
# run `make install-strip'. However `strip' might not be the right
8323
# tool to use in cross-compilation environments, therefore Automake
8324
# will honor the `STRIP' environment variable to overrule this program.
8325
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8326
if test "$cross_compiling" != no; then
8327
AC_CHECK_TOOL([STRIP], [strip], :)
8329
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8330
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8332
# Check how to create a tarball. -*- Autoconf -*-
8334
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8336
# This file is free software; the Free Software Foundation
8337
# gives unlimited permission to copy and/or distribute it,
8338
# with or without modifications, as long as this notice is preserved.
8342
# _AM_PROG_TAR(FORMAT)
8343
# --------------------
8344
# Check how to create a tarball in format FORMAT.
8345
# FORMAT should be one of `v7', `ustar', or `pax'.
8347
# Substitute a variable $(am__tar) that is a command
8348
# writing to stdout a FORMAT-tarball containing the directory
8350
# tardir=directory && $(am__tar) > result.tar
8352
# Substitute a variable $(am__untar) that extract such
8353
# a tarball read from stdin.
8354
# $(am__untar) < result.tar
8355
AC_DEFUN([_AM_PROG_TAR],
8356
[# Always define AMTAR for backward compatibility.
8357
AM_MISSING_PROG([AMTAR], [tar])
8359
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8360
[m4_case([$1], [ustar],, [pax],,
8361
[m4_fatal([Unknown tar format])])
8362
AC_MSG_CHECKING([how to create a $1 tar archive])
8363
# Loop over all known methods to create a tar archive until one works.
8364
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8365
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8366
# Do not fold the above two line into one, because Tru64 sh and
8367
# Solaris sh will not grok spaces in the rhs of `-'.
8368
for _am_tool in $_am_tools
8372
for _am_tar in tar gnutar gtar;
8374
AM_RUN_LOG([$_am_tar --version]) && break
8376
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8377
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8378
am__untar="$_am_tar -xf -"
8381
# Must skip GNU tar: if it does not support --format= it doesn't create
8382
# ustar tarball either.
8383
(tar --version) >/dev/null 2>&1 && continue
8384
am__tar='tar chf - "$$tardir"'
8385
am__tar_='tar chf - "$tardir"'
8386
am__untar='tar xf -'
8389
am__tar='pax -L -x $1 -w "$$tardir"'
8390
am__tar_='pax -L -x $1 -w "$tardir"'
8394
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8395
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8396
am__untar='cpio -i -H $1 -d'
8405
# If the value was cached, stop now. We just wanted to have am__tar
8406
# and am__untar set.
8407
test -n "${am_cv_prog_tar_$1}" && break
8409
# tar/untar a dummy directory, and stop if the command works
8412
echo GrepMe > conftest.dir/file
8413
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8415
if test -s conftest.tar; then
8416
AM_RUN_LOG([$am__untar <conftest.tar])
8417
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8422
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8423
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8425
AC_SUBST([am__untar])
8428
8251
m4_include([m4/ac-define-dir.m4])
8429
8252
m4_include([m4/acinclude.m4])
8430
8253
m4_include([m4/gnome-doc-utils.m4])