2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / fastjar / aclocal.m4
blobcde83941aadf12fbf836de28e4df02e5beaac8b8
1 # generated automatically by aclocal 1.7.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
14 sinclude(../config/accross.m4)
16 dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
17 dnl of the usual 2.
18 AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
19 [AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
20 [AC_TRY_COMPILE([
21 #include <sys/types.h>
22 #ifdef HAVE_SYS_STAT_H
23 # include <sys/stat.h>
24 #endif
25 #ifdef HAVE_UNISTD_H
26 # include <unistd.h>
27 #endif
28 #ifdef HAVE_DIRECT_H
29 # include <direct.h>
30 #endif], [mkdir ("foo", 0);],
31          gcc_cv_mkdir_takes_one_arg=no, gcc_cv_mkdir_takes_one_arg=yes)])
32 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
33    AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
34 single argument.])
38 # Do all the work for Automake.                            -*- Autoconf -*-
40 # This macro actually does too much some checks are only needed if
41 # your package does certain things.  But this isn't really a big deal.
43 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
44 # Free Software Foundation, Inc.
46 # This program is free software; you can redistribute it and/or modify
47 # it under the terms of the GNU General Public License as published by
48 # the Free Software Foundation; either version 2, or (at your option)
49 # any later version.
51 # This program is distributed in the hope that it will be useful,
52 # but WITHOUT ANY WARRANTY; without even the implied warranty of
53 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
54 # GNU General Public License for more details.
56 # You should have received a copy of the GNU General Public License
57 # along with this program; if not, write to the Free Software
58 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
59 # 02111-1307, USA.
61 # serial 10
63 AC_PREREQ([2.54])
65 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
66 # the ones we care about.
67 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
69 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
70 # AM_INIT_AUTOMAKE([OPTIONS])
71 # -----------------------------------------------
72 # The call with PACKAGE and VERSION arguments is the old style
73 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
74 # and VERSION should now be passed to AC_INIT and removed from
75 # the call to AM_INIT_AUTOMAKE.
76 # We support both call styles for the transition.  After
77 # the next Automake release, Autoconf can make the AC_INIT
78 # arguments mandatory, and then we can depend on a new Autoconf
79 # release and drop the old call support.
80 AC_DEFUN([AM_INIT_AUTOMAKE],
81 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
82  AC_REQUIRE([AC_PROG_INSTALL])dnl
83 # test to see if srcdir already configured
84 if test "`cd $srcdir && pwd`" != "`pwd`" &&
85    test -f $srcdir/config.status; then
86   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
89 # test whether we have cygpath
90 if test -z "$CYGPATH_W"; then
91   if (cygpath --version) >/dev/null 2>/dev/null; then
92     CYGPATH_W='cygpath -w'
93   else
94     CYGPATH_W=echo
95   fi
97 AC_SUBST([CYGPATH_W])
99 # Define the identity of the package.
100 dnl Distinguish between old-style and new-style calls.
101 m4_ifval([$2],
102 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
103  AC_SUBST([PACKAGE], [$1])dnl
104  AC_SUBST([VERSION], [$2])],
105 [_AM_SET_OPTIONS([$1])dnl
106  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
107  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
109 _AM_IF_OPTION([no-define],,
110 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
111  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
113 # Some tools Automake needs.
114 AC_REQUIRE([AM_SANITY_CHECK])dnl
115 AC_REQUIRE([AC_ARG_PROGRAM])dnl
116 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
117 AM_MISSING_PROG(AUTOCONF, autoconf)
118 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
119 AM_MISSING_PROG(AUTOHEADER, autoheader)
120 AM_MISSING_PROG(MAKEINFO, makeinfo)
121 AM_MISSING_PROG(AMTAR, tar)
122 AM_PROG_INSTALL_SH
123 AM_PROG_INSTALL_STRIP
124 # We need awk for the "check" target.  The system "awk" is bad on
125 # some platforms.
126 AC_REQUIRE([AC_PROG_AWK])dnl
127 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
128 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
130 _AM_IF_OPTION([no-dependencies],,
131 [AC_PROVIDE_IFELSE([AC_PROG_CC],
132                   [_AM_DEPENDENCIES(CC)],
133                   [define([AC_PROG_CC],
134                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
135 AC_PROVIDE_IFELSE([AC_PROG_CXX],
136                   [_AM_DEPENDENCIES(CXX)],
137                   [define([AC_PROG_CXX],
138                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
143 # When config.status generates a header, we must update the stamp-h file.
144 # This file resides in the same directory as the config header
145 # that is generated.  The stamp files are numbered to have different names.
147 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
148 # loop where config.status creates the headers, so we can generate
149 # our stamp files there.
150 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
151 [# Compute $1's index in $config_headers.
152 _am_stamp_count=1
153 for _am_header in $config_headers :; do
154   case $_am_header in
155     $1 | $1:* )
156       break ;;
157     * )
158       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
159   esac
160 done
161 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
163 # Copyright 2002  Free Software Foundation, Inc.
165 # This program is free software; you can redistribute it and/or modify
166 # it under the terms of the GNU General Public License as published by
167 # the Free Software Foundation; either version 2, or (at your option)
168 # any later version.
170 # This program is distributed in the hope that it will be useful,
171 # but WITHOUT ANY WARRANTY; without even the implied warranty of
172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
173 # GNU General Public License for more details.
175 # You should have received a copy of the GNU General Public License
176 # along with this program; if not, write to the Free Software
177 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
179 # AM_AUTOMAKE_VERSION(VERSION)
180 # ----------------------------
181 # Automake X.Y traces this macro to ensure aclocal.m4 has been
182 # generated from the m4 files accompanying Automake X.Y.
183 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
185 # AM_SET_CURRENT_AUTOMAKE_VERSION
186 # -------------------------------
187 # Call AM_AUTOMAKE_VERSION so it can be traced.
188 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
189 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
190          [AM_AUTOMAKE_VERSION([1.7.6])])
192 # Helper functions for option handling.                    -*- Autoconf -*-
194 # Copyright 2001, 2002  Free Software Foundation, Inc.
196 # This program is free software; you can redistribute it and/or modify
197 # it under the terms of the GNU General Public License as published by
198 # the Free Software Foundation; either version 2, or (at your option)
199 # any later version.
201 # This program is distributed in the hope that it will be useful,
202 # but WITHOUT ANY WARRANTY; without even the implied warranty of
203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
204 # GNU General Public License for more details.
206 # You should have received a copy of the GNU General Public License
207 # along with this program; if not, write to the Free Software
208 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
209 # 02111-1307, USA.
211 # serial 2
213 # _AM_MANGLE_OPTION(NAME)
214 # -----------------------
215 AC_DEFUN([_AM_MANGLE_OPTION],
216 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
218 # _AM_SET_OPTION(NAME)
219 # ------------------------------
220 # Set option NAME.  Presently that only means defining a flag for this option.
221 AC_DEFUN([_AM_SET_OPTION],
222 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
224 # _AM_SET_OPTIONS(OPTIONS)
225 # ----------------------------------
226 # OPTIONS is a space-separated list of Automake options.
227 AC_DEFUN([_AM_SET_OPTIONS],
228 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
230 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
231 # -------------------------------------------
232 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
233 AC_DEFUN([_AM_IF_OPTION],
234 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
237 # Check to make sure that the build environment is sane.
240 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
242 # This program is free software; you can redistribute it and/or modify
243 # it under the terms of the GNU General Public License as published by
244 # the Free Software Foundation; either version 2, or (at your option)
245 # any later version.
247 # This program is distributed in the hope that it will be useful,
248 # but WITHOUT ANY WARRANTY; without even the implied warranty of
249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
250 # GNU General Public License for more details.
252 # You should have received a copy of the GNU General Public License
253 # along with this program; if not, write to the Free Software
254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
255 # 02111-1307, USA.
257 # serial 3
259 # AM_SANITY_CHECK
260 # ---------------
261 AC_DEFUN([AM_SANITY_CHECK],
262 [AC_MSG_CHECKING([whether build environment is sane])
263 # Just in case
264 sleep 1
265 echo timestamp > conftest.file
266 # Do `set' in a subshell so we don't clobber the current shell's
267 # arguments.  Must try -L first in case configure is actually a
268 # symlink; some systems play weird games with the mod time of symlinks
269 # (eg FreeBSD returns the mod time of the symlink's containing
270 # directory).
271 if (
272    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
273    if test "$[*]" = "X"; then
274       # -L didn't work.
275       set X `ls -t $srcdir/configure conftest.file`
276    fi
277    rm -f conftest.file
278    if test "$[*]" != "X $srcdir/configure conftest.file" \
279       && test "$[*]" != "X conftest.file $srcdir/configure"; then
281       # If neither matched, then we have a broken ls.  This can happen
282       # if, for instance, CONFIG_SHELL is bash and it inherits a
283       # broken ls alias from the environment.  This has actually
284       # happened.  Such a system could not be considered "sane".
285       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
286 alias in your environment])
287    fi
289    test "$[2]" = conftest.file
290    )
291 then
292    # Ok.
293    :
294 else
295    AC_MSG_ERROR([newly created file is older than distributed files!
296 Check your system clock])
298 AC_MSG_RESULT(yes)])
300 #  -*- Autoconf -*-
303 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
305 # This program is free software; you can redistribute it and/or modify
306 # it under the terms of the GNU General Public License as published by
307 # the Free Software Foundation; either version 2, or (at your option)
308 # any later version.
310 # This program is distributed in the hope that it will be useful,
311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
313 # GNU General Public License for more details.
315 # You should have received a copy of the GNU General Public License
316 # along with this program; if not, write to the Free Software
317 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
318 # 02111-1307, USA.
320 # serial 3
322 # AM_MISSING_PROG(NAME, PROGRAM)
323 # ------------------------------
324 AC_DEFUN([AM_MISSING_PROG],
325 [AC_REQUIRE([AM_MISSING_HAS_RUN])
326 $1=${$1-"${am_missing_run}$2"}
327 AC_SUBST($1)])
330 # AM_MISSING_HAS_RUN
331 # ------------------
332 # Define MISSING if not defined so far and test if it supports --run.
333 # If it does, set am_missing_run to use it, otherwise, to nothing.
334 AC_DEFUN([AM_MISSING_HAS_RUN],
335 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
336 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
337 # Use eval to expand $SHELL
338 if eval "$MISSING --run true"; then
339   am_missing_run="$MISSING --run "
340 else
341   am_missing_run=
342   AC_MSG_WARN([`missing' script is too old or missing])
346 # AM_AUX_DIR_EXPAND
348 # Copyright 2001 Free Software Foundation, Inc.
350 # This program is free software; you can redistribute it and/or modify
351 # it under the terms of the GNU General Public License as published by
352 # the Free Software Foundation; either version 2, or (at your option)
353 # any later version.
355 # This program is distributed in the hope that it will be useful,
356 # but WITHOUT ANY WARRANTY; without even the implied warranty of
357 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
358 # GNU General Public License for more details.
360 # You should have received a copy of the GNU General Public License
361 # along with this program; if not, write to the Free Software
362 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
363 # 02111-1307, USA.
365 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
366 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
367 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
369 # Of course, Automake must honor this variable whenever it calls a
370 # tool from the auxiliary directory.  The problem is that $srcdir (and
371 # therefore $ac_aux_dir as well) can be either absolute or relative,
372 # depending on how configure is run.  This is pretty annoying, since
373 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
374 # source directory, any form will work fine, but in subdirectories a
375 # relative path needs to be adjusted first.
377 # $ac_aux_dir/missing
378 #    fails when called from a subdirectory if $ac_aux_dir is relative
379 # $top_srcdir/$ac_aux_dir/missing
380 #    fails if $ac_aux_dir is absolute,
381 #    fails when called from a subdirectory in a VPATH build with
382 #          a relative $ac_aux_dir
384 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
385 # are both prefixed by $srcdir.  In an in-source build this is usually
386 # harmless because $srcdir is `.', but things will broke when you
387 # start a VPATH build or use an absolute $srcdir.
389 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
390 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
391 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
392 # and then we would define $MISSING as
393 #   MISSING="\${SHELL} $am_aux_dir/missing"
394 # This will work as long as MISSING is not called from configure, because
395 # unfortunately $(top_srcdir) has no meaning in configure.
396 # However there are other variables, like CC, which are often used in
397 # configure, and could therefore not use this "fixed" $ac_aux_dir.
399 # Another solution, used here, is to always expand $ac_aux_dir to an
400 # absolute PATH.  The drawback is that using absolute paths prevent a
401 # configured tree to be moved without reconfiguration.
403 # Rely on autoconf to set up CDPATH properly.
404 AC_PREREQ([2.50])
406 AC_DEFUN([AM_AUX_DIR_EXPAND], [
407 # expand $ac_aux_dir to an absolute path
408 am_aux_dir=`cd $ac_aux_dir && pwd`
411 # AM_PROG_INSTALL_SH
412 # ------------------
413 # Define $install_sh.
415 # Copyright 2001 Free Software Foundation, Inc.
417 # This program is free software; you can redistribute it and/or modify
418 # it under the terms of the GNU General Public License as published by
419 # the Free Software Foundation; either version 2, or (at your option)
420 # any later version.
422 # This program is distributed in the hope that it will be useful,
423 # but WITHOUT ANY WARRANTY; without even the implied warranty of
424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
425 # GNU General Public License for more details.
427 # You should have received a copy of the GNU General Public License
428 # along with this program; if not, write to the Free Software
429 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
430 # 02111-1307, USA.
432 AC_DEFUN([AM_PROG_INSTALL_SH],
433 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
434 install_sh=${install_sh-"$am_aux_dir/install-sh"}
435 AC_SUBST(install_sh)])
437 # AM_PROG_INSTALL_STRIP
439 # Copyright 2001 Free Software Foundation, Inc.
441 # This program is free software; you can redistribute it and/or modify
442 # it under the terms of the GNU General Public License as published by
443 # the Free Software Foundation; either version 2, or (at your option)
444 # any later version.
446 # This program is distributed in the hope that it will be useful,
447 # but WITHOUT ANY WARRANTY; without even the implied warranty of
448 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
449 # GNU General Public License for more details.
451 # You should have received a copy of the GNU General Public License
452 # along with this program; if not, write to the Free Software
453 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
454 # 02111-1307, USA.
456 # One issue with vendor `install' (even GNU) is that you can't
457 # specify the program used to strip binaries.  This is especially
458 # annoying in cross-compiling environments, where the build's strip
459 # is unlikely to handle the host's binaries.
460 # Fortunately install-sh will honor a STRIPPROG variable, so we
461 # always use install-sh in `make install-strip', and initialize
462 # STRIPPROG with the value of the STRIP variable (set by the user).
463 AC_DEFUN([AM_PROG_INSTALL_STRIP],
464 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
465 # Installed binaries are usually stripped using `strip' when the user
466 # run `make install-strip'.  However `strip' might not be the right
467 # tool to use in cross-compilation environments, therefore Automake
468 # will honor the `STRIP' environment variable to overrule this program.
469 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
470 if test "$cross_compiling" != no; then
471   AC_CHECK_TOOL([STRIP], [strip], :)
473 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
474 AC_SUBST([INSTALL_STRIP_PROGRAM])])
476 #                                                          -*- Autoconf -*-
477 # Copyright (C) 2003  Free Software Foundation, Inc.
479 # This program is free software; you can redistribute it and/or modify
480 # it under the terms of the GNU General Public License as published by
481 # the Free Software Foundation; either version 2, or (at your option)
482 # any later version.
484 # This program is distributed in the hope that it will be useful,
485 # but WITHOUT ANY WARRANTY; without even the implied warranty of
486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
487 # GNU General Public License for more details.
489 # You should have received a copy of the GNU General Public License
490 # along with this program; if not, write to the Free Software
491 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
492 # 02111-1307, USA.
494 # serial 1
496 # Check whether the underlying file-system supports filenames
497 # with a leading dot.  For instance MS-DOS doesn't.
498 AC_DEFUN([AM_SET_LEADING_DOT],
499 [rm -rf .tst 2>/dev/null
500 mkdir .tst 2>/dev/null
501 if test -d .tst; then
502   am__leading_dot=.
503 else
504   am__leading_dot=_
506 rmdir .tst 2>/dev/null
507 AC_SUBST([am__leading_dot])])
509 # serial 5                                              -*- Autoconf -*-
511 # Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
513 # This program is free software; you can redistribute it and/or modify
514 # it under the terms of the GNU General Public License as published by
515 # the Free Software Foundation; either version 2, or (at your option)
516 # any later version.
518 # This program is distributed in the hope that it will be useful,
519 # but WITHOUT ANY WARRANTY; without even the implied warranty of
520 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
521 # GNU General Public License for more details.
523 # You should have received a copy of the GNU General Public License
524 # along with this program; if not, write to the Free Software
525 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
526 # 02111-1307, USA.
529 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
530 # written in clear, in which case automake, when reading aclocal.m4,
531 # will think it sees a *use*, and therefore will trigger all it's
532 # C support machinery.  Also note that it means that autoscan, seeing
533 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
537 # _AM_DEPENDENCIES(NAME)
538 # ----------------------
539 # See how the compiler implements dependency checking.
540 # NAME is "CC", "CXX", "GCJ", or "OBJC".
541 # We try a few techniques and use that to set a single cache variable.
543 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
544 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
545 # dependency, and given that the user is not expected to run this macro,
546 # just rely on AC_PROG_CC.
547 AC_DEFUN([_AM_DEPENDENCIES],
548 [AC_REQUIRE([AM_SET_DEPDIR])dnl
549 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
550 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
551 AC_REQUIRE([AM_DEP_TRACK])dnl
553 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
554        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
555        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
556        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
557                    [depcc="$$1"   am_compiler_list=])
559 AC_CACHE_CHECK([dependency style of $depcc],
560                [am_cv_$1_dependencies_compiler_type],
561 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
562   # We make a subdir and do the tests there.  Otherwise we can end up
563   # making bogus files that we don't know about and never remove.  For
564   # instance it was reported that on HP-UX the gcc test will end up
565   # making a dummy file named `D' -- because `-MD' means `put the output
566   # in D'.
567   mkdir conftest.dir
568   # Copy depcomp to subdir because otherwise we won't find it if we're
569   # using a relative directory.
570   cp "$am_depcomp" conftest.dir
571   cd conftest.dir
572   # We will build objects and dependencies in a subdirectory because
573   # it helps to detect inapplicable dependency modes.  For instance
574   # both Tru64's cc and ICC support -MD to output dependencies as a
575   # side effect of compilation, but ICC will put the dependencies in
576   # the current directory while Tru64 will put them in the object
577   # directory.
578   mkdir sub
580   am_cv_$1_dependencies_compiler_type=none
581   if test "$am_compiler_list" = ""; then
582      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
583   fi
584   for depmode in $am_compiler_list; do
585     # Setup a source with many dependencies, because some compilers
586     # like to wrap large dependency lists on column 80 (with \), and
587     # we should not choose a depcomp mode which is confused by this.
588     #
589     # We need to recreate these files for each test, as the compiler may
590     # overwrite some of them when testing with obscure command lines.
591     # This happens at least with the AIX C compiler.
592     : > sub/conftest.c
593     for i in 1 2 3 4 5 6; do
594       echo '#include "conftst'$i'.h"' >> sub/conftest.c
595       : > sub/conftst$i.h
596     done
597     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
599     case $depmode in
600     nosideeffect)
601       # after this tag, mechanisms are not by side-effect, so they'll
602       # only be used when explicitly requested
603       if test "x$enable_dependency_tracking" = xyes; then
604         continue
605       else
606         break
607       fi
608       ;;
609     none) break ;;
610     esac
611     # We check with `-c' and `-o' for the sake of the "dashmstdout"
612     # mode.  It turns out that the SunPro C++ compiler does not properly
613     # handle `-M -o', and we need to detect this.
614     if depmode=$depmode \
615        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
616        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
617        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
618          >/dev/null 2>conftest.err &&
619        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
620        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
621        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
622       # icc doesn't choke on unknown options, it will just issue warnings
623       # (even with -Werror).  So we grep stderr for any message
624       # that says an option was ignored.
625       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
626         am_cv_$1_dependencies_compiler_type=$depmode
627         break
628       fi
629     fi
630   done
632   cd ..
633   rm -rf conftest.dir
634 else
635   am_cv_$1_dependencies_compiler_type=none
638 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
639 AM_CONDITIONAL([am__fastdep$1], [
640   test "x$enable_dependency_tracking" != xno \
641   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
645 # AM_SET_DEPDIR
646 # -------------
647 # Choose a directory name for dependency files.
648 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
649 AC_DEFUN([AM_SET_DEPDIR],
650 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
651 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
655 # AM_DEP_TRACK
656 # ------------
657 AC_DEFUN([AM_DEP_TRACK],
658 [AC_ARG_ENABLE(dependency-tracking,
659 [  --disable-dependency-tracking Speeds up one-time builds
660   --enable-dependency-tracking  Do not reject slow dependency extractors])
661 if test "x$enable_dependency_tracking" != xno; then
662   am_depcomp="$ac_aux_dir/depcomp"
663   AMDEPBACKSLASH='\'
665 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
666 AC_SUBST([AMDEPBACKSLASH])
669 # Generate code to set up dependency tracking.   -*- Autoconf -*-
671 # Copyright 1999, 2000, 2001, 2002 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)
676 # any later version.
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
686 # 02111-1307, USA.
688 #serial 2
690 # _AM_OUTPUT_DEPENDENCY_COMMANDS
691 # ------------------------------
692 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
693 [for mf in $CONFIG_FILES; do
694   # Strip MF so we end up with the name of the file.
695   mf=`echo "$mf" | sed -e 's/:.*$//'`
696   # Check whether this is an Automake generated Makefile or not.
697   # We used to match only the files named `Makefile.in', but
698   # some people rename them; so instead we look at the file content.
699   # Grep'ing the first line is not enough: some people post-process
700   # each Makefile.in and add a new line on top of each file to say so.
701   # So let's grep whole file.
702   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
703     dirpart=`AS_DIRNAME("$mf")`
704   else
705     continue
706   fi
707   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
708   # Extract the definition of DEP_FILES from the Makefile without
709   # running `make'.
710   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
711   test -z "$DEPDIR" && continue
712   # When using ansi2knr, U may be empty or an underscore; expand it
713   U=`sed -n -e '/^U = / s///p' < "$mf"`
714   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
715   # We invoke sed twice because it is the simplest approach to
716   # changing $(DEPDIR) to its actual value in the expansion.
717   for file in `sed -n -e '
718     /^DEP_FILES = .*\\\\$/ {
719       s/^DEP_FILES = //
720       :loop
721         s/\\\\$//
722         p
723         n
724         /\\\\$/ b loop
725       p
726     }
727     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
728        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
729     # Make sure the directory exists.
730     test -f "$dirpart/$file" && continue
731     fdir=`AS_DIRNAME(["$file"])`
732     AS_MKDIR_P([$dirpart/$fdir])
733     # echo "creating $dirpart/$file"
734     echo '# dummy' > "$dirpart/$file"
735   done
736 done
737 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
740 # AM_OUTPUT_DEPENDENCY_COMMANDS
741 # -----------------------------
742 # This macro should only be invoked once -- use via AC_REQUIRE.
744 # This code is only required when automatic dependency tracking
745 # is enabled.  FIXME.  This creates each `.P' file that we will
746 # need in order to bootstrap the dependency handling code.
747 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
748 [AC_CONFIG_COMMANDS([depfiles],
749      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
750      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
753 # Check to see how 'make' treats includes.      -*- Autoconf -*-
755 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
757 # This program is free software; you can redistribute it and/or modify
758 # it under the terms of the GNU General Public License as published by
759 # the Free Software Foundation; either version 2, or (at your option)
760 # any later version.
762 # This program is distributed in the hope that it will be useful,
763 # but WITHOUT ANY WARRANTY; without even the implied warranty of
764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
765 # GNU General Public License for more details.
767 # You should have received a copy of the GNU General Public License
768 # along with this program; if not, write to the Free Software
769 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
770 # 02111-1307, USA.
772 # serial 2
774 # AM_MAKE_INCLUDE()
775 # -----------------
776 # Check to see how make treats includes.
777 AC_DEFUN([AM_MAKE_INCLUDE],
778 [am_make=${MAKE-make}
779 cat > confinc << 'END'
780 am__doit:
781         @echo done
782 .PHONY: am__doit
784 # If we don't find an include directive, just comment out the code.
785 AC_MSG_CHECKING([for style of include used by $am_make])
786 am__include="#"
787 am__quote=
788 _am_result=none
789 # First try GNU make style include.
790 echo "include confinc" > confmf
791 # We grep out `Entering directory' and `Leaving directory'
792 # messages which can occur if `w' ends up in MAKEFLAGS.
793 # In particular we don't look at `^make:' because GNU make might
794 # be invoked under some other name (usually "gmake"), in which
795 # case it prints its new name instead of `make'.
796 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
797    am__include=include
798    am__quote=
799    _am_result=GNU
801 # Now try BSD make style include.
802 if test "$am__include" = "#"; then
803    echo '.include "confinc"' > confmf
804    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
805       am__include=.include
806       am__quote="\""
807       _am_result=BSD
808    fi
810 AC_SUBST([am__include])
811 AC_SUBST([am__quote])
812 AC_MSG_RESULT([$_am_result])
813 rm -f confinc confmf
816 # AM_CONDITIONAL                                              -*- Autoconf -*-
818 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
820 # This program is free software; you can redistribute it and/or modify
821 # it under the terms of the GNU General Public License as published by
822 # the Free Software Foundation; either version 2, or (at your option)
823 # any later version.
825 # This program is distributed in the hope that it will be useful,
826 # but WITHOUT ANY WARRANTY; without even the implied warranty of
827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
828 # GNU General Public License for more details.
830 # You should have received a copy of the GNU General Public License
831 # along with this program; if not, write to the Free Software
832 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
833 # 02111-1307, USA.
835 # serial 5
837 AC_PREREQ(2.52)
839 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
840 # -------------------------------------
841 # Define a conditional.
842 AC_DEFUN([AM_CONDITIONAL],
843 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
844         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
845 AC_SUBST([$1_TRUE])
846 AC_SUBST([$1_FALSE])
847 if $2; then
848   $1_TRUE=
849   $1_FALSE='#'
850 else
851   $1_TRUE='#'
852   $1_FALSE=
854 AC_CONFIG_COMMANDS_PRE(
855 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
856   AC_MSG_ERROR([conditional "$1" was never defined.
857 Usually this means the macro was only invoked conditionally.])
858 fi])])
860 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
862 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
864 # This program is free software; you can redistribute it and/or modify
865 # it under the terms of the GNU General Public License as published by
866 # the Free Software Foundation; either version 2, or (at your option)
867 # any later version.
869 # This program is distributed in the hope that it will be useful,
870 # but WITHOUT ANY WARRANTY; without even the implied warranty of
871 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
872 # GNU General Public License for more details.
874 # You should have received a copy of the GNU General Public License
875 # along with this program; if not, write to the Free Software
876 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
877 # 02111-1307, USA.
879 AC_PREREQ([2.52])
881 # serial 6
883 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
884 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
886 # Add --enable-maintainer-mode option to configure.
887 # From Jim Meyering
889 # Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
891 # This program is free software; you can redistribute it and/or modify
892 # it under the terms of the GNU General Public License as published by
893 # the Free Software Foundation; either version 2, or (at your option)
894 # any later version.
896 # This program is distributed in the hope that it will be useful,
897 # but WITHOUT ANY WARRANTY; without even the implied warranty of
898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
899 # GNU General Public License for more details.
901 # You should have received a copy of the GNU General Public License
902 # along with this program; if not, write to the Free Software
903 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
904 # 02111-1307, USA.
906 # serial 2
908 AC_DEFUN([AM_MAINTAINER_MODE],
909 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
910   dnl maintainer-mode is disabled by default
911   AC_ARG_ENABLE(maintainer-mode,
912 [  --enable-maintainer-mode enable make rules and dependencies not useful
913                           (and sometimes confusing) to the casual installer],
914       USE_MAINTAINER_MODE=$enableval,
915       USE_MAINTAINER_MODE=no)
916   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
917   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
918   MAINT=$MAINTAINER_MODE_TRUE
919   AC_SUBST(MAINT)dnl
923 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])