1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- 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 m4_define([AH_LCLINT_TEMPLATE],
16 m4_text_wrap([$2 */], [ ], [/* ])
17 m4_text_wrap([$3@*/], [ ], [/*@])[
20 m4_define([AC_DEFINE_LCLINT],
21 [AC_DEFINE_TRACE([$1])dnl
22 AH_LCLINT_TEMPLATE([$1], [$3], [$4])dnl
23 cat >>confdefs.h <<\_ACEOF
28 # Do all the work for Automake. -*- Autoconf -*-
30 # This macro actually does too much some checks are only needed if
31 # your package does certain things. But this isn't really a big deal.
33 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
34 # Free Software Foundation, Inc.
36 # This program is free software; you can redistribute it and/or modify
37 # it under the terms of the GNU General Public License as published by
38 # the Free Software Foundation; either version 2, or (at your option)
41 # This program is distributed in the hope that it will be useful,
42 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 # GNU General Public License for more details.
46 # You should have received a copy of the GNU General Public License
47 # along with this program; if not, write to the Free Software
48 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
53 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
54 # written in clear, in which case automake, when reading aclocal.m4,
55 # will think it sees a *use*, and therefore will trigger all it's
56 # C support machinery. Also note that it means that autoscan, seeing
57 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
62 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
63 # the ones we care about.
64 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
66 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
67 # AM_INIT_AUTOMAKE([OPTIONS])
68 # -----------------------------------------------
69 # The call with PACKAGE and VERSION arguments is the old style
70 # call (pre autoconf-2.50), which is being phased out. PACKAGE
71 # and VERSION should now be passed to AC_INIT and removed from
72 # the call to AM_INIT_AUTOMAKE.
73 # We support both call styles for the transition. After
74 # the next Automake release, Autoconf can make the AC_INIT
75 # arguments mandatory, and then we can depend on a new Autoconf
76 # release and drop the old call support.
77 AC_DEFUN([AM_INIT_AUTOMAKE],
78 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
79 AC_REQUIRE([AC_PROG_INSTALL])dnl
80 # test to see if srcdir already configured
81 if test "`cd $srcdir && pwd`" != "`pwd`" &&
82 test -f $srcdir/config.status; then
83 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
86 # Define the identity of the package.
87 dnl Distinguish between old-style and new-style calls.
89 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
90 AC_SUBST([PACKAGE], [$1])dnl
91 AC_SUBST([VERSION], [$2])],
92 [_AM_SET_OPTIONS([$1])dnl
93 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
94 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
96 _AM_IF_OPTION([no-define],,
97 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
98 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
100 # Some tools Automake needs.
101 AC_REQUIRE([AM_SANITY_CHECK])dnl
102 AC_REQUIRE([AC_ARG_PROGRAM])dnl
103 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
104 AM_MISSING_PROG(AUTOCONF, autoconf)
105 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
106 AM_MISSING_PROG(AUTOHEADER, autoheader)
107 AM_MISSING_PROG(MAKEINFO, makeinfo)
108 AM_MISSING_PROG(AMTAR, tar)
110 AM_PROG_INSTALL_STRIP
111 # We need awk for the "check" target. The system "awk" is bad on
113 AC_REQUIRE([AC_PROG_AWK])dnl
114 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
116 _AM_IF_OPTION([no-dependencies],,
117 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
118 [_AM_DEPENDENCIES(CC)],
119 [define([AC_PROG_][CC],
120 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
121 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
122 [_AM_DEPENDENCIES(CXX)],
123 [define([AC_PROG_][CXX],
124 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
128 # Copyright 2002 Free Software Foundation, Inc.
130 # This program is free software; you can redistribute it and/or modify
131 # it under the terms of the GNU General Public License as published by
132 # the Free Software Foundation; either version 2, or (at your option)
135 # This program is distributed in the hope that it will be useful,
136 # but WITHOUT ANY WARRANTY; without even the implied warranty of
137 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
138 # GNU General Public License for more details.
140 # You should have received a copy of the GNU General Public License
141 # along with this program; if not, write to the Free Software
142 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
144 # AM_AUTOMAKE_VERSION(VERSION)
145 # ----------------------------
146 # Automake X.Y traces this macro to ensure aclocal.m4 has been
147 # generated from the m4 files accompanying Automake X.Y.
148 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
150 # AM_SET_CURRENT_AUTOMAKE_VERSION
151 # -------------------------------
152 # Call AM_AUTOMAKE_VERSION so it can be traced.
153 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
154 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
155 [AM_AUTOMAKE_VERSION([1.6.3])])
157 # Helper functions for option handling. -*- Autoconf -*-
159 # Copyright 2001, 2002 Free Software Foundation, Inc.
161 # This program is free software; you can redistribute it and/or modify
162 # it under the terms of the GNU General Public License as published by
163 # the Free Software Foundation; either version 2, or (at your option)
166 # This program is distributed in the hope that it will be useful,
167 # but WITHOUT ANY WARRANTY; without even the implied warranty of
168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
169 # GNU General Public License for more details.
171 # You should have received a copy of the GNU General Public License
172 # along with this program; if not, write to the Free Software
173 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
178 # _AM_MANGLE_OPTION(NAME)
179 # -----------------------
180 AC_DEFUN([_AM_MANGLE_OPTION],
181 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
183 # _AM_SET_OPTION(NAME)
184 # ------------------------------
185 # Set option NAME. Presently that only means defining a flag for this option.
186 AC_DEFUN([_AM_SET_OPTION],
187 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
189 # _AM_SET_OPTIONS(OPTIONS)
190 # ----------------------------------
191 # OPTIONS is a space-separated list of Automake options.
192 AC_DEFUN([_AM_SET_OPTIONS],
193 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
195 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
196 # -------------------------------------------
197 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
198 AC_DEFUN([_AM_IF_OPTION],
199 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
202 # Check to make sure that the build environment is sane.
205 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
207 # This program is free software; you can redistribute it and/or modify
208 # it under the terms of the GNU General Public License as published by
209 # the Free Software Foundation; either version 2, or (at your option)
212 # This program is distributed in the hope that it will be useful,
213 # but WITHOUT ANY WARRANTY; without even the implied warranty of
214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
215 # GNU General Public License for more details.
217 # You should have received a copy of the GNU General Public License
218 # along with this program; if not, write to the Free Software
219 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
226 AC_DEFUN([AM_SANITY_CHECK],
227 [AC_MSG_CHECKING([whether build environment is sane])
230 echo timestamp > conftest.file
231 # Do `set' in a subshell so we don't clobber the current shell's
232 # arguments. Must try -L first in case configure is actually a
233 # symlink; some systems play weird games with the mod time of symlinks
234 # (eg FreeBSD returns the mod time of the symlink's containing
237 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
238 if test "$[*]" = "X"; then
240 set X `ls -t $srcdir/configure conftest.file`
243 if test "$[*]" != "X $srcdir/configure conftest.file" \
244 && test "$[*]" != "X conftest.file $srcdir/configure"; then
246 # If neither matched, then we have a broken ls. This can happen
247 # if, for instance, CONFIG_SHELL is bash and it inherits a
248 # broken ls alias from the environment. This has actually
249 # happened. Such a system could not be considered "sane".
250 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
251 alias in your environment])
254 test "$[2]" = conftest.file
260 AC_MSG_ERROR([newly created file is older than distributed files!
261 Check your system clock])
268 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
270 # This program is free software; you can redistribute it and/or modify
271 # it under the terms of the GNU General Public License as published by
272 # the Free Software Foundation; either version 2, or (at your option)
275 # This program is distributed in the hope that it will be useful,
276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
278 # GNU General Public License for more details.
280 # You should have received a copy of the GNU General Public License
281 # along with this program; if not, write to the Free Software
282 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
287 # AM_MISSING_PROG(NAME, PROGRAM)
288 # ------------------------------
289 AC_DEFUN([AM_MISSING_PROG],
290 [AC_REQUIRE([AM_MISSING_HAS_RUN])
291 $1=${$1-"${am_missing_run}$2"}
297 # Define MISSING if not defined so far and test if it supports --run.
298 # If it does, set am_missing_run to use it, otherwise, to nothing.
299 AC_DEFUN([AM_MISSING_HAS_RUN],
300 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
301 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
302 # Use eval to expand $SHELL
303 if eval "$MISSING --run true"; then
304 am_missing_run="$MISSING --run "
307 AC_MSG_WARN([`missing' script is too old or missing])
313 # Copyright 2001 Free Software Foundation, Inc.
315 # This program is free software; you can redistribute it and/or modify
316 # it under the terms of the GNU General Public License as published by
317 # the Free Software Foundation; either version 2, or (at your option)
320 # This program is distributed in the hope that it will be useful,
321 # but WITHOUT ANY WARRANTY; without even the implied warranty of
322 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
323 # GNU General Public License for more details.
325 # You should have received a copy of the GNU General Public License
326 # along with this program; if not, write to the Free Software
327 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
330 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
331 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
332 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
334 # Of course, Automake must honor this variable whenever it calls a
335 # tool from the auxiliary directory. The problem is that $srcdir (and
336 # therefore $ac_aux_dir as well) can be either absolute or relative,
337 # depending on how configure is run. This is pretty annoying, since
338 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
339 # source directory, any form will work fine, but in subdirectories a
340 # relative path needs to be adjusted first.
342 # $ac_aux_dir/missing
343 # fails when called from a subdirectory if $ac_aux_dir is relative
344 # $top_srcdir/$ac_aux_dir/missing
345 # fails if $ac_aux_dir is absolute,
346 # fails when called from a subdirectory in a VPATH build with
347 # a relative $ac_aux_dir
349 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
350 # are both prefixed by $srcdir. In an in-source build this is usually
351 # harmless because $srcdir is `.', but things will broke when you
352 # start a VPATH build or use an absolute $srcdir.
354 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
355 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
356 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
357 # and then we would define $MISSING as
358 # MISSING="\${SHELL} $am_aux_dir/missing"
359 # This will work as long as MISSING is not called from configure, because
360 # unfortunately $(top_srcdir) has no meaning in configure.
361 # However there are other variables, like CC, which are often used in
362 # configure, and could therefore not use this "fixed" $ac_aux_dir.
364 # Another solution, used here, is to always expand $ac_aux_dir to an
365 # absolute PATH. The drawback is that using absolute paths prevent a
366 # configured tree to be moved without reconfiguration.
368 # Rely on autoconf to set up CDPATH properly.
371 AC_DEFUN([AM_AUX_DIR_EXPAND], [
372 # expand $ac_aux_dir to an absolute path
373 am_aux_dir=`cd $ac_aux_dir && pwd`
378 # Define $install_sh.
380 # Copyright 2001 Free Software Foundation, Inc.
382 # This program is free software; you can redistribute it and/or modify
383 # it under the terms of the GNU General Public License as published by
384 # the Free Software Foundation; either version 2, or (at your option)
387 # This program is distributed in the hope that it will be useful,
388 # but WITHOUT ANY WARRANTY; without even the implied warranty of
389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
390 # GNU General Public License for more details.
392 # You should have received a copy of the GNU General Public License
393 # along with this program; if not, write to the Free Software
394 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
397 AC_DEFUN([AM_PROG_INSTALL_SH],
398 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
399 install_sh=${install_sh-"$am_aux_dir/install-sh"}
400 AC_SUBST(install_sh)])
402 # AM_PROG_INSTALL_STRIP
404 # Copyright 2001 Free Software Foundation, Inc.
406 # This program is free software; you can redistribute it and/or modify
407 # it under the terms of the GNU General Public License as published by
408 # the Free Software Foundation; either version 2, or (at your option)
411 # This program is distributed in the hope that it will be useful,
412 # but WITHOUT ANY WARRANTY; without even the implied warranty of
413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
414 # GNU General Public License for more details.
416 # You should have received a copy of the GNU General Public License
417 # along with this program; if not, write to the Free Software
418 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
421 # One issue with vendor `install' (even GNU) is that you can't
422 # specify the program used to strip binaries. This is especially
423 # annoying in cross-compiling environments, where the build's strip
424 # is unlikely to handle the host's binaries.
425 # Fortunately install-sh will honor a STRIPPROG variable, so we
426 # always use install-sh in `make install-strip', and initialize
427 # STRIPPROG with the value of the STRIP variable (set by the user).
428 AC_DEFUN([AM_PROG_INSTALL_STRIP],
429 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
430 # Installed binaries are usually stripped using `strip' when the user
431 # run `make install-strip'. However `strip' might not be the right
432 # tool to use in cross-compilation environments, therefore Automake
433 # will honor the `STRIP' environment variable to overrule this program.
434 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
435 if test "$cross_compiling" != no; then
436 AC_CHECK_TOOL([STRIP], [strip], :)
438 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
439 AC_SUBST([INSTALL_STRIP_PROGRAM])])
441 # serial 4 -*- Autoconf -*-
443 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
445 # This program is free software; you can redistribute it and/or modify
446 # it under the terms of the GNU General Public License as published by
447 # the Free Software Foundation; either version 2, or (at your option)
450 # This program is distributed in the hope that it will be useful,
451 # but WITHOUT ANY WARRANTY; without even the implied warranty of
452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
453 # GNU General Public License for more details.
455 # You should have received a copy of the GNU General Public License
456 # along with this program; if not, write to the Free Software
457 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
462 # written in clear, in which case automake, when reading aclocal.m4,
463 # will think it sees a *use*, and therefore will trigger all it's
464 # C support machinery. Also note that it means that autoscan, seeing
465 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
469 # _AM_DEPENDENCIES(NAME)
470 # ----------------------
471 # See how the compiler implements dependency checking.
472 # NAME is "CC", "CXX", "GCJ", or "OBJC".
473 # We try a few techniques and use that to set a single cache variable.
475 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
476 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
477 # dependency, and given that the user is not expected to run this macro,
478 # just rely on AC_PROG_CC.
479 AC_DEFUN([_AM_DEPENDENCIES],
480 [AC_REQUIRE([AM_SET_DEPDIR])dnl
481 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
482 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
483 AC_REQUIRE([AM_DEP_TRACK])dnl
485 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
486 [$1], CXX, [depcc="$CXX" am_compiler_list=],
487 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
488 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
489 [depcc="$$1" am_compiler_list=])
491 AC_CACHE_CHECK([dependency style of $depcc],
492 [am_cv_$1_dependencies_compiler_type],
493 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
494 # We make a subdir and do the tests there. Otherwise we can end up
495 # making bogus files that we don't know about and never remove. For
496 # instance it was reported that on HP-UX the gcc test will end up
497 # making a dummy file named `D' -- because `-MD' means `put the output
500 # Copy depcomp to subdir because otherwise we won't find it if we're
501 # using a relative directory.
502 cp "$am_depcomp" conftest.dir
505 am_cv_$1_dependencies_compiler_type=none
506 if test "$am_compiler_list" = ""; then
507 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
509 for depmode in $am_compiler_list; do
510 # We need to recreate these files for each test, as the compiler may
511 # overwrite some of them when testing with obscure command lines.
512 # This happens at least with the AIX C compiler.
513 echo '#include "conftest.h"' > conftest.c
514 echo 'int i;' > conftest.h
515 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
519 # after this tag, mechanisms are not by side-effect, so they'll
520 # only be used when explicitly requested
521 if test "x$enable_dependency_tracking" = xyes; then
529 # We check with `-c' and `-o' for the sake of the "dashmstdout"
530 # mode. It turns out that the SunPro C++ compiler does not properly
531 # handle `-M -o', and we need to detect this.
532 if depmode=$depmode \
533 source=conftest.c object=conftest.o \
534 depfile=conftest.Po tmpdepfile=conftest.TPo \
535 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
536 grep conftest.h conftest.Po > /dev/null 2>&1 &&
537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
538 am_cv_$1_dependencies_compiler_type=$depmode
546 am_cv_$1_dependencies_compiler_type=none
549 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
555 # Choose a directory name for dependency files.
556 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
557 AC_DEFUN([AM_SET_DEPDIR],
558 [rm -f .deps 2>/dev/null
559 mkdir .deps 2>/dev/null
560 if test -d .deps; then
563 # MS-DOS does not allow filenames that begin with a dot.
566 rmdir .deps 2>/dev/null
573 AC_DEFUN([AM_DEP_TRACK],
574 [AC_ARG_ENABLE(dependency-tracking,
575 [ --disable-dependency-tracking Speeds up one-time builds
576 --enable-dependency-tracking Do not reject slow dependency extractors])
577 if test "x$enable_dependency_tracking" != xno; then
578 am_depcomp="$ac_aux_dir/depcomp"
581 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
582 AC_SUBST([AMDEPBACKSLASH])
585 # Generate code to set up dependency tracking. -*- Autoconf -*-
587 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
589 # This program is free software; you can redistribute it and/or modify
590 # it under the terms of the GNU General Public License as published by
591 # the Free Software Foundation; either version 2, or (at your option)
594 # This program is distributed in the hope that it will be useful,
595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
597 # GNU General Public License for more details.
599 # You should have received a copy of the GNU General Public License
600 # along with this program; if not, write to the Free Software
601 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
606 # _AM_OUTPUT_DEPENDENCY_COMMANDS
607 # ------------------------------
608 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
609 [for mf in $CONFIG_FILES; do
610 # Strip MF so we end up with the name of the file.
611 mf=`echo "$mf" | sed -e 's/:.*$//'`
612 # Check whether this is an Automake generated Makefile or not.
613 # We used to match only the files named `Makefile.in', but
614 # some people rename them; so instead we look at the file content.
615 # Grep'ing the first line is not enough: some people post-process
616 # each Makefile.in and add a new line on top of each file to say so.
617 # So let's grep whole file.
618 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
619 dirpart=`AS_DIRNAME("$mf")`
623 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
624 # Extract the definition of DEP_FILES from the Makefile without
626 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
627 test -z "$DEPDIR" && continue
628 # When using ansi2knr, U may be empty or an underscore; expand it
629 U=`sed -n -e '/^U = / s///p' < "$mf"`
630 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
631 # We invoke sed twice because it is the simplest approach to
632 # changing $(DEPDIR) to its actual value in the expansion.
633 for file in `sed -n -e '
634 /^DEP_FILES = .*\\\\$/ {
643 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
644 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
645 # Make sure the directory exists.
646 test -f "$dirpart/$file" && continue
647 fdir=`AS_DIRNAME(["$file"])`
648 AS_MKDIR_P([$dirpart/$fdir])
649 # echo "creating $dirpart/$file"
650 echo '# dummy' > "$dirpart/$file"
653 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
656 # AM_OUTPUT_DEPENDENCY_COMMANDS
657 # -----------------------------
658 # This macro should only be invoked once -- use via AC_REQUIRE.
660 # This code is only required when automatic dependency tracking
661 # is enabled. FIXME. This creates each `.P' file that we will
662 # need in order to bootstrap the dependency handling code.
663 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
664 [AC_CONFIG_COMMANDS([depfiles],
665 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
666 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
669 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
671 # This program is free software; you can redistribute it and/or modify
672 # it under the terms of the GNU General Public License as published by
673 # the Free Software Foundation; either version 2, or (at your option)
676 # This program is distributed in the hope that it will be useful,
677 # but WITHOUT ANY WARRANTY; without even the implied warranty of
678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
679 # GNU General Public License for more details.
681 # You should have received a copy of the GNU General Public License
682 # along with this program; if not, write to the Free Software
683 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
690 # Check to see how make treats includes.
691 AC_DEFUN([AM_MAKE_INCLUDE],
692 [am_make=${MAKE-make}
693 cat > confinc << 'END'
697 # If we don't find an include directive, just comment out the code.
698 AC_MSG_CHECKING([for style of include used by $am_make])
702 # First try GNU make style include.
703 echo "include confinc" > confmf
704 # We grep out `Entering directory' and `Leaving directory'
705 # messages which can occur if `w' ends up in MAKEFLAGS.
706 # In particular we don't look at `^make:' because GNU make might
707 # be invoked under some other name (usually "gmake"), in which
708 # case it prints its new name instead of `make'.
709 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
714 # Now try BSD make style include.
715 if test "$am__include" = "#"; then
716 echo '.include "confinc"' > confmf
717 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
723 AC_SUBST(am__include)
725 AC_MSG_RESULT($_am_result)
729 # AM_CONDITIONAL -*- Autoconf -*-
731 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
733 # This program is free software; you can redistribute it and/or modify
734 # it under the terms of the GNU General Public License as published by
735 # the Free Software Foundation; either version 2, or (at your option)
738 # This program is distributed in the hope that it will be useful,
739 # but WITHOUT ANY WARRANTY; without even the implied warranty of
740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
741 # GNU General Public License for more details.
743 # You should have received a copy of the GNU General Public License
744 # along with this program; if not, write to the Free Software
745 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
752 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
753 # -------------------------------------
754 # Define a conditional.
755 AC_DEFUN([AM_CONDITIONAL],
756 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
757 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
767 AC_CONFIG_COMMANDS_PRE(
768 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
769 AC_MSG_ERROR([conditional \"$1\" was never defined.
770 Usually this means the macro was only invoked conditionally.])
773 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
775 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
777 # This program is free software; you can redistribute it and/or modify
778 # it under the terms of the GNU General Public License as published by
779 # the Free Software Foundation; either version 2, or (at your option)
782 # This program is distributed in the hope that it will be useful,
783 # but WITHOUT ANY WARRANTY; without even the implied warranty of
784 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
785 # GNU General Public License for more details.
787 # You should have received a copy of the GNU General Public License
788 # along with this program; if not, write to the Free Software
789 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
796 # When config.status generates a header, we must update the stamp-h file.
797 # This file resides in the same directory as the config header
798 # that is generated. We must strip everything past the first ":",
799 # and everything past the last "/".
803 # Like AS_DIRNAME, only do it during macro expansion
804 AC_DEFUN([_AM_DIRNAME],
805 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
806 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
807 m4_if(regexp([$1], [^/.*]), -1,
809 patsubst([$1], [^\(/\).*], [\1])),
810 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
811 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
815 # The stamp files are numbered to have different names.
816 # We could number them on a directory basis, but that's additional
817 # complications, let's have a unique counter.
818 m4_define([_AM_STAMP_Count], [0])
823 # The name of the stamp file for HEADER.
824 AC_DEFUN([_AM_STAMP],
825 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
826 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
827 [:.*])))/stamp-h[]_AM_STAMP_Count])
830 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
831 # ------------------------------------------------------------
832 # We used to try to get a real timestamp in stamp-h. But the fear is that
833 # that will cause unnecessary cvs conflicts.
834 AC_DEFUN([_AM_CONFIG_HEADER],
835 [# Add the stamp file to the list of files AC keeps track of,
836 # along with our hook.
837 AC_CONFIG_HEADERS([$1],
838 [# update the timestamp
839 echo 'timestamp for $1' >"_AM_STAMP([$1])"
842 ])# _AM_CONFIG_HEADER
845 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
846 # --------------------------------------------------------------
847 AC_DEFUN([AM_CONFIG_HEADER],
848 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
852 # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
854 # This program is free software; you can redistribute it and/or modify
855 # it under the terms of the GNU General Public License as published by
856 # the Free Software Foundation; either version 2, or (at your option)
859 # This program is distributed in the hope that it will be useful,
860 # but WITHOUT ANY WARRANTY; without even the implied warranty of
861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
862 # GNU General Public License for more details.
864 # You should have received a copy of the GNU General Public License
865 # along with this program; if not, write to the Free Software
866 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
875 # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
876 # "missing" invocation, for better error output.
877 AC_DEFUN([AM_PROG_LEX],
878 [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
879 AC_REQUIRE([AC_PROG_LEX])dnl
880 if test "$LEX" = :; then
881 LEX=${am_missing_run}flex