1 # generated automatically by aclocal 1.8.2 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
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
15 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
16 # Generated from amversion.in; do not edit by hand.
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
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
38 # AM_SET_CURRENT_AUTOMAKE_VERSION
39 # -------------------------------
40 # Call AM_AUTOMAKE_VERSION so it can be traced.
41 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43 [AM_AUTOMAKE_VERSION([1.8.2])])
47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
49 # This program is free software; you can redistribute it and/or modify
50 # it under the terms of the GNU General Public License as published by
51 # the Free Software Foundation; either version 2, or (at your option)
54 # This program is distributed in the hope that it will be useful,
55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 # GNU General Public License for more details.
59 # You should have received a copy of the GNU General Public License
60 # along with this program; if not, write to the Free Software
61 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
64 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
66 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 # Of course, Automake must honor this variable whenever it calls a
69 # tool from the auxiliary directory. The problem is that $srcdir (and
70 # therefore $ac_aux_dir as well) can be either absolute or relative,
71 # depending on how configure is run. This is pretty annoying, since
72 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
73 # source directory, any form will work fine, but in subdirectories a
74 # relative path needs to be adjusted first.
77 # fails when called from a subdirectory if $ac_aux_dir is relative
78 # $top_srcdir/$ac_aux_dir/missing
79 # fails if $ac_aux_dir is absolute,
80 # fails when called from a subdirectory in a VPATH build with
81 # a relative $ac_aux_dir
83 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
84 # are both prefixed by $srcdir. In an in-source build this is usually
85 # harmless because $srcdir is `.', but things will broke when you
86 # start a VPATH build or use an absolute $srcdir.
88 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
89 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
90 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
91 # and then we would define $MISSING as
92 # MISSING="\${SHELL} $am_aux_dir/missing"
93 # This will work as long as MISSING is not called from configure, because
94 # unfortunately $(top_srcdir) has no meaning in configure.
95 # However there are other variables, like CC, which are often used in
96 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 # Another solution, used here, is to always expand $ac_aux_dir to an
99 # absolute PATH. The drawback is that using absolute paths prevent a
100 # configured tree to be moved without reconfiguration.
102 AC_DEFUN([AM_AUX_DIR_EXPAND],
103 [dnl Rely on autoconf to set up CDPATH properly.
105 # expand $ac_aux_dir to an absolute path
106 am_aux_dir=`cd $ac_aux_dir && pwd`
110 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
111 # Free Software Foundation, Inc.
113 # This program is free software; you can redistribute it and/or modify
114 # it under the terms of the GNU General Public License as published by
115 # the Free Software Foundation; either version 2, or (at your option)
118 # This program is distributed in the hope that it will be useful,
119 # but WITHOUT ANY WARRANTY; without even the implied warranty of
120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
121 # GNU General Public License for more details.
123 # You should have received a copy of the GNU General Public License
124 # along with this program; if not, write to the Free Software
125 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
130 # This was merged into AC_PROG_CC in Autoconf.
132 AU_DEFUN([AM_PROG_CC_STDC],
134 AC_DIAGNOSE([obsolete], [$0:
135 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
136 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
137 you adjust the code. You can also remove the above call to
138 AC_PROG_CC if you already called it elsewhere.])
139 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
141 AU_DEFUN([fp_PROG_CC_STDC])
143 # AM_CONDITIONAL -*- Autoconf -*-
145 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
147 # This program is free software; you can redistribute it and/or modify
148 # it under the terms of the GNU General Public License as published by
149 # the Free Software Foundation; either version 2, or (at your option)
152 # This program is distributed in the hope that it will be useful,
153 # but WITHOUT ANY WARRANTY; without even the implied warranty of
154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
155 # GNU General Public License for more details.
157 # You should have received a copy of the GNU General Public License
158 # along with this program; if not, write to the Free Software
159 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
164 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
165 # -------------------------------------
166 # Define a conditional.
167 AC_DEFUN([AM_CONDITIONAL],
169 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
170 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
180 AC_CONFIG_COMMANDS_PRE(
181 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
182 AC_MSG_ERROR([conditional "$1" was never defined.
183 Usually this means the macro was only invoked conditionally.])
186 # serial 6 -*- Autoconf -*-
188 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
189 # Free Software Foundation, Inc.
191 # This program is free software; you can redistribute it and/or modify
192 # it under the terms of the GNU General Public License as published by
193 # the Free Software Foundation; either version 2, or (at your option)
196 # This program is distributed in the hope that it will be useful,
197 # but WITHOUT ANY WARRANTY; without even the implied warranty of
198 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
199 # GNU General Public License for more details.
201 # You should have received a copy of the GNU General Public License
202 # along with this program; if not, write to the Free Software
203 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
207 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
208 # written in clear, in which case automake, when reading aclocal.m4,
209 # will think it sees a *use*, and therefore will trigger all it's
210 # C support machinery. Also note that it means that autoscan, seeing
211 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
215 # _AM_DEPENDENCIES(NAME)
216 # ----------------------
217 # See how the compiler implements dependency checking.
218 # NAME is "CC", "CXX", "GCJ", or "OBJC".
219 # We try a few techniques and use that to set a single cache variable.
221 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
222 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
223 # dependency, and given that the user is not expected to run this macro,
224 # just rely on AC_PROG_CC.
225 AC_DEFUN([_AM_DEPENDENCIES],
226 [AC_REQUIRE([AM_SET_DEPDIR])dnl
227 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
228 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
229 AC_REQUIRE([AM_DEP_TRACK])dnl
231 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
232 [$1], CXX, [depcc="$CXX" am_compiler_list=],
233 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
234 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
235 [depcc="$$1" am_compiler_list=])
237 AC_CACHE_CHECK([dependency style of $depcc],
238 [am_cv_$1_dependencies_compiler_type],
239 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
240 # We make a subdir and do the tests there. Otherwise we can end up
241 # making bogus files that we don't know about and never remove. For
242 # instance it was reported that on HP-UX the gcc test will end up
243 # making a dummy file named `D' -- because `-MD' means `put the output
246 # Copy depcomp to subdir because otherwise we won't find it if we're
247 # using a relative directory.
248 cp "$am_depcomp" conftest.dir
250 # We will build objects and dependencies in a subdirectory because
251 # it helps to detect inapplicable dependency modes. For instance
252 # both Tru64's cc and ICC support -MD to output dependencies as a
253 # side effect of compilation, but ICC will put the dependencies in
254 # the current directory while Tru64 will put them in the object
258 am_cv_$1_dependencies_compiler_type=none
259 if test "$am_compiler_list" = ""; then
260 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
262 for depmode in $am_compiler_list; do
263 # Setup a source with many dependencies, because some compilers
264 # like to wrap large dependency lists on column 80 (with \), and
265 # we should not choose a depcomp mode which is confused by this.
267 # We need to recreate these files for each test, as the compiler may
268 # overwrite some of them when testing with obscure command lines.
269 # This happens at least with the AIX C compiler.
271 for i in 1 2 3 4 5 6; do
272 echo '#include "conftst'$i'.h"' >> sub/conftest.c
275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
279 # after this tag, mechanisms are not by side-effect, so they'll
280 # only be used when explicitly requested
281 if test "x$enable_dependency_tracking" = xyes; then
289 # We check with `-c' and `-o' for the sake of the "dashmstdout"
290 # mode. It turns out that the SunPro C++ compiler does not properly
291 # handle `-M -o', and we need to detect this.
292 if depmode=$depmode \
293 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
295 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
296 >/dev/null 2>conftest.err &&
297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
300 # icc doesn't choke on unknown options, it will just issue warnings
301 # (even with -Werror). So we grep stderr for any message
302 # that says an option was ignored.
303 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
304 am_cv_$1_dependencies_compiler_type=$depmode
313 am_cv_$1_dependencies_compiler_type=none
316 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
317 AM_CONDITIONAL([am__fastdep$1], [
318 test "x$enable_dependency_tracking" != xno \
319 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
325 # Choose a directory name for dependency files.
326 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
327 AC_DEFUN([AM_SET_DEPDIR],
328 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
329 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
335 AC_DEFUN([AM_DEP_TRACK],
336 [AC_ARG_ENABLE(dependency-tracking,
337 [ --disable-dependency-tracking speeds up one-time build
338 --enable-dependency-tracking do not reject slow dependency extractors])
339 if test "x$enable_dependency_tracking" != xno; then
340 am_depcomp="$ac_aux_dir/depcomp"
343 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
344 AC_SUBST([AMDEPBACKSLASH])
347 # Generate code to set up dependency tracking. -*- Autoconf -*-
349 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
351 # This program is free software; you can redistribute it and/or modify
352 # it under the terms of the GNU General Public License as published by
353 # the Free Software Foundation; either version 2, or (at your option)
356 # This program is distributed in the hope that it will be useful,
357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
359 # GNU General Public License for more details.
361 # You should have received a copy of the GNU General Public License
362 # along with this program; if not, write to the Free Software
363 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
368 # _AM_OUTPUT_DEPENDENCY_COMMANDS
369 # ------------------------------
370 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
371 [for mf in $CONFIG_FILES; do
372 # Strip MF so we end up with the name of the file.
373 mf=`echo "$mf" | sed -e 's/:.*$//'`
374 # Check whether this is an Automake generated Makefile or not.
375 # We used to match only the files named `Makefile.in', but
376 # some people rename them; so instead we look at the file content.
377 # Grep'ing the first line is not enough: some people post-process
378 # each Makefile.in and add a new line on top of each file to say so.
379 # So let's grep whole file.
380 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
381 dirpart=`AS_DIRNAME("$mf")`
385 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
386 # Extract the definition of DEP_FILES from the Makefile without
388 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
389 test -z "$DEPDIR" && continue
390 # When using ansi2knr, U may be empty or an underscore; expand it
391 U=`sed -n -e '/^U = / s///p' < "$mf"`
392 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
393 # We invoke sed twice because it is the simplest approach to
394 # changing $(DEPDIR) to its actual value in the expansion.
395 for file in `sed -n -e '
396 /^DEP_FILES = .*\\\\$/ {
405 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
407 # Make sure the directory exists.
408 test -f "$dirpart/$file" && continue
409 fdir=`AS_DIRNAME(["$file"])`
410 AS_MKDIR_P([$dirpart/$fdir])
411 # echo "creating $dirpart/$file"
412 echo '# dummy' > "$dirpart/$file"
415 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
418 # AM_OUTPUT_DEPENDENCY_COMMANDS
419 # -----------------------------
420 # This macro should only be invoked once -- use via AC_REQUIRE.
422 # This code is only required when automatic dependency tracking
423 # is enabled. FIXME. This creates each `.P' file that we will
424 # need in order to bootstrap the dependency handling code.
425 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
426 [AC_CONFIG_COMMANDS([depfiles],
427 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
428 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
431 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
433 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
435 # This program is free software; you can redistribute it and/or modify
436 # it under the terms of the GNU General Public License as published by
437 # the Free Software Foundation; either version 2, or (at your option)
440 # This program is distributed in the hope that it will be useful,
441 # but WITHOUT ANY WARRANTY; without even the implied warranty of
442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
443 # GNU General Public License for more details.
445 # You should have received a copy of the GNU General Public License
446 # along with this program; if not, write to the Free Software
447 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
452 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
453 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
455 # Do all the work for Automake. -*- Autoconf -*-
457 # This macro actually does too much some checks are only needed if
458 # your package does certain things. But this isn't really a big deal.
460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
461 # Free Software Foundation, Inc.
463 # This program is free software; you can redistribute it and/or modify
464 # it under the terms of the GNU General Public License as published by
465 # the Free Software Foundation; either version 2, or (at your option)
468 # This program is distributed in the hope that it will be useful,
469 # but WITHOUT ANY WARRANTY; without even the implied warranty of
470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
471 # GNU General Public License for more details.
473 # You should have received a copy of the GNU General Public License
474 # along with this program; if not, write to the Free Software
475 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
480 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
481 # AM_INIT_AUTOMAKE([OPTIONS])
482 # -----------------------------------------------
483 # The call with PACKAGE and VERSION arguments is the old style
484 # call (pre autoconf-2.50), which is being phased out. PACKAGE
485 # and VERSION should now be passed to AC_INIT and removed from
486 # the call to AM_INIT_AUTOMAKE.
487 # We support both call styles for the transition. After
488 # the next Automake release, Autoconf can make the AC_INIT
489 # arguments mandatory, and then we can depend on a new Autoconf
490 # release and drop the old call support.
491 AC_DEFUN([AM_INIT_AUTOMAKE],
492 [AC_PREREQ([2.58])dnl
493 dnl Autoconf wants to disallow AM_ names. We explicitly allow
494 dnl the ones we care about.
495 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
496 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
497 AC_REQUIRE([AC_PROG_INSTALL])dnl
498 # test to see if srcdir already configured
499 if test "`cd $srcdir && pwd`" != "`pwd`" &&
500 test -f $srcdir/config.status; then
501 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
504 # test whether we have cygpath
505 if test -z "$CYGPATH_W"; then
506 if (cygpath --version) >/dev/null 2>/dev/null; then
507 CYGPATH_W='cygpath -w'
512 AC_SUBST([CYGPATH_W])
514 # Define the identity of the package.
515 dnl Distinguish between old-style and new-style calls.
517 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
518 AC_SUBST([PACKAGE], [$1])dnl
519 AC_SUBST([VERSION], [$2])],
520 [_AM_SET_OPTIONS([$1])dnl
521 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
522 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
524 _AM_IF_OPTION([no-define],,
525 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
526 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
528 # Some tools Automake needs.
529 AC_REQUIRE([AM_SANITY_CHECK])dnl
530 AC_REQUIRE([AC_ARG_PROGRAM])dnl
531 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
532 AM_MISSING_PROG(AUTOCONF, autoconf)
533 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
534 AM_MISSING_PROG(AUTOHEADER, autoheader)
535 AM_MISSING_PROG(MAKEINFO, makeinfo)
536 AM_MISSING_PROG(AMTAR, tar)
538 AM_PROG_INSTALL_STRIP
539 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
540 # We need awk for the "check" target. The system "awk" is bad on
542 AC_REQUIRE([AC_PROG_AWK])dnl
543 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
544 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
546 _AM_IF_OPTION([no-dependencies],,
547 [AC_PROVIDE_IFELSE([AC_PROG_CC],
548 [_AM_DEPENDENCIES(CC)],
549 [define([AC_PROG_CC],
550 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
551 AC_PROVIDE_IFELSE([AC_PROG_CXX],
552 [_AM_DEPENDENCIES(CXX)],
553 [define([AC_PROG_CXX],
554 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
559 # When config.status generates a header, we must update the stamp-h file.
560 # This file resides in the same directory as the config header
561 # that is generated. The stamp files are numbered to have different names.
563 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
564 # loop where config.status creates the headers, so we can generate
565 # our stamp files there.
566 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
567 [# Compute $1's index in $config_headers.
569 for _am_header in $config_headers :; do
574 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
577 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
581 # Define $install_sh.
583 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
585 # This program is free software; you can redistribute it and/or modify
586 # it under the terms of the GNU General Public License as published by
587 # the Free Software Foundation; either version 2, or (at your option)
590 # This program is distributed in the hope that it will be useful,
591 # but WITHOUT ANY WARRANTY; without even the implied warranty of
592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
593 # GNU General Public License for more details.
595 # You should have received a copy of the GNU General Public License
596 # along with this program; if not, write to the Free Software
597 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
600 AC_DEFUN([AM_PROG_INSTALL_SH],
601 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
602 install_sh=${install_sh-"$am_aux_dir/install-sh"}
603 AC_SUBST(install_sh)])
606 # Copyright (C) 2003 Free Software Foundation, Inc.
608 # This program is free software; you can redistribute it and/or modify
609 # it under the terms of the GNU General Public License as published by
610 # the Free Software Foundation; either version 2, or (at your option)
613 # This program is distributed in the hope that it will be useful,
614 # but WITHOUT ANY WARRANTY; without even the implied warranty of
615 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
616 # GNU General Public License for more details.
618 # You should have received a copy of the GNU General Public License
619 # along with this program; if not, write to the Free Software
620 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
625 # Check whether the underlying file-system supports filenames
626 # with a leading dot. For instance MS-DOS doesn't.
627 AC_DEFUN([AM_SET_LEADING_DOT],
628 [rm -rf .tst 2>/dev/null
629 mkdir .tst 2>/dev/null
630 if test -d .tst; then
635 rmdir .tst 2>/dev/null
636 AC_SUBST([am__leading_dot])])
638 # Check to see how 'make' treats includes. -*- Autoconf -*-
640 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
642 # This program is free software; you can redistribute it and/or modify
643 # it under the terms of the GNU General Public License as published by
644 # the Free Software Foundation; either version 2, or (at your option)
647 # This program is distributed in the hope that it will be useful,
648 # but WITHOUT ANY WARRANTY; without even the implied warranty of
649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
650 # GNU General Public License for more details.
652 # You should have received a copy of the GNU General Public License
653 # along with this program; if not, write to the Free Software
654 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
661 # Check to see how make treats includes.
662 AC_DEFUN([AM_MAKE_INCLUDE],
663 [am_make=${MAKE-make}
664 cat > confinc << 'END'
669 # If we don't find an include directive, just comment out the code.
670 AC_MSG_CHECKING([for style of include used by $am_make])
674 # First try GNU make style include.
675 echo "include confinc" > confmf
676 # We grep out `Entering directory' and `Leaving directory'
677 # messages which can occur if `w' ends up in MAKEFLAGS.
678 # In particular we don't look at `^make:' because GNU make might
679 # be invoked under some other name (usually "gmake"), in which
680 # case it prints its new name instead of `make'.
681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
686 # Now try BSD make style include.
687 if test "$am__include" = "#"; then
688 echo '.include "confinc"' > confmf
689 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
695 AC_SUBST([am__include])
696 AC_SUBST([am__quote])
697 AC_MSG_RESULT([$_am_result])
704 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
706 # This program is free software; you can redistribute it and/or modify
707 # it under the terms of the GNU General Public License as published by
708 # the Free Software Foundation; either version 2, or (at your option)
711 # This program is distributed in the hope that it will be useful,
712 # but WITHOUT ANY WARRANTY; without even the implied warranty of
713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
714 # GNU General Public License for more details.
716 # You should have received a copy of the GNU General Public License
717 # along with this program; if not, write to the Free Software
718 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
723 # AM_MISSING_PROG(NAME, PROGRAM)
724 # ------------------------------
725 AC_DEFUN([AM_MISSING_PROG],
726 [AC_REQUIRE([AM_MISSING_HAS_RUN])
727 $1=${$1-"${am_missing_run}$2"}
733 # Define MISSING if not defined so far and test if it supports --run.
734 # If it does, set am_missing_run to use it, otherwise, to nothing.
735 AC_DEFUN([AM_MISSING_HAS_RUN],
736 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
737 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
738 # Use eval to expand $SHELL
739 if eval "$MISSING --run true"; then
740 am_missing_run="$MISSING --run "
743 AC_MSG_WARN([`missing' script is too old or missing])
749 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
751 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
753 # This program is free software; you can redistribute it and/or modify
754 # it under the terms of the GNU General Public License as published by
755 # the Free Software Foundation; either version 2, or (at your option)
758 # This program is distributed in the hope that it will be useful,
759 # but WITHOUT ANY WARRANTY; without even the implied warranty of
760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
761 # GNU General Public License for more details.
763 # You should have received a copy of the GNU General Public License
764 # along with this program; if not, write to the Free Software
765 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
768 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
769 # created by `make install' are always world readable, even if the
770 # installer happens to have an overly restrictive umask (e.g. 077).
771 # This was a mistake. There are at least two reasons why we must not
773 # - it causes special bits like SGID to be ignored,
774 # - it may be too restrictive (some setups expect 775 directories).
776 # Do not use -m 0755 and let people choose whatever they expect by
778 AC_DEFUN([AM_PROG_MKDIR_P],
779 [if mkdir -p -- . 2>/dev/null; then
780 # Keeping the `.' argument allows $(mkdir_p) to be used without
781 # argument. Indeed, we sometimes output rules like
782 # $(mkdir_p) $(somedir)
783 # where $(somedir) is conditionally defined.
784 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
785 # expensive solution, as it forces Make to start a sub-shell.)
786 mkdir_p='mkdir -p -- .'
788 # On NextStep and OpenStep, the `mkdir' command does not
789 # recognize any option. It will interpret all options as
790 # directories to create, and then abort because `.' already
794 test -d $d && rmdir $d
796 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
797 if test -f "$ac_aux_dir/mkinstalldirs"; then
798 mkdir_p='$(mkinstalldirs)'
800 mkdir_p='$(install_sh) -d'
803 AC_SUBST([mkdir_p])])
805 # Helper functions for option handling. -*- Autoconf -*-
807 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
809 # This program is free software; you can redistribute it and/or modify
810 # it under the terms of the GNU General Public License as published by
811 # the Free Software Foundation; either version 2, or (at your option)
814 # This program is distributed in the hope that it will be useful,
815 # but WITHOUT ANY WARRANTY; without even the implied warranty of
816 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
817 # GNU General Public License for more details.
819 # You should have received a copy of the GNU General Public License
820 # along with this program; if not, write to the Free Software
821 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
826 # _AM_MANGLE_OPTION(NAME)
827 # -----------------------
828 AC_DEFUN([_AM_MANGLE_OPTION],
829 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
831 # _AM_SET_OPTION(NAME)
832 # ------------------------------
833 # Set option NAME. Presently that only means defining a flag for this option.
834 AC_DEFUN([_AM_SET_OPTION],
835 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
837 # _AM_SET_OPTIONS(OPTIONS)
838 # ----------------------------------
839 # OPTIONS is a space-separated list of Automake options.
840 AC_DEFUN([_AM_SET_OPTIONS],
841 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
843 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
844 # -------------------------------------------
845 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
846 AC_DEFUN([_AM_IF_OPTION],
847 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
850 # Check to make sure that the build environment is sane.
853 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
855 # This program is free software; you can redistribute it and/or modify
856 # it under the terms of the GNU General Public License as published by
857 # the Free Software Foundation; either version 2, or (at your option)
860 # This program is distributed in the hope that it will be useful,
861 # but WITHOUT ANY WARRANTY; without even the implied warranty of
862 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
863 # GNU General Public License for more details.
865 # You should have received a copy of the GNU General Public License
866 # along with this program; if not, write to the Free Software
867 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
874 AC_DEFUN([AM_SANITY_CHECK],
875 [AC_MSG_CHECKING([whether build environment is sane])
878 echo timestamp > conftest.file
879 # Do `set' in a subshell so we don't clobber the current shell's
880 # arguments. Must try -L first in case configure is actually a
881 # symlink; some systems play weird games with the mod time of symlinks
882 # (eg FreeBSD returns the mod time of the symlink's containing
885 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
886 if test "$[*]" = "X"; then
888 set X `ls -t $srcdir/configure conftest.file`
891 if test "$[*]" != "X $srcdir/configure conftest.file" \
892 && test "$[*]" != "X conftest.file $srcdir/configure"; then
894 # If neither matched, then we have a broken ls. This can happen
895 # if, for instance, CONFIG_SHELL is bash and it inherits a
896 # broken ls alias from the environment. This has actually
897 # happened. Such a system could not be considered "sane".
898 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
899 alias in your environment])
902 test "$[2]" = conftest.file
908 AC_MSG_ERROR([newly created file is older than distributed files!
909 Check your system clock])
913 # AM_PROG_INSTALL_STRIP
915 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
917 # This program is free software; you can redistribute it and/or modify
918 # it under the terms of the GNU General Public License as published by
919 # the Free Software Foundation; either version 2, or (at your option)
922 # This program is distributed in the hope that it will be useful,
923 # but WITHOUT ANY WARRANTY; without even the implied warranty of
924 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
925 # GNU General Public License for more details.
927 # You should have received a copy of the GNU General Public License
928 # along with this program; if not, write to the Free Software
929 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
932 # One issue with vendor `install' (even GNU) is that you can't
933 # specify the program used to strip binaries. This is especially
934 # annoying in cross-compiling environments, where the build's strip
935 # is unlikely to handle the host's binaries.
936 # Fortunately install-sh will honor a STRIPPROG variable, so we
937 # always use install-sh in `make install-strip', and initialize
938 # STRIPPROG with the value of the STRIP variable (set by the user).
939 AC_DEFUN([AM_PROG_INSTALL_STRIP],
940 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
941 # Installed binaries are usually stripped using `strip' when the user
942 # run `make install-strip'. However `strip' might not be the right
943 # tool to use in cross-compilation environments, therefore Automake
944 # will honor the `STRIP' environment variable to overrule this program.
945 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
946 if test "$cross_compiling" != no; then
947 AC_CHECK_TOOL([STRIP], [strip], :)
949 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
950 AC_SUBST([INSTALL_STRIP_PROGRAM])])
952 m4_include([acinclude.m4])