11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
16
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
18
# This program is free software; you can redistribute it and/or modify
19
# it under the terms of the GNU General Public License as published by
20
# the Free Software Foundation; either version 2, or (at your option)
23
# This program is distributed in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU General Public License for more details.
28
# You should have received a copy of the GNU General Public License
29
# along with this program; if not, write to the Free Software
30
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
38
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
40
# Do all the work for Automake. -*- Autoconf -*-
42
# This macro actually does too much some checks are only needed if
43
# your package does certain things. But this isn't really a big deal.
45
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46
# Free Software Foundation, Inc.
48
# This program is free software; you can redistribute it and/or modify
49
# it under the terms of the GNU General Public License as published by
50
# the Free Software Foundation; either version 2, or (at your option)
53
# This program is distributed in the hope that it will be useful,
54
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56
# GNU General Public License for more details.
58
# You should have received a copy of the GNU General Public License
59
# along with this program; if not, write to the Free Software
60
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
67
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
68
# the ones we care about.
69
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
71
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72
# AM_INIT_AUTOMAKE([OPTIONS])
73
# -----------------------------------------------
74
# The call with PACKAGE and VERSION arguments is the old style
75
# call (pre autoconf-2.50), which is being phased out. PACKAGE
76
# and VERSION should now be passed to AC_INIT and removed from
77
# the call to AM_INIT_AUTOMAKE.
78
# We support both call styles for the transition. After
79
# the next Automake release, Autoconf can make the AC_INIT
80
# arguments mandatory, and then we can depend on a new Autoconf
81
# release and drop the old call support.
82
AC_DEFUN([AM_INIT_AUTOMAKE],
83
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84
AC_REQUIRE([AC_PROG_INSTALL])dnl
85
# test to see if srcdir already configured
86
if test "`cd $srcdir && pwd`" != "`pwd`" &&
87
test -f $srcdir/config.status; then
88
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
91
# test whether we have cygpath
92
if test -z "$CYGPATH_W"; then
93
if (cygpath --version) >/dev/null 2>/dev/null; then
94
CYGPATH_W='cygpath -w'
101
# Define the identity of the package.
102
dnl Distinguish between old-style and new-style calls.
104
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105
AC_SUBST([PACKAGE], [$1])dnl
106
AC_SUBST([VERSION], [$2])],
107
[_AM_SET_OPTIONS([$1])dnl
108
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
111
_AM_IF_OPTION([no-define],,
112
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
115
# Some tools Automake needs.
116
AC_REQUIRE([AM_SANITY_CHECK])dnl
117
AC_REQUIRE([AC_ARG_PROGRAM])dnl
118
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119
AM_MISSING_PROG(AUTOCONF, autoconf)
120
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121
AM_MISSING_PROG(AUTOHEADER, autoheader)
122
AM_MISSING_PROG(MAKEINFO, makeinfo)
123
AM_MISSING_PROG(AMTAR, tar)
125
AM_PROG_INSTALL_STRIP
126
# We need awk for the "check" target. The system "awk" is bad on
128
AC_REQUIRE([AC_PROG_AWK])dnl
129
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
132
_AM_IF_OPTION([no-dependencies],,
133
[AC_PROVIDE_IFELSE([AC_PROG_CC],
134
[_AM_DEPENDENCIES(CC)],
135
[define([AC_PROG_CC],
136
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137
AC_PROVIDE_IFELSE([AC_PROG_CXX],
138
[_AM_DEPENDENCIES(CXX)],
139
[define([AC_PROG_CXX],
140
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
145
# When config.status generates a header, we must update the stamp-h file.
146
# This file resides in the same directory as the config header
147
# that is generated. The stamp files are numbered to have different names.
149
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150
# loop where config.status creates the headers, so we can generate
151
# our stamp files there.
152
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
[# Compute $1's index in $config_headers.
155
for _am_header in $config_headers :; do
160
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
163
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
165
# Copyright 2002 Free Software Foundation, Inc.
167
# This program is free software; you can redistribute it and/or modify
168
# it under the terms of the GNU General Public License as published by
169
# the Free Software Foundation; either version 2, or (at your option)
172
# This program is distributed in the hope that it will be useful,
173
# but WITHOUT ANY WARRANTY; without even the implied warranty of
174
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175
# GNU General Public License for more details.
177
# You should have received a copy of the GNU General Public License
178
# along with this program; if not, write to the Free Software
179
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
181
# AM_AUTOMAKE_VERSION(VERSION)
182
# ----------------------------
183
# Automake X.Y traces this macro to ensure aclocal.m4 has been
184
# generated from the m4 files accompanying Automake X.Y.
185
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
187
# AM_SET_CURRENT_AUTOMAKE_VERSION
188
# -------------------------------
189
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
[AM_AUTOMAKE_VERSION([1.7.8])])
194
# Helper functions for option handling. -*- Autoconf -*-
196
# Copyright 2001, 2002 Free Software Foundation, Inc.
198
# This program is free software; you can redistribute it and/or modify
199
# it under the terms of the GNU General Public License as published by
200
# the Free Software Foundation; either version 2, or (at your option)
203
# This program is distributed in the hope that it will be useful,
204
# but WITHOUT ANY WARRANTY; without even the implied warranty of
205
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
206
# GNU General Public License for more details.
208
# You should have received a copy of the GNU General Public License
209
# along with this program; if not, write to the Free Software
210
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
215
# _AM_MANGLE_OPTION(NAME)
216
# -----------------------
217
AC_DEFUN([_AM_MANGLE_OPTION],
218
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
220
# _AM_SET_OPTION(NAME)
221
# ------------------------------
222
# Set option NAME. Presently that only means defining a flag for this option.
223
AC_DEFUN([_AM_SET_OPTION],
224
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
226
# _AM_SET_OPTIONS(OPTIONS)
227
# ----------------------------------
228
# OPTIONS is a space-separated list of Automake options.
229
AC_DEFUN([_AM_SET_OPTIONS],
230
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
232
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233
# -------------------------------------------
234
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235
AC_DEFUN([_AM_IF_OPTION],
236
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
239
# Check to make sure that the build environment is sane.
242
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
244
# This program is free software; you can redistribute it and/or modify
245
# it under the terms of the GNU General Public License as published by
246
# the Free Software Foundation; either version 2, or (at your option)
249
# This program is distributed in the hope that it will be useful,
250
# but WITHOUT ANY WARRANTY; without even the implied warranty of
251
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
252
# GNU General Public License for more details.
254
# You should have received a copy of the GNU General Public License
255
# along with this program; if not, write to the Free Software
256
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
263
AC_DEFUN([AM_SANITY_CHECK],
264
[AC_MSG_CHECKING([whether build environment is sane])
267
echo timestamp > conftest.file
268
# Do `set' in a subshell so we don't clobber the current shell's
269
# arguments. Must try -L first in case configure is actually a
270
# symlink; some systems play weird games with the mod time of symlinks
271
# (eg FreeBSD returns the mod time of the symlink's containing
274
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275
if test "$[*]" = "X"; then
277
set X `ls -t $srcdir/configure conftest.file`
280
if test "$[*]" != "X $srcdir/configure conftest.file" \
281
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
283
# If neither matched, then we have a broken ls. This can happen
284
# if, for instance, CONFIG_SHELL is bash and it inherits a
285
# broken ls alias from the environment. This has actually
286
# happened. Such a system could not be considered "sane".
287
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
288
alias in your environment])
291
test "$[2]" = conftest.file
297
AC_MSG_ERROR([newly created file is older than distributed files!
298
Check your system clock])
305
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
307
# This program is free software; you can redistribute it and/or modify
308
# it under the terms of the GNU General Public License as published by
309
# the Free Software Foundation; either version 2, or (at your option)
312
# This program is distributed in the hope that it will be useful,
313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
314
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
315
# GNU General Public License for more details.
317
# You should have received a copy of the GNU General Public License
318
# along with this program; if not, write to the Free Software
319
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
324
# AM_MISSING_PROG(NAME, PROGRAM)
325
# ------------------------------
326
AC_DEFUN([AM_MISSING_PROG],
327
[AC_REQUIRE([AM_MISSING_HAS_RUN])
328
$1=${$1-"${am_missing_run}$2"}
334
# Define MISSING if not defined so far and test if it supports --run.
335
# If it does, set am_missing_run to use it, otherwise, to nothing.
336
AC_DEFUN([AM_MISSING_HAS_RUN],
337
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339
# Use eval to expand $SHELL
340
if eval "$MISSING --run true"; then
341
am_missing_run="$MISSING --run "
344
AC_MSG_WARN([`missing' script is too old or missing])
350
# Copyright 2001 Free Software Foundation, Inc.
352
# This program is free software; you can redistribute it and/or modify
353
# it under the terms of the GNU General Public License as published by
354
# the Free Software Foundation; either version 2, or (at your option)
357
# This program is distributed in the hope that it will be useful,
358
# but WITHOUT ANY WARRANTY; without even the implied warranty of
359
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
360
# GNU General Public License for more details.
362
# You should have received a copy of the GNU General Public License
363
# along with this program; if not, write to the Free Software
364
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
367
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
369
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
371
# Of course, Automake must honor this variable whenever it calls a
372
# tool from the auxiliary directory. The problem is that $srcdir (and
373
# therefore $ac_aux_dir as well) can be either absolute or relative,
374
# depending on how configure is run. This is pretty annoying, since
375
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
376
# source directory, any form will work fine, but in subdirectories a
377
# relative path needs to be adjusted first.
379
# $ac_aux_dir/missing
380
# fails when called from a subdirectory if $ac_aux_dir is relative
381
# $top_srcdir/$ac_aux_dir/missing
382
# fails if $ac_aux_dir is absolute,
383
# fails when called from a subdirectory in a VPATH build with
384
# a relative $ac_aux_dir
386
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387
# are both prefixed by $srcdir. In an in-source build this is usually
388
# harmless because $srcdir is `.', but things will broke when you
389
# start a VPATH build or use an absolute $srcdir.
391
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
393
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394
# and then we would define $MISSING as
395
# MISSING="\${SHELL} $am_aux_dir/missing"
396
# This will work as long as MISSING is not called from configure, because
397
# unfortunately $(top_srcdir) has no meaning in configure.
398
# However there are other variables, like CC, which are often used in
399
# configure, and could therefore not use this "fixed" $ac_aux_dir.
401
# Another solution, used here, is to always expand $ac_aux_dir to an
402
# absolute PATH. The drawback is that using absolute paths prevent a
403
# configured tree to be moved without reconfiguration.
405
# Rely on autoconf to set up CDPATH properly.
408
AC_DEFUN([AM_AUX_DIR_EXPAND], [
409
# expand $ac_aux_dir to an absolute path
410
am_aux_dir=`cd $ac_aux_dir && pwd`
415
# Define $install_sh.
417
# Copyright 2001 Free Software Foundation, Inc.
419
# This program is free software; you can redistribute it and/or modify
420
# it under the terms of the GNU General Public License as published by
421
# the Free Software Foundation; either version 2, or (at your option)
424
# This program is distributed in the hope that it will be useful,
425
# but WITHOUT ANY WARRANTY; without even the implied warranty of
426
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
427
# GNU General Public License for more details.
429
# You should have received a copy of the GNU General Public License
430
# along with this program; if not, write to the Free Software
431
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
434
AC_DEFUN([AM_PROG_INSTALL_SH],
435
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436
install_sh=${install_sh-"$am_aux_dir/install-sh"}
437
AC_SUBST(install_sh)])
439
# AM_PROG_INSTALL_STRIP
441
# Copyright 2001 Free Software Foundation, Inc.
443
# This program is free software; you can redistribute it and/or modify
444
# it under the terms of the GNU General Public License as published by
445
# the Free Software Foundation; either version 2, or (at your option)
448
# This program is distributed in the hope that it will be useful,
449
# but WITHOUT ANY WARRANTY; without even the implied warranty of
450
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
451
# GNU General Public License for more details.
453
# You should have received a copy of the GNU General Public License
454
# along with this program; if not, write to the Free Software
455
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
458
# One issue with vendor `install' (even GNU) is that you can't
459
# specify the program used to strip binaries. This is especially
460
# annoying in cross-compiling environments, where the build's strip
461
# is unlikely to handle the host's binaries.
462
# Fortunately install-sh will honor a STRIPPROG variable, so we
463
# always use install-sh in `make install-strip', and initialize
464
# STRIPPROG with the value of the STRIP variable (set by the user).
465
AC_DEFUN([AM_PROG_INSTALL_STRIP],
466
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467
# Installed binaries are usually stripped using `strip' when the user
468
# run `make install-strip'. However `strip' might not be the right
469
# tool to use in cross-compilation environments, therefore Automake
470
# will honor the `STRIP' environment variable to overrule this program.
471
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472
if test "$cross_compiling" != no; then
473
AC_CHECK_TOOL([STRIP], [strip], :)
475
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
AC_SUBST([INSTALL_STRIP_PROGRAM])])
479
# Copyright (C) 2003 Free Software Foundation, Inc.
481
# This program is free software; you can redistribute it and/or modify
482
# it under the terms of the GNU General Public License as published by
483
# the Free Software Foundation; either version 2, or (at your option)
486
# This program is distributed in the hope that it will be useful,
487
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489
# GNU General Public License for more details.
491
# You should have received a copy of the GNU General Public License
492
# along with this program; if not, write to the Free Software
493
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
498
# Check whether the underlying file-system supports filenames
499
# with a leading dot. For instance MS-DOS doesn't.
500
AC_DEFUN([AM_SET_LEADING_DOT],
501
[rm -rf .tst 2>/dev/null
502
mkdir .tst 2>/dev/null
503
if test -d .tst; then
508
rmdir .tst 2>/dev/null
509
AC_SUBST([am__leading_dot])])
511
# serial 5 -*- Autoconf -*-
513
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
515
# This program is free software; you can redistribute it and/or modify
516
# it under the terms of the GNU General Public License as published by
517
# the Free Software Foundation; either version 2, or (at your option)
520
# This program is distributed in the hope that it will be useful,
521
# but WITHOUT ANY WARRANTY; without even the implied warranty of
522
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
523
# GNU General Public License for more details.
525
# You should have received a copy of the GNU General Public License
526
# along with this program; if not, write to the Free Software
527
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
531
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532
# written in clear, in which case automake, when reading aclocal.m4,
533
# will think it sees a *use*, and therefore will trigger all it's
534
# C support machinery. Also note that it means that autoscan, seeing
535
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
539
# _AM_DEPENDENCIES(NAME)
540
# ----------------------
541
# See how the compiler implements dependency checking.
542
# NAME is "CC", "CXX", "GCJ", or "OBJC".
543
# We try a few techniques and use that to set a single cache variable.
545
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547
# dependency, and given that the user is not expected to run this macro,
548
# just rely on AC_PROG_CC.
549
AC_DEFUN([_AM_DEPENDENCIES],
550
[AC_REQUIRE([AM_SET_DEPDIR])dnl
551
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553
AC_REQUIRE([AM_DEP_TRACK])dnl
555
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
556
[$1], CXX, [depcc="$CXX" am_compiler_list=],
557
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
559
[depcc="$$1" am_compiler_list=])
561
AC_CACHE_CHECK([dependency style of $depcc],
562
[am_cv_$1_dependencies_compiler_type],
563
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564
# We make a subdir and do the tests there. Otherwise we can end up
565
# making bogus files that we don't know about and never remove. For
566
# instance it was reported that on HP-UX the gcc test will end up
567
# making a dummy file named `D' -- because `-MD' means `put the output
570
# Copy depcomp to subdir because otherwise we won't find it if we're
571
# using a relative directory.
572
cp "$am_depcomp" conftest.dir
574
# We will build objects and dependencies in a subdirectory because
575
# it helps to detect inapplicable dependency modes. For instance
576
# both Tru64's cc and ICC support -MD to output dependencies as a
577
# side effect of compilation, but ICC will put the dependencies in
578
# the current directory while Tru64 will put them in the object
582
am_cv_$1_dependencies_compiler_type=none
583
if test "$am_compiler_list" = ""; then
584
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
586
for depmode in $am_compiler_list; do
587
# Setup a source with many dependencies, because some compilers
588
# like to wrap large dependency lists on column 80 (with \), and
589
# we should not choose a depcomp mode which is confused by this.
591
# We need to recreate these files for each test, as the compiler may
592
# overwrite some of them when testing with obscure command lines.
593
# This happens at least with the AIX C compiler.
595
for i in 1 2 3 4 5 6; do
596
echo '#include "conftst'$i'.h"' >> sub/conftest.c
599
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
603
# after this tag, mechanisms are not by side-effect, so they'll
604
# only be used when explicitly requested
605
if test "x$enable_dependency_tracking" = xyes; then
613
# We check with `-c' and `-o' for the sake of the "dashmstdout"
614
# mode. It turns out that the SunPro C++ compiler does not properly
615
# handle `-M -o', and we need to detect this.
616
if depmode=$depmode \
617
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
>/dev/null 2>conftest.err &&
621
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
# icc doesn't choke on unknown options, it will just issue warnings
625
# (even with -Werror). So we grep stderr for any message
626
# that says an option was ignored.
627
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
am_cv_$1_dependencies_compiler_type=$depmode
637
am_cv_$1_dependencies_compiler_type=none
640
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641
AM_CONDITIONAL([am__fastdep$1], [
642
test "x$enable_dependency_tracking" != xno \
643
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649
# Choose a directory name for dependency files.
650
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
AC_DEFUN([AM_SET_DEPDIR],
652
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659
AC_DEFUN([AM_DEP_TRACK],
660
[AC_ARG_ENABLE(dependency-tracking,
661
[ --disable-dependency-tracking Speeds up one-time builds
662
--enable-dependency-tracking Do not reject slow dependency extractors])
663
if test "x$enable_dependency_tracking" != xno; then
664
am_depcomp="$ac_aux_dir/depcomp"
667
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668
AC_SUBST([AMDEPBACKSLASH])
671
# Generate code to set up dependency tracking. -*- Autoconf -*-
673
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
675
# This program is free software; you can redistribute it and/or modify
676
# it under the terms of the GNU General Public License as published by
677
# the Free Software Foundation; either version 2, or (at your option)
680
# This program is distributed in the hope that it will be useful,
681
# but WITHOUT ANY WARRANTY; without even the implied warranty of
682
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
683
# GNU General Public License for more details.
685
# You should have received a copy of the GNU General Public License
686
# along with this program; if not, write to the Free Software
687
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692
# _AM_OUTPUT_DEPENDENCY_COMMANDS
693
# ------------------------------
694
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
[for mf in $CONFIG_FILES; do
696
# Strip MF so we end up with the name of the file.
697
mf=`echo "$mf" | sed -e 's/:.*$//'`
698
# Check whether this is an Automake generated Makefile or not.
699
# We used to match only the files named `Makefile.in', but
700
# some people rename them; so instead we look at the file content.
701
# Grep'ing the first line is not enough: some people post-process
702
# each Makefile.in and add a new line on top of each file to say so.
703
# So let's grep whole file.
704
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705
dirpart=`AS_DIRNAME("$mf")`
709
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710
# Extract the definition of DEP_FILES from the Makefile without
712
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713
test -z "$DEPDIR" && continue
714
# When using ansi2knr, U may be empty or an underscore; expand it
715
U=`sed -n -e '/^U = / s///p' < "$mf"`
716
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717
# We invoke sed twice because it is the simplest approach to
718
# changing $(DEPDIR) to its actual value in the expansion.
719
for file in `sed -n -e '
720
/^DEP_FILES = .*\\\\$/ {
729
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731
# Make sure the directory exists.
732
test -f "$dirpart/$file" && continue
733
fdir=`AS_DIRNAME(["$file"])`
734
AS_MKDIR_P([$dirpart/$fdir])
735
# echo "creating $dirpart/$file"
736
echo '# dummy' > "$dirpart/$file"
739
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
742
# AM_OUTPUT_DEPENDENCY_COMMANDS
743
# -----------------------------
744
# This macro should only be invoked once -- use via AC_REQUIRE.
746
# This code is only required when automatic dependency tracking
747
# is enabled. FIXME. This creates each `.P' file that we will
748
# need in order to bootstrap the dependency handling code.
749
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750
[AC_CONFIG_COMMANDS([depfiles],
751
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
755
# Check to see how 'make' treats includes. -*- Autoconf -*-
757
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
759
# This program is free software; you can redistribute it and/or modify
760
# it under the terms of the GNU General Public License as published by
761
# the Free Software Foundation; either version 2, or (at your option)
764
# This program is distributed in the hope that it will be useful,
765
# but WITHOUT ANY WARRANTY; without even the implied warranty of
766
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
767
# GNU General Public License for more details.
769
# You should have received a copy of the GNU General Public License
770
# along with this program; if not, write to the Free Software
771
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
778
# Check to see how make treats includes.
779
AC_DEFUN([AM_MAKE_INCLUDE],
780
[am_make=${MAKE-make}
781
cat > confinc << 'END'
786
# If we don't find an include directive, just comment out the code.
787
AC_MSG_CHECKING([for style of include used by $am_make])
791
# First try GNU make style include.
792
echo "include confinc" > confmf
793
# We grep out `Entering directory' and `Leaving directory'
794
# messages which can occur if `w' ends up in MAKEFLAGS.
795
# In particular we don't look at `^make:' because GNU make might
796
# be invoked under some other name (usually "gmake"), in which
797
# case it prints its new name instead of `make'.
798
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
803
# Now try BSD make style include.
804
if test "$am__include" = "#"; then
805
echo '.include "confinc"' > confmf
806
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
812
AC_SUBST([am__include])
813
AC_SUBST([am__quote])
814
AC_MSG_RESULT([$_am_result])
818
# AM_CONDITIONAL -*- Autoconf -*-
820
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
822
# This program is free software; you can redistribute it and/or modify
823
# it under the terms of the GNU General Public License as published by
824
# the Free Software Foundation; either version 2, or (at your option)
827
# This program is distributed in the hope that it will be useful,
828
# but WITHOUT ANY WARRANTY; without even the implied warranty of
829
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
830
# GNU General Public License for more details.
832
# You should have received a copy of the GNU General Public License
833
# along with this program; if not, write to the Free Software
834
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
841
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
842
# -------------------------------------
843
# Define a conditional.
844
AC_DEFUN([AM_CONDITIONAL],
845
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
846
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
856
AC_CONFIG_COMMANDS_PRE(
857
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858
AC_MSG_ERROR([conditional "$1" was never defined.
859
Usually this means the macro was only invoked conditionally.])
862
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
864
16
# serial 47 AC_PROG_LIBTOOL
6736
5936
AC_MSG_RESULT([$SED])
5940
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5941
# Generated from amversion.in; do not edit by hand.
5943
# This program is free software; you can redistribute it and/or modify
5944
# it under the terms of the GNU General Public License as published by
5945
# the Free Software Foundation; either version 2, or (at your option)
5946
# any later version.
5948
# This program is distributed in the hope that it will be useful,
5949
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5950
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5951
# GNU General Public License for more details.
5953
# You should have received a copy of the GNU General Public License
5954
# along with this program; if not, write to the Free Software
5955
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5957
# AM_AUTOMAKE_VERSION(VERSION)
5958
# ----------------------------
5959
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5960
# generated from the m4 files accompanying Automake X.Y.
5961
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
5963
# AM_SET_CURRENT_AUTOMAKE_VERSION
5964
# -------------------------------
5965
# Call AM_AUTOMAKE_VERSION so it can be traced.
5966
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5967
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5968
[AM_AUTOMAKE_VERSION([1.8.3])])
5972
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5974
# This program is free software; you can redistribute it and/or modify
5975
# it under the terms of the GNU General Public License as published by
5976
# the Free Software Foundation; either version 2, or (at your option)
5977
# any later version.
5979
# This program is distributed in the hope that it will be useful,
5980
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5981
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5982
# GNU General Public License for more details.
5984
# You should have received a copy of the GNU General Public License
5985
# along with this program; if not, write to the Free Software
5986
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5989
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
5990
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
5991
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
5993
# Of course, Automake must honor this variable whenever it calls a
5994
# tool from the auxiliary directory. The problem is that $srcdir (and
5995
# therefore $ac_aux_dir as well) can be either absolute or relative,
5996
# depending on how configure is run. This is pretty annoying, since
5997
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
5998
# source directory, any form will work fine, but in subdirectories a
5999
# relative path needs to be adjusted first.
6001
# $ac_aux_dir/missing
6002
# fails when called from a subdirectory if $ac_aux_dir is relative
6003
# $top_srcdir/$ac_aux_dir/missing
6004
# fails if $ac_aux_dir is absolute,
6005
# fails when called from a subdirectory in a VPATH build with
6006
# a relative $ac_aux_dir
6008
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6009
# are both prefixed by $srcdir. In an in-source build this is usually
6010
# harmless because $srcdir is `.', but things will broke when you
6011
# start a VPATH build or use an absolute $srcdir.
6013
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6014
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6015
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6016
# and then we would define $MISSING as
6017
# MISSING="\${SHELL} $am_aux_dir/missing"
6018
# This will work as long as MISSING is not called from configure, because
6019
# unfortunately $(top_srcdir) has no meaning in configure.
6020
# However there are other variables, like CC, which are often used in
6021
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6023
# Another solution, used here, is to always expand $ac_aux_dir to an
6024
# absolute PATH. The drawback is that using absolute paths prevent a
6025
# configured tree to be moved without reconfiguration.
6027
AC_DEFUN([AM_AUX_DIR_EXPAND],
6028
[dnl Rely on autoconf to set up CDPATH properly.
6029
AC_PREREQ([2.50])dnl
6030
# expand $ac_aux_dir to an absolute path
6031
am_aux_dir=`cd $ac_aux_dir && pwd`
6034
# AM_CONDITIONAL -*- Autoconf -*-
6036
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6038
# This program is free software; you can redistribute it and/or modify
6039
# it under the terms of the GNU General Public License as published by
6040
# the Free Software Foundation; either version 2, or (at your option)
6041
# any later version.
6043
# This program is distributed in the hope that it will be useful,
6044
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6045
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6046
# GNU General Public License for more details.
6048
# You should have received a copy of the GNU General Public License
6049
# along with this program; if not, write to the Free Software
6050
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6055
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6056
# -------------------------------------
6057
# Define a conditional.
6058
AC_DEFUN([AM_CONDITIONAL],
6060
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6061
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6063
AC_SUBST([$1_FALSE])
6071
AC_CONFIG_COMMANDS_PRE(
6072
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6073
AC_MSG_ERROR([conditional "$1" was never defined.
6074
Usually this means the macro was only invoked conditionally.])
6077
# serial 7 -*- Autoconf -*-
6079
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6080
# Free Software Foundation, Inc.
6082
# This program is free software; you can redistribute it and/or modify
6083
# it under the terms of the GNU General Public License as published by
6084
# the Free Software Foundation; either version 2, or (at your option)
6085
# any later version.
6087
# This program is distributed in the hope that it will be useful,
6088
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6089
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6090
# GNU General Public License for more details.
6092
# You should have received a copy of the GNU General Public License
6093
# along with this program; if not, write to the Free Software
6094
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6098
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6099
# written in clear, in which case automake, when reading aclocal.m4,
6100
# will think it sees a *use*, and therefore will trigger all it's
6101
# C support machinery. Also note that it means that autoscan, seeing
6102
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6106
# _AM_DEPENDENCIES(NAME)
6107
# ----------------------
6108
# See how the compiler implements dependency checking.
6109
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6110
# We try a few techniques and use that to set a single cache variable.
6112
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6113
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6114
# dependency, and given that the user is not expected to run this macro,
6115
# just rely on AC_PROG_CC.
6116
AC_DEFUN([_AM_DEPENDENCIES],
6117
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6118
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6119
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6120
AC_REQUIRE([AM_DEP_TRACK])dnl
6122
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6123
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6124
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6125
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6126
[depcc="$$1" am_compiler_list=])
6128
AC_CACHE_CHECK([dependency style of $depcc],
6129
[am_cv_$1_dependencies_compiler_type],
6130
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6131
# We make a subdir and do the tests there. Otherwise we can end up
6132
# making bogus files that we don't know about and never remove. For
6133
# instance it was reported that on HP-UX the gcc test will end up
6134
# making a dummy file named `D' -- because `-MD' means `put the output
6137
# Copy depcomp to subdir because otherwise we won't find it if we're
6138
# using a relative directory.
6139
cp "$am_depcomp" conftest.dir
6141
# We will build objects and dependencies in a subdirectory because
6142
# it helps to detect inapplicable dependency modes. For instance
6143
# both Tru64's cc and ICC support -MD to output dependencies as a
6144
# side effect of compilation, but ICC will put the dependencies in
6145
# the current directory while Tru64 will put them in the object
6149
am_cv_$1_dependencies_compiler_type=none
6150
if test "$am_compiler_list" = ""; then
6151
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6153
for depmode in $am_compiler_list; do
6154
# Setup a source with many dependencies, because some compilers
6155
# like to wrap large dependency lists on column 80 (with \), and
6156
# we should not choose a depcomp mode which is confused by this.
6158
# We need to recreate these files for each test, as the compiler may
6159
# overwrite some of them when testing with obscure command lines.
6160
# This happens at least with the AIX C compiler.
6162
for i in 1 2 3 4 5 6; do
6163
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6164
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6165
# Solaris 8's {/usr,}/bin/sh.
6166
touch sub/conftst$i.h
6168
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6172
# after this tag, mechanisms are not by side-effect, so they'll
6173
# only be used when explicitly requested
6174
if test "x$enable_dependency_tracking" = xyes; then
6182
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6183
# mode. It turns out that the SunPro C++ compiler does not properly
6184
# handle `-M -o', and we need to detect this.
6185
if depmode=$depmode \
6186
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6187
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6188
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6189
>/dev/null 2>conftest.err &&
6190
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6191
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6192
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6193
# icc doesn't choke on unknown options, it will just issue warnings
6194
# (even with -Werror). So we grep stderr for any message
6195
# that says an option was ignored.
6196
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6197
am_cv_$1_dependencies_compiler_type=$depmode
6206
am_cv_$1_dependencies_compiler_type=none
6209
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6210
AM_CONDITIONAL([am__fastdep$1], [
6211
test "x$enable_dependency_tracking" != xno \
6212
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6218
# Choose a directory name for dependency files.
6219
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6220
AC_DEFUN([AM_SET_DEPDIR],
6221
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6222
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6228
AC_DEFUN([AM_DEP_TRACK],
6229
[AC_ARG_ENABLE(dependency-tracking,
6230
[ --disable-dependency-tracking speeds up one-time build
6231
--enable-dependency-tracking do not reject slow dependency extractors])
6232
if test "x$enable_dependency_tracking" != xno; then
6233
am_depcomp="$ac_aux_dir/depcomp"
6236
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6237
AC_SUBST([AMDEPBACKSLASH])
6240
# Generate code to set up dependency tracking. -*- Autoconf -*-
6242
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6244
# This program is free software; you can redistribute it and/or modify
6245
# it under the terms of the GNU General Public License as published by
6246
# the Free Software Foundation; either version 2, or (at your option)
6247
# any later version.
6249
# This program is distributed in the hope that it will be useful,
6250
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6251
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6252
# GNU General Public License for more details.
6254
# You should have received a copy of the GNU General Public License
6255
# along with this program; if not, write to the Free Software
6256
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6261
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6262
# ------------------------------
6263
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6264
[for mf in $CONFIG_FILES; do
6265
# Strip MF so we end up with the name of the file.
6266
mf=`echo "$mf" | sed -e 's/:.*$//'`
6267
# Check whether this is an Automake generated Makefile or not.
6268
# We used to match only the files named `Makefile.in', but
6269
# some people rename them; so instead we look at the file content.
6270
# Grep'ing the first line is not enough: some people post-process
6271
# each Makefile.in and add a new line on top of each file to say so.
6272
# So let's grep whole file.
6273
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6274
dirpart=`AS_DIRNAME("$mf")`
6278
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6279
# Extract the definition of DEP_FILES from the Makefile without
6281
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6282
test -z "$DEPDIR" && continue
6283
# When using ansi2knr, U may be empty or an underscore; expand it
6284
U=`sed -n 's/^U = //p' < "$mf"`
6285
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6286
# We invoke sed twice because it is the simplest approach to
6287
# changing $(DEPDIR) to its actual value in the expansion.
6288
for file in `sed -n '
6289
/^DEP_FILES = .*\\\\$/ {
6298
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6299
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6300
# Make sure the directory exists.
6301
test -f "$dirpart/$file" && continue
6302
fdir=`AS_DIRNAME(["$file"])`
6303
AS_MKDIR_P([$dirpart/$fdir])
6304
# echo "creating $dirpart/$file"
6305
echo '# dummy' > "$dirpart/$file"
6308
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6311
# AM_OUTPUT_DEPENDENCY_COMMANDS
6312
# -----------------------------
6313
# This macro should only be invoked once -- use via AC_REQUIRE.
6315
# This code is only required when automatic dependency tracking
6316
# is enabled. FIXME. This creates each `.P' file that we will
6317
# need in order to bootstrap the dependency handling code.
6318
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6319
[AC_CONFIG_COMMANDS([depfiles],
6320
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6321
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6324
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6326
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6328
# This program is free software; you can redistribute it and/or modify
6329
# it under the terms of the GNU General Public License as published by
6330
# the Free Software Foundation; either version 2, or (at your option)
6331
# any later version.
6333
# This program is distributed in the hope that it will be useful,
6334
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6335
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6336
# GNU General Public License for more details.
6338
# You should have received a copy of the GNU General Public License
6339
# along with this program; if not, write to the Free Software
6340
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6345
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6346
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6348
# Do all the work for Automake. -*- Autoconf -*-
6350
# This macro actually does too much some checks are only needed if
6351
# your package does certain things. But this isn't really a big deal.
6353
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6354
# Free Software Foundation, Inc.
6356
# This program is free software; you can redistribute it and/or modify
6357
# it under the terms of the GNU General Public License as published by
6358
# the Free Software Foundation; either version 2, or (at your option)
6359
# any later version.
6361
# This program is distributed in the hope that it will be useful,
6362
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6363
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6364
# GNU General Public License for more details.
6366
# You should have received a copy of the GNU General Public License
6367
# along with this program; if not, write to the Free Software
6368
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6373
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6374
# AM_INIT_AUTOMAKE([OPTIONS])
6375
# -----------------------------------------------
6376
# The call with PACKAGE and VERSION arguments is the old style
6377
# call (pre autoconf-2.50), which is being phased out. PACKAGE
6378
# and VERSION should now be passed to AC_INIT and removed from
6379
# the call to AM_INIT_AUTOMAKE.
6380
# We support both call styles for the transition. After
6381
# the next Automake release, Autoconf can make the AC_INIT
6382
# arguments mandatory, and then we can depend on a new Autoconf
6383
# release and drop the old call support.
6384
AC_DEFUN([AM_INIT_AUTOMAKE],
6385
[AC_PREREQ([2.58])dnl
6386
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6387
dnl the ones we care about.
6388
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6389
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6390
AC_REQUIRE([AC_PROG_INSTALL])dnl
6391
# test to see if srcdir already configured
6392
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6393
test -f $srcdir/config.status; then
6394
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6397
# test whether we have cygpath
6398
if test -z "$CYGPATH_W"; then
6399
if (cygpath --version) >/dev/null 2>/dev/null; then
6400
CYGPATH_W='cygpath -w'
6405
AC_SUBST([CYGPATH_W])
6407
# Define the identity of the package.
6408
dnl Distinguish between old-style and new-style calls.
6410
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6411
AC_SUBST([PACKAGE], [$1])dnl
6412
AC_SUBST([VERSION], [$2])],
6413
[_AM_SET_OPTIONS([$1])dnl
6414
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6415
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6417
_AM_IF_OPTION([no-define],,
6418
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6419
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6421
# Some tools Automake needs.
6422
AC_REQUIRE([AM_SANITY_CHECK])dnl
6423
AC_REQUIRE([AC_ARG_PROGRAM])dnl
6424
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6425
AM_MISSING_PROG(AUTOCONF, autoconf)
6426
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6427
AM_MISSING_PROG(AUTOHEADER, autoheader)
6428
AM_MISSING_PROG(MAKEINFO, makeinfo)
6429
AM_MISSING_PROG(AMTAR, tar)
6431
AM_PROG_INSTALL_STRIP
6432
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6433
# We need awk for the "check" target. The system "awk" is bad on
6435
AC_REQUIRE([AC_PROG_AWK])dnl
6436
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6437
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6439
_AM_IF_OPTION([no-dependencies],,
6440
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6441
[_AM_DEPENDENCIES(CC)],
6442
[define([AC_PROG_CC],
6443
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6444
AC_PROVIDE_IFELSE([AC_PROG_CXX],
6445
[_AM_DEPENDENCIES(CXX)],
6446
[define([AC_PROG_CXX],
6447
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6452
# When config.status generates a header, we must update the stamp-h file.
6453
# This file resides in the same directory as the config header
6454
# that is generated. The stamp files are numbered to have different names.
6456
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6457
# loop where config.status creates the headers, so we can generate
6458
# our stamp files there.
6459
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6460
[# Compute $1's index in $config_headers.
6462
for _am_header in $config_headers :; do
6467
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6470
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6472
# AM_PROG_INSTALL_SH
6473
# ------------------
6474
# Define $install_sh.
6476
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6478
# This program is free software; you can redistribute it and/or modify
6479
# it under the terms of the GNU General Public License as published by
6480
# the Free Software Foundation; either version 2, or (at your option)
6481
# any later version.
6483
# This program is distributed in the hope that it will be useful,
6484
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6485
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6486
# GNU General Public License for more details.
6488
# You should have received a copy of the GNU General Public License
6489
# along with this program; if not, write to the Free Software
6490
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6493
AC_DEFUN([AM_PROG_INSTALL_SH],
6494
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6495
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6496
AC_SUBST(install_sh)])
6499
# Copyright (C) 2003 Free Software Foundation, Inc.
6501
# This program is free software; you can redistribute it and/or modify
6502
# it under the terms of the GNU General Public License as published by
6503
# the Free Software Foundation; either version 2, or (at your option)
6504
# any later version.
6506
# This program is distributed in the hope that it will be useful,
6507
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6508
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6509
# GNU General Public License for more details.
6511
# You should have received a copy of the GNU General Public License
6512
# along with this program; if not, write to the Free Software
6513
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6518
# Check whether the underlying file-system supports filenames
6519
# with a leading dot. For instance MS-DOS doesn't.
6520
AC_DEFUN([AM_SET_LEADING_DOT],
6521
[rm -rf .tst 2>/dev/null
6522
mkdir .tst 2>/dev/null
6523
if test -d .tst; then
6528
rmdir .tst 2>/dev/null
6529
AC_SUBST([am__leading_dot])])
6531
# Check to see how 'make' treats includes. -*- Autoconf -*-
6533
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6535
# This program is free software; you can redistribute it and/or modify
6536
# it under the terms of the GNU General Public License as published by
6537
# the Free Software Foundation; either version 2, or (at your option)
6538
# any later version.
6540
# This program is distributed in the hope that it will be useful,
6541
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6542
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6543
# GNU General Public License for more details.
6545
# You should have received a copy of the GNU General Public License
6546
# along with this program; if not, write to the Free Software
6547
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6554
# Check to see how make treats includes.
6555
AC_DEFUN([AM_MAKE_INCLUDE],
6556
[am_make=${MAKE-make}
6557
cat > confinc << 'END'
6562
# If we don't find an include directive, just comment out the code.
6563
AC_MSG_CHECKING([for style of include used by $am_make])
6567
# First try GNU make style include.
6568
echo "include confinc" > confmf
6569
# We grep out `Entering directory' and `Leaving directory'
6570
# messages which can occur if `w' ends up in MAKEFLAGS.
6571
# In particular we don't look at `^make:' because GNU make might
6572
# be invoked under some other name (usually "gmake"), in which
6573
# case it prints its new name instead of `make'.
6574
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6579
# Now try BSD make style include.
6580
if test "$am__include" = "#"; then
6581
echo '.include "confinc"' > confmf
6582
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6583
am__include=.include
6588
AC_SUBST([am__include])
6589
AC_SUBST([am__quote])
6590
AC_MSG_RESULT([$_am_result])
6591
rm -f confinc confmf
6597
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6599
# This program is free software; you can redistribute it and/or modify
6600
# it under the terms of the GNU General Public License as published by
6601
# the Free Software Foundation; either version 2, or (at your option)
6602
# any later version.
6604
# This program is distributed in the hope that it will be useful,
6605
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6606
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6607
# GNU General Public License for more details.
6609
# You should have received a copy of the GNU General Public License
6610
# along with this program; if not, write to the Free Software
6611
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6616
# AM_MISSING_PROG(NAME, PROGRAM)
6617
# ------------------------------
6618
AC_DEFUN([AM_MISSING_PROG],
6619
[AC_REQUIRE([AM_MISSING_HAS_RUN])
6620
$1=${$1-"${am_missing_run}$2"}
6624
# AM_MISSING_HAS_RUN
6625
# ------------------
6626
# Define MISSING if not defined so far and test if it supports --run.
6627
# If it does, set am_missing_run to use it, otherwise, to nothing.
6628
AC_DEFUN([AM_MISSING_HAS_RUN],
6629
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6630
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6631
# Use eval to expand $SHELL
6632
if eval "$MISSING --run true"; then
6633
am_missing_run="$MISSING --run "
6636
AC_MSG_WARN([`missing' script is too old or missing])
6642
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6644
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6646
# This program is free software; you can redistribute it and/or modify
6647
# it under the terms of the GNU General Public License as published by
6648
# the Free Software Foundation; either version 2, or (at your option)
6649
# any later version.
6651
# This program is distributed in the hope that it will be useful,
6652
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6653
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6654
# GNU General Public License for more details.
6656
# You should have received a copy of the GNU General Public License
6657
# along with this program; if not, write to the Free Software
6658
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6661
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6662
# created by `make install' are always world readable, even if the
6663
# installer happens to have an overly restrictive umask (e.g. 077).
6664
# This was a mistake. There are at least two reasons why we must not
6666
# - it causes special bits like SGID to be ignored,
6667
# - it may be too restrictive (some setups expect 775 directories).
6669
# Do not use -m 0755 and let people choose whatever they expect by
6672
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6673
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6674
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6675
# concurrently, both version can detect that a/ is missing, but only
6676
# one can create it and the other will error out. Consequently we
6677
# restrict ourselves to GNU make (using the --version option ensures
6679
AC_DEFUN([AM_PROG_MKDIR_P],
6680
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6681
# Keeping the `.' argument allows $(mkdir_p) to be used without
6682
# argument. Indeed, we sometimes output rules like
6683
# $(mkdir_p) $(somedir)
6684
# where $(somedir) is conditionally defined.
6685
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6686
# expensive solution, as it forces Make to start a sub-shell.)
6687
mkdir_p='mkdir -p -- .'
6689
# On NextStep and OpenStep, the `mkdir' command does not
6690
# recognize any option. It will interpret all options as
6691
# directories to create, and then abort because `.' already
6693
for d in ./-p ./--version;
6695
test -d $d && rmdir $d
6697
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6698
if test -f "$ac_aux_dir/mkinstalldirs"; then
6699
mkdir_p='$(mkinstalldirs)'
6701
mkdir_p='$(install_sh) -d'
6704
AC_SUBST([mkdir_p])])
6706
# Helper functions for option handling. -*- Autoconf -*-
6708
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6710
# This program is free software; you can redistribute it and/or modify
6711
# it under the terms of the GNU General Public License as published by
6712
# the Free Software Foundation; either version 2, or (at your option)
6713
# any later version.
6715
# This program is distributed in the hope that it will be useful,
6716
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6717
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6718
# GNU General Public License for more details.
6720
# You should have received a copy of the GNU General Public License
6721
# along with this program; if not, write to the Free Software
6722
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6727
# _AM_MANGLE_OPTION(NAME)
6728
# -----------------------
6729
AC_DEFUN([_AM_MANGLE_OPTION],
6730
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6732
# _AM_SET_OPTION(NAME)
6733
# ------------------------------
6734
# Set option NAME. Presently that only means defining a flag for this option.
6735
AC_DEFUN([_AM_SET_OPTION],
6736
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6738
# _AM_SET_OPTIONS(OPTIONS)
6739
# ----------------------------------
6740
# OPTIONS is a space-separated list of Automake options.
6741
AC_DEFUN([_AM_SET_OPTIONS],
6742
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6744
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6745
# -------------------------------------------
6746
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6747
AC_DEFUN([_AM_IF_OPTION],
6748
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6751
# Check to make sure that the build environment is sane.
6754
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6756
# This program is free software; you can redistribute it and/or modify
6757
# it under the terms of the GNU General Public License as published by
6758
# the Free Software Foundation; either version 2, or (at your option)
6759
# any later version.
6761
# This program is distributed in the hope that it will be useful,
6762
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6763
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6764
# GNU General Public License for more details.
6766
# You should have received a copy of the GNU General Public License
6767
# along with this program; if not, write to the Free Software
6768
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6775
AC_DEFUN([AM_SANITY_CHECK],
6776
[AC_MSG_CHECKING([whether build environment is sane])
6779
echo timestamp > conftest.file
6780
# Do `set' in a subshell so we don't clobber the current shell's
6781
# arguments. Must try -L first in case configure is actually a
6782
# symlink; some systems play weird games with the mod time of symlinks
6783
# (eg FreeBSD returns the mod time of the symlink's containing
6786
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6787
if test "$[*]" = "X"; then
6789
set X `ls -t $srcdir/configure conftest.file`
6792
if test "$[*]" != "X $srcdir/configure conftest.file" \
6793
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
6795
# If neither matched, then we have a broken ls. This can happen
6796
# if, for instance, CONFIG_SHELL is bash and it inherits a
6797
# broken ls alias from the environment. This has actually
6798
# happened. Such a system could not be considered "sane".
6799
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
6800
alias in your environment])
6803
test "$[2]" = conftest.file
6809
AC_MSG_ERROR([newly created file is older than distributed files!
6810
Check your system clock])
6812
AC_MSG_RESULT(yes)])
6814
# AM_PROG_INSTALL_STRIP
6816
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6818
# This program is free software; you can redistribute it and/or modify
6819
# it under the terms of the GNU General Public License as published by
6820
# the Free Software Foundation; either version 2, or (at your option)
6821
# any later version.
6823
# This program is distributed in the hope that it will be useful,
6824
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6825
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6826
# GNU General Public License for more details.
6828
# You should have received a copy of the GNU General Public License
6829
# along with this program; if not, write to the Free Software
6830
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6833
# One issue with vendor `install' (even GNU) is that you can't
6834
# specify the program used to strip binaries. This is especially
6835
# annoying in cross-compiling environments, where the build's strip
6836
# is unlikely to handle the host's binaries.
6837
# Fortunately install-sh will honor a STRIPPROG variable, so we
6838
# always use install-sh in `make install-strip', and initialize
6839
# STRIPPROG with the value of the STRIP variable (set by the user).
6840
AC_DEFUN([AM_PROG_INSTALL_STRIP],
6841
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
6842
# Installed binaries are usually stripped using `strip' when the user
6843
# run `make install-strip'. However `strip' might not be the right
6844
# tool to use in cross-compilation environments, therefore Automake
6845
# will honor the `STRIP' environment variable to overrule this program.
6846
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
6847
if test "$cross_compiling" != no; then
6848
AC_CHECK_TOOL([STRIP], [strip], :)
6850
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6851
AC_SUBST([INSTALL_STRIP_PROGRAM])])