1
# aclocal.m4 generated automatically by aclocal 1.6 -*- Autoconf -*-
3
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
# Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
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
# When config.status generates a header, we must update the stamp-h file.
38
# This file resides in the same directory as the config header
39
# that is generated. We must strip everything past the first ":",
40
# and everything past the last "/".
44
# Like AS_DIRNAME, only do it during macro expansion
45
AC_DEFUN([_AM_DIRNAME],
46
[m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
47
m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
48
m4_if(regexp([$1], [^/.*]), -1,
50
patsubst([$1], [^\(/\).*], [\1])),
51
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
52
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
56
# The stamp files are numbered to have different names.
57
# We could number them on a directory basis, but that's additional
58
# complications, let's have a unique counter.
59
m4_define([_AM_STAMP_Count], [0])
64
# The name of the stamp file for HEADER.
66
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
67
AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
68
[:.*])))/stamp-h[]_AM_STAMP_Count])
71
# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
72
# ------------------------------------------------------------
73
# We used to try to get a real timestamp in stamp-h. But the fear is that
74
# that will cause unnecessary cvs conflicts.
75
AC_DEFUN([_AM_CONFIG_HEADER],
76
[# Add the stamp file to the list of files AC keeps track of,
77
# along with our hook.
78
AC_CONFIG_HEADERS([$1],
79
[# update the timestamp
80
echo 'timestamp for $1' >"_AM_STAMP([$1])"
86
# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
87
# --------------------------------------------------------------
88
AC_DEFUN([AM_CONFIG_HEADER],
89
[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
92
# Do all the work for Automake. -*- Autoconf -*-
94
# This macro actually does too much some checks are only needed if
95
# your package does certain things. But this isn't really a big deal.
97
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
98
# Free Software Foundation, Inc.
100
# This program is free software; you can redistribute it and/or modify
101
# it under the terms of the GNU General Public License as published by
102
# the Free Software Foundation; either version 2, or (at your option)
105
# This program is distributed in the hope that it will be useful,
106
# but WITHOUT ANY WARRANTY; without even the implied warranty of
107
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
108
# GNU General Public License for more details.
110
# You should have received a copy of the GNU General Public License
111
# along with this program; if not, write to the Free Software
112
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
117
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
118
# written in clear, in which case automake, when reading aclocal.m4,
119
# will think it sees a *use*, and therefore will trigger all it's
120
# C support machinery. Also note that it means that autoscan, seeing
121
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
126
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
127
# the ones we care about.
128
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
130
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
131
# AM_INIT_AUTOMAKE([OPTIONS])
132
# -----------------------------------------------
133
# The call with PACKAGE and VERSION arguments is the old style
134
# call (pre autoconf-2.50), which is being phased out. PACKAGE
135
# and VERSION should now be passed to AC_INIT and removed from
136
# the call to AM_INIT_AUTOMAKE.
137
# We support both call styles for the transition. After
138
# the next Automake release, Autoconf can make the AC_INIT
139
# arguments mandatory, and then we can depend on a new Autoconf
140
# release and drop the old call support.
141
AC_DEFUN([AM_INIT_AUTOMAKE],
142
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
143
AC_REQUIRE([AC_PROG_INSTALL])dnl
144
# test to see if srcdir already configured
145
if test "`cd $srcdir && pwd`" != "`pwd`" &&
146
test -f $srcdir/config.status; then
147
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
150
# Define the identity of the package.
151
dnl Distinguish between old-style and new-style calls.
153
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
154
AC_SUBST([PACKAGE], [$1])dnl
155
AC_SUBST([VERSION], [$2])],
156
[_AM_SET_OPTIONS([$1])dnl
157
AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
158
AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
160
_AM_IF_OPTION([no-define],,
161
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
162
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
164
# Some tools Automake needs.
165
AC_REQUIRE([AM_SANITY_CHECK])dnl
166
AC_REQUIRE([AC_ARG_PROGRAM])dnl
167
AM_MISSING_PROG(ACLOCAL, "aclocal-${am__api_version}")
168
AM_MISSING_PROG(AUTOCONF, autoconf)
169
AM_MISSING_PROG(AUTOMAKE, "automake-${am__api_version}")
170
AM_MISSING_PROG(AUTOHEADER, autoheader)
171
AM_MISSING_PROG(MAKEINFO, makeinfo)
172
AM_MISSING_PROG(AMTAR, tar)
174
AM_PROG_INSTALL_STRIP
175
# We need awk for the "check" target. The system "awk" is bad on
177
AC_REQUIRE([AC_PROG_AWK])dnl
178
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
180
_AM_IF_OPTION([no-dependencies],,
181
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
182
[_AM_DEPENDENCIES(CC)],
183
[define([AC_PROG_][CC],
184
defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
185
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
186
[_AM_DEPENDENCIES(CXX)],
187
[define([AC_PROG_][CXX],
188
defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
192
# Copyright 2002 Free Software Foundation, Inc.
194
# This program is free software; you can redistribute it and/or modify
195
# it under the terms of the GNU General Public License as published by
196
# the Free Software Foundation; either version 2, or (at your option)
199
# This program is distributed in the hope that it will be useful,
200
# but WITHOUT ANY WARRANTY; without even the implied warranty of
201
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
202
# GNU General Public License for more details.
204
# You should have received a copy of the GNU General Public License
205
# along with this program; if not, write to the Free Software
206
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
208
# AM_AUTOMAKE_VERSION(VERSION)
209
# ----------------------------
210
# Automake X.Y traces this macro to ensure aclocal.m4 has been
211
# generated from the m4 files accompanying Automake X.Y.
212
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
214
# AM_SET_CURRENT_AUTOMAKE_VERSION
215
# -------------------------------
216
# Call AM_AUTOMAKE_VERSION so it can be traced.
217
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
218
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
219
[AM_AUTOMAKE_VERSION([1.6])])
221
# Helper functions for option handling. -*- Autoconf -*-
223
# Copyright 2001, 2002 Free Software Foundation, Inc.
225
# This program is free software; you can redistribute it and/or modify
226
# it under the terms of the GNU General Public License as published by
227
# the Free Software Foundation; either version 2, or (at your option)
230
# This program is distributed in the hope that it will be useful,
231
# but WITHOUT ANY WARRANTY; without even the implied warranty of
232
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
233
# GNU General Public License for more details.
235
# You should have received a copy of the GNU General Public License
236
# along with this program; if not, write to the Free Software
237
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
242
# _AM_MANGLE_OPTION(NAME)
243
# -----------------------
244
AC_DEFUN([_AM_MANGLE_OPTION],
245
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
247
# _AM_SET_OPTION(NAME)
248
# ------------------------------
249
# Set option NAME. Presently that only means defining a flag for this option.
250
AC_DEFUN([_AM_SET_OPTION],
251
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
253
# _AM_SET_OPTIONS(OPTIONS)
254
# ----------------------------------
255
# OPTIONS is a space-separated list of Automake options.
256
AC_DEFUN([_AM_SET_OPTIONS],
257
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
259
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
260
# -------------------------------------------
261
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
262
AC_DEFUN([_AM_IF_OPTION],
263
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
266
# Check to make sure that the build environment is sane.
269
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
271
# This program is free software; you can redistribute it and/or modify
272
# it under the terms of the GNU General Public License as published by
273
# the Free Software Foundation; either version 2, or (at your option)
276
# This program is distributed in the hope that it will be useful,
277
# but WITHOUT ANY WARRANTY; without even the implied warranty of
278
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
279
# GNU General Public License for more details.
281
# You should have received a copy of the GNU General Public License
282
# along with this program; if not, write to the Free Software
283
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
290
AC_DEFUN([AM_SANITY_CHECK],
291
[AC_MSG_CHECKING([whether build environment is sane])
294
echo timestamp > conftest.file
295
# Do `set' in a subshell so we don't clobber the current shell's
296
# arguments. Must try -L first in case configure is actually a
297
# symlink; some systems play weird games with the mod time of symlinks
298
# (eg FreeBSD returns the mod time of the symlink's containing
301
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
302
if test "$[*]" = "X"; then
304
set X `ls -t $srcdir/configure conftest.file`
307
if test "$[*]" != "X $srcdir/configure conftest.file" \
308
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
310
# If neither matched, then we have a broken ls. This can happen
311
# if, for instance, CONFIG_SHELL is bash and it inherits a
312
# broken ls alias from the environment. This has actually
313
# happened. Such a system could not be considered "sane".
314
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
315
alias in your environment])
318
test "$[2]" = conftest.file
324
AC_MSG_ERROR([newly created file is older than distributed files!
325
Check your system clock])
332
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
334
# This program is free software; you can redistribute it and/or modify
335
# it under the terms of the GNU General Public License as published by
336
# the Free Software Foundation; either version 2, or (at your option)
339
# This program is distributed in the hope that it will be useful,
340
# but WITHOUT ANY WARRANTY; without even the implied warranty of
341
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
342
# GNU General Public License for more details.
344
# You should have received a copy of the GNU General Public License
345
# along with this program; if not, write to the Free Software
346
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
351
# AM_MISSING_PROG(NAME, PROGRAM)
352
# ------------------------------
353
AC_DEFUN([AM_MISSING_PROG],
354
[AC_REQUIRE([AM_MISSING_HAS_RUN])
355
$1=${$1-"${am_missing_run}$2"}
361
# Define MISSING if not defined so far and test if it supports --run.
362
# If it does, set am_missing_run to use it, otherwise, to nothing.
363
AC_DEFUN([AM_MISSING_HAS_RUN],
364
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
365
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
366
# Use eval to expand $SHELL
367
if eval "$MISSING --run true"; then
368
am_missing_run="$MISSING --run "
371
AC_MSG_WARN([`missing' script is too old or missing])
377
# Copyright 2001 Free Software Foundation, Inc.
379
# This program is free software; you can redistribute it and/or modify
380
# it under the terms of the GNU General Public License as published by
381
# the Free Software Foundation; either version 2, or (at your option)
384
# This program is distributed in the hope that it will be useful,
385
# but WITHOUT ANY WARRANTY; without even the implied warranty of
386
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
387
# GNU General Public License for more details.
389
# You should have received a copy of the GNU General Public License
390
# along with this program; if not, write to the Free Software
391
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
394
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
395
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
396
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
398
# Of course, Automake must honor this variable whenever it calls a
399
# tool from the auxiliary directory. The problem is that $srcdir (and
400
# therefore $ac_aux_dir as well) can be either absolute or relative,
401
# depending on how configure is run. This is pretty annoying, since
402
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
403
# source directory, any form will work fine, but in subdirectories a
404
# relative path needs to be adjusted first.
406
# $ac_aux_dir/missing
407
# fails when called from a subdirectory if $ac_aux_dir is relative
408
# $top_srcdir/$ac_aux_dir/missing
409
# fails if $ac_aux_dir is absolute,
410
# fails when called from a subdirectory in a VPATH build with
411
# a relative $ac_aux_dir
413
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
414
# are both prefixed by $srcdir. In an in-source build this is usually
415
# harmless because $srcdir is `.', but things will broke when you
416
# start a VPATH build or use an absolute $srcdir.
418
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
419
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
420
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
421
# and then we would define $MISSING as
422
# MISSING="\${SHELL} $am_aux_dir/missing"
423
# This will work as long as MISSING is not called from configure, because
424
# unfortunately $(top_srcdir) has no meaning in configure.
425
# However there are other variables, like CC, which are often used in
426
# configure, and could therefore not use this "fixed" $ac_aux_dir.
428
# Another solution, used here, is to always expand $ac_aux_dir to an
429
# absolute PATH. The drawback is that using absolute paths prevent a
430
# configured tree to be moved without reconfiguration.
432
# Rely on autoconf to set up CDPATH properly.
435
AC_DEFUN([AM_AUX_DIR_EXPAND], [
436
# expand $ac_aux_dir to an absolute path
437
am_aux_dir=`cd $ac_aux_dir && pwd`
442
# Define $install_sh.
444
# Copyright 2001 Free Software Foundation, Inc.
446
# This program is free software; you can redistribute it and/or modify
447
# it under the terms of the GNU General Public License as published by
448
# the Free Software Foundation; either version 2, or (at your option)
451
# This program is distributed in the hope that it will be useful,
452
# but WITHOUT ANY WARRANTY; without even the implied warranty of
453
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
454
# GNU General Public License for more details.
456
# You should have received a copy of the GNU General Public License
457
# along with this program; if not, write to the Free Software
458
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461
AC_DEFUN([AM_PROG_INSTALL_SH],
462
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
463
install_sh=${install_sh-"$am_aux_dir/install-sh"}
464
AC_SUBST(install_sh)])
466
# AM_PROG_INSTALL_STRIP
468
# Copyright 2001 Free Software Foundation, Inc.
470
# This program is free software; you can redistribute it and/or modify
471
# it under the terms of the GNU General Public License as published by
472
# the Free Software Foundation; either version 2, or (at your option)
475
# This program is distributed in the hope that it will be useful,
476
# but WITHOUT ANY WARRANTY; without even the implied warranty of
477
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
478
# GNU General Public License for more details.
480
# You should have received a copy of the GNU General Public License
481
# along with this program; if not, write to the Free Software
482
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
485
# One issue with vendor `install' (even GNU) is that you can't
486
# specify the program used to strip binaries. This is especially
487
# annoying in cross-compiling environments, where the build's strip
488
# is unlikely to handle the host's binaries.
489
# Fortunately install-sh will honor a STRIPPROG variable, so we
490
# always use install-sh in `make install-strip', and initialize
491
# STRIPPROG with the value of the STRIP variable (set by the user).
492
AC_DEFUN([AM_PROG_INSTALL_STRIP],
493
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
494
# Installed binaries are usually stripped using `strip' when the user
495
# run `make install-strip'. However `strip' might not be the right
496
# tool to use in cross-compilation environments, therefore Automake
497
# will honor the `STRIP' environment variable to overrule this program.
498
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
499
if test "$cross_compiling" != no; then
500
AC_CHECK_TOOL([STRIP], [strip], :)
502
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
503
AC_SUBST([INSTALL_STRIP_PROGRAM])])
505
# serial 4 -*- Autoconf -*-
507
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
509
# This program is free software; you can redistribute it and/or modify
510
# it under the terms of the GNU General Public License as published by
511
# the Free Software Foundation; either version 2, or (at your option)
514
# This program is distributed in the hope that it will be useful,
515
# but WITHOUT ANY WARRANTY; without even the implied warranty of
516
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
517
# GNU General Public License for more details.
519
# You should have received a copy of the GNU General Public License
520
# along with this program; if not, write to the Free Software
521
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
525
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
526
# written in clear, in which case automake, when reading aclocal.m4,
527
# will think it sees a *use*, and therefore will trigger all it's
528
# C support machinery. Also note that it means that autoscan, seeing
529
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
533
# _AM_DEPENDENCIES(NAME)
534
# ----------------------
535
# See how the compiler implements dependency checking.
536
# NAME is "CC", "CXX", "GCJ", or "OBJC".
537
# We try a few techniques and use that to set a single cache variable.
539
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
540
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
541
# dependency, and given that the user is not expected to run this macro,
542
# just rely on AC_PROG_CC.
543
AC_DEFUN([_AM_DEPENDENCIES],
544
[AC_REQUIRE([AM_SET_DEPDIR])dnl
545
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
546
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
547
AC_REQUIRE([AM_DEP_TRACK])dnl
549
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
550
[$1], CXX, [depcc="$CXX" am_compiler_list=],
551
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
552
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
553
[depcc="$$1" am_compiler_list=])
555
AC_CACHE_CHECK([dependency style of $depcc],
556
[am_cv_$1_dependencies_compiler_type],
557
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
558
# We make a subdir and do the tests there. Otherwise we can end up
559
# making bogus files that we don't know about and never remove. For
560
# instance it was reported that on HP-UX the gcc test will end up
561
# making a dummy file named `D' -- because `-MD' means `put the output
564
# Copy depcomp to subdir because otherwise we won't find it if we're
565
# using a relative directory.
566
cp "$am_depcomp" conftest.dir
569
am_cv_$1_dependencies_compiler_type=none
570
if test "$am_compiler_list" = ""; then
571
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
573
for depmode in $am_compiler_list; do
574
# We need to recreate these files for each test, as the compiler may
575
# overwrite some of them when testing with obscure command lines.
576
# This happens at least with the AIX C compiler.
577
echo '#include "conftest.h"' > conftest.c
578
echo 'int i;' > conftest.h
579
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
583
# after this tag, mechanisms are not by side-effect, so they'll
584
# only be used when explicitly requested
585
if test "x$enable_dependency_tracking" = xyes; then
593
# We check with `-c' and `-o' for the sake of the "dashmstdout"
594
# mode. It turns out that the SunPro C++ compiler does not properly
595
# handle `-M -o', and we need to detect this.
596
if depmode=$depmode \
597
source=conftest.c object=conftest.o \
598
depfile=conftest.Po tmpdepfile=conftest.TPo \
599
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
600
grep conftest.h conftest.Po > /dev/null 2>&1 &&
601
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
602
am_cv_$1_dependencies_compiler_type=$depmode
610
am_cv_$1_dependencies_compiler_type=none
613
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
619
# Choose a directory name for dependency files.
620
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
621
AC_DEFUN([AM_SET_DEPDIR],
622
[rm -f .deps 2>/dev/null
623
mkdir .deps 2>/dev/null
624
if test -d .deps; then
627
# MS-DOS does not allow filenames that begin with a dot.
630
rmdir .deps 2>/dev/null
637
AC_DEFUN([AM_DEP_TRACK],
638
[AC_ARG_ENABLE(dependency-tracking,
639
[ --disable-dependency-tracking Speeds up one-time builds
640
--enable-dependency-tracking Do not reject slow dependency extractors])
641
if test "x$enable_dependency_tracking" != xno; then
642
am_depcomp="$ac_aux_dir/depcomp"
645
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
646
AC_SUBST([AMDEPBACKSLASH])
649
# Generate code to set up dependency tracking. -*- Autoconf -*-
651
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
653
# This program is free software; you can redistribute it and/or modify
654
# it under the terms of the GNU General Public License as published by
655
# the Free Software Foundation; either version 2, or (at your option)
658
# This program is distributed in the hope that it will be useful,
659
# but WITHOUT ANY WARRANTY; without even the implied warranty of
660
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
661
# GNU General Public License for more details.
663
# You should have received a copy of the GNU General Public License
664
# along with this program; if not, write to the Free Software
665
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
670
# _AM_OUTPUT_DEPENDENCY_COMMANDS
671
# ------------------------------
672
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
673
[for mf in $CONFIG_FILES; do
674
# Strip MF so we end up with the name of the file.
675
mf=`echo "$mf" | sed -e 's/:.*$//'`
676
if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
677
dirpart=`AS_DIRNAME("$mf")`
681
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
682
# Extract the definition of DEP_FILES from the Makefile without
684
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
685
test -z "$DEPDIR" && continue
686
# When using ansi2knr, U may be empty or an underscore; expand it
687
U=`sed -n -e '/^U = / s///p' < "$mf"`
688
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
689
# We invoke sed twice because it is the simplest approach to
690
# changing $(DEPDIR) to its actual value in the expansion.
691
for file in `sed -n -e '
692
/^DEP_FILES = .*\\\\$/ {
701
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
702
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
703
# Make sure the directory exists.
704
test -f "$dirpart/$file" && continue
705
fdir=`AS_DIRNAME(["$file"])`
706
AS_MKDIR_P([$dirpart/$fdir])
707
# echo "creating $dirpart/$file"
708
echo '# dummy' > "$dirpart/$file"
711
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
714
# AM_OUTPUT_DEPENDENCY_COMMANDS
715
# -----------------------------
716
# This macro should only be invoked once -- use via AC_REQUIRE.
718
# This code is only required when automatic dependency tracking
719
# is enabled. FIXME. This creates each `.P' file that we will
720
# need in order to bootstrap the dependency handling code.
721
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
722
[AC_CONFIG_COMMANDS([depfiles],
723
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
724
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
727
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
729
# This program is free software; you can redistribute it and/or modify
730
# it under the terms of the GNU General Public License as published by
731
# the Free Software Foundation; either version 2, or (at your option)
734
# This program is distributed in the hope that it will be useful,
735
# but WITHOUT ANY WARRANTY; without even the implied warranty of
736
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
737
# GNU General Public License for more details.
739
# You should have received a copy of the GNU General Public License
740
# along with this program; if not, write to the Free Software
741
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
748
# Check to see how make treats includes.
749
AC_DEFUN([AM_MAKE_INCLUDE],
750
[am_make=${MAKE-make}
751
cat > confinc << 'END'
755
# If we don't find an include directive, just comment out the code.
756
AC_MSG_CHECKING([for style of include used by $am_make])
760
# First try GNU make style include.
761
echo "include confinc" > confmf
762
# We grep out `Entering directory' and `Leaving directory'
763
# messages which can occur if `w' ends up in MAKEFLAGS.
764
# In particular we don't look at `^make:' because GNU make might
765
# be invoked under some other name (usually "gmake"), in which
766
# case it prints its new name instead of `make'.
767
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
772
# Now try BSD make style include.
773
if test "$am__include" = "#"; then
774
echo '.include "confinc"' > confmf
775
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
781
AC_SUBST(am__include)
783
AC_MSG_RESULT($_am_result)
787
# AM_CONDITIONAL -*- Autoconf -*-
789
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
791
# This program is free software; you can redistribute it and/or modify
792
# it under the terms of the GNU General Public License as published by
793
# the Free Software Foundation; either version 2, or (at your option)
796
# This program is distributed in the hope that it will be useful,
797
# but WITHOUT ANY WARRANTY; without even the implied warranty of
798
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
799
# GNU General Public License for more details.
801
# You should have received a copy of the GNU General Public License
802
# along with this program; if not, write to the Free Software
803
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
810
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
811
# -------------------------------------
812
# Define a conditional.
813
AC_DEFUN([AM_CONDITIONAL],
814
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
815
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
825
AC_CONFIG_COMMANDS_PRE(
826
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
827
AC_MSG_ERROR([conditional \"$1\" was never defined.
828
Usually this means the macro was only invoked conditionally.])
831
# Add --enable-maintainer-mode option to configure.
834
# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
836
# This program is free software; you can redistribute it and/or modify
837
# it under the terms of the GNU General Public License as published by
838
# the Free Software Foundation; either version 2, or (at your option)
841
# This program is distributed in the hope that it will be useful,
842
# but WITHOUT ANY WARRANTY; without even the implied warranty of
843
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
844
# GNU General Public License for more details.
846
# You should have received a copy of the GNU General Public License
847
# along with this program; if not, write to the Free Software
848
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
853
AC_DEFUN([AM_MAINTAINER_MODE],
854
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
855
dnl maintainer-mode is disabled by default
856
AC_ARG_ENABLE(maintainer-mode,
857
[ --enable-maintainer-mode enable make rules and dependencies not useful
858
(and sometimes confusing) to the casual installer],
859
USE_MAINTAINER_MODE=$enableval,
860
USE_MAINTAINER_MODE=no)
861
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
862
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
863
MAINT=$MAINTAINER_MODE_TRUE