]> git.ipfire.org Git - thirdparty/squid.git/blob - aclocal.m4
Summary: Merge from delay-class-4
[thirdparty/squid.git] / aclocal.m4
1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2
3 # Copyright 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 dnl This encapsulates the nasty mess of headers we need to check when
15 dnl checking types.
16 AC_DEFUN(SQUID_DEFAULT_INCLUDES,[[
17 /* What a mess.. many systems have added the (now standard) bit types
18 * in their own ways, so we need to scan a wide variety of headers to
19 * find them..
20 * IMPORTANT: Keep include/squid_types.h syncronised with this list
21 */
22 #if HAVE_SYS_TYPES_H
23 #include <sys/types.h>
24 #endif
25 #if STDC_HEADERS
26 #include <stdlib.h>
27 #include <stddef.h>
28 #endif
29 #if HAVE_INTTYPES_H
30 #include <inttypes.h>
31 #endif
32 #if HAVE_SYS_BITYPES_H
33 #include <sys/bitypes.h>
34 #endif
35 ]])
36
37 dnl and this is for AC_CHECK_SIZEOF
38 AC_DEFUN(SQUID_DEFAULT_SIZEOF_INCLUDES,[
39 #include <stdio.h>
40 SQUID_DEFAULT_INCLUDES
41 ])
42
43 dnl *BSD net headers
44 AC_DEFUN(SQUID_BSDNET_INCLUDES,[
45 SQUID_DEFAULT_INCLUDES
46 #if HAVE_SYS_SOCKET_H
47 #include <sys/socket.h>
48 #endif
49 #if HAVE_NETINET_IN_H
50 #include <netinet/in.h>
51 #endif
52 #if HAVE_NETINET_IP_COMPAT_H
53 #include <netinet/ip_compat.h>
54 #endif
55 #if HAVE_NETINET_IP_FIL_H
56 #include <netinet/ip_fil.h>
57 #endif
58 #if HAVE_NET_IF_H
59 #include <net/if.h>
60 #endif
61 ])
62
63 # Do all the work for Automake. -*- Autoconf -*-
64
65 # This macro actually does too much some checks are only needed if
66 # your package does certain things. But this isn't really a big deal.
67
68 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
69 # Free Software Foundation, Inc.
70
71 # This program is free software; you can redistribute it and/or modify
72 # it under the terms of the GNU General Public License as published by
73 # the Free Software Foundation; either version 2, or (at your option)
74 # any later version.
75
76 # This program is distributed in the hope that it will be useful,
77 # but WITHOUT ANY WARRANTY; without even the implied warranty of
78 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79 # GNU General Public License for more details.
80
81 # You should have received a copy of the GNU General Public License
82 # along with this program; if not, write to the Free Software
83 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
84 # 02111-1307, USA.
85
86 # serial 8
87
88 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
89 # written in clear, in which case automake, when reading aclocal.m4,
90 # will think it sees a *use*, and therefore will trigger all it's
91 # C support machinery. Also note that it means that autoscan, seeing
92 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
93
94
95 AC_PREREQ([2.52])
96
97 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
98 # the ones we care about.
99 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
100
101 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
102 # AM_INIT_AUTOMAKE([OPTIONS])
103 # -----------------------------------------------
104 # The call with PACKAGE and VERSION arguments is the old style
105 # call (pre autoconf-2.50), which is being phased out. PACKAGE
106 # and VERSION should now be passed to AC_INIT and removed from
107 # the call to AM_INIT_AUTOMAKE.
108 # We support both call styles for the transition. After
109 # the next Automake release, Autoconf can make the AC_INIT
110 # arguments mandatory, and then we can depend on a new Autoconf
111 # release and drop the old call support.
112 AC_DEFUN([AM_INIT_AUTOMAKE],
113 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
114 AC_REQUIRE([AC_PROG_INSTALL])dnl
115 # test to see if srcdir already configured
116 if test "`cd $srcdir && pwd`" != "`pwd`" &&
117 test -f $srcdir/config.status; then
118 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
119 fi
120
121 # Define the identity of the package.
122 dnl Distinguish between old-style and new-style calls.
123 m4_ifval([$2],
124 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
125 AC_SUBST([PACKAGE], [$1])dnl
126 AC_SUBST([VERSION], [$2])],
127 [_AM_SET_OPTIONS([$1])dnl
128 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
129 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
130
131 _AM_IF_OPTION([no-define],,
132 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
133 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
134
135 # Some tools Automake needs.
136 AC_REQUIRE([AM_SANITY_CHECK])dnl
137 AC_REQUIRE([AC_ARG_PROGRAM])dnl
138 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
139 AM_MISSING_PROG(AUTOCONF, autoconf)
140 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
141 AM_MISSING_PROG(AUTOHEADER, autoheader)
142 AM_MISSING_PROG(MAKEINFO, makeinfo)
143 AM_MISSING_PROG(AMTAR, tar)
144 AM_PROG_INSTALL_SH
145 AM_PROG_INSTALL_STRIP
146 # We need awk for the "check" target. The system "awk" is bad on
147 # some platforms.
148 AC_REQUIRE([AC_PROG_AWK])dnl
149 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
150
151 _AM_IF_OPTION([no-dependencies],,
152 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
153 [_AM_DEPENDENCIES(CC)],
154 [define([AC_PROG_][CC],
155 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
156 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
157 [_AM_DEPENDENCIES(CXX)],
158 [define([AC_PROG_][CXX],
159 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
160 ])
161 ])
162
163 # Copyright 2002 Free Software Foundation, Inc.
164
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.
169
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.
174
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
178
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.6"])
184
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.6.3])])
191
192 # Helper functions for option handling. -*- Autoconf -*-
193
194 # Copyright 2001, 2002 Free Software Foundation, Inc.
195
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.
200
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.
205
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.
210
211 # serial 2
212
213 # _AM_MANGLE_OPTION(NAME)
214 # -----------------------
215 AC_DEFUN([_AM_MANGLE_OPTION],
216 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
217
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)])
223
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)])])
229
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])])
235
236 #
237 # Check to make sure that the build environment is sane.
238 #
239
240 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
241
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.
246
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.
251
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.
256
257 # serial 3
258
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
280
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
288
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])
297 fi
298 AC_MSG_RESULT(yes)])
299
300 # -*- Autoconf -*-
301
302
303 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
304
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.
309
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.
314
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.
319
320 # serial 3
321
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)])
328
329
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])
343 fi
344 ])
345
346 # AM_AUX_DIR_EXPAND
347
348 # Copyright 2001 Free Software Foundation, Inc.
349
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.
354
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.
359
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.
364
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/../..'.
368 #
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.
376 #
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
383 #
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.
388 #
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.
398 #
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.
402
403 # Rely on autoconf to set up CDPATH properly.
404 AC_PREREQ([2.50])
405
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`
409 ])
410
411 # AM_PROG_INSTALL_SH
412 # ------------------
413 # Define $install_sh.
414
415 # Copyright 2001 Free Software Foundation, Inc.
416
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.
421
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.
426
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.
431
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)])
436
437 # AM_PROG_INSTALL_STRIP
438
439 # Copyright 2001 Free Software Foundation, Inc.
440
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.
445
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.
450
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.
455
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], :)
472 fi
473 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
474 AC_SUBST([INSTALL_STRIP_PROGRAM])])
475
476 # serial 4 -*- Autoconf -*-
477
478 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
479
480 # This program is free software; you can redistribute it and/or modify
481 # it under the terms of the GNU General Public License as published by
482 # the Free Software Foundation; either version 2, or (at your option)
483 # any later version.
484
485 # This program is distributed in the hope that it will be useful,
486 # but WITHOUT ANY WARRANTY; without even the implied warranty of
487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
488 # GNU General Public License for more details.
489
490 # You should have received a copy of the GNU General Public License
491 # along with this program; if not, write to the Free Software
492 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
493 # 02111-1307, USA.
494
495
496 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
497 # written in clear, in which case automake, when reading aclocal.m4,
498 # will think it sees a *use*, and therefore will trigger all it's
499 # C support machinery. Also note that it means that autoscan, seeing
500 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
501
502
503
504 # _AM_DEPENDENCIES(NAME)
505 # ----------------------
506 # See how the compiler implements dependency checking.
507 # NAME is "CC", "CXX", "GCJ", or "OBJC".
508 # We try a few techniques and use that to set a single cache variable.
509 #
510 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
511 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
512 # dependency, and given that the user is not expected to run this macro,
513 # just rely on AC_PROG_CC.
514 AC_DEFUN([_AM_DEPENDENCIES],
515 [AC_REQUIRE([AM_SET_DEPDIR])dnl
516 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
517 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
518 AC_REQUIRE([AM_DEP_TRACK])dnl
519
520 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
521 [$1], CXX, [depcc="$CXX" am_compiler_list=],
522 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
523 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
524 [depcc="$$1" am_compiler_list=])
525
526 AC_CACHE_CHECK([dependency style of $depcc],
527 [am_cv_$1_dependencies_compiler_type],
528 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
529 # We make a subdir and do the tests there. Otherwise we can end up
530 # making bogus files that we don't know about and never remove. For
531 # instance it was reported that on HP-UX the gcc test will end up
532 # making a dummy file named `D' -- because `-MD' means `put the output
533 # in D'.
534 mkdir conftest.dir
535 # Copy depcomp to subdir because otherwise we won't find it if we're
536 # using a relative directory.
537 cp "$am_depcomp" conftest.dir
538 cd conftest.dir
539
540 am_cv_$1_dependencies_compiler_type=none
541 if test "$am_compiler_list" = ""; then
542 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
543 fi
544 for depmode in $am_compiler_list; do
545 # We need to recreate these files for each test, as the compiler may
546 # overwrite some of them when testing with obscure command lines.
547 # This happens at least with the AIX C compiler.
548 echo '#include "conftest.h"' > conftest.c
549 echo 'int i;' > conftest.h
550 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
551
552 case $depmode in
553 nosideeffect)
554 # after this tag, mechanisms are not by side-effect, so they'll
555 # only be used when explicitly requested
556 if test "x$enable_dependency_tracking" = xyes; then
557 continue
558 else
559 break
560 fi
561 ;;
562 none) break ;;
563 esac
564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
565 # mode. It turns out that the SunPro C++ compiler does not properly
566 # handle `-M -o', and we need to detect this.
567 if depmode=$depmode \
568 source=conftest.c object=conftest.o \
569 depfile=conftest.Po tmpdepfile=conftest.TPo \
570 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
571 grep conftest.h conftest.Po > /dev/null 2>&1 &&
572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
573 am_cv_$1_dependencies_compiler_type=$depmode
574 break
575 fi
576 done
577
578 cd ..
579 rm -rf conftest.dir
580 else
581 am_cv_$1_dependencies_compiler_type=none
582 fi
583 ])
584 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
585 ])
586
587
588 # AM_SET_DEPDIR
589 # -------------
590 # Choose a directory name for dependency files.
591 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
592 AC_DEFUN([AM_SET_DEPDIR],
593 [rm -f .deps 2>/dev/null
594 mkdir .deps 2>/dev/null
595 if test -d .deps; then
596 DEPDIR=.deps
597 else
598 # MS-DOS does not allow filenames that begin with a dot.
599 DEPDIR=_deps
600 fi
601 rmdir .deps 2>/dev/null
602 AC_SUBST([DEPDIR])
603 ])
604
605
606 # AM_DEP_TRACK
607 # ------------
608 AC_DEFUN([AM_DEP_TRACK],
609 [AC_ARG_ENABLE(dependency-tracking,
610 [ --disable-dependency-tracking Speeds up one-time builds
611 --enable-dependency-tracking Do not reject slow dependency extractors])
612 if test "x$enable_dependency_tracking" != xno; then
613 am_depcomp="$ac_aux_dir/depcomp"
614 AMDEPBACKSLASH='\'
615 fi
616 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
617 AC_SUBST([AMDEPBACKSLASH])
618 ])
619
620 # Generate code to set up dependency tracking. -*- Autoconf -*-
621
622 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
623
624 # This program is free software; you can redistribute it and/or modify
625 # it under the terms of the GNU General Public License as published by
626 # the Free Software Foundation; either version 2, or (at your option)
627 # any later version.
628
629 # This program is distributed in the hope that it will be useful,
630 # but WITHOUT ANY WARRANTY; without even the implied warranty of
631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
632 # GNU General Public License for more details.
633
634 # You should have received a copy of the GNU General Public License
635 # along with this program; if not, write to the Free Software
636 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
637 # 02111-1307, USA.
638
639 #serial 2
640
641 # _AM_OUTPUT_DEPENDENCY_COMMANDS
642 # ------------------------------
643 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
644 [for mf in $CONFIG_FILES; do
645 # Strip MF so we end up with the name of the file.
646 mf=`echo "$mf" | sed -e 's/:.*$//'`
647 # Check whether this is an Automake generated Makefile or not.
648 # We used to match only the files named `Makefile.in', but
649 # some people rename them; so instead we look at the file content.
650 # Grep'ing the first line is not enough: some people post-process
651 # each Makefile.in and add a new line on top of each file to say so.
652 # So let's grep whole file.
653 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
654 dirpart=`AS_DIRNAME("$mf")`
655 else
656 continue
657 fi
658 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
659 # Extract the definition of DEP_FILES from the Makefile without
660 # running `make'.
661 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
662 test -z "$DEPDIR" && continue
663 # When using ansi2knr, U may be empty or an underscore; expand it
664 U=`sed -n -e '/^U = / s///p' < "$mf"`
665 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
666 # We invoke sed twice because it is the simplest approach to
667 # changing $(DEPDIR) to its actual value in the expansion.
668 for file in `sed -n -e '
669 /^DEP_FILES = .*\\\\$/ {
670 s/^DEP_FILES = //
671 :loop
672 s/\\\\$//
673 p
674 n
675 /\\\\$/ b loop
676 p
677 }
678 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
680 # Make sure the directory exists.
681 test -f "$dirpart/$file" && continue
682 fdir=`AS_DIRNAME(["$file"])`
683 AS_MKDIR_P([$dirpart/$fdir])
684 # echo "creating $dirpart/$file"
685 echo '# dummy' > "$dirpart/$file"
686 done
687 done
688 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
689
690
691 # AM_OUTPUT_DEPENDENCY_COMMANDS
692 # -----------------------------
693 # This macro should only be invoked once -- use via AC_REQUIRE.
694 #
695 # This code is only required when automatic dependency tracking
696 # is enabled. FIXME. This creates each `.P' file that we will
697 # need in order to bootstrap the dependency handling code.
698 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
699 [AC_CONFIG_COMMANDS([depfiles],
700 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
701 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
702 ])
703
704 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
705
706 # This program is free software; you can redistribute it and/or modify
707 # it under the terms of the GNU General Public License as published by
708 # the Free Software Foundation; either version 2, or (at your option)
709 # any later version.
710
711 # This program is distributed in the hope that it will be useful,
712 # but WITHOUT ANY WARRANTY; without even the implied warranty of
713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
714 # GNU General Public License for more details.
715
716 # You should have received a copy of the GNU General Public License
717 # along with this program; if not, write to the Free Software
718 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
719 # 02111-1307, USA.
720
721 # serial 2
722
723 # AM_MAKE_INCLUDE()
724 # -----------------
725 # Check to see how make treats includes.
726 AC_DEFUN([AM_MAKE_INCLUDE],
727 [am_make=${MAKE-make}
728 cat > confinc << 'END'
729 doit:
730 @echo done
731 END
732 # If we don't find an include directive, just comment out the code.
733 AC_MSG_CHECKING([for style of include used by $am_make])
734 am__include="#"
735 am__quote=
736 _am_result=none
737 # First try GNU make style include.
738 echo "include confinc" > confmf
739 # We grep out `Entering directory' and `Leaving directory'
740 # messages which can occur if `w' ends up in MAKEFLAGS.
741 # In particular we don't look at `^make:' because GNU make might
742 # be invoked under some other name (usually "gmake"), in which
743 # case it prints its new name instead of `make'.
744 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
745 am__include=include
746 am__quote=
747 _am_result=GNU
748 fi
749 # Now try BSD make style include.
750 if test "$am__include" = "#"; then
751 echo '.include "confinc"' > confmf
752 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
753 am__include=.include
754 am__quote="\""
755 _am_result=BSD
756 fi
757 fi
758 AC_SUBST(am__include)
759 AC_SUBST(am__quote)
760 AC_MSG_RESULT($_am_result)
761 rm -f confinc confmf
762 ])
763
764 # AM_CONDITIONAL -*- Autoconf -*-
765
766 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
767
768 # This program is free software; you can redistribute it and/or modify
769 # it under the terms of the GNU General Public License as published by
770 # the Free Software Foundation; either version 2, or (at your option)
771 # any later version.
772
773 # This program is distributed in the hope that it will be useful,
774 # but WITHOUT ANY WARRANTY; without even the implied warranty of
775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
776 # GNU General Public License for more details.
777
778 # You should have received a copy of the GNU General Public License
779 # along with this program; if not, write to the Free Software
780 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
781 # 02111-1307, USA.
782
783 # serial 5
784
785 AC_PREREQ(2.52)
786
787 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
788 # -------------------------------------
789 # Define a conditional.
790 AC_DEFUN([AM_CONDITIONAL],
791 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
792 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
793 AC_SUBST([$1_TRUE])
794 AC_SUBST([$1_FALSE])
795 if $2; then
796 $1_TRUE=
797 $1_FALSE='#'
798 else
799 $1_TRUE='#'
800 $1_FALSE=
801 fi
802 AC_CONFIG_COMMANDS_PRE(
803 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
804 AC_MSG_ERROR([conditional \"$1\" was never defined.
805 Usually this means the macro was only invoked conditionally.])
806 fi])])
807
808 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
809
810 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
811
812 # This program is free software; you can redistribute it and/or modify
813 # it under the terms of the GNU General Public License as published by
814 # the Free Software Foundation; either version 2, or (at your option)
815 # any later version.
816
817 # This program is distributed in the hope that it will be useful,
818 # but WITHOUT ANY WARRANTY; without even the implied warranty of
819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
820 # GNU General Public License for more details.
821
822 # You should have received a copy of the GNU General Public License
823 # along with this program; if not, write to the Free Software
824 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
825 # 02111-1307, USA.
826
827 AC_PREREQ([2.52])
828
829 # serial 6
830
831 # When config.status generates a header, we must update the stamp-h file.
832 # This file resides in the same directory as the config header
833 # that is generated. We must strip everything past the first ":",
834 # and everything past the last "/".
835
836 # _AM_DIRNAME(PATH)
837 # -----------------
838 # Like AS_DIRNAME, only do it during macro expansion
839 AC_DEFUN([_AM_DIRNAME],
840 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
841 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
842 m4_if(regexp([$1], [^/.*]), -1,
843 [.],
844 patsubst([$1], [^\(/\).*], [\1])),
845 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
846 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
847 ])# _AM_DIRNAME
848
849
850 # The stamp files are numbered to have different names.
851 # We could number them on a directory basis, but that's additional
852 # complications, let's have a unique counter.
853 m4_define([_AM_STAMP_Count], [0])
854
855
856 # _AM_STAMP(HEADER)
857 # -----------------
858 # The name of the stamp file for HEADER.
859 AC_DEFUN([_AM_STAMP],
860 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
861 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
862 [:.*])))/stamp-h[]_AM_STAMP_Count])
863
864
865 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
866 # ------------------------------------------------------------
867 # We used to try to get a real timestamp in stamp-h. But the fear is that
868 # that will cause unnecessary cvs conflicts.
869 AC_DEFUN([_AM_CONFIG_HEADER],
870 [# Add the stamp file to the list of files AC keeps track of,
871 # along with our hook.
872 AC_CONFIG_HEADERS([$1],
873 [# update the timestamp
874 echo 'timestamp for $1' >"_AM_STAMP([$1])"
875 $2],
876 [$3])
877 ])# _AM_CONFIG_HEADER
878
879
880 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
881 # --------------------------------------------------------------
882 AC_DEFUN([AM_CONFIG_HEADER],
883 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
884 ])# AM_CONFIG_HEADER
885
886 # Add --enable-maintainer-mode option to configure.
887 # From Jim Meyering
888
889 # Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
890
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.
895
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.
900
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.
905
906 # serial 1
907
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
920 ]
921 )
922
923 # serial 2
924
925 # AM_PROG_CC_C_O
926 # --------------
927 # Like AC_PROG_CC_C_O, but changed for automake.
928
929 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
930
931 # This program is free software; you can redistribute it and/or modify
932 # it under the terms of the GNU General Public License as published by
933 # the Free Software Foundation; either version 2, or (at your option)
934 # any later version.
935
936 # This program is distributed in the hope that it will be useful,
937 # but WITHOUT ANY WARRANTY; without even the implied warranty of
938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
939 # GNU General Public License for more details.
940
941 # You should have received a copy of the GNU General Public License
942 # along with this program; if not, write to the Free Software
943 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
944 # 02111-1307, USA.
945
946 AC_DEFUN([AM_PROG_CC_C_O],
947 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
948 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
949 # FIXME: we rely on the cache variable name because
950 # there is no other way.
951 set dummy $CC
952 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
953 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
954 # Losing compiler, so override with the script.
955 # FIXME: It is wrong to rewrite CC.
956 # But if we don't then we get into trouble of one sort or another.
957 # A longer-term fix would be to have automake use am__CC in this case,
958 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
959 CC="$am_aux_dir/compile $CC"
960 fi
961 ])
962