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 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
16 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
17 dnl also defines GSTUFF_PKG_ERRORS on error
18 AC_DEFUN(PKG_CHECK_MODULES, [
21 if test -z "$PKG_CONFIG"; then
22 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
25 if test "$PKG_CONFIG" = "no" ; then
26 echo "*** The pkg-config script could not be found. Make sure it is"
27 echo "*** in your path, or set the PKG_CONFIG environment variable"
28 echo "*** to the full path to pkg-config."
29 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
31 PKG_CONFIG_MIN_VERSION=0.9.0
32 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33 AC_MSG_CHECKING(for $2)
35 if $PKG_CONFIG --exists "$2" ; then
39 AC_MSG_CHECKING($1_CFLAGS)
40 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
41 AC_MSG_RESULT($$1_CFLAGS)
43 AC_MSG_CHECKING($1_LIBS)
44 $1_LIBS=`$PKG_CONFIG --libs "$2"`
45 AC_MSG_RESULT($$1_LIBS)
49 ## If we have a custom action on failure, don't print errors, but
50 ## do set a variable so people can do so.
51 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
52 ifelse([$4], ,echo $$1_PKG_ERRORS,)
58 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
59 echo "*** See http://www.freedesktop.org/software/pkgconfig"
63 if test $succeeded = yes; then
64 ifelse([$3], , :, [$3])
66 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
73 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
74 # Generated from amversion.in; do not edit by hand.
76 # This program is free software; you can redistribute it and/or modify
77 # it under the terms of the GNU General Public License as published by
78 # the Free Software Foundation; either version 2, or (at your option)
81 # This program is distributed in the hope that it will be useful,
82 # but WITHOUT ANY WARRANTY; without even the implied warranty of
83 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
84 # GNU General Public License for more details.
86 # You should have received a copy of the GNU General Public License
87 # along with this program; if not, write to the Free Software
88 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
90 # AM_AUTOMAKE_VERSION(VERSION)
91 # ----------------------------
92 # Automake X.Y traces this macro to ensure aclocal.m4 has been
93 # generated from the m4 files accompanying Automake X.Y.
94 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
96 # AM_SET_CURRENT_AUTOMAKE_VERSION
97 # -------------------------------
98 # Call AM_AUTOMAKE_VERSION so it can be traced.
99 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
100 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
101 [AM_AUTOMAKE_VERSION([1.8.5])])
105 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
107 # This program is free software; you can redistribute it and/or modify
108 # it under the terms of the GNU General Public License as published by
109 # the Free Software Foundation; either version 2, or (at your option)
112 # This program is distributed in the hope that it will be useful,
113 # but WITHOUT ANY WARRANTY; without even the implied warranty of
114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
115 # GNU General Public License for more details.
117 # You should have received a copy of the GNU General Public License
118 # along with this program; if not, write to the Free Software
119 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
122 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
123 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
124 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
126 # Of course, Automake must honor this variable whenever it calls a
127 # tool from the auxiliary directory. The problem is that $srcdir (and
128 # therefore $ac_aux_dir as well) can be either absolute or relative,
129 # depending on how configure is run. This is pretty annoying, since
130 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
131 # source directory, any form will work fine, but in subdirectories a
132 # relative path needs to be adjusted first.
134 # $ac_aux_dir/missing
135 # fails when called from a subdirectory if $ac_aux_dir is relative
136 # $top_srcdir/$ac_aux_dir/missing
137 # fails if $ac_aux_dir is absolute,
138 # fails when called from a subdirectory in a VPATH build with
139 # a relative $ac_aux_dir
141 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
142 # are both prefixed by $srcdir. In an in-source build this is usually
143 # harmless because $srcdir is `.', but things will broke when you
144 # start a VPATH build or use an absolute $srcdir.
146 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
147 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
148 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
149 # and then we would define $MISSING as
150 # MISSING="\${SHELL} $am_aux_dir/missing"
151 # This will work as long as MISSING is not called from configure, because
152 # unfortunately $(top_srcdir) has no meaning in configure.
153 # However there are other variables, like CC, which are often used in
154 # configure, and could therefore not use this "fixed" $ac_aux_dir.
156 # Another solution, used here, is to always expand $ac_aux_dir to an
157 # absolute PATH. The drawback is that using absolute paths prevent a
158 # configured tree to be moved without reconfiguration.
160 AC_DEFUN([AM_AUX_DIR_EXPAND],
161 [dnl Rely on autoconf to set up CDPATH properly.
163 # expand $ac_aux_dir to an absolute path
164 am_aux_dir=`cd $ac_aux_dir && pwd`
167 # AM_CONDITIONAL -*- Autoconf -*-
169 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
171 # This program is free software; you can redistribute it and/or modify
172 # it under the terms of the GNU General Public License as published by
173 # the Free Software Foundation; either version 2, or (at your option)
176 # This program is distributed in the hope that it will be useful,
177 # but WITHOUT ANY WARRANTY; without even the implied warranty of
178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
179 # GNU General Public License for more details.
181 # You should have received a copy of the GNU General Public License
182 # along with this program; if not, write to the Free Software
183 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
188 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
189 # -------------------------------------
190 # Define a conditional.
191 AC_DEFUN([AM_CONDITIONAL],
193 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
194 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
204 AC_CONFIG_COMMANDS_PRE(
205 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
206 AC_MSG_ERROR([conditional "$1" was never defined.
207 Usually this means the macro was only invoked conditionally.])
210 # serial 7 -*- Autoconf -*-
212 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
213 # Free Software Foundation, Inc.
215 # This program is free software; you can redistribute it and/or modify
216 # it under the terms of the GNU General Public License as published by
217 # the Free Software Foundation; either version 2, or (at your option)
220 # This program is distributed in the hope that it will be useful,
221 # but WITHOUT ANY WARRANTY; without even the implied warranty of
222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
223 # GNU General Public License for more details.
225 # You should have received a copy of the GNU General Public License
226 # along with this program; if not, write to the Free Software
227 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
231 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
232 # written in clear, in which case automake, when reading aclocal.m4,
233 # will think it sees a *use*, and therefore will trigger all it's
234 # C support machinery. Also note that it means that autoscan, seeing
235 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
239 # _AM_DEPENDENCIES(NAME)
240 # ----------------------
241 # See how the compiler implements dependency checking.
242 # NAME is "CC", "CXX", "GCJ", or "OBJC".
243 # We try a few techniques and use that to set a single cache variable.
245 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
246 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
247 # dependency, and given that the user is not expected to run this macro,
248 # just rely on AC_PROG_CC.
249 AC_DEFUN([_AM_DEPENDENCIES],
250 [AC_REQUIRE([AM_SET_DEPDIR])dnl
251 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
252 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
253 AC_REQUIRE([AM_DEP_TRACK])dnl
255 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
256 [$1], CXX, [depcc="$CXX" am_compiler_list=],
257 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
258 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
259 [depcc="$$1" am_compiler_list=])
261 AC_CACHE_CHECK([dependency style of $depcc],
262 [am_cv_$1_dependencies_compiler_type],
263 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
264 # We make a subdir and do the tests there. Otherwise we can end up
265 # making bogus files that we don't know about and never remove. For
266 # instance it was reported that on HP-UX the gcc test will end up
267 # making a dummy file named `D' -- because `-MD' means `put the output
270 # Copy depcomp to subdir because otherwise we won't find it if we're
271 # using a relative directory.
272 cp "$am_depcomp" conftest.dir
274 # We will build objects and dependencies in a subdirectory because
275 # it helps to detect inapplicable dependency modes. For instance
276 # both Tru64's cc and ICC support -MD to output dependencies as a
277 # side effect of compilation, but ICC will put the dependencies in
278 # the current directory while Tru64 will put them in the object
282 am_cv_$1_dependencies_compiler_type=none
283 if test "$am_compiler_list" = ""; then
284 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
286 for depmode in $am_compiler_list; do
287 # Setup a source with many dependencies, because some compilers
288 # like to wrap large dependency lists on column 80 (with \), and
289 # we should not choose a depcomp mode which is confused by this.
291 # We need to recreate these files for each test, as the compiler may
292 # overwrite some of them when testing with obscure command lines.
293 # This happens at least with the AIX C compiler.
295 for i in 1 2 3 4 5 6; do
296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
297 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
298 # Solaris 8's {/usr,}/bin/sh.
299 touch sub/conftst$i.h
301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
305 # after this tag, mechanisms are not by side-effect, so they'll
306 # only be used when explicitly requested
307 if test "x$enable_dependency_tracking" = xyes; then
315 # We check with `-c' and `-o' for the sake of the "dashmstdout"
316 # mode. It turns out that the SunPro C++ compiler does not properly
317 # handle `-M -o', and we need to detect this.
318 if depmode=$depmode \
319 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
320 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
321 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
322 >/dev/null 2>conftest.err &&
323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
324 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
326 # icc doesn't choke on unknown options, it will just issue warnings
327 # or remarks (even with -Werror). So we grep stderr for any message
328 # that says an option was ignored or not supported.
329 # When given -MP, icc 7.0 and 7.1 complain thusly:
330 # icc: Command line warning: ignoring option '-M'; no argument required
331 # The diagnosis changed in icc 8.0:
332 # icc: Command line remark: option '-MP' not supported
333 if (grep 'ignoring option' conftest.err ||
334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
335 am_cv_$1_dependencies_compiler_type=$depmode
344 am_cv_$1_dependencies_compiler_type=none
347 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
348 AM_CONDITIONAL([am__fastdep$1], [
349 test "x$enable_dependency_tracking" != xno \
350 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
356 # Choose a directory name for dependency files.
357 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
358 AC_DEFUN([AM_SET_DEPDIR],
359 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
360 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
366 AC_DEFUN([AM_DEP_TRACK],
367 [AC_ARG_ENABLE(dependency-tracking,
368 [ --disable-dependency-tracking speeds up one-time build
369 --enable-dependency-tracking do not reject slow dependency extractors])
370 if test "x$enable_dependency_tracking" != xno; then
371 am_depcomp="$ac_aux_dir/depcomp"
374 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
375 AC_SUBST([AMDEPBACKSLASH])
378 # Generate code to set up dependency tracking. -*- Autoconf -*-
380 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 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
399 # _AM_OUTPUT_DEPENDENCY_COMMANDS
400 # ------------------------------
401 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
402 [for mf in $CONFIG_FILES; do
403 # Strip MF so we end up with the name of the file.
404 mf=`echo "$mf" | sed -e 's/:.*$//'`
405 # Check whether this is an Automake generated Makefile or not.
406 # We used to match only the files named `Makefile.in', but
407 # some people rename them; so instead we look at the file content.
408 # Grep'ing the first line is not enough: some people post-process
409 # each Makefile.in and add a new line on top of each file to say so.
410 # So let's grep whole file.
411 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
412 dirpart=`AS_DIRNAME("$mf")`
416 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
417 # Extract the definition of DEP_FILES from the Makefile without
419 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
420 test -z "$DEPDIR" && continue
421 # When using ansi2knr, U may be empty or an underscore; expand it
422 U=`sed -n 's/^U = //p' < "$mf"`
423 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
424 # We invoke sed twice because it is the simplest approach to
425 # changing $(DEPDIR) to its actual value in the expansion.
426 for file in `sed -n '
427 /^DEP_FILES = .*\\\\$/ {
436 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
437 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
438 # Make sure the directory exists.
439 test -f "$dirpart/$file" && continue
440 fdir=`AS_DIRNAME(["$file"])`
441 AS_MKDIR_P([$dirpart/$fdir])
442 # echo "creating $dirpart/$file"
443 echo '# dummy' > "$dirpart/$file"
446 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
449 # AM_OUTPUT_DEPENDENCY_COMMANDS
450 # -----------------------------
451 # This macro should only be invoked once -- use via AC_REQUIRE.
453 # This code is only required when automatic dependency tracking
454 # is enabled. FIXME. This creates each `.P' file that we will
455 # need in order to bootstrap the dependency handling code.
456 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
457 [AC_CONFIG_COMMANDS([depfiles],
458 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
459 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
462 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
464 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
466 # This program is free software; you can redistribute it and/or modify
467 # it under the terms of the GNU General Public License as published by
468 # the Free Software Foundation; either version 2, or (at your option)
471 # This program is distributed in the hope that it will be useful,
472 # but WITHOUT ANY WARRANTY; without even the implied warranty of
473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
474 # GNU General Public License for more details.
476 # You should have received a copy of the GNU General Public License
477 # along with this program; if not, write to the Free Software
478 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
483 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
484 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
486 # Do all the work for Automake. -*- Autoconf -*-
488 # This macro actually does too much some checks are only needed if
489 # your package does certain things. But this isn't really a big deal.
491 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
492 # Free Software Foundation, Inc.
494 # This program is free software; you can redistribute it and/or modify
495 # it under the terms of the GNU General Public License as published by
496 # the Free Software Foundation; either version 2, or (at your option)
499 # This program is distributed in the hope that it will be useful,
500 # but WITHOUT ANY WARRANTY; without even the implied warranty of
501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
502 # GNU General Public License for more details.
504 # You should have received a copy of the GNU General Public License
505 # along with this program; if not, write to the Free Software
506 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
511 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
512 # AM_INIT_AUTOMAKE([OPTIONS])
513 # -----------------------------------------------
514 # The call with PACKAGE and VERSION arguments is the old style
515 # call (pre autoconf-2.50), which is being phased out. PACKAGE
516 # and VERSION should now be passed to AC_INIT and removed from
517 # the call to AM_INIT_AUTOMAKE.
518 # We support both call styles for the transition. After
519 # the next Automake release, Autoconf can make the AC_INIT
520 # arguments mandatory, and then we can depend on a new Autoconf
521 # release and drop the old call support.
522 AC_DEFUN([AM_INIT_AUTOMAKE],
523 [AC_PREREQ([2.58])dnl
524 dnl Autoconf wants to disallow AM_ names. We explicitly allow
525 dnl the ones we care about.
526 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
527 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
528 AC_REQUIRE([AC_PROG_INSTALL])dnl
529 # test to see if srcdir already configured
530 if test "`cd $srcdir && pwd`" != "`pwd`" &&
531 test -f $srcdir/config.status; then
532 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
535 # test whether we have cygpath
536 if test -z "$CYGPATH_W"; then
537 if (cygpath --version) >/dev/null 2>/dev/null; then
538 CYGPATH_W='cygpath -w'
543 AC_SUBST([CYGPATH_W])
545 # Define the identity of the package.
546 dnl Distinguish between old-style and new-style calls.
548 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
549 AC_SUBST([PACKAGE], [$1])dnl
550 AC_SUBST([VERSION], [$2])],
551 [_AM_SET_OPTIONS([$1])dnl
552 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
553 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
555 _AM_IF_OPTION([no-define],,
556 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
557 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
559 # Some tools Automake needs.
560 AC_REQUIRE([AM_SANITY_CHECK])dnl
561 AC_REQUIRE([AC_ARG_PROGRAM])dnl
562 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
563 AM_MISSING_PROG(AUTOCONF, autoconf)
564 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
565 AM_MISSING_PROG(AUTOHEADER, autoheader)
566 AM_MISSING_PROG(MAKEINFO, makeinfo)
567 AM_MISSING_PROG(AMTAR, tar)
569 AM_PROG_INSTALL_STRIP
570 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
571 # We need awk for the "check" target. The system "awk" is bad on
573 AC_REQUIRE([AC_PROG_AWK])dnl
574 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
575 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
577 _AM_IF_OPTION([no-dependencies],,
578 [AC_PROVIDE_IFELSE([AC_PROG_CC],
579 [_AM_DEPENDENCIES(CC)],
580 [define([AC_PROG_CC],
581 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
582 AC_PROVIDE_IFELSE([AC_PROG_CXX],
583 [_AM_DEPENDENCIES(CXX)],
584 [define([AC_PROG_CXX],
585 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
590 # When config.status generates a header, we must update the stamp-h file.
591 # This file resides in the same directory as the config header
592 # that is generated. The stamp files are numbered to have different names.
594 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
595 # loop where config.status creates the headers, so we can generate
596 # our stamp files there.
597 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
598 [# Compute $1's index in $config_headers.
600 for _am_header in $config_headers :; do
605 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
608 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
612 # Define $install_sh.
614 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
616 # This program is free software; you can redistribute it and/or modify
617 # it under the terms of the GNU General Public License as published by
618 # the Free Software Foundation; either version 2, or (at your option)
621 # This program is distributed in the hope that it will be useful,
622 # but WITHOUT ANY WARRANTY; without even the implied warranty of
623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
624 # GNU General Public License for more details.
626 # You should have received a copy of the GNU General Public License
627 # along with this program; if not, write to the Free Software
628 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
631 AC_DEFUN([AM_PROG_INSTALL_SH],
632 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
633 install_sh=${install_sh-"$am_aux_dir/install-sh"}
634 AC_SUBST(install_sh)])
637 # Copyright (C) 2003 Free Software Foundation, Inc.
639 # This program is free software; you can redistribute it and/or modify
640 # it under the terms of the GNU General Public License as published by
641 # the Free Software Foundation; either version 2, or (at your option)
644 # This program is distributed in the hope that it will be useful,
645 # but WITHOUT ANY WARRANTY; without even the implied warranty of
646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
647 # GNU General Public License for more details.
649 # You should have received a copy of the GNU General Public License
650 # along with this program; if not, write to the Free Software
651 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
656 # Check whether the underlying file-system supports filenames
657 # with a leading dot. For instance MS-DOS doesn't.
658 AC_DEFUN([AM_SET_LEADING_DOT],
659 [rm -rf .tst 2>/dev/null
660 mkdir .tst 2>/dev/null
661 if test -d .tst; then
666 rmdir .tst 2>/dev/null
667 AC_SUBST([am__leading_dot])])
670 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
671 # Free Software Foundation, Inc.
673 # This program is free software; you can redistribute it and/or modify
674 # it under the terms of the GNU General Public License as published by
675 # the Free Software Foundation; either version 2, or (at your option)
678 # This program is distributed in the hope that it will be useful,
679 # but WITHOUT ANY WARRANTY; without even the implied warranty of
680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
681 # GNU General Public License for more details.
683 # You should have received a copy of the GNU General Public License
684 # along with this program; if not, write to the Free Software
685 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692 # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
693 # "missing" invocation, for better error output.
694 AC_DEFUN([AM_PROG_LEX],
696 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
697 AC_REQUIRE([AC_PROG_LEX])dnl
698 if test "$LEX" = :; then
699 LEX=${am_missing_run}flex
702 # Add --enable-maintainer-mode option to configure.
705 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
706 # Free Software Foundation, Inc.
708 # This program is free software; you can redistribute it and/or modify
709 # it under the terms of the GNU General Public License as published by
710 # the Free Software Foundation; either version 2, or (at your option)
713 # This program is distributed in the hope that it will be useful,
714 # but WITHOUT ANY WARRANTY; without even the implied warranty of
715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
716 # GNU General Public License for more details.
718 # You should have received a copy of the GNU General Public License
719 # along with this program; if not, write to the Free Software
720 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
725 AC_DEFUN([AM_MAINTAINER_MODE],
726 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
727 dnl maintainer-mode is disabled by default
728 AC_ARG_ENABLE(maintainer-mode,
729 [ --enable-maintainer-mode enable make rules and dependencies not useful
730 (and sometimes confusing) to the casual installer],
731 USE_MAINTAINER_MODE=$enableval,
732 USE_MAINTAINER_MODE=no)
733 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
734 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
735 MAINT=$MAINTAINER_MODE_TRUE
740 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
742 # Check to see how 'make' treats includes. -*- Autoconf -*-
744 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
746 # This program is free software; you can redistribute it and/or modify
747 # it under the terms of the GNU General Public License as published by
748 # the Free Software Foundation; either version 2, or (at your option)
751 # This program is distributed in the hope that it will be useful,
752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
754 # GNU General Public License for more details.
756 # You should have received a copy of the GNU General Public License
757 # along with this program; if not, write to the Free Software
758 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
765 # Check to see how make treats includes.
766 AC_DEFUN([AM_MAKE_INCLUDE],
767 [am_make=${MAKE-make}
768 cat > confinc << 'END'
773 # If we don't find an include directive, just comment out the code.
774 AC_MSG_CHECKING([for style of include used by $am_make])
778 # First try GNU make style include.
779 echo "include confinc" > confmf
780 # We grep out `Entering directory' and `Leaving directory'
781 # messages which can occur if `w' ends up in MAKEFLAGS.
782 # In particular we don't look at `^make:' because GNU make might
783 # be invoked under some other name (usually "gmake"), in which
784 # case it prints its new name instead of `make'.
785 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
790 # Now try BSD make style include.
791 if test "$am__include" = "#"; then
792 echo '.include "confinc"' > confmf
793 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
799 AC_SUBST([am__include])
800 AC_SUBST([am__quote])
801 AC_MSG_RESULT([$_am_result])
808 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
810 # This program is free software; you can redistribute it and/or modify
811 # it under the terms of the GNU General Public License as published by
812 # the Free Software Foundation; either version 2, or (at your option)
815 # This program is distributed in the hope that it will be useful,
816 # but WITHOUT ANY WARRANTY; without even the implied warranty of
817 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
818 # GNU General Public License for more details.
820 # You should have received a copy of the GNU General Public License
821 # along with this program; if not, write to the Free Software
822 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
827 # AM_MISSING_PROG(NAME, PROGRAM)
828 # ------------------------------
829 AC_DEFUN([AM_MISSING_PROG],
830 [AC_REQUIRE([AM_MISSING_HAS_RUN])
831 $1=${$1-"${am_missing_run}$2"}
837 # Define MISSING if not defined so far and test if it supports --run.
838 # If it does, set am_missing_run to use it, otherwise, to nothing.
839 AC_DEFUN([AM_MISSING_HAS_RUN],
840 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
841 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
842 # Use eval to expand $SHELL
843 if eval "$MISSING --run true"; then
844 am_missing_run="$MISSING --run "
847 AC_MSG_WARN([`missing' script is too old or missing])
853 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
855 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
857 # This program is free software; you can redistribute it and/or modify
858 # it under the terms of the GNU General Public License as published by
859 # the Free Software Foundation; either version 2, or (at your option)
862 # This program is distributed in the hope that it will be useful,
863 # but WITHOUT ANY WARRANTY; without even the implied warranty of
864 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
865 # GNU General Public License for more details.
867 # You should have received a copy of the GNU General Public License
868 # along with this program; if not, write to the Free Software
869 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
872 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
873 # created by `make install' are always world readable, even if the
874 # installer happens to have an overly restrictive umask (e.g. 077).
875 # This was a mistake. There are at least two reasons why we must not
877 # - it causes special bits like SGID to be ignored,
878 # - it may be too restrictive (some setups expect 775 directories).
880 # Do not use -m 0755 and let people choose whatever they expect by
883 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
884 # Some implementations (such as Solaris 8's) are not thread-safe: if a
885 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
886 # concurrently, both version can detect that a/ is missing, but only
887 # one can create it and the other will error out. Consequently we
888 # restrict ourselves to GNU make (using the --version option ensures
890 AC_DEFUN([AM_PROG_MKDIR_P],
891 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
892 # Keeping the `.' argument allows $(mkdir_p) to be used without
893 # argument. Indeed, we sometimes output rules like
894 # $(mkdir_p) $(somedir)
895 # where $(somedir) is conditionally defined.
896 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
897 # expensive solution, as it forces Make to start a sub-shell.)
898 mkdir_p='mkdir -p -- .'
900 # On NextStep and OpenStep, the `mkdir' command does not
901 # recognize any option. It will interpret all options as
902 # directories to create, and then abort because `.' already
904 for d in ./-p ./--version;
906 test -d $d && rmdir $d
908 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
909 if test -f "$ac_aux_dir/mkinstalldirs"; then
910 mkdir_p='$(mkinstalldirs)'
912 mkdir_p='$(install_sh) -d'
915 AC_SUBST([mkdir_p])])
917 # Helper functions for option handling. -*- Autoconf -*-
919 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
921 # This program is free software; you can redistribute it and/or modify
922 # it under the terms of the GNU General Public License as published by
923 # the Free Software Foundation; either version 2, or (at your option)
926 # This program is distributed in the hope that it will be useful,
927 # but WITHOUT ANY WARRANTY; without even the implied warranty of
928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
929 # GNU General Public License for more details.
931 # You should have received a copy of the GNU General Public License
932 # along with this program; if not, write to the Free Software
933 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
938 # _AM_MANGLE_OPTION(NAME)
939 # -----------------------
940 AC_DEFUN([_AM_MANGLE_OPTION],
941 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
943 # _AM_SET_OPTION(NAME)
944 # ------------------------------
945 # Set option NAME. Presently that only means defining a flag for this option.
946 AC_DEFUN([_AM_SET_OPTION],
947 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
949 # _AM_SET_OPTIONS(OPTIONS)
950 # ----------------------------------
951 # OPTIONS is a space-separated list of Automake options.
952 AC_DEFUN([_AM_SET_OPTIONS],
953 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
955 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
956 # -------------------------------------------
957 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
958 AC_DEFUN([_AM_IF_OPTION],
959 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
962 # Check to make sure that the build environment is sane.
965 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
967 # This program is free software; you can redistribute it and/or modify
968 # it under the terms of the GNU General Public License as published by
969 # the Free Software Foundation; either version 2, or (at your option)
972 # This program is distributed in the hope that it will be useful,
973 # but WITHOUT ANY WARRANTY; without even the implied warranty of
974 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
975 # GNU General Public License for more details.
977 # You should have received a copy of the GNU General Public License
978 # along with this program; if not, write to the Free Software
979 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
986 AC_DEFUN([AM_SANITY_CHECK],
987 [AC_MSG_CHECKING([whether build environment is sane])
990 echo timestamp > conftest.file
991 # Do `set' in a subshell so we don't clobber the current shell's
992 # arguments. Must try -L first in case configure is actually a
993 # symlink; some systems play weird games with the mod time of symlinks
994 # (eg FreeBSD returns the mod time of the symlink's containing
997 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
998 if test "$[*]" = "X"; then
1000 set X `ls -t $srcdir/configure conftest.file`
1003 if test "$[*]" != "X $srcdir/configure conftest.file" \
1004 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1006 # If neither matched, then we have a broken ls. This can happen
1007 # if, for instance, CONFIG_SHELL is bash and it inherits a
1008 # broken ls alias from the environment. This has actually
1009 # happened. Such a system could not be considered "sane".
1010 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1011 alias in your environment])
1014 test "$[2]" = conftest.file
1020 AC_MSG_ERROR([newly created file is older than distributed files!
1021 Check your system clock])
1023 AC_MSG_RESULT(yes)])
1025 # AM_PROG_INSTALL_STRIP
1027 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1029 # This program is free software; you can redistribute it and/or modify
1030 # it under the terms of the GNU General Public License as published by
1031 # the Free Software Foundation; either version 2, or (at your option)
1032 # any later version.
1034 # This program is distributed in the hope that it will be useful,
1035 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1037 # GNU General Public License for more details.
1039 # You should have received a copy of the GNU General Public License
1040 # along with this program; if not, write to the Free Software
1041 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1044 # One issue with vendor `install' (even GNU) is that you can't
1045 # specify the program used to strip binaries. This is especially
1046 # annoying in cross-compiling environments, where the build's strip
1047 # is unlikely to handle the host's binaries.
1048 # Fortunately install-sh will honor a STRIPPROG variable, so we
1049 # always use install-sh in `make install-strip', and initialize
1050 # STRIPPROG with the value of the STRIP variable (set by the user).
1051 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1052 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1053 # Installed binaries are usually stripped using `strip' when the user
1054 # run `make install-strip'. However `strip' might not be the right
1055 # tool to use in cross-compilation environments, therefore Automake
1056 # will honor the `STRIP' environment variable to overrule this program.
1057 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1058 if test "$cross_compiling" != no; then
1059 AC_CHECK_TOOL([STRIP], [strip], :)
1061 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1062 AC_SUBST([INSTALL_STRIP_PROGRAM])])