305e45687c55aa8692bd11dc944a7a18bc746ace
[debian/gzip] / aclocal.m4
1 # generated automatically by aclocal 1.7 -*- Autoconf -*-
2
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.
8
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.
13
14 # Do all the work for Automake.                            -*- Autoconf -*-
15
16 # This macro actually does too much some checks are only needed if
17 # your package does certain things.  But this isn't really a big deal.
18
19 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
20 # Free Software Foundation, Inc.
21
22 # This program is free software; you can redistribute it and/or modify
23 # it under the terms of the GNU General Public License as published by
24 # the Free Software Foundation; either version 2, or (at your option)
25 # any later version.
26
27 # This program is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30 # GNU General Public License for more details.
31
32 # You should have received a copy of the GNU General Public License
33 # along with this program; if not, write to the Free Software
34 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35 # 02111-1307, USA.
36
37 # serial 8
38
39 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
40 # written in clear, in which case automake, when reading aclocal.m4,
41 # will think it sees a *use*, and therefore will trigger all it's
42 # C support machinery.  Also note that it means that autoscan, seeing
43 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
44
45
46 AC_PREREQ([2.54])
47
48 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
49 # the ones we care about.
50 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
51
52 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
53 # AM_INIT_AUTOMAKE([OPTIONS])
54 # -----------------------------------------------
55 # The call with PACKAGE and VERSION arguments is the old style
56 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
57 # and VERSION should now be passed to AC_INIT and removed from
58 # the call to AM_INIT_AUTOMAKE.
59 # We support both call styles for the transition.  After
60 # the next Automake release, Autoconf can make the AC_INIT
61 # arguments mandatory, and then we can depend on a new Autoconf
62 # release and drop the old call support.
63 AC_DEFUN([AM_INIT_AUTOMAKE],
64 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
65  AC_REQUIRE([AC_PROG_INSTALL])dnl
66 # test to see if srcdir already configured
67 if test "`cd $srcdir && pwd`" != "`pwd`" &&
68    test -f $srcdir/config.status; then
69   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
70 fi
71
72 # test whether we have cygpath
73 if test -z "$CYGPATH_W"; then
74   if (cygpath --version) >/dev/null 2>/dev/null; then
75     CYGPATH_W='cygpath -w'
76   else
77     CYGPATH_W=echo
78   fi
79 fi
80 AC_SUBST([CYGPATH_W])
81
82 # Define the identity of the package.
83 dnl Distinguish between old-style and new-style calls.
84 m4_ifval([$2],
85 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
86  AC_SUBST([PACKAGE], [$1])dnl
87  AC_SUBST([VERSION], [$2])],
88 [_AM_SET_OPTIONS([$1])dnl
89  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
90  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
91
92 _AM_IF_OPTION([no-define],,
93 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
94  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
95
96 # Some tools Automake needs.
97 AC_REQUIRE([AM_SANITY_CHECK])dnl
98 AC_REQUIRE([AC_ARG_PROGRAM])dnl
99 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
100 AM_MISSING_PROG(AUTOCONF, autoconf)
101 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
102 AM_MISSING_PROG(AUTOHEADER, autoheader)
103 AM_MISSING_PROG(MAKEINFO, makeinfo)
104 AM_MISSING_PROG(AMTAR, tar)
105 AM_PROG_INSTALL_SH
106 AM_PROG_INSTALL_STRIP
107 # We need awk for the "check" target.  The system "awk" is bad on
108 # some platforms.
109 AC_REQUIRE([AC_PROG_AWK])dnl
110 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
111
112 _AM_IF_OPTION([no-dependencies],,
113 [AC_PROVIDE_IFELSE([AC_PROG_CC],
114                   [_AM_DEPENDENCIES(CC)],
115                   [define([AC_PROG_CC],
116                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
117 AC_PROVIDE_IFELSE([AC_PROG_CXX],
118                   [_AM_DEPENDENCIES(CXX)],
119                   [define([AC_PROG_CXX],
120                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
121 ])
122 ])
123
124
125 # When config.status generates a header, we must update the stamp-h file.
126 # This file resides in the same directory as the config header
127 # that is generated.  The stamp files are numbered to have different names.
128
129 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
130 # loop where config.status creates the headers, so we can generate
131 # our stamp files there.
132 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
133 [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
134 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
135
136 # Copyright 2002  Free Software Foundation, Inc.
137
138 # This program is free software; you can redistribute it and/or modify
139 # it under the terms of the GNU General Public License as published by
140 # the Free Software Foundation; either version 2, or (at your option)
141 # any later version.
142
143 # This program is distributed in the hope that it will be useful,
144 # but WITHOUT ANY WARRANTY; without even the implied warranty of
145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
146 # GNU General Public License for more details.
147
148 # You should have received a copy of the GNU General Public License
149 # along with this program; if not, write to the Free Software
150 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
151
152 # AM_AUTOMAKE_VERSION(VERSION)
153 # ----------------------------
154 # Automake X.Y traces this macro to ensure aclocal.m4 has been
155 # generated from the m4 files accompanying Automake X.Y.
156 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
157
158 # AM_SET_CURRENT_AUTOMAKE_VERSION
159 # -------------------------------
160 # Call AM_AUTOMAKE_VERSION so it can be traced.
161 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
162 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
163          [AM_AUTOMAKE_VERSION([1.7])])
164
165 # Helper functions for option handling.                    -*- Autoconf -*-
166
167 # Copyright 2001, 2002  Free Software Foundation, Inc.
168
169 # This program is free software; you can redistribute it and/or modify
170 # it under the terms of the GNU General Public License as published by
171 # the Free Software Foundation; either version 2, or (at your option)
172 # any later version.
173
174 # This program is distributed in the hope that it will be useful,
175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
177 # GNU General Public License for more details.
178
179 # You should have received a copy of the GNU General Public License
180 # along with this program; if not, write to the Free Software
181 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
182 # 02111-1307, USA.
183
184 # serial 2
185
186 # _AM_MANGLE_OPTION(NAME)
187 # -----------------------
188 AC_DEFUN([_AM_MANGLE_OPTION],
189 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
190
191 # _AM_SET_OPTION(NAME)
192 # ------------------------------
193 # Set option NAME.  Presently that only means defining a flag for this option.
194 AC_DEFUN([_AM_SET_OPTION],
195 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
196
197 # _AM_SET_OPTIONS(OPTIONS)
198 # ----------------------------------
199 # OPTIONS is a space-separated list of Automake options.
200 AC_DEFUN([_AM_SET_OPTIONS],
201 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
202
203 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
204 # -------------------------------------------
205 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
206 AC_DEFUN([_AM_IF_OPTION],
207 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
208
209 #
210 # Check to make sure that the build environment is sane.
211 #
212
213 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
214
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)
218 # any later version.
219
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.
224
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
228 # 02111-1307, USA.
229
230 # serial 3
231
232 # AM_SANITY_CHECK
233 # ---------------
234 AC_DEFUN([AM_SANITY_CHECK],
235 [AC_MSG_CHECKING([whether build environment is sane])
236 # Just in case
237 sleep 1
238 echo timestamp > conftest.file
239 # Do `set' in a subshell so we don't clobber the current shell's
240 # arguments.  Must try -L first in case configure is actually a
241 # symlink; some systems play weird games with the mod time of symlinks
242 # (eg FreeBSD returns the mod time of the symlink's containing
243 # directory).
244 if (
245    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
246    if test "$[*]" = "X"; then
247       # -L didn't work.
248       set X `ls -t $srcdir/configure conftest.file`
249    fi
250    rm -f conftest.file
251    if test "$[*]" != "X $srcdir/configure conftest.file" \
252       && test "$[*]" != "X conftest.file $srcdir/configure"; then
253
254       # If neither matched, then we have a broken ls.  This can happen
255       # if, for instance, CONFIG_SHELL is bash and it inherits a
256       # broken ls alias from the environment.  This has actually
257       # happened.  Such a system could not be considered "sane".
258       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
259 alias in your environment])
260    fi
261
262    test "$[2]" = conftest.file
263    )
264 then
265    # Ok.
266    :
267 else
268    AC_MSG_ERROR([newly created file is older than distributed files!
269 Check your system clock])
270 fi
271 AC_MSG_RESULT(yes)])
272
273 #  -*- Autoconf -*-
274
275
276 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
277
278 # This program is free software; you can redistribute it and/or modify
279 # it under the terms of the GNU General Public License as published by
280 # the Free Software Foundation; either version 2, or (at your option)
281 # any later version.
282
283 # This program is distributed in the hope that it will be useful,
284 # but WITHOUT ANY WARRANTY; without even the implied warranty of
285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
286 # GNU General Public License for more details.
287
288 # You should have received a copy of the GNU General Public License
289 # along with this program; if not, write to the Free Software
290 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
291 # 02111-1307, USA.
292
293 # serial 3
294
295 # AM_MISSING_PROG(NAME, PROGRAM)
296 # ------------------------------
297 AC_DEFUN([AM_MISSING_PROG],
298 [AC_REQUIRE([AM_MISSING_HAS_RUN])
299 $1=${$1-"${am_missing_run}$2"}
300 AC_SUBST($1)])
301
302
303 # AM_MISSING_HAS_RUN
304 # ------------------
305 # Define MISSING if not defined so far and test if it supports --run.
306 # If it does, set am_missing_run to use it, otherwise, to nothing.
307 AC_DEFUN([AM_MISSING_HAS_RUN],
308 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
309 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
310 # Use eval to expand $SHELL
311 if eval "$MISSING --run true"; then
312   am_missing_run="$MISSING --run "
313 else
314   am_missing_run=
315   AC_MSG_WARN([`missing' script is too old or missing])
316 fi
317 ])
318
319 # AM_AUX_DIR_EXPAND
320
321 # Copyright 2001 Free Software Foundation, Inc.
322
323 # This program is free software; you can redistribute it and/or modify
324 # it under the terms of the GNU General Public License as published by
325 # the Free Software Foundation; either version 2, or (at your option)
326 # any later version.
327
328 # This program is distributed in the hope that it will be useful,
329 # but WITHOUT ANY WARRANTY; without even the implied warranty of
330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
331 # GNU General Public License for more details.
332
333 # You should have received a copy of the GNU General Public License
334 # along with this program; if not, write to the Free Software
335 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
336 # 02111-1307, USA.
337
338 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
339 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
340 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
341 #
342 # Of course, Automake must honor this variable whenever it calls a
343 # tool from the auxiliary directory.  The problem is that $srcdir (and
344 # therefore $ac_aux_dir as well) can be either absolute or relative,
345 # depending on how configure is run.  This is pretty annoying, since
346 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
347 # source directory, any form will work fine, but in subdirectories a
348 # relative path needs to be adjusted first.
349 #
350 # $ac_aux_dir/missing
351 #    fails when called from a subdirectory if $ac_aux_dir is relative
352 # $top_srcdir/$ac_aux_dir/missing
353 #    fails if $ac_aux_dir is absolute,
354 #    fails when called from a subdirectory in a VPATH build with
355 #          a relative $ac_aux_dir
356 #
357 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
358 # are both prefixed by $srcdir.  In an in-source build this is usually
359 # harmless because $srcdir is `.', but things will broke when you
360 # start a VPATH build or use an absolute $srcdir.
361 #
362 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
363 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
364 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
365 # and then we would define $MISSING as
366 #   MISSING="\${SHELL} $am_aux_dir/missing"
367 # This will work as long as MISSING is not called from configure, because
368 # unfortunately $(top_srcdir) has no meaning in configure.
369 # However there are other variables, like CC, which are often used in
370 # configure, and could therefore not use this "fixed" $ac_aux_dir.
371 #
372 # Another solution, used here, is to always expand $ac_aux_dir to an
373 # absolute PATH.  The drawback is that using absolute paths prevent a
374 # configured tree to be moved without reconfiguration.
375
376 # Rely on autoconf to set up CDPATH properly.
377 AC_PREREQ([2.50])
378
379 AC_DEFUN([AM_AUX_DIR_EXPAND], [
380 # expand $ac_aux_dir to an absolute path
381 am_aux_dir=`cd $ac_aux_dir && pwd`
382 ])
383
384 # AM_PROG_INSTALL_SH
385 # ------------------
386 # Define $install_sh.
387
388 # Copyright 2001 Free Software Foundation, Inc.
389
390 # This program is free software; you can redistribute it and/or modify
391 # it under the terms of the GNU General Public License as published by
392 # the Free Software Foundation; either version 2, or (at your option)
393 # any later version.
394
395 # This program is distributed in the hope that it will be useful,
396 # but WITHOUT ANY WARRANTY; without even the implied warranty of
397 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
398 # GNU General Public License for more details.
399
400 # You should have received a copy of the GNU General Public License
401 # along with this program; if not, write to the Free Software
402 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
403 # 02111-1307, USA.
404
405 AC_DEFUN([AM_PROG_INSTALL_SH],
406 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
407 install_sh=${install_sh-"$am_aux_dir/install-sh"}
408 AC_SUBST(install_sh)])
409
410 # AM_PROG_INSTALL_STRIP
411
412 # Copyright 2001 Free Software Foundation, Inc.
413
414 # This program is free software; you can redistribute it and/or modify
415 # it under the terms of the GNU General Public License as published by
416 # the Free Software Foundation; either version 2, or (at your option)
417 # any later version.
418
419 # This program is distributed in the hope that it will be useful,
420 # but WITHOUT ANY WARRANTY; without even the implied warranty of
421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
422 # GNU General Public License for more details.
423
424 # You should have received a copy of the GNU General Public License
425 # along with this program; if not, write to the Free Software
426 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
427 # 02111-1307, USA.
428
429 # One issue with vendor `install' (even GNU) is that you can't
430 # specify the program used to strip binaries.  This is especially
431 # annoying in cross-compiling environments, where the build's strip
432 # is unlikely to handle the host's binaries.
433 # Fortunately install-sh will honor a STRIPPROG variable, so we
434 # always use install-sh in `make install-strip', and initialize
435 # STRIPPROG with the value of the STRIP variable (set by the user).
436 AC_DEFUN([AM_PROG_INSTALL_STRIP],
437 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
438 # Installed binaries are usually stripped using `strip' when the user
439 # run `make install-strip'.  However `strip' might not be the right
440 # tool to use in cross-compilation environments, therefore Automake
441 # will honor the `STRIP' environment variable to overrule this program.
442 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
443 if test "$cross_compiling" != no; then
444   AC_CHECK_TOOL([STRIP], [strip], :)
445 fi
446 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
447 AC_SUBST([INSTALL_STRIP_PROGRAM])])
448
449 # serial 4                                              -*- Autoconf -*-
450
451 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
452
453 # This program is free software; you can redistribute it and/or modify
454 # it under the terms of the GNU General Public License as published by
455 # the Free Software Foundation; either version 2, or (at your option)
456 # any later version.
457
458 # This program is distributed in the hope that it will be useful,
459 # but WITHOUT ANY WARRANTY; without even the implied warranty of
460 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
461 # GNU General Public License for more details.
462
463 # You should have received a copy of the GNU General Public License
464 # along with this program; if not, write to the Free Software
465 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
466 # 02111-1307, USA.
467
468
469 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
470 # written in clear, in which case automake, when reading aclocal.m4,
471 # will think it sees a *use*, and therefore will trigger all it's
472 # C support machinery.  Also note that it means that autoscan, seeing
473 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
474
475
476
477 # _AM_DEPENDENCIES(NAME)
478 # ----------------------
479 # See how the compiler implements dependency checking.
480 # NAME is "CC", "CXX", "GCJ", or "OBJC".
481 # We try a few techniques and use that to set a single cache variable.
482 #
483 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
484 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
485 # dependency, and given that the user is not expected to run this macro,
486 # just rely on AC_PROG_CC.
487 AC_DEFUN([_AM_DEPENDENCIES],
488 [AC_REQUIRE([AM_SET_DEPDIR])dnl
489 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
490 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
491 AC_REQUIRE([AM_DEP_TRACK])dnl
492
493 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
494        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
495        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
496        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
497                    [depcc="$$1"   am_compiler_list=])
498
499 AC_CACHE_CHECK([dependency style of $depcc],
500                [am_cv_$1_dependencies_compiler_type],
501 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
502   # We make a subdir and do the tests there.  Otherwise we can end up
503   # making bogus files that we don't know about and never remove.  For
504   # instance it was reported that on HP-UX the gcc test will end up
505   # making a dummy file named `D' -- because `-MD' means `put the output
506   # in D'.
507   mkdir conftest.dir
508   # Copy depcomp to subdir because otherwise we won't find it if we're
509   # using a relative directory.
510   cp "$am_depcomp" conftest.dir
511   cd conftest.dir
512
513   am_cv_$1_dependencies_compiler_type=none
514   if test "$am_compiler_list" = ""; then
515      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
516   fi
517   for depmode in $am_compiler_list; do
518     # We need to recreate these files for each test, as the compiler may
519     # overwrite some of them when testing with obscure command lines.
520     # This happens at least with the AIX C compiler.
521     echo '#include "conftest.h"' > conftest.c
522     echo 'int i;' > conftest.h
523     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
524
525     case $depmode in
526     nosideeffect)
527       # after this tag, mechanisms are not by side-effect, so they'll
528       # only be used when explicitly requested
529       if test "x$enable_dependency_tracking" = xyes; then
530         continue
531       else
532         break
533       fi
534       ;;
535     none) break ;;
536     esac
537     # We check with `-c' and `-o' for the sake of the "dashmstdout"
538     # mode.  It turns out that the SunPro C++ compiler does not properly
539     # handle `-M -o', and we need to detect this.
540     if depmode=$depmode \
541        source=conftest.c object=conftest.o \
542        depfile=conftest.Po tmpdepfile=conftest.TPo \
543        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
544        grep conftest.h conftest.Po > /dev/null 2>&1 &&
545        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
546       am_cv_$1_dependencies_compiler_type=$depmode
547       break
548     fi
549   done
550
551   cd ..
552   rm -rf conftest.dir
553 else
554   am_cv_$1_dependencies_compiler_type=none
555 fi
556 ])
557 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
558 AM_CONDITIONAL([am__fastdep$1], [
559   test "x$enable_dependency_tracking" != xno \
560   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
561 ])
562
563
564 # AM_SET_DEPDIR
565 # -------------
566 # Choose a directory name for dependency files.
567 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
568 AC_DEFUN([AM_SET_DEPDIR],
569 [rm -f .deps 2>/dev/null
570 mkdir .deps 2>/dev/null
571 if test -d .deps; then
572   DEPDIR=.deps
573 else
574   # MS-DOS does not allow filenames that begin with a dot.
575   DEPDIR=_deps
576 fi
577 rmdir .deps 2>/dev/null
578 AC_SUBST([DEPDIR])
579 ])
580
581
582 # AM_DEP_TRACK
583 # ------------
584 AC_DEFUN([AM_DEP_TRACK],
585 [AC_ARG_ENABLE(dependency-tracking,
586 [  --disable-dependency-tracking Speeds up one-time builds
587   --enable-dependency-tracking  Do not reject slow dependency extractors])
588 if test "x$enable_dependency_tracking" != xno; then
589   am_depcomp="$ac_aux_dir/depcomp"
590   AMDEPBACKSLASH='\'
591 fi
592 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
593 AC_SUBST([AMDEPBACKSLASH])
594 ])
595
596 # Generate code to set up dependency tracking.   -*- Autoconf -*-
597
598 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
599
600 # This program is free software; you can redistribute it and/or modify
601 # it under the terms of the GNU General Public License as published by
602 # the Free Software Foundation; either version 2, or (at your option)
603 # any later version.
604
605 # This program is distributed in the hope that it will be useful,
606 # but WITHOUT ANY WARRANTY; without even the implied warranty of
607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
608 # GNU General Public License for more details.
609
610 # You should have received a copy of the GNU General Public License
611 # along with this program; if not, write to the Free Software
612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
613 # 02111-1307, USA.
614
615 #serial 2
616
617 # _AM_OUTPUT_DEPENDENCY_COMMANDS
618 # ------------------------------
619 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
620 [for mf in $CONFIG_FILES; do
621   # Strip MF so we end up with the name of the file.
622   mf=`echo "$mf" | sed -e 's/:.*$//'`
623   # Check whether this is an Automake generated Makefile or not.
624   # We used to match only the files named `Makefile.in', but
625   # some people rename them; so instead we look at the file content.
626   # Grep'ing the first line is not enough: some people post-process
627   # each Makefile.in and add a new line on top of each file to say so.
628   # So let's grep whole file.
629   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
630     dirpart=`AS_DIRNAME("$mf")`
631   else
632     continue
633   fi
634   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
635   # Extract the definition of DEP_FILES from the Makefile without
636   # running `make'.
637   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
638   test -z "$DEPDIR" && continue
639   # When using ansi2knr, U may be empty or an underscore; expand it
640   U=`sed -n -e '/^U = / s///p' < "$mf"`
641   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
642   # We invoke sed twice because it is the simplest approach to
643   # changing $(DEPDIR) to its actual value in the expansion.
644   for file in `sed -n -e '
645     /^DEP_FILES = .*\\\\$/ {
646       s/^DEP_FILES = //
647       :loop
648         s/\\\\$//
649         p
650         n
651         /\\\\$/ b loop
652       p
653     }
654     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
655        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
656     # Make sure the directory exists.
657     test -f "$dirpart/$file" && continue
658     fdir=`AS_DIRNAME(["$file"])`
659     AS_MKDIR_P([$dirpart/$fdir])
660     # echo "creating $dirpart/$file"
661     echo '# dummy' > "$dirpart/$file"
662   done
663 done
664 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
665
666
667 # AM_OUTPUT_DEPENDENCY_COMMANDS
668 # -----------------------------
669 # This macro should only be invoked once -- use via AC_REQUIRE.
670 #
671 # This code is only required when automatic dependency tracking
672 # is enabled.  FIXME.  This creates each `.P' file that we will
673 # need in order to bootstrap the dependency handling code.
674 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
675 [AC_CONFIG_COMMANDS([depfiles],
676      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
677      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
678 ])
679
680 # Check to see how 'make' treats includes.      -*- Autoconf -*-
681
682 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
683
684 # This program is free software; you can redistribute it and/or modify
685 # it under the terms of the GNU General Public License as published by
686 # the Free Software Foundation; either version 2, or (at your option)
687 # any later version.
688
689 # This program is distributed in the hope that it will be useful,
690 # but WITHOUT ANY WARRANTY; without even the implied warranty of
691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
692 # GNU General Public License for more details.
693
694 # You should have received a copy of the GNU General Public License
695 # along with this program; if not, write to the Free Software
696 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
697 # 02111-1307, USA.
698
699 # serial 2
700
701 # AM_MAKE_INCLUDE()
702 # -----------------
703 # Check to see how make treats includes.
704 AC_DEFUN([AM_MAKE_INCLUDE],
705 [am_make=${MAKE-make}
706 cat > confinc << 'END'
707 doit:
708         @echo done
709 END
710 # If we don't find an include directive, just comment out the code.
711 AC_MSG_CHECKING([for style of include used by $am_make])
712 am__include="#"
713 am__quote=
714 _am_result=none
715 # First try GNU make style include.
716 echo "include confinc" > confmf
717 # We grep out `Entering directory' and `Leaving directory'
718 # messages which can occur if `w' ends up in MAKEFLAGS.
719 # In particular we don't look at `^make:' because GNU make might
720 # be invoked under some other name (usually "gmake"), in which
721 # case it prints its new name instead of `make'.
722 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
723    am__include=include
724    am__quote=
725    _am_result=GNU
726 fi
727 # Now try BSD make style include.
728 if test "$am__include" = "#"; then
729    echo '.include "confinc"' > confmf
730    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
731       am__include=.include
732       am__quote="\""
733       _am_result=BSD
734    fi
735 fi
736 AC_SUBST(am__include)
737 AC_SUBST(am__quote)
738 AC_MSG_RESULT($_am_result)
739 rm -f confinc confmf
740 ])
741
742 # AM_CONDITIONAL                                              -*- Autoconf -*-
743
744 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
745
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)
749 # any later version.
750
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.
755
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
759 # 02111-1307, USA.
760
761 # serial 5
762
763 AC_PREREQ(2.52)
764
765 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
766 # -------------------------------------
767 # Define a conditional.
768 AC_DEFUN([AM_CONDITIONAL],
769 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
770         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
771 AC_SUBST([$1_TRUE])
772 AC_SUBST([$1_FALSE])
773 if $2; then
774   $1_TRUE=
775   $1_FALSE='#'
776 else
777   $1_TRUE='#'
778   $1_FALSE=
779 fi
780 AC_CONFIG_COMMANDS_PRE(
781 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
782   AC_MSG_ERROR([conditional "$1" was never defined.
783 Usually this means the macro was only invoked conditionally.])
784 fi])])
785
786 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
787
788 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
789
790 # This program is free software; you can redistribute it and/or modify
791 # it under the terms of the GNU General Public License as published by
792 # the Free Software Foundation; either version 2, or (at your option)
793 # any later version.
794
795 # This program is distributed in the hope that it will be useful,
796 # but WITHOUT ANY WARRANTY; without even the implied warranty of
797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
798 # GNU General Public License for more details.
799
800 # You should have received a copy of the GNU General Public License
801 # along with this program; if not, write to the Free Software
802 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
803 # 02111-1307, USA.
804
805 AC_PREREQ([2.52])
806
807 # serial 6
808
809 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
810 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
811
812 #serial 4
813
814 # AC_PROG_SHELL
815 # -------------
816 # Check for a working (i.e. POSIX-compatible) shell.
817 # Written by Paul Eggert <eggert@twinsun.com>,
818 # from an idea suggested by Albert Chin-A-Young <china@thewrittenword.com>.
819 AC_DEFUN([AC_PROG_SHELL],
820   [AC_MSG_CHECKING([for a POSIX-compliant shell])
821    AC_CACHE_VAL(ac_cv_path_shell,
822      [ac_command='
823         # Test the noclobber option, using the portable POSIX.2 syntax.
824         set -C
825         rm -f conftest.c
826         >conftest.c || exit
827         >|conftest.c || exit
828         !>conftest.c || exit
829       '
830       ac_cv_path_shell=no
831
832       case $SHELL in
833       /*)
834         rm -f conftest.c
835         if ("$SHELL" -c "$ac_command") 2>/dev/null; then
836           ac_cv_path_shell=$SHELL
837         fi;;
838       esac
839
840       case $ac_cv_path_shell in
841       no)
842         # Prefer shells that are more likely to be installed in the
843         # same place on all hosts of this platform.  Therefore, prefer
844         # shells in /bin and /usr/bin to shells in the installer's
845         # PATH.  Also, loop through PATH first and then through
846         # shells, since less-"nice" shells in /bin and /usr/bin are
847         # more likely to be installed than "nicer" shells elsewhere.
848         as_save_IFS=$IFS; IFS=:
849         for as_dir in /bin /usr/bin $PATH
850         do
851           IFS=$as_save_IFS
852           case $as_dir in
853           /*)
854             for ac_base in sh bash ksh sh5; do
855               rm -f conftest.c
856               if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
857                 ac_cv_path_shell=$as_dir/$ac_base
858                 break
859               fi
860             done
861             case $ac_cv_path_shell in
862             /*) break;;
863             esac;;
864           esac
865         done
866         rm -f conftest.c;;
867       esac])
868    AC_MSG_RESULT($ac_cv_path_shell)
869    SHELL=$ac_cv_path_shell
870    if test "$SHELL" = no; then
871      SHELL=/bin/sh
872      AC_MSG_WARN([using $SHELL, even though it does not conform to POSIX])
873    fi
874    AC_SUBST(SHELL)])
875
876 # isc-posix.m4 serial 2 (gettext-0.11.2)
877 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
878 dnl This file is free software, distributed under the terms of the GNU
879 dnl General Public License.  As a special exception to the GNU General
880 dnl Public License, this file may be distributed as part of a program
881 dnl that contains a configuration script generated by Autoconf, under
882 dnl the same distribution terms as the rest of that program.
883
884 # This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
885
886 # This test replaces the one in autoconf.
887 # Currently this macro should have the same name as the autoconf macro
888 # because gettext's gettext.m4 (distributed in the automake package)
889 # still uses it.  Otherwise, the use in gettext.m4 makes autoheader
890 # give these diagnostics:
891 #   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
892 #   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
893
894 undefine([AC_ISC_POSIX])
895
896 AC_DEFUN([AC_ISC_POSIX],
897   [
898     dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
899     AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
900   ]
901 )
902