1 # generated automatically by aclocal 1.8.5 -*- 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.5])])
45 # Figure out how to run the assembler. -*- Autoconf -*-
49 # Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
51 # This program is free software; you can redistribute it and/or modify
52 # it under the terms of the GNU General Public License as published by
53 # the Free Software Foundation; either version 2, or (at your option)
56 # This program is distributed in the hope that it will be useful,
57 # but WITHOUT ANY WARRANTY; without even the implied warranty of
58 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59 # GNU General Public License for more details.
61 # You should have received a copy of the GNU General Public License
62 # along with this program; if not, write to the Free Software
63 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
68 AC_DEFUN([AM_PROG_AS],
69 [# By default we simply use the C compiler to build assembly code.
70 AC_REQUIRE([AC_PROG_CC])
71 test "${CCAS+set}" = set || CCAS=$CC
72 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
73 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
74 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
79 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
81 # This program is free software; you can redistribute it and/or modify
82 # it under the terms of the GNU General Public License as published by
83 # the Free Software Foundation; either version 2, or (at your option)
86 # This program is distributed in the hope that it will be useful,
87 # but WITHOUT ANY WARRANTY; without even the implied warranty of
88 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
89 # GNU General Public License for more details.
91 # You should have received a copy of the GNU General Public License
92 # along with this program; if not, write to the Free Software
93 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
96 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
97 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
98 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
100 # Of course, Automake must honor this variable whenever it calls a
101 # tool from the auxiliary directory. The problem is that $srcdir (and
102 # therefore $ac_aux_dir as well) can be either absolute or relative,
103 # depending on how configure is run. This is pretty annoying, since
104 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
105 # source directory, any form will work fine, but in subdirectories a
106 # relative path needs to be adjusted first.
108 # $ac_aux_dir/missing
109 # fails when called from a subdirectory if $ac_aux_dir is relative
110 # $top_srcdir/$ac_aux_dir/missing
111 # fails if $ac_aux_dir is absolute,
112 # fails when called from a subdirectory in a VPATH build with
113 # a relative $ac_aux_dir
115 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
116 # are both prefixed by $srcdir. In an in-source build this is usually
117 # harmless because $srcdir is `.', but things will broke when you
118 # start a VPATH build or use an absolute $srcdir.
120 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
121 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
122 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
123 # and then we would define $MISSING as
124 # MISSING="\${SHELL} $am_aux_dir/missing"
125 # This will work as long as MISSING is not called from configure, because
126 # unfortunately $(top_srcdir) has no meaning in configure.
127 # However there are other variables, like CC, which are often used in
128 # configure, and could therefore not use this "fixed" $ac_aux_dir.
130 # Another solution, used here, is to always expand $ac_aux_dir to an
131 # absolute PATH. The drawback is that using absolute paths prevent a
132 # configured tree to be moved without reconfiguration.
134 AC_DEFUN([AM_AUX_DIR_EXPAND],
135 [dnl Rely on autoconf to set up CDPATH properly.
137 # expand $ac_aux_dir to an absolute path
138 am_aux_dir=`cd $ac_aux_dir && pwd`
141 # AM_CONDITIONAL -*- Autoconf -*-
143 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
145 # This program is free software; you can redistribute it and/or modify
146 # it under the terms of the GNU General Public License as published by
147 # the Free Software Foundation; either version 2, or (at your option)
150 # This program is distributed in the hope that it will be useful,
151 # but WITHOUT ANY WARRANTY; without even the implied warranty of
152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
153 # GNU General Public License for more details.
155 # You should have received a copy of the GNU General Public License
156 # along with this program; if not, write to the Free Software
157 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
162 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
163 # -------------------------------------
164 # Define a conditional.
165 AC_DEFUN([AM_CONDITIONAL],
167 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
168 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
178 AC_CONFIG_COMMANDS_PRE(
179 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
180 AC_MSG_ERROR([conditional "$1" was never defined.
181 Usually this means the macro was only invoked conditionally.])
184 # serial 7 -*- Autoconf -*-
186 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
187 # Free Software Foundation, Inc.
189 # This program is free software; you can redistribute it and/or modify
190 # it under the terms of the GNU General Public License as published by
191 # the Free Software Foundation; either version 2, or (at your option)
194 # This program is distributed in the hope that it will be useful,
195 # but WITHOUT ANY WARRANTY; without even the implied warranty of
196 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
197 # GNU General Public License for more details.
199 # You should have received a copy of the GNU General Public License
200 # along with this program; if not, write to the Free Software
201 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
205 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
206 # written in clear, in which case automake, when reading aclocal.m4,
207 # will think it sees a *use*, and therefore will trigger all it's
208 # C support machinery. Also note that it means that autoscan, seeing
209 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
213 # _AM_DEPENDENCIES(NAME)
214 # ----------------------
215 # See how the compiler implements dependency checking.
216 # NAME is "CC", "CXX", "GCJ", or "OBJC".
217 # We try a few techniques and use that to set a single cache variable.
219 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
220 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
221 # dependency, and given that the user is not expected to run this macro,
222 # just rely on AC_PROG_CC.
223 AC_DEFUN([_AM_DEPENDENCIES],
224 [AC_REQUIRE([AM_SET_DEPDIR])dnl
225 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
226 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
227 AC_REQUIRE([AM_DEP_TRACK])dnl
229 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
230 [$1], CXX, [depcc="$CXX" am_compiler_list=],
231 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
232 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
233 [depcc="$$1" am_compiler_list=])
235 AC_CACHE_CHECK([dependency style of $depcc],
236 [am_cv_$1_dependencies_compiler_type],
237 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
238 # We make a subdir and do the tests there. Otherwise we can end up
239 # making bogus files that we don't know about and never remove. For
240 # instance it was reported that on HP-UX the gcc test will end up
241 # making a dummy file named `D' -- because `-MD' means `put the output
244 # Copy depcomp to subdir because otherwise we won't find it if we're
245 # using a relative directory.
246 cp "$am_depcomp" conftest.dir
248 # We will build objects and dependencies in a subdirectory because
249 # it helps to detect inapplicable dependency modes. For instance
250 # both Tru64's cc and ICC support -MD to output dependencies as a
251 # side effect of compilation, but ICC will put the dependencies in
252 # the current directory while Tru64 will put them in the object
256 am_cv_$1_dependencies_compiler_type=none
257 if test "$am_compiler_list" = ""; then
258 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
260 for depmode in $am_compiler_list; do
261 # Setup a source with many dependencies, because some compilers
262 # like to wrap large dependency lists on column 80 (with \), and
263 # we should not choose a depcomp mode which is confused by this.
265 # We need to recreate these files for each test, as the compiler may
266 # overwrite some of them when testing with obscure command lines.
267 # This happens at least with the AIX C compiler.
269 for i in 1 2 3 4 5 6; do
270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
272 # Solaris 8's {/usr,}/bin/sh.
273 touch sub/conftst$i.h
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 # or remarks (even with -Werror). So we grep stderr for any message
302 # that says an option was ignored or not supported.
303 # When given -MP, icc 7.0 and 7.1 complain thusly:
304 # icc: Command line warning: ignoring option '-M'; no argument required
305 # The diagnosis changed in icc 8.0:
306 # icc: Command line remark: option '-MP' not supported
307 if (grep 'ignoring option' conftest.err ||
308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
309 am_cv_$1_dependencies_compiler_type=$depmode
318 am_cv_$1_dependencies_compiler_type=none
321 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
322 AM_CONDITIONAL([am__fastdep$1], [
323 test "x$enable_dependency_tracking" != xno \
324 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
330 # Choose a directory name for dependency files.
331 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
332 AC_DEFUN([AM_SET_DEPDIR],
333 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
334 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
340 AC_DEFUN([AM_DEP_TRACK],
341 [AC_ARG_ENABLE(dependency-tracking,
342 [ --disable-dependency-tracking speeds up one-time build
343 --enable-dependency-tracking do not reject slow dependency extractors])
344 if test "x$enable_dependency_tracking" != xno; then
345 am_depcomp="$ac_aux_dir/depcomp"
348 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
349 AC_SUBST([AMDEPBACKSLASH])
352 # Generate code to set up dependency tracking. -*- Autoconf -*-
354 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
356 # This program is free software; you can redistribute it and/or modify
357 # it under the terms of the GNU General Public License as published by
358 # the Free Software Foundation; either version 2, or (at your option)
361 # This program is distributed in the hope that it will be useful,
362 # but WITHOUT ANY WARRANTY; without even the implied warranty of
363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
364 # GNU General Public License for more details.
366 # You should have received a copy of the GNU General Public License
367 # along with this program; if not, write to the Free Software
368 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
373 # _AM_OUTPUT_DEPENDENCY_COMMANDS
374 # ------------------------------
375 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
376 [for mf in $CONFIG_FILES; do
377 # Strip MF so we end up with the name of the file.
378 mf=`echo "$mf" | sed -e 's/:.*$//'`
379 # Check whether this is an Automake generated Makefile or not.
380 # We used to match only the files named `Makefile.in', but
381 # some people rename them; so instead we look at the file content.
382 # Grep'ing the first line is not enough: some people post-process
383 # each Makefile.in and add a new line on top of each file to say so.
384 # So let's grep whole file.
385 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
386 dirpart=`AS_DIRNAME("$mf")`
390 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
391 # Extract the definition of DEP_FILES from the Makefile without
393 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
394 test -z "$DEPDIR" && continue
395 # When using ansi2knr, U may be empty or an underscore; expand it
396 U=`sed -n 's/^U = //p' < "$mf"`
397 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
398 # We invoke sed twice because it is the simplest approach to
399 # changing $(DEPDIR) to its actual value in the expansion.
400 for file in `sed -n '
401 /^DEP_FILES = .*\\\\$/ {
410 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
412 # Make sure the directory exists.
413 test -f "$dirpart/$file" && continue
414 fdir=`AS_DIRNAME(["$file"])`
415 AS_MKDIR_P([$dirpart/$fdir])
416 # echo "creating $dirpart/$file"
417 echo '# dummy' > "$dirpart/$file"
420 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
423 # AM_OUTPUT_DEPENDENCY_COMMANDS
424 # -----------------------------
425 # This macro should only be invoked once -- use via AC_REQUIRE.
427 # This code is only required when automatic dependency tracking
428 # is enabled. FIXME. This creates each `.P' file that we will
429 # need in order to bootstrap the dependency handling code.
430 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
431 [AC_CONFIG_COMMANDS([depfiles],
432 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
433 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
436 # Do all the work for Automake. -*- Autoconf -*-
438 # This macro actually does too much some checks are only needed if
439 # your package does certain things. But this isn't really a big deal.
441 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
442 # Free Software Foundation, Inc.
444 # This program is free software; you can redistribute it and/or modify
445 # it under the terms of the GNU General Public License as published by
446 # the Free Software Foundation; either version 2, or (at your option)
449 # This program is distributed in the hope that it will be useful,
450 # but WITHOUT ANY WARRANTY; without even the implied warranty of
451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
452 # GNU General Public License for more details.
454 # You should have received a copy of the GNU General Public License
455 # along with this program; if not, write to the Free Software
456 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
462 # AM_INIT_AUTOMAKE([OPTIONS])
463 # -----------------------------------------------
464 # The call with PACKAGE and VERSION arguments is the old style
465 # call (pre autoconf-2.50), which is being phased out. PACKAGE
466 # and VERSION should now be passed to AC_INIT and removed from
467 # the call to AM_INIT_AUTOMAKE.
468 # We support both call styles for the transition. After
469 # the next Automake release, Autoconf can make the AC_INIT
470 # arguments mandatory, and then we can depend on a new Autoconf
471 # release and drop the old call support.
472 AC_DEFUN([AM_INIT_AUTOMAKE],
473 [AC_PREREQ([2.58])dnl
474 dnl Autoconf wants to disallow AM_ names. We explicitly allow
475 dnl the ones we care about.
476 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
477 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
478 AC_REQUIRE([AC_PROG_INSTALL])dnl
479 # test to see if srcdir already configured
480 if test "`cd $srcdir && pwd`" != "`pwd`" &&
481 test -f $srcdir/config.status; then
482 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
485 # test whether we have cygpath
486 if test -z "$CYGPATH_W"; then
487 if (cygpath --version) >/dev/null 2>/dev/null; then
488 CYGPATH_W='cygpath -w'
493 AC_SUBST([CYGPATH_W])
495 # Define the identity of the package.
496 dnl Distinguish between old-style and new-style calls.
498 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
499 AC_SUBST([PACKAGE], [$1])dnl
500 AC_SUBST([VERSION], [$2])],
501 [_AM_SET_OPTIONS([$1])dnl
502 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
503 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
505 _AM_IF_OPTION([no-define],,
506 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
507 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
509 # Some tools Automake needs.
510 AC_REQUIRE([AM_SANITY_CHECK])dnl
511 AC_REQUIRE([AC_ARG_PROGRAM])dnl
512 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
513 AM_MISSING_PROG(AUTOCONF, autoconf)
514 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
515 AM_MISSING_PROG(AUTOHEADER, autoheader)
516 AM_MISSING_PROG(MAKEINFO, makeinfo)
517 AM_MISSING_PROG(AMTAR, tar)
519 AM_PROG_INSTALL_STRIP
520 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
521 # We need awk for the "check" target. The system "awk" is bad on
523 AC_REQUIRE([AC_PROG_AWK])dnl
524 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
525 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
527 _AM_IF_OPTION([no-dependencies],,
528 [AC_PROVIDE_IFELSE([AC_PROG_CC],
529 [_AM_DEPENDENCIES(CC)],
530 [define([AC_PROG_CC],
531 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
532 AC_PROVIDE_IFELSE([AC_PROG_CXX],
533 [_AM_DEPENDENCIES(CXX)],
534 [define([AC_PROG_CXX],
535 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
540 # When config.status generates a header, we must update the stamp-h file.
541 # This file resides in the same directory as the config header
542 # that is generated. The stamp files are numbered to have different names.
544 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
545 # loop where config.status creates the headers, so we can generate
546 # our stamp files there.
547 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
548 [# Compute $1's index in $config_headers.
550 for _am_header in $config_headers :; do
555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
558 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
562 # Define $install_sh.
564 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
566 # This program is free software; you can redistribute it and/or modify
567 # it under the terms of the GNU General Public License as published by
568 # the Free Software Foundation; either version 2, or (at your option)
571 # This program is distributed in the hope that it will be useful,
572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
574 # GNU General Public License for more details.
576 # You should have received a copy of the GNU General Public License
577 # along with this program; if not, write to the Free Software
578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
581 AC_DEFUN([AM_PROG_INSTALL_SH],
582 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
583 install_sh=${install_sh-"$am_aux_dir/install-sh"}
584 AC_SUBST(install_sh)])
587 # Copyright (C) 2003 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 # Check whether the underlying file-system supports filenames
607 # with a leading dot. For instance MS-DOS doesn't.
608 AC_DEFUN([AM_SET_LEADING_DOT],
609 [rm -rf .tst 2>/dev/null
610 mkdir .tst 2>/dev/null
611 if test -d .tst; then
616 rmdir .tst 2>/dev/null
617 AC_SUBST([am__leading_dot])])
619 # Add --enable-maintainer-mode option to configure.
622 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
623 # Free Software Foundation, Inc.
625 # This program is free software; you can redistribute it and/or modify
626 # it under the terms of the GNU General Public License as published by
627 # the Free Software Foundation; either version 2, or (at your option)
630 # This program is distributed in the hope that it will be useful,
631 # but WITHOUT ANY WARRANTY; without even the implied warranty of
632 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
633 # GNU General Public License for more details.
635 # You should have received a copy of the GNU General Public License
636 # along with this program; if not, write to the Free Software
637 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
642 AC_DEFUN([AM_MAINTAINER_MODE],
643 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
644 dnl maintainer-mode is disabled by default
645 AC_ARG_ENABLE(maintainer-mode,
646 [ --enable-maintainer-mode enable make rules and dependencies not useful
647 (and sometimes confusing) to the casual installer],
648 USE_MAINTAINER_MODE=$enableval,
649 USE_MAINTAINER_MODE=no)
650 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
651 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
652 MAINT=$MAINTAINER_MODE_TRUE
657 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
659 # Check to see how 'make' treats includes. -*- Autoconf -*-
661 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
663 # This program is free software; you can redistribute it and/or modify
664 # it under the terms of the GNU General Public License as published by
665 # the Free Software Foundation; either version 2, or (at your option)
668 # This program is distributed in the hope that it will be useful,
669 # but WITHOUT ANY WARRANTY; without even the implied warranty of
670 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
671 # GNU General Public License for more details.
673 # You should have received a copy of the GNU General Public License
674 # along with this program; if not, write to the Free Software
675 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
682 # Check to see how make treats includes.
683 AC_DEFUN([AM_MAKE_INCLUDE],
684 [am_make=${MAKE-make}
685 cat > confinc << 'END'
690 # If we don't find an include directive, just comment out the code.
691 AC_MSG_CHECKING([for style of include used by $am_make])
695 # First try GNU make style include.
696 echo "include confinc" > confmf
697 # We grep out `Entering directory' and `Leaving directory'
698 # messages which can occur if `w' ends up in MAKEFLAGS.
699 # In particular we don't look at `^make:' because GNU make might
700 # be invoked under some other name (usually "gmake"), in which
701 # case it prints its new name instead of `make'.
702 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
707 # Now try BSD make style include.
708 if test "$am__include" = "#"; then
709 echo '.include "confinc"' > confmf
710 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
716 AC_SUBST([am__include])
717 AC_SUBST([am__quote])
718 AC_MSG_RESULT([$_am_result])
726 # Like AC_PROG_CC_C_O, but changed for automake.
728 # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
730 # This program is free software; you can redistribute it and/or modify
731 # it under the terms of the GNU General Public License as published by
732 # the Free Software Foundation; either version 2, or (at your option)
735 # This program is distributed in the hope that it will be useful,
736 # but WITHOUT ANY WARRANTY; without even the implied warranty of
737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
738 # GNU General Public License for more details.
740 # You should have received a copy of the GNU General Public License
741 # along with this program; if not, write to the Free Software
742 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
745 AC_DEFUN([AM_PROG_CC_C_O],
746 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
747 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
748 # FIXME: we rely on the cache variable name because
749 # there is no other way.
751 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
752 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
753 # Losing compiler, so override with the script.
754 # FIXME: It is wrong to rewrite CC.
755 # But if we don't then we get into trouble of one sort or another.
756 # A longer-term fix would be to have automake use am__CC in this case,
757 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
758 CC="$am_aux_dir/compile $CC"
765 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
767 # This program is free software; you can redistribute it and/or modify
768 # it under the terms of the GNU General Public License as published by
769 # the Free Software Foundation; either version 2, or (at your option)
772 # This program is distributed in the hope that it will be useful,
773 # but WITHOUT ANY WARRANTY; without even the implied warranty of
774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
775 # GNU General Public License for more details.
777 # You should have received a copy of the GNU General Public License
778 # along with this program; if not, write to the Free Software
779 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
784 # AM_MISSING_PROG(NAME, PROGRAM)
785 # ------------------------------
786 AC_DEFUN([AM_MISSING_PROG],
787 [AC_REQUIRE([AM_MISSING_HAS_RUN])
788 $1=${$1-"${am_missing_run}$2"}
794 # Define MISSING if not defined so far and test if it supports --run.
795 # If it does, set am_missing_run to use it, otherwise, to nothing.
796 AC_DEFUN([AM_MISSING_HAS_RUN],
797 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
798 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
799 # Use eval to expand $SHELL
800 if eval "$MISSING --run true"; then
801 am_missing_run="$MISSING --run "
804 AC_MSG_WARN([`missing' script is too old or missing])
810 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
812 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
814 # This program is free software; you can redistribute it and/or modify
815 # it under the terms of the GNU General Public License as published by
816 # the Free Software Foundation; either version 2, or (at your option)
819 # This program is distributed in the hope that it will be useful,
820 # but WITHOUT ANY WARRANTY; without even the implied warranty of
821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
822 # GNU General Public License for more details.
824 # You should have received a copy of the GNU General Public License
825 # along with this program; if not, write to the Free Software
826 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
829 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
830 # created by `make install' are always world readable, even if the
831 # installer happens to have an overly restrictive umask (e.g. 077).
832 # This was a mistake. There are at least two reasons why we must not
834 # - it causes special bits like SGID to be ignored,
835 # - it may be too restrictive (some setups expect 775 directories).
837 # Do not use -m 0755 and let people choose whatever they expect by
840 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
841 # Some implementations (such as Solaris 8's) are not thread-safe: if a
842 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
843 # concurrently, both version can detect that a/ is missing, but only
844 # one can create it and the other will error out. Consequently we
845 # restrict ourselves to GNU make (using the --version option ensures
847 AC_DEFUN([AM_PROG_MKDIR_P],
848 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
849 # Keeping the `.' argument allows $(mkdir_p) to be used without
850 # argument. Indeed, we sometimes output rules like
851 # $(mkdir_p) $(somedir)
852 # where $(somedir) is conditionally defined.
853 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
854 # expensive solution, as it forces Make to start a sub-shell.)
855 mkdir_p='mkdir -p -- .'
857 # On NextStep and OpenStep, the `mkdir' command does not
858 # recognize any option. It will interpret all options as
859 # directories to create, and then abort because `.' already
861 for d in ./-p ./--version;
863 test -d $d && rmdir $d
865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
866 if test -f "$ac_aux_dir/mkinstalldirs"; then
867 mkdir_p='$(mkinstalldirs)'
869 mkdir_p='$(install_sh) -d'
872 AC_SUBST([mkdir_p])])
874 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
875 # Free Software Foundation, Inc.
877 # This program is free software; you can redistribute it and/or modify
878 # it under the terms of the GNU General Public License as published by
879 # the Free Software Foundation; either version 2, or (at your option)
882 # This program is distributed in the hope that it will be useful,
883 # but WITHOUT ANY WARRANTY; without even the implied warranty of
884 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
885 # GNU General Public License for more details.
887 # You should have received a copy of the GNU General Public License
888 # along with this program; if not, write to the Free Software
889 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
894 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
895 # ---------------------------------------------------
896 # Add --enable-multilib to configure.
897 AC_DEFUN([AM_ENABLE_MULTILIB],
898 [# Default to --enable-multilib
899 AC_ARG_ENABLE(multilib,
900 [ --enable-multilib build many library versions (default)],
901 [case "$enableval" in
904 *) AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
908 # We may get other options which we leave undocumented:
909 # --with-target-subdir, --with-multisrctop, --with-multisubdir
910 # See config-ml.in if you want the gory details.
912 if test "$srcdir" = "."; then
913 if test "$with_target_subdir" != "."; then
914 multi_basedir="$srcdir/$with_multisrctop../$2"
916 multi_basedir="$srcdir/$with_multisrctop$2"
919 multi_basedir="$srcdir/$2"
921 AC_SUBST(multi_basedir)
924 # Only add multilib support code if we just rebuilt the top-level
926 case " $CONFIG_FILES " in
927 *" ]m4_default([$1],Makefile)[ "*)
928 ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
935 with_multisubdir="$with_multisubdir"
936 with_multisrctop="$with_multisrctop"
937 with_target_subdir="$with_target_subdir"
938 ac_configure_args="${multilib_arg} ${ac_configure_args}"
939 multi_basedir="$multi_basedir"
940 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
943 # Helper functions for option handling. -*- Autoconf -*-
945 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
947 # This program is free software; you can redistribute it and/or modify
948 # it under the terms of the GNU General Public License as published by
949 # the Free Software Foundation; either version 2, or (at your option)
952 # This program is distributed in the hope that it will be useful,
953 # but WITHOUT ANY WARRANTY; without even the implied warranty of
954 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
955 # GNU General Public License for more details.
957 # You should have received a copy of the GNU General Public License
958 # along with this program; if not, write to the Free Software
959 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
964 # _AM_MANGLE_OPTION(NAME)
965 # -----------------------
966 AC_DEFUN([_AM_MANGLE_OPTION],
967 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
969 # _AM_SET_OPTION(NAME)
970 # ------------------------------
971 # Set option NAME. Presently that only means defining a flag for this option.
972 AC_DEFUN([_AM_SET_OPTION],
973 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
975 # _AM_SET_OPTIONS(OPTIONS)
976 # ----------------------------------
977 # OPTIONS is a space-separated list of Automake options.
978 AC_DEFUN([_AM_SET_OPTIONS],
979 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
981 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
982 # -------------------------------------------
983 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
984 AC_DEFUN([_AM_IF_OPTION],
985 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
988 # Check to make sure that the build environment is sane.
991 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
993 # This program is free software; you can redistribute it and/or modify
994 # it under the terms of the GNU General Public License as published by
995 # the Free Software Foundation; either version 2, or (at your option)
998 # This program is distributed in the hope that it will be useful,
999 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1001 # GNU General Public License for more details.
1003 # You should have received a copy of the GNU General Public License
1004 # along with this program; if not, write to the Free Software
1005 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1012 AC_DEFUN([AM_SANITY_CHECK],
1013 [AC_MSG_CHECKING([whether build environment is sane])
1016 echo timestamp > conftest.file
1017 # Do `set' in a subshell so we don't clobber the current shell's
1018 # arguments. Must try -L first in case configure is actually a
1019 # symlink; some systems play weird games with the mod time of symlinks
1020 # (eg FreeBSD returns the mod time of the symlink's containing
1023 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1024 if test "$[*]" = "X"; then
1026 set X `ls -t $srcdir/configure conftest.file`
1029 if test "$[*]" != "X $srcdir/configure conftest.file" \
1030 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1032 # If neither matched, then we have a broken ls. This can happen
1033 # if, for instance, CONFIG_SHELL is bash and it inherits a
1034 # broken ls alias from the environment. This has actually
1035 # happened. Such a system could not be considered "sane".
1036 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1037 alias in your environment])
1040 test "$[2]" = conftest.file
1046 AC_MSG_ERROR([newly created file is older than distributed files!
1047 Check your system clock])
1049 AC_MSG_RESULT(yes)])
1051 # AM_PROG_INSTALL_STRIP
1053 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1055 # This program is free software; you can redistribute it and/or modify
1056 # it under the terms of the GNU General Public License as published by
1057 # the Free Software Foundation; either version 2, or (at your option)
1058 # any later version.
1060 # This program is distributed in the hope that it will be useful,
1061 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1062 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1063 # GNU General Public License for more details.
1065 # You should have received a copy of the GNU General Public License
1066 # along with this program; if not, write to the Free Software
1067 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1070 # One issue with vendor `install' (even GNU) is that you can't
1071 # specify the program used to strip binaries. This is especially
1072 # annoying in cross-compiling environments, where the build's strip
1073 # is unlikely to handle the host's binaries.
1074 # Fortunately install-sh will honor a STRIPPROG variable, so we
1075 # always use install-sh in `make install-strip', and initialize
1076 # STRIPPROG with the value of the STRIP variable (set by the user).
1077 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1078 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1079 # Installed binaries are usually stripped using `strip' when the user
1080 # run `make install-strip'. However `strip' might not be the right
1081 # tool to use in cross-compilation environments, therefore Automake
1082 # will honor the `STRIP' environment variable to overrule this program.
1083 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1084 if test "$cross_compiling" != no; then
1085 AC_CHECK_TOOL([STRIP], [strip], :)
1087 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1088 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1090 m4_include([acinclude.m4])