2 # From configure.in Revision: 1.43 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for spamass-milter 0.3.1.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='spamass-milter'
270 PACKAGE_TARNAME='spamass-milter'
271 PACKAGE_VERSION='0.3.1'
272 PACKAGE_STRING='spamass-milter 0.3.1'
275 ac_unique_file="spamass-milter.cpp"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SPAMC SENDMAIL NROFF HAVE_MDOC_TRUE HAVE_MDOC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS CXXCPP EGREP LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXX_set=${CXX+set}
755 ac_env_CXX_value=$CXX
756 ac_cv_env_CXX_set=${CXX+set}
757 ac_cv_env_CXX_value=$CXX
758 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_env_CXXFLAGS_value=$CXXFLAGS
760 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CC_set=${CC+set}
772 ac_cv_env_CC_set=${CC+set}
773 ac_cv_env_CC_value=$CC
774 ac_env_CFLAGS_set=${CFLAGS+set}
775 ac_env_CFLAGS_value=$CFLAGS
776 ac_cv_env_CFLAGS_set=${CFLAGS+set}
777 ac_cv_env_CFLAGS_value=$CFLAGS
778 ac_env_SPAMC_set=${SPAMC+set}
779 ac_env_SPAMC_value=$SPAMC
780 ac_cv_env_SPAMC_set=${SPAMC+set}
781 ac_cv_env_SPAMC_value=$SPAMC
782 ac_env_SENDMAIL_set=${SENDMAIL+set}
783 ac_env_SENDMAIL_value=$SENDMAIL
784 ac_cv_env_SENDMAIL_set=${SENDMAIL+set}
785 ac_cv_env_SENDMAIL_value=$SENDMAIL
786 ac_env_CXXCPP_set=${CXXCPP+set}
787 ac_env_CXXCPP_value=$CXXCPP
788 ac_cv_env_CXXCPP_set=${CXXCPP+set}
789 ac_cv_env_CXXCPP_value=$CXXCPP
792 # Report the --help message.
794 if test "$ac_init_help" = "long"; then
795 # Omit some internal or obsolete options to make the list less imposing.
796 # This message is too long to be a string in the A/UX 3.1 sh.
798 \`configure' configures spamass-milter 0.3.1 to adapt to many kinds of systems.
800 Usage: $0 [OPTION]... [VAR=VALUE]...
802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
803 VAR=VALUE. See below for descriptions of some of the useful variables.
805 Defaults for the options are specified in brackets.
808 -h, --help display this help and exit
809 --help=short display options specific to this package
810 --help=recursive display the short help of all the included packages
811 -V, --version display version information and exit
812 -q, --quiet, --silent do not print \`checking...' messages
813 --cache-file=FILE cache test results in FILE [disabled]
814 -C, --config-cache alias for \`--cache-file=config.cache'
815 -n, --no-create do not create output files
816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
821 Installation directories:
822 --prefix=PREFIX install architecture-independent files in PREFIX
824 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
827 By default, \`make install' will install all the files in
828 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
829 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
830 for instance \`--prefix=\$HOME'.
832 For better control, use the options below.
834 Fine tuning of the installation directories:
835 --bindir=DIR user executables [EPREFIX/bin]
836 --sbindir=DIR system admin executables [EPREFIX/sbin]
837 --libexecdir=DIR program executables [EPREFIX/libexec]
838 --datadir=DIR read-only architecture-independent data [PREFIX/share]
839 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
840 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
841 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
842 --libdir=DIR object code libraries [EPREFIX/lib]
843 --includedir=DIR C header files [PREFIX/include]
844 --oldincludedir=DIR C header files for non-gcc [/usr/include]
845 --infodir=DIR info documentation [PREFIX/info]
846 --mandir=DIR man documentation [PREFIX/man]
852 --program-prefix=PREFIX prepend PREFIX to installed program names
853 --program-suffix=SUFFIX append SUFFIX to installed program names
854 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857 --build=BUILD configure for building on BUILD [guessed]
858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
862 if test -n "$ac_init_help"; then
863 case $ac_init_help in
864 short | recursive ) echo "Configuration of spamass-milter 0.3.1:";;
869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
871 --disable-dependency-tracking speeds up one-time build
872 --enable-dependency-tracking do not reject slow dependency extractors
873 --enable-emulate-poll use a select wrapper instead of poll (autodetected)
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-dmalloc use dmalloc ( http://www.dmalloc.com )
880 Some influential environment variables:
881 CXX C++ compiler command
882 CXXFLAGS C++ compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CC C compiler command
888 CFLAGS C compiler flags
890 SENDMAIL Path to sendmail
891 CXXCPP C++ preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 spamass-milter configure 0.3.1
992 generated by GNU Autoconf 2.59
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by spamass-milter $as_me 0.3.1, which was
1006 generated by GNU Autoconf 2.59. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 # Initialize automake now
1346 ac_config_headers="$ac_config_headers config.h"
1348 am__api_version="1.9"
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Find a good install program. We prefer a C program (faster),
1375 # so one script is as good as another. But avoid the broken or
1376 # incompatible versions:
1377 # SysV /etc/install, /usr/sbin/install
1378 # SunOS /usr/etc/install
1379 # IRIX /sbin/install
1381 # AmigaOS /C/install, which installs bootblocks on floppy discs
1382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1385 # OS/2's system install, which has a completely different semantic
1386 # ./install, which can be erroneously created by make from ./install.sh.
1387 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1389 if test -z "$INSTALL"; then
1390 if test "${ac_cv_path_install+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 # Account for people who put trailing slashes in PATH elements.
1400 ./ | .// | /cC/* | \
1401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1402 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1405 # OSF1 and SCO ODT 3.0 have their own names for install.
1406 # Don't use installbsd from OSF since it installs stuff as root
1408 for ac_prog in ginstall scoinst install; do
1409 for ac_exec_ext in '' $ac_executable_extensions; do
1410 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1411 if test $ac_prog = install &&
1412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1413 # AIX install. It has an incompatible calling convention.
1415 elif test $ac_prog = install &&
1416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1417 # program-specific install script used by HP pwplus--don't use.
1420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1432 if test "${ac_cv_path_install+set}" = set; then
1433 INSTALL=$ac_cv_path_install
1435 # As a last resort, use the slow shell script. We don't cache a
1436 # path for INSTALL within a source directory, because that will
1437 # break other packages using the cache if that directory is
1438 # removed, or if the path is relative.
1439 INSTALL=$ac_install_sh
1442 echo "$as_me:$LINENO: result: $INSTALL" >&5
1443 echo "${ECHO_T}$INSTALL" >&6
1445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1446 # It thinks the first close brace ends the variable substitution.
1447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1453 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1454 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1457 echo timestamp > conftest.file
1458 # Do `set' in a subshell so we don't clobber the current shell's
1459 # arguments. Must try -L first in case configure is actually a
1460 # symlink; some systems play weird games with the mod time of symlinks
1461 # (eg FreeBSD returns the mod time of the symlink's containing
1464 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1465 if test "$*" = "X"; then
1467 set X `ls -t $srcdir/configure conftest.file`
1470 if test "$*" != "X $srcdir/configure conftest.file" \
1471 && test "$*" != "X conftest.file $srcdir/configure"; then
1473 # If neither matched, then we have a broken ls. This can happen
1474 # if, for instance, CONFIG_SHELL is bash and it inherits a
1475 # broken ls alias from the environment. This has actually
1476 # happened. Such a system could not be considered "sane".
1477 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1478 alias in your environment" >&5
1479 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1480 alias in your environment" >&2;}
1481 { (exit 1); exit 1; }; }
1484 test "$2" = conftest.file
1490 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1491 Check your system clock" >&5
1492 echo "$as_me: error: newly created file is older than distributed files!
1493 Check your system clock" >&2;}
1494 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: yes" >&5
1497 echo "${ECHO_T}yes" >&6
1498 test "$program_prefix" != NONE &&
1499 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1500 # Use a double $ so make ignores it.
1501 test "$program_suffix" != NONE &&
1502 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1503 # Double any \ or $. echo might interpret backslashes.
1504 # By default was `s,x,x', remove it if useless.
1505 cat <<\_ACEOF >conftest.sed
1506 s/[\\$]/&&/g;s/;s,x,x,$//
1508 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1511 # expand $ac_aux_dir to an absolute path
1512 am_aux_dir=`cd $ac_aux_dir && pwd`
1514 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1515 # Use eval to expand $SHELL
1516 if eval "$MISSING --run true"; then
1517 am_missing_run="$MISSING --run "
1520 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1521 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1524 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1525 # We used to keeping the `.' as first argument, in order to
1526 # allow $(mkdir_p) to be used without argument. As in
1527 # $(mkdir_p) $(somedir)
1528 # where $(somedir) is conditionally defined. However this is wrong
1530 # 1. if the package is installed by a user who cannot write `.'
1531 # make install will fail,
1532 # 2. the above comment should most certainly read
1533 # $(mkdir_p) $(DESTDIR)$(somedir)
1534 # so it does not work when $(somedir) is undefined and
1535 # $(DESTDIR) is not.
1536 # To support the latter case, we have to write
1537 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1538 # so the `.' trick is pointless.
1539 mkdir_p='mkdir -p --'
1541 # On NextStep and OpenStep, the `mkdir' command does not
1542 # recognize any option. It will interpret all options as
1543 # directories to create, and then abort because `.' already
1545 for d in ./-p ./--version;
1547 test -d $d && rmdir $d
1549 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1550 if test -f "$ac_aux_dir/mkinstalldirs"; then
1551 mkdir_p='$(mkinstalldirs)'
1553 mkdir_p='$(install_sh) -d'
1557 for ac_prog in gawk mawk nawk awk
1559 # Extract the first word of "$ac_prog", so it can be a program name with args.
1560 set dummy $ac_prog; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_AWK+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$AWK"; then
1567 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_AWK="$ac_prog"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test -n "$AWK"; then
1587 echo "$as_me:$LINENO: result: $AWK" >&5
1588 echo "${ECHO_T}$AWK" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 test -n "$AWK" && break
1597 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1598 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1599 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1600 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 cat >conftest.make <<\_ACEOF
1605 @echo 'ac_maketemp="$(MAKE)"'
1607 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1608 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1609 if test -n "$ac_maketemp"; then
1610 eval ac_cv_prog_make_${ac_make}_set=yes
1612 eval ac_cv_prog_make_${ac_make}_set=no
1616 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1623 SET_MAKE="MAKE=${MAKE-make}"
1626 rm -rf .tst 2>/dev/null
1627 mkdir .tst 2>/dev/null
1628 if test -d .tst; then
1633 rmdir .tst 2>/dev/null
1635 # test to see if srcdir already configured
1636 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1637 test -f $srcdir/config.status; then
1638 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1639 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1640 { (exit 1); exit 1; }; }
1643 # test whether we have cygpath
1644 if test -z "$CYGPATH_W"; then
1645 if (cygpath --version) >/dev/null 2>/dev/null; then
1646 CYGPATH_W='cygpath -w'
1653 # Define the identity of the package.
1654 PACKAGE=spamass-milter
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE "$PACKAGE"
1663 cat >>confdefs.h <<_ACEOF
1664 #define VERSION "$VERSION"
1667 # Some tools Automake needs.
1669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1683 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1685 # Installed binaries are usually stripped using `strip' when the user
1686 # run `make install-strip'. However `strip' might not be the right
1687 # tool to use in cross-compilation environments, therefore Automake
1688 # will honor the `STRIP' environment variable to overrule this program.
1689 if test "$cross_compiling" != no; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}strip; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_STRIP+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$STRIP"; then
1699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 STRIP=$ac_cv_prog_STRIP
1718 if test -n "$STRIP"; then
1719 echo "$as_me:$LINENO: result: $STRIP" >&5
1720 echo "${ECHO_T}$STRIP" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_STRIP"; then
1729 # Extract the first word of "strip", so it can be a program name with args.
1730 set dummy strip; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$ac_ct_STRIP"; then
1737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_STRIP="strip"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1757 if test -n "$ac_ct_STRIP"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1759 echo "${ECHO_T}$ac_ct_STRIP" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1767 STRIP="$ac_cv_prog_STRIP"
1771 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1773 # We need awk for the "check" target. The system "awk" is bad on
1775 # Always define AMTAR for backward compatibility.
1777 AMTAR=${AMTAR-"${am_missing_run}tar"}
1779 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1786 # Checks for programs.
1788 ac_cpp='$CXXCPP $CPPFLAGS'
1789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1792 if test -n "$ac_tool_prefix"; then
1793 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CXX+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CXX"; then
1803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test -n "$CXX"; then
1823 echo "$as_me:$LINENO: result: $CXX" >&5
1824 echo "${ECHO_T}$CXX" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830 test -n "$CXX" && break
1833 if test -z "$CXX"; then
1835 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1837 # Extract the first word of "$ac_prog", so it can be a program name with args.
1838 set dummy $ac_prog; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$ac_ct_CXX"; then
1845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_ac_ct_CXX="$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1864 if test -n "$ac_ct_CXX"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1866 echo "${ECHO_T}$ac_ct_CXX" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 test -n "$ac_ct_CXX" && break
1874 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1880 # Provide some information about the compiler.
1881 echo "$as_me:$LINENO:" \
1882 "checking for C++ compiler version" >&5
1883 ac_compiler=`set X $ac_compile; echo $2`
1884 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1885 (eval $ac_compiler --version </dev/null >&5) 2>&5
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }
1889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1890 (eval $ac_compiler -v </dev/null >&5) 2>&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1895 (eval $ac_compiler -V </dev/null >&5) 2>&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1900 cat >conftest.$ac_ext <<_ACEOF
1903 cat confdefs.h >>conftest.$ac_ext
1904 cat >>conftest.$ac_ext <<_ACEOF
1905 /* end confdefs.h. */
1915 ac_clean_files_save=$ac_clean_files
1916 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1917 # Try to create an executable without -o first, disregard a.out.
1918 # It will help us diagnose broken compilers, and finding out an intuition
1920 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1921 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1922 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1923 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1924 (eval $ac_link_default) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; then
1928 # Find the output, starting from the most likely. This scheme is
1929 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1932 # Be careful to initialize this variable, since it used to be cached.
1933 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1935 # b.out is created by i960 compilers.
1936 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1938 test -f "$ac_file" || continue
1940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1943 # This is the source file.
1946 # We found the default executable, but exeext='' is most
1950 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1951 # FIXME: I believe we export ac_cv_exeext for Libtool,
1952 # but it would be cool to find out if it's true. Does anybody
1953 # maintain Libtool? --akim.
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: C++ compiler cannot create executables
1967 See \`config.log' for more details." >&2;}
1968 { (exit 77); exit 77; }; }
1971 ac_exeext=$ac_cv_exeext
1972 echo "$as_me:$LINENO: result: $ac_file" >&5
1973 echo "${ECHO_T}$ac_file" >&6
1975 # Check the compiler produces executables we can run. If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1978 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1979 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1980 # If not cross compiling, check that we can run a simple program.
1981 if test "$cross_compiling" != yes; then
1982 if { ac_try='./$ac_file'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1990 if test "$cross_compiling" = maybe; then
1993 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1994 If you meant to cross compile, use \`--host'.
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot run C++ compiled programs.
1997 If you meant to cross compile, use \`--host'.
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2003 echo "$as_me:$LINENO: result: yes" >&5
2004 echo "${ECHO_T}yes" >&6
2006 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2007 ac_clean_files=$ac_clean_files_save
2008 # Check the compiler produces executables we can run. If not, either
2009 # the compiler is broken, or we cross compile.
2010 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2011 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2012 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2013 echo "${ECHO_T}$cross_compiling" >&6
2015 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2016 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2018 (eval $ac_link) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2023 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2024 # work properly (i.e., refer to `conftest.exe'), while it won't with
2026 for ac_file in conftest.exe conftest conftest.*; do
2027 test -f "$ac_file" || continue
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }
2044 rm -f conftest$ac_cv_exeext
2045 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2046 echo "${ECHO_T}$ac_cv_exeext" >&6
2048 rm -f conftest.$ac_ext
2049 EXEEXT=$ac_cv_exeext
2051 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2052 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2053 if test "${ac_cv_objext+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 cat >conftest.$ac_ext <<_ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2071 rm -f conftest.o conftest.obj
2072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }
2095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2097 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2098 echo "${ECHO_T}$ac_cv_objext" >&6
2099 OBJEXT=$ac_cv_objext
2101 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2102 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2103 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 cat >conftest.$ac_ext <<_ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>conftest.er1
2128 grep -v '^ *+' conftest.er1 >conftest.err
2130 cat conftest.err >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try='test -z "$ac_cxx_werror_flag"
2134 || test ! -s conftest.err'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2154 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2157 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2158 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2159 GXX=`test $ac_compiler_gnu = yes && echo yes`
2160 ac_test_CXXFLAGS=${CXXFLAGS+set}
2161 ac_save_CXXFLAGS=$CXXFLAGS
2163 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2164 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2165 if test "${ac_cv_prog_cxx_g+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 cat >conftest.$ac_ext <<_ACEOF
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h. */
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>conftest.er1
2187 grep -v '^ *+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -z "$ac_cxx_werror_flag"
2193 || test ! -s conftest.err'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 ac_cv_prog_cxx_g=yes
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2215 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2216 if test "$ac_test_CXXFLAGS" = set; then
2217 CXXFLAGS=$ac_save_CXXFLAGS
2218 elif test $ac_cv_prog_cxx_g = yes; then
2219 if test "$GXX" = yes; then
2225 if test "$GXX" = yes; then
2231 for ac_declaration in \
2233 'extern "C" void std::exit (int) throw (); using std::exit;' \
2234 'extern "C" void std::exit (int); using std::exit;' \
2235 'extern "C" void exit (int) throw ();' \
2236 'extern "C" void exit (int);' \
2239 cat >conftest.$ac_ext <<_ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_cxx_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 cat >conftest.$ac_ext <<_ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>conftest.er1
2304 grep -v '^ *+' conftest.er1 >conftest.err
2306 cat conftest.err >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); } &&
2309 { ac_try='test -z "$ac_cxx_werror_flag"
2310 || test ! -s conftest.err'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; } &&
2316 { ac_try='test -s conftest.$ac_objext'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 if test -n "$ac_declaration"; then
2332 echo '#ifdef __cplusplus' >>confdefs.h
2333 echo $ac_declaration >>confdefs.h
2334 echo '#endif' >>confdefs.h
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342 DEPDIR="${am__leading_dot}deps"
2344 ac_config_commands="$ac_config_commands depfiles"
2347 am_make=${MAKE-make}
2348 cat > confinc << 'END'
2353 # If we don't find an include directive, just comment out the code.
2354 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2355 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2359 # First try GNU make style include.
2360 echo "include confinc" > confmf
2361 # We grep out `Entering directory' and `Leaving directory'
2362 # messages which can occur if `w' ends up in MAKEFLAGS.
2363 # In particular we don't look at `^make:' because GNU make might
2364 # be invoked under some other name (usually "gmake"), in which
2365 # case it prints its new name instead of `make'.
2366 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2371 # Now try BSD make style include.
2372 if test "$am__include" = "#"; then
2373 echo '.include "confinc"' > confmf
2374 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2375 am__include=.include
2382 echo "$as_me:$LINENO: result: $_am_result" >&5
2383 echo "${ECHO_T}$_am_result" >&6
2384 rm -f confinc confmf
2386 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2387 if test "${enable_dependency_tracking+set}" = set; then
2388 enableval="$enable_dependency_tracking"
2391 if test "x$enable_dependency_tracking" != xno; then
2392 am_depcomp="$ac_aux_dir/depcomp"
2397 if test "x$enable_dependency_tracking" != xno; then
2408 depcc="$CXX" am_compiler_list=
2410 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2411 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2412 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2416 # We make a subdir and do the tests there. Otherwise we can end up
2417 # making bogus files that we don't know about and never remove. For
2418 # instance it was reported that on HP-UX the gcc test will end up
2419 # making a dummy file named `D' -- because `-MD' means `put the output
2422 # Copy depcomp to subdir because otherwise we won't find it if we're
2423 # using a relative directory.
2424 cp "$am_depcomp" conftest.dir
2426 # We will build objects and dependencies in a subdirectory because
2427 # it helps to detect inapplicable dependency modes. For instance
2428 # both Tru64's cc and ICC support -MD to output dependencies as a
2429 # side effect of compilation, but ICC will put the dependencies in
2430 # the current directory while Tru64 will put them in the object
2434 am_cv_CXX_dependencies_compiler_type=none
2435 if test "$am_compiler_list" = ""; then
2436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2438 for depmode in $am_compiler_list; do
2439 # Setup a source with many dependencies, because some compilers
2440 # like to wrap large dependency lists on column 80 (with \), and
2441 # we should not choose a depcomp mode which is confused by this.
2443 # We need to recreate these files for each test, as the compiler may
2444 # overwrite some of them when testing with obscure command lines.
2445 # This happens at least with the AIX C compiler.
2447 for i in 1 2 3 4 5 6; do
2448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2450 # Solaris 8's {/usr,}/bin/sh.
2451 touch sub/conftst$i.h
2453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2457 # after this tag, mechanisms are not by side-effect, so they'll
2458 # only be used when explicitly requested
2459 if test "x$enable_dependency_tracking" = xyes; then
2467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2468 # mode. It turns out that the SunPro C++ compiler does not properly
2469 # handle `-M -o', and we need to detect this.
2470 if depmode=$depmode \
2471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2474 >/dev/null 2>conftest.err &&
2475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2478 # icc doesn't choke on unknown options, it will just issue warnings
2479 # or remarks (even with -Werror). So we grep stderr for any message
2480 # that says an option was ignored or not supported.
2481 # When given -MP, icc 7.0 and 7.1 complain thusly:
2482 # icc: Command line warning: ignoring option '-M'; no argument required
2483 # The diagnosis changed in icc 8.0:
2484 # icc: Command line remark: option '-MP' not supported
2485 if (grep 'ignoring option' conftest.err ||
2486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2487 am_cv_CXX_dependencies_compiler_type=$depmode
2496 am_cv_CXX_dependencies_compiler_type=none
2500 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2501 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2502 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2507 test "x$enable_dependency_tracking" != xno \
2508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2509 am__fastdepCXX_TRUE=
2510 am__fastdepCXX_FALSE='#'
2512 am__fastdepCXX_TRUE='#'
2513 am__fastdepCXX_FALSE=
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 if test -n "$CC"; then
2551 echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6
2554 echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2559 if test -z "$ac_cv_prog_CC"; then
2561 # Extract the first word of "gcc", so it can be a program name with args.
2562 set dummy gcc; ac_word=$2
2563 echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 if test -n "$ac_ct_CC"; then
2569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_CC="gcc"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}cc; ac_word=$2
2605 echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2607 if test "${ac_cv_prog_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_CC="${ac_tool_prefix}cc"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 echo "$as_me:$LINENO: result: $CC" >&5
2632 echo "${ECHO_T}$CC" >&6
2634 echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2639 if test -z "$ac_cv_prog_CC"; then
2641 # Extract the first word of "cc", so it can be a program name with args.
2642 set dummy cc; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CC="cc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2670 echo "${ECHO_T}$ac_ct_CC" >&6
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2682 if test -z "$CC"; then
2683 # Extract the first word of "cc", so it can be a program name with args.
2684 set dummy cc; ac_word=$2
2685 echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2687 if test "${ac_cv_prog_CC+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2702 ac_prog_rejected=yes
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 if test $ac_prog_rejected = yes; then
2713 # We found a bogon in the path, so make sure we never use it.
2714 set dummy $ac_cv_prog_CC
2716 if test $# != 0; then
2717 # We chose a different compiler from the bogus one.
2718 # However, it has the same basename, so the bogon will be chosen
2719 # first if we set CC to just the basename; use the full file name.
2721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$CC"; then
2768 echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6
2771 echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2775 test -n "$CC" && break
2778 if test -z "$CC"; then
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 echo "${ECHO_T}$ac_ct_CC" >&6
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 test -n "$ac_ct_CC" && break
2826 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2832 # Provide some information about the compiler.
2833 echo "$as_me:$LINENO:" \
2834 "checking for C compiler version" >&5
2835 ac_compiler=`set X $ac_compile; echo $2`
2836 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2837 (eval $ac_compiler --version </dev/null >&5) 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2842 (eval $ac_compiler -v </dev/null >&5) 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2847 (eval $ac_compiler -V </dev/null >&5) 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2852 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2853 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2910 GCC=`test $ac_compiler_gnu = yes && echo yes`
2911 ac_test_CFLAGS=${CFLAGS+set}
2912 ac_save_CFLAGS=$CFLAGS
2914 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2915 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2916 if test "${ac_cv_prog_cc_g+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2966 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2967 if test "$ac_test_CFLAGS" = set; then
2968 CFLAGS=$ac_save_CFLAGS
2969 elif test $ac_cv_prog_cc_g = yes; then
2970 if test "$GCC" = yes; then
2976 if test "$GCC" = yes; then
2982 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2983 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2984 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 ac_cv_prog_cc_stdc=no
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2997 #include <sys/types.h>
2998 #include <sys/stat.h>
2999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3000 struct buf { int x; };
3001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3002 static char *e (p, i)
3008 static char *f (char * (*g) (char **, int), char **p, ...)
3013 s = g (p, va_arg (v,int));
3018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3019 function prototypes and stuff, but not '\xHH' hex character constants.
3020 These don't provoke an error unfortunately, instead are silently treated
3021 as 'x'. The following induces an error, until -std1 is added to get
3022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3023 array size at least. It's necessary to write '\x00'==0 to get something
3024 that's true only with -std1. */
3025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3027 int test (int i, double x);
3028 struct s1 {int (*f) (int a);};
3029 struct s2 {int (*f) (double a);};
3030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3041 # Don't try gcc -ansi; that turns off useful extensions and
3042 # breaks some systems' header files.
3043 # AIX -qlanglvl=ansi
3044 # Ultrix and OSF/1 -std1
3045 # HP-UX 10.20 and later -Ae
3046 # HP-UX older versions -Aa -D_HPUX_SOURCE
3047 # SVR4 -Xc -D__EXTENSIONS__
3048 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 CC="$ac_save_CC $ac_arg"
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag"
3061 || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_cv_prog_cc_stdc=$ac_arg
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f conftest.err conftest.$ac_objext
3082 rm -f conftest.$ac_ext conftest.$ac_objext
3087 case "x$ac_cv_prog_cc_stdc" in
3089 echo "$as_me:$LINENO: result: none needed" >&5
3090 echo "${ECHO_T}none needed" >&6 ;;
3092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3093 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3094 CC="$CC $ac_cv_prog_cc_stdc" ;;
3097 # Some people use a C++ compiler to compile C. Since we use `exit',
3098 # in C++ we need to declare it. In case someone uses the same compiler
3099 # for both compiling C and C++ we need to have the C++ compiler decide
3100 # the declaration of exit, since it's the most demanding environment.
3101 cat >conftest.$ac_ext <<_ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108 (eval $ac_compile) 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag"
3116 || test ! -s conftest.err'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 for ac_declaration in \
3130 'extern "C" void std::exit (int) throw (); using std::exit;' \
3131 'extern "C" void std::exit (int); using std::exit;' \
3132 'extern "C" void exit (int) throw ();' \
3133 'extern "C" void exit (int);' \
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag"
3162 || test ! -s conftest.err'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 if test -n "$ac_declaration"; then
3229 echo '#ifdef __cplusplus' >>confdefs.h
3230 echo $ac_declaration >>confdefs.h
3231 echo '#endif' >>confdefs.h
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 depcc="$CC" am_compiler_list=
3248 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3249 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3250 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3254 # We make a subdir and do the tests there. Otherwise we can end up
3255 # making bogus files that we don't know about and never remove. For
3256 # instance it was reported that on HP-UX the gcc test will end up
3257 # making a dummy file named `D' -- because `-MD' means `put the output
3260 # Copy depcomp to subdir because otherwise we won't find it if we're
3261 # using a relative directory.
3262 cp "$am_depcomp" conftest.dir
3264 # We will build objects and dependencies in a subdirectory because
3265 # it helps to detect inapplicable dependency modes. For instance
3266 # both Tru64's cc and ICC support -MD to output dependencies as a
3267 # side effect of compilation, but ICC will put the dependencies in
3268 # the current directory while Tru64 will put them in the object
3272 am_cv_CC_dependencies_compiler_type=none
3273 if test "$am_compiler_list" = ""; then
3274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3276 for depmode in $am_compiler_list; do
3277 # Setup a source with many dependencies, because some compilers
3278 # like to wrap large dependency lists on column 80 (with \), and
3279 # we should not choose a depcomp mode which is confused by this.
3281 # We need to recreate these files for each test, as the compiler may
3282 # overwrite some of them when testing with obscure command lines.
3283 # This happens at least with the AIX C compiler.
3285 for i in 1 2 3 4 5 6; do
3286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3288 # Solaris 8's {/usr,}/bin/sh.
3289 touch sub/conftst$i.h
3291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3295 # after this tag, mechanisms are not by side-effect, so they'll
3296 # only be used when explicitly requested
3297 if test "x$enable_dependency_tracking" = xyes; then
3305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3306 # mode. It turns out that the SunPro C++ compiler does not properly
3307 # handle `-M -o', and we need to detect this.
3308 if depmode=$depmode \
3309 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3311 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3312 >/dev/null 2>conftest.err &&
3313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3314 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3316 # icc doesn't choke on unknown options, it will just issue warnings
3317 # or remarks (even with -Werror). So we grep stderr for any message
3318 # that says an option was ignored or not supported.
3319 # When given -MP, icc 7.0 and 7.1 complain thusly:
3320 # icc: Command line warning: ignoring option '-M'; no argument required
3321 # The diagnosis changed in icc 8.0:
3322 # icc: Command line remark: option '-MP' not supported
3323 if (grep 'ignoring option' conftest.err ||
3324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3325 am_cv_CC_dependencies_compiler_type=$depmode
3334 am_cv_CC_dependencies_compiler_type=none
3338 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3339 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3340 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3345 test "x$enable_dependency_tracking" != xno \
3346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3348 am__fastdepCC_FALSE='#'
3350 am__fastdepCC_TRUE='#'
3351 am__fastdepCC_FALSE=
3357 if test -z "$ansi"; then
3358 msg="for C compiler warning flags"
3360 msg="for C compiler warning and ANSI conformance flags"
3362 echo "$as_me:$LINENO: checking $msg" >&5
3363 echo $ECHO_N "checking $msg... $ECHO_C" >&6
3364 if test "${vl_cv_prog_cc_warnings+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -n "$CC"; then
3369 cat > conftest.c <<EOF
3370 int main(int argc, char **argv) { return 0; }
3373 if test "$GCC" = "yes"; then
3374 if test -z "$ansi"; then
3375 vl_cv_prog_cc_warnings="-Wall"
3377 vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
3381 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
3382 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
3383 test -f conftest.o; then
3384 if test -z "$ansi"; then
3385 vl_cv_prog_cc_warnings="-v"
3387 vl_cv_prog_cc_warnings="-v -Xc"
3390 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
3391 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
3392 test -f conftest.o; then
3393 if test -z "$ansi"; then
3394 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
3396 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
3399 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
3400 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
3401 test -f conftest.o; then
3402 if test -z "$ansi"; then
3403 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
3405 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
3408 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
3409 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
3410 test -f conftest.o; then
3411 if test -z "$ansi"; then
3412 vl_cv_prog_cc_warnings="-fullwarn"
3414 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
3417 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
3418 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
3419 test -f conftest.o; then
3420 if test -z "$ansi"; then
3421 vl_cv_prog_cc_warnings="+w1"
3423 vl_cv_prog_cc_warnings="+w1 -Aa"
3426 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
3427 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
3428 test -f conftest.o; then
3429 if test -z "$ansi"; then
3430 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
3432 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
3435 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
3436 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
3437 test -f conftest.o; then
3438 if test -z "$ansi"; then
3439 vl_cv_prog_cc_warnings="-h msglevel 2"
3441 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
3444 elif $CC -V 2>&1 | grep -i "Intel(R) C++ Compiler" > /dev/null 2>&1 &&
3445 $CC -c -Wall -wd981,1418,193 conftest.c > /dev/null 2>&1 &&
3446 test -f conftest.o; then
3447 if test -z "$ansi"; then
3448 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193"
3450 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193 -Xc"
3456 if test -n "$vl_cv_prog_cc_warnings"; then
3457 VL_WARN_CFLAGS="$vl_cv_prog_cc_warnings"
3459 vl_cv_prog_cc_warnings="unknown"
3463 echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5
3464 echo "${ECHO_T}$vl_cv_prog_cc_warnings" >&6
3466 CFLAGS="$CFLAGS $VL_WARN_CFLAGS"
3467 CXXFLAGS="$CXXFLAGS $VL_WARN_CFLAGS"
3469 ac_cpp='$CXXCPP $CPPFLAGS'
3470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3475 # Enable useable exception handler if it exists.
3477 echo "$as_me:$LINENO: checking whether the compiler supports exceptions" >&5
3478 echo $ECHO_N "checking whether the compiler supports exceptions... $ECHO_C" >&6
3479 if test "${ac_cv_cxx_exceptions+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 ac_cpp='$CXXCPP $CPPFLAGS'
3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3500 try { throw 1; } catch (int i) { return i; }
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_cxx_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_cxx_exceptions=yes
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 ac_cv_cxx_exceptions=no
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cpp='$CXXCPP $CPPFLAGS'
3537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3543 echo "$as_me:$LINENO: result: $ac_cv_cxx_exceptions" >&5
3544 echo "${ECHO_T}$ac_cv_cxx_exceptions" >&6
3545 if test "$ac_cv_cxx_exceptions" = yes; then
3547 cat >>confdefs.h <<\_ACEOF
3548 #define HAVE_EXCEPTIONS
3553 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
3554 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
3555 if test "${ac_cv_cxx_namespaces+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 ac_cpp='$CXXCPP $CPPFLAGS'
3562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 namespace Outer { namespace Inner { int i = 0; }}
3576 using namespace Outer::Inner; return i;
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_cxx_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_cxx_namespaces=yes
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 ac_cv_cxx_namespaces=no
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cpp='$CXXCPP $CPPFLAGS'
3613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3619 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
3620 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
3621 if test "$ac_cv_cxx_namespaces" = yes; then
3623 cat >>confdefs.h <<\_ACEOF
3624 #define HAVE_NAMESPACES
3629 echo "$as_me:$LINENO: checking whether the compiler has __gnu_cxx::__verbose_terminate_handler" >&5
3630 echo $ECHO_N "checking whether the compiler has __gnu_cxx::__verbose_terminate_handler... $ECHO_C" >&6
3631 if test "${ac_cv_verbose_terminate_handler+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 ac_cpp='$CXXCPP $CPPFLAGS'
3641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <exception>
3655 std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_cxx_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_verbose_terminate_handler=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_verbose_terminate_handler=no
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_cpp='$CXXCPP $CPPFLAGS'
3693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699 echo "$as_me:$LINENO: result: $ac_cv_verbose_terminate_handler" >&5
3700 echo "${ECHO_T}$ac_cv_verbose_terminate_handler" >&6
3701 if test "$ac_cv_verbose_terminate_handler" = yes; then
3703 cat >>confdefs.h <<\_ACEOF
3704 #define HAVE_VERBOSE_TERMINATE_HANDLER
3710 # Try and disable all inlining; gdb shows the inlined function in a
3711 # stack trace and you lose the caller's frame. Bad for debugging.
3713 echo "$as_me:$LINENO: checking for -fno-default-inline" >&5
3714 echo $ECHO_N "checking for -fno-default-inline... $ECHO_C" >&6
3715 if test "${pike_cv_option_fno_default_inline+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 OLD_CPPFLAGS="$CPPFLAGS"
3720 CPPFLAGS="$OLD_CPPFLAGS -fno-default-inline"
3721 old_ac_link="$ac_link"
3722 ac_link="$old_ac_link 2>conftezt.out.2"
3723 if test "$cross_compiling" = yes; then
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3740 rm -f conftest.$ac_objext conftest$ac_exeext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_cxx_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest$ac_exeext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 pike_cv_option_fno_default_inline=yes
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 pike_cv_option_fno_default_inline=no
3769 rm -f conftest.err conftest.$ac_objext \
3770 conftest$ac_exeext conftest.$ac_ext
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3781 int main(int argc, char **argv)
3783 /* The following code triggs gcc:s generation of aline opcodes,
3784 * which some versions of as does not support.
3786 if (argc > 0) argc = 0;
3791 rm -f conftest$ac_exeext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793 (eval $ac_link) 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 pike_cv_option_fno_default_inline=yes
3804 echo "$as_me: program exited with status $ac_status" >&5
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3809 pike_cv_option_fno_default_inline=no
3811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3813 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
3814 pike_cv_option_fno_default_inline=no
3815 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
3816 # cc/HPUX says the following regarding -q64:
3818 # cc: warning 422: Unknown option "6" ignored.
3819 # cc: warning 422: Unknown option "4" ignored.
3820 pike_cv_option_fno_default_inline=no
3821 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
3822 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
3826 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
3828 pike_cv_option_fno_default_inline=no
3829 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
3830 # cc/AIX says the following regarding +O3:
3832 # cc: 1501-228 input file +O3 not found
3833 pike_cv_option_fno_default_inline=no
3834 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
3835 # gcc/AIX says the following regarding -fpic:
3837 # cc1: warning: -fpic ignored (all code is position independent)
3838 pike_cv_option_fno_default_inline=no
3841 CPPFLAGS="$OLD_CPPFLAGS"
3842 ac_link="$old_ac_link"
3847 if test x"$pike_cv_option_fno_default_inline" = "xyes" ; then
3848 CXXFLAGS="$CXXFLAGS -fno-default-inline"
3851 CFLAGS="$CFLAGS -fno-default-inline"
3854 echo "$as_me:$LINENO: result: yes" >&5
3855 echo "${ECHO_T}yes" >&6
3858 echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3864 echo "$as_me:$LINENO: checking for -fno-inline" >&5
3865 echo $ECHO_N "checking for -fno-inline... $ECHO_C" >&6
3866 if test "${pike_cv_option_fno_inline+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 OLD_CPPFLAGS="$CPPFLAGS"
3871 CPPFLAGS="$OLD_CPPFLAGS -fno-inline"
3872 old_ac_link="$ac_link"
3873 ac_link="$old_ac_link 2>conftezt.out.2"
3874 if test "$cross_compiling" = yes; then
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3891 rm -f conftest.$ac_objext conftest$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_cxx_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 pike_cv_option_fno_inline=yes
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 pike_cv_option_fno_inline=no
3920 rm -f conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 int main(int argc, char **argv)
3934 /* The following code triggs gcc:s generation of aline opcodes,
3935 * which some versions of as does not support.
3937 if (argc > 0) argc = 0;
3942 rm -f conftest$ac_exeext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3944 (eval $ac_link) 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 pike_cv_option_fno_inline=yes
3955 echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 pike_cv_option_fno_inline=no
3962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3964 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
3965 pike_cv_option_fno_inline=no
3966 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
3967 # cc/HPUX says the following regarding -q64:
3969 # cc: warning 422: Unknown option "6" ignored.
3970 # cc: warning 422: Unknown option "4" ignored.
3971 pike_cv_option_fno_inline=no
3972 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
3973 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
3977 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
3979 pike_cv_option_fno_inline=no
3980 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
3981 # cc/AIX says the following regarding +O3:
3983 # cc: 1501-228 input file +O3 not found
3984 pike_cv_option_fno_inline=no
3985 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
3986 # gcc/AIX says the following regarding -fpic:
3988 # cc1: warning: -fpic ignored (all code is position independent)
3989 pike_cv_option_fno_inline=no
3992 CPPFLAGS="$OLD_CPPFLAGS"
3993 ac_link="$old_ac_link"
3998 if test x"$pike_cv_option_fno_inline" = "xyes" ; then
3999 CXXFLAGS="$CXXFLAGS -fno-inline"
4002 CFLAGS="$CFLAGS -fno-inline"
4005 echo "$as_me:$LINENO: result: yes" >&5
4006 echo "${ECHO_T}yes" >&6
4009 echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4019 # Extract the first word of "spamc", so it can be a program name with args.
4020 set dummy spamc; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_SPAMC+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_path_SPAMC="$SPAMC" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_path_SPAMC="$as_dir/$ac_word$ac_exec_ext"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 SPAMC=$ac_cv_path_SPAMC
4050 if test -n "$SPAMC"; then
4051 echo "$as_me:$LINENO: result: $SPAMC" >&5
4052 echo "${ECHO_T}$SPAMC" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 if test "x$SPAMC" = x ; then
4059 { { echo "$as_me:$LINENO: error: Spamc not found. Is SpamAssassin installed?" >&5
4060 echo "$as_me: error: Spamc not found. Is SpamAssassin installed?" >&2;}
4061 { (exit 1); exit 1; }; }
4065 cat >>confdefs.h <<_ACEOF
4066 #define SPAMC "$SPAMC"
4070 # Search for sendmail
4071 # Extract the first word of "sendmail", so it can be a program name with args.
4072 set dummy sendmail; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 as_dummy="$PATH:/usr/sbin:/usr/lib"
4085 for as_dir in $as_dummy
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 SENDMAIL=$ac_cv_path_SENDMAIL
4103 if test -n "$SENDMAIL"; then
4104 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4105 echo "${ECHO_T}$SENDMAIL" >&6
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 if test "x$SENDMAIL" = x ; then
4112 { { echo "$as_me:$LINENO: error: Sendmail not found. Check your PATH variable" >&5
4113 echo "$as_me: error: Sendmail not found. Check your PATH variable" >&2;}
4114 { (exit 1); exit 1; }; }
4118 cat >>confdefs.h <<_ACEOF
4119 #define SENDMAIL "$SENDMAIL"
4123 # Check nroff and the options it supports
4124 for ac_prog in nroff
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130 if test "${ac_cv_prog_NROFF+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 if test -n "$NROFF"; then
4134 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_NROFF="$ac_prog"
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 NROFF=$ac_cv_prog_NROFF
4153 if test -n "$NROFF"; then
4154 echo "$as_me:$LINENO: result: $NROFF" >&5
4155 echo "${ECHO_T}$NROFF" >&6
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 test -n "$NROFF" && break
4166 if test "x$NROFF" != x; then
4167 echo "$as_me:$LINENO: checking for mdoc nroff macros" >&5
4168 echo $ECHO_N "checking for mdoc nroff macros... $ECHO_C" >&6
4169 if test "${ac_cv_mdoc+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 nroff -mdoc < /dev/null > /dev/null 2>&1
4174 if test $? = 0; then
4183 echo "$as_me:$LINENO: result: $MDOC" >&5
4184 echo "${ECHO_T}$MDOC" >&6
4189 if test $MDOC = yes; then
4198 # Search for pthreads, and make them the default (have to do it here else
4199 # the -lmilter check will fail to link)
4200 # Make sure we can run config.sub.
4201 $ac_config_sub sun4 >/dev/null 2>&1 ||
4202 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4203 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4204 { (exit 1); exit 1; }; }
4206 echo "$as_me:$LINENO: checking build system type" >&5
4207 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4208 if test "${ac_cv_build+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 ac_cv_build_alias=$build_alias
4212 test -z "$ac_cv_build_alias" &&
4213 ac_cv_build_alias=`$ac_config_guess`
4214 test -z "$ac_cv_build_alias" &&
4215 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4216 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4217 { (exit 1); exit 1; }; }
4218 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4219 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4220 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4221 { (exit 1); exit 1; }; }
4224 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4225 echo "${ECHO_T}$ac_cv_build" >&6
4227 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4228 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4229 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4232 echo "$as_me:$LINENO: checking host system type" >&5
4233 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4234 if test "${ac_cv_host+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 ac_cv_host_alias=$host_alias
4238 test -z "$ac_cv_host_alias" &&
4239 ac_cv_host_alias=$ac_cv_build_alias
4240 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4241 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4242 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4243 { (exit 1); exit 1; }; }
4246 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4247 echo "${ECHO_T}$ac_cv_host" >&6
4249 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4250 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4251 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 # We used to check for pthread.h first, but this fails if pthread.h
4268 # requires special compiler flags (e.g. on True64 or Sequent).
4269 # It gets checked for in the link test anyway.
4271 # First of all, check if the user has set any of the PTHREAD_LIBS,
4272 # etcetera environment variables, and if threads linking works using
4274 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4275 save_CFLAGS="$CFLAGS"
4276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4278 LIBS="$PTHREAD_LIBS $LIBS"
4279 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4280 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4288 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294 char pthread_join ();
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4331 rm -f conftest.err conftest.$ac_objext \
4332 conftest$ac_exeext conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4334 echo "${ECHO_T}$acx_pthread_ok" >&6
4335 if test x"$acx_pthread_ok" = xno; then
4340 CFLAGS="$save_CFLAGS"
4343 # We must check for the threads library under a number of different
4344 # names; the ordering is very important because some systems
4345 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4346 # libraries is broken (non-POSIX).
4348 # Create a list of thread flags to try. Items starting with a "-" are
4349 # C compiler flags, and other items are library names, except for "none"
4350 # which indicates that we try without any flags at all, and "pthread-config"
4351 # which is a program returning the flags for the Pth emulation library.
4353 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4355 # The ordering *is* (sometimes) important. Some notes on the
4356 # individual items follow:
4358 # pthreads: AIX (must check this before -lpthread)
4359 # none: in case threads are in libc; should be tried before -Kthread and
4360 # other compiler flags to prevent continual compiler warnings
4361 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4362 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4363 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4364 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4365 # -pthreads: Solaris/gcc
4366 # -mthreads: Mingw32/gcc, Lynx/gcc
4367 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4368 # doesn't hurt to check since this sometimes defines pthreads too;
4369 # also defines -D_REENTRANT)
4370 # pthread: Linux, etcetera
4371 # --thread-safe: KAI C++
4372 # pthread-config: use pthread-config program (for GNU Pth library)
4374 case "${host_cpu}-${host_os}" in
4377 # On Solaris (at least, for some versions), libc contains stubbed
4378 # (non-functional) versions of the pthreads routines, so link-based
4379 # tests will erroneously succeed. (We need to link with -pthread or
4380 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4381 # a function called by this macro, so we could check for that, but
4382 # who knows whether they'll stub that too in a future libc.) So,
4383 # we'll just look for -pthreads and -lpthread first:
4385 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
4389 if test x"$acx_pthread_ok" = xno; then
4390 for flag in $acx_pthread_flags; do
4394 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4395 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
4399 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4400 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
4401 PTHREAD_CFLAGS="$flag"
4405 # Extract the first word of "pthread-config", so it can be a program name with args.
4406 set dummy pthread-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test -n "$acx_pthread_config"; then
4413 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_acx_pthread_config="yes"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4432 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4433 if test -n "$acx_pthread_config"; then
4434 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
4435 echo "${ECHO_T}$acx_pthread_config" >&6
4437 echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6
4441 if test x"$acx_pthread_config" = xno; then continue; fi
4442 PTHREAD_CFLAGS="`pthread-config --cflags`"
4443 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4447 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4448 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
4449 PTHREAD_LIBS="-l$flag"
4454 save_CFLAGS="$CFLAGS"
4455 LIBS="$PTHREAD_LIBS $LIBS"
4456 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4458 # Check for various functions. We must include pthread.h,
4459 # since some functions may be macros. (On the Sequent, we
4460 # need a special flag -Kthread to make this header compile.)
4461 # We check for pthread_join because it is in -lpthread on IRIX
4462 # while pthread_create is in libc. We check for pthread_attr_init
4463 # due to DEC craziness with -lpthreads. We check for
4464 # pthread_cleanup_push because it is one of the few pthread
4465 # functions on Solaris that doesn't have a non-functional libc stub.
4466 # We try pthread_create on general principles.
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <pthread.h>
4477 pthread_t th; pthread_join(th, 0);
4478 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4479 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486 (eval $ac_link) 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag"
4494 || test ! -s conftest.err'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; } &&
4500 { ac_try='test -s conftest$ac_exeext'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4512 rm -f conftest.err conftest.$ac_objext \
4513 conftest$ac_exeext conftest.$ac_ext
4516 CFLAGS="$save_CFLAGS"
4518 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4519 echo "${ECHO_T}$acx_pthread_ok" >&6
4520 if test "x$acx_pthread_ok" = xyes; then
4529 # Various other checks:
4530 if test "x$acx_pthread_ok" = xyes; then
4532 LIBS="$PTHREAD_LIBS $LIBS"
4533 save_CFLAGS="$CFLAGS"
4534 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4536 # Detect AIX lossage: threads are created detached by default
4537 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4538 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4539 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 #include <pthread.h>
4550 int attr=PTHREAD_CREATE_JOINABLE;
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ok=PTHREAD_CREATE_JOINABLE
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4584 rm -f conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586 if test x"$ok" = xunknown; then
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #include <pthread.h>
4597 int attr=PTHREAD_CREATE_UNDETACHED;
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604 (eval $ac_link) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest$ac_exeext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ok=PTHREAD_CREATE_UNDETACHED
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4631 rm -f conftest.err conftest.$ac_objext \
4632 conftest$ac_exeext conftest.$ac_ext
4634 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4636 cat >>confdefs.h <<\_ACEOF
4637 #define PTHREAD_CREATE_JOINABLE $ok
4641 echo "$as_me:$LINENO: result: ${ok}" >&5
4642 echo "${ECHO_T}${ok}" >&6
4643 if test x"$ok" = xunknown; then
4644 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
4645 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4648 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4649 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
4651 case "${host_cpu}-${host_os}" in
4652 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4653 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4655 echo "$as_me:$LINENO: result: ${flag}" >&5
4656 echo "${ECHO_T}${flag}" >&6
4657 if test "x$flag" != xno; then
4658 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4662 CFLAGS="$save_CFLAGS"
4664 # More AIX lossage: must compile with cc_r
4665 # Extract the first word of "cc_r", so it can be a program name with args.
4666 set dummy cc_r; ac_word=$2
4667 echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 if test -n "$PTHREAD_CC"; then
4673 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_PTHREAD_CC="cc_r"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
4692 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4693 if test -n "$PTHREAD_CC"; then
4694 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
4695 echo "${ECHO_T}$PTHREAD_CC" >&6
4697 echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4709 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4710 if test x"$acx_pthread_ok" = xyes; then
4712 cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_PTHREAD 1
4719 { { echo "$as_me:$LINENO: error: Cannot determine how to use pthreads" >&5
4720 echo "$as_me: error: Cannot determine how to use pthreads" >&2;}
4721 { (exit 1); exit 1; }; }
4724 ac_cpp='$CXXCPP $CPPFLAGS'
4725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4731 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
4732 LIBS="$LIBS $PTHREAD_LIBS"
4734 # Checks for header files.
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 # Double quotes because CXXCPP needs to be expanded
4747 for CXXCPP in "$CXX -E" "/lib/cpp"
4750 for ac_cxx_preproc_warn_flag in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 # include <limits.h>
4767 # include <assert.h>
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_cxx_preproc_warn_flag
4781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4788 if test -z "$ac_cpp_err"; then
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Broken: fails on valid input.
4797 rm -f conftest.err conftest.$ac_ext
4799 # OK, works on sane cases. Now check whether non-existent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <ac_nonexistent.h>
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
4819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4826 if test -z "$ac_cpp_err"; then
4827 # Broken: success on invalid input.
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 # Passes both tests.
4837 rm -f conftest.err conftest.$ac_ext
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4847 ac_cv_prog_CXXCPP=$CXXCPP
4850 CXXCPP=$ac_cv_prog_CXXCPP
4852 ac_cv_prog_CXXCPP=$CXXCPP
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4857 for ac_cxx_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_cxx_preproc_warn_flag
4888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4895 if test -z "$ac_cpp_err"; then
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ac_nonexistent.h>
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4933 if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4944 rm -f conftest.err conftest.$ac_ext
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956 { (exit 1); exit 1; }; }
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966 echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4968 if test "${ac_cv_prog_egrep+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4972 then ac_cv_prog_egrep='grep -E'
4973 else ac_cv_prog_egrep='egrep'
4976 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4977 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4978 EGREP=$ac_cv_prog_egrep
4981 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4983 if test "${ac_cv_header_stdc+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_cxx_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_cv_header_stdc=yes
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 ac_cv_header_stdc=no
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 if test $ac_cv_header_stdc = yes; then
5037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "memchr" >/dev/null 2>&1; then
5051 ac_cv_header_stdc=no
5057 if test $ac_cv_header_stdc = yes; then
5058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5069 $EGREP "free" >/dev/null 2>&1; then
5072 ac_cv_header_stdc=no
5078 if test $ac_cv_header_stdc = yes; then
5079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5080 if test "$cross_compiling" = yes; then
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 #if ((' ' & 0x0FF) == 0x020)
5091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5094 # define ISLOWER(c) \
5095 (('a' <= (c) && (c) <= 'i') \
5096 || ('j' <= (c) && (c) <= 'r') \
5097 || ('s' <= (c) && (c) <= 'z'))
5098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5106 for (i = 0; i < 256; i++)
5107 if (XOR (islower (i), ISLOWER (i))
5108 || toupper (i) != TOUPPER (i))
5113 rm -f conftest$ac_exeext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115 (eval $ac_link) 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5126 echo "$as_me: program exited with status $ac_status" >&5
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5131 ac_cv_header_stdc=no
5133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5138 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5139 if test $ac_cv_header_stdc = yes; then
5141 cat >>confdefs.h <<\_ACEOF
5142 #define STDC_HEADERS 1
5147 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5148 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5149 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <sys/types.h>
5159 #include <sys/wait.h>
5161 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5164 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5172 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5177 rm -f conftest.$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -z "$ac_cxx_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_header_sys_wait_h=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 ac_cv_header_sys_wait_h=no
5206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5210 if test $ac_cv_header_sys_wait_h = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213 #define HAVE_SYS_WAIT_H 1
5218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 echo "$as_me:$LINENO: checking for $ac_header" >&5
5233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5245 #include <$ac_header>
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -z "$ac_cxx_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 eval "$as_ac_Header=yes"
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 eval "$as_ac_Header=no"
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5281 cat >>confdefs.h <<_ACEOF
5282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 for ac_header in fcntl.h syslog.h sys/cdefs.h sys/select.h
5296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5298 echo "$as_me:$LINENO: checking for $ac_header" >&5
5299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5306 # Is the header compilable?
5307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 $ac_includes_default
5316 #include <$ac_header>
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_cxx_werror_flag"
5328 || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_header_compiler=yes
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_header_compiler=no
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5349 echo "${ECHO_T}$ac_header_compiler" >&6
5351 # Is the header present?
5352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <$ac_header>
5362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } >/dev/null; then
5370 if test -s conftest.err; then
5371 ac_cpp_err=$ac_cxx_preproc_warn_flag
5372 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5379 if test -z "$ac_cpp_err"; then
5380 ac_header_preproc=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_header_preproc=no
5387 rm -f conftest.err conftest.$ac_ext
5388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5389 echo "${ECHO_T}$ac_header_preproc" >&6
5391 # So? What about this header?
5392 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5398 ac_header_preproc=yes
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5415 ## ----------------------------------------- ##
5416 ## Report this to the spamass-milter lists. ##
5417 ## ----------------------------------------- ##
5420 sed "s/^/$as_me: WARNING: /" >&2
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 eval "$as_ac_Header=\$ac_header_preproc"
5430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5435 cat >>confdefs.h <<_ACEOF
5436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444 # Checks for typedefs, structures, and compiler characteristics.
5445 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5446 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5447 if test "${ac_cv_c_const+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5460 /* FIXME: Include the comments suggested by Paul. */
5462 /* Ultrix mips cc rejects this. */
5463 typedef int charset[2];
5465 /* SunOS 4.1.1 cc rejects this. */
5466 char const *const *ccp;
5468 /* NEC SVR4.0.2 mips cc rejects this. */
5469 struct point {int x, y;};
5470 static struct point const zero = {0,0};
5471 /* AIX XL C 1.02.0.0 rejects this.
5472 It does not let you subtract one const X* pointer from another in
5473 an arm of an if-expression whose if-part is not a constant
5475 const char *g = "string";
5476 ccp = &g + (g ? g-g : 0);
5477 /* HPUX 7.0 cc rejects these. */
5480 ccp = (char const *const *) p;
5481 { /* SCO 3.2v4 cc rejects this. */
5483 char const *s = 0 ? (char *) 0 : (char const *) 0;
5487 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5489 const int *foo = &x[0];
5492 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5493 typedef const int *iptr;
5497 { /* AIX XL C 1.02.0.0 rejects this saying
5498 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5499 struct s { int j; const int *ap[3]; };
5500 struct s *b; b->j = 5;
5502 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5511 rm -f conftest.$ac_objext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513 (eval $ac_compile) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_cxx_werror_flag"
5521 || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5543 echo "${ECHO_T}$ac_cv_c_const" >&6
5544 if test $ac_cv_c_const = no; then
5546 cat >>confdefs.h <<\_ACEOF
5552 echo "$as_me:$LINENO: checking for pid_t" >&5
5553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5554 if test "${ac_cv_type_pid_t+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_cxx_werror_flag"
5585 || test ! -s conftest.err'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; } &&
5591 { ac_try='test -s conftest.$ac_objext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_type_pid_t=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5607 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5608 if test $ac_cv_type_pid_t = yes; then
5612 cat >>confdefs.h <<_ACEOF
5618 echo "$as_me:$LINENO: checking for size_t" >&5
5619 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5620 if test "${ac_cv_type_size_t+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5635 if (sizeof (size_t))
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_cxx_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_type_size_t=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cv_type_size_t=no
5670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5673 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5674 if test $ac_cv_type_size_t = yes; then
5678 cat >>confdefs.h <<_ACEOF
5679 #define size_t unsigned
5686 echo "$as_me:$LINENO: checking if we must define _GNU_SOURCE" >&5
5687 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
5688 if test "${cf_cv_gnu_source+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <sys/types.h>
5703 #ifndef _XOPEN_SOURCE
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_cxx_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5738 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5750 #ifdef _XOPEN_SOURCE
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_cxx_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 cf_cv_gnu_source=yes
5786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $cf_cv_gnu_source" >&5
5794 echo "${ECHO_T}$cf_cv_gnu_source" >&6
5795 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5798 # Check whether --enable-emulate-poll or --disable-emulate-poll was given.
5799 if test "${enable_emulate_poll+set}" = set; then
5800 enableval="$enable_emulate_poll"
5804 # If the system doesn't have poll.h, or if the user forced it, provide
5805 # our own poll function
5806 if test x$enable_emulate_poll != xyes ; then
5808 for ac_header in poll.h
5810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812 echo "$as_me:$LINENO: checking for $ac_header" >&5
5813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5820 # Is the header compilable?
5821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830 #include <$ac_header>
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_cxx_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_header_compiler=yes
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ac_header_compiler=no
5861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5863 echo "${ECHO_T}$ac_header_compiler" >&6
5865 # Is the header present?
5866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <$ac_header>
5876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } >/dev/null; then
5884 if test -s conftest.err; then
5885 ac_cpp_err=$ac_cxx_preproc_warn_flag
5886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5893 if test -z "$ac_cpp_err"; then
5894 ac_header_preproc=yes
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_header_preproc=no
5901 rm -f conftest.err conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5903 echo "${ECHO_T}$ac_header_preproc" >&6
5905 # So? What about this header?
5906 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5912 ac_header_preproc=yes
5915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5929 ## ----------------------------------------- ##
5930 ## Report this to the spamass-milter lists. ##
5931 ## ----------------------------------------- ##
5934 sed "s/^/$as_me: WARNING: /" >&2
5937 echo "$as_me:$LINENO: checking for $ac_header" >&5
5938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 eval "$as_ac_Header=\$ac_header_preproc"
5944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5959 if test x$enable_emulate_poll = xyes -o x$ac_cv_header_poll_h = xno ; then
5960 { echo "$as_me:$LINENO: Emulating poll with select" >&5
5961 echo "$as_me: Emulating poll with select" >&6;}
5963 "poll.$ac_objext" | \
5964 *" poll.$ac_objext" | \
5965 "poll.$ac_objext "* | \
5966 *" poll.$ac_objext "* ) ;;
5967 *) LIBOBJS="$LIBOBJS poll.$ac_objext" ;;
5972 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
5973 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
5975 # Check whether --with-dmalloc or --without-dmalloc was given.
5976 if test "${with_dmalloc+set}" = set; then
5977 withval="$with_dmalloc"
5978 if test "$withval" = yes; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5982 cat >>confdefs.h <<\_ACEOF
5983 #define WITH_DMALLOC 1
5987 for ac_header in dmalloc.h
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5999 # Is the header compilable?
6000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6009 #include <$ac_header>
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_cxx_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_header_compiler=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_header_compiler=no
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6042 echo "${ECHO_T}$ac_header_compiler" >&6
6044 # Is the header present?
6045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <$ac_header>
6055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } >/dev/null; then
6063 if test -s conftest.err; then
6064 ac_cpp_err=$ac_cxx_preproc_warn_flag
6065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6072 if test -z "$ac_cpp_err"; then
6073 ac_header_preproc=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_preproc=no
6080 rm -f conftest.err conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6082 echo "${ECHO_T}$ac_header_preproc" >&6
6084 # So? What about this header?
6085 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6091 ac_header_preproc=yes
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6108 ## ----------------------------------------- ##
6109 ## Report this to the spamass-milter lists. ##
6110 ## ----------------------------------------- ##
6113 sed "s/^/$as_me: WARNING: /" >&2
6116 echo "$as_me:$LINENO: checking for $ac_header" >&5
6117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 eval "$as_ac_Header=\$ac_header_preproc"
6123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6128 cat >>confdefs.h <<_ACEOF
6129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 echo "$as_me:$LINENO: checking for dmalloc_malloc in -ldmallocthcxx" >&5
6138 echo $ECHO_N "checking for dmalloc_malloc in -ldmallocthcxx... $ECHO_C" >&6
6139 if test "${ac_cv_lib_dmallocthcxx_dmalloc_malloc+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 ac_check_lib_save_LIBS=$LIBS
6143 LIBS="-ldmallocthcxx $LIBS"
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6157 char dmalloc_malloc ();
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_cxx_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_lib_dmallocthcxx_dmalloc_malloc=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_cv_lib_dmallocthcxx_dmalloc_malloc=no
6195 rm -f conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 LIBS=$ac_check_lib_save_LIBS
6199 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&5
6200 echo "${ECHO_T}$ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&6
6201 if test $ac_cv_lib_dmallocthcxx_dmalloc_malloc = yes; then
6202 cat >>confdefs.h <<_ACEOF
6203 #define HAVE_LIBDMALLOCTHCXX 1
6206 LIBS="-ldmallocthcxx $LIBS"
6209 { { echo "$as_me:$LINENO: error: Threaded C++ dmalloc library not found" >&5
6210 echo "$as_me: error: Threaded C++ dmalloc library not found" >&2;}
6211 { (exit 1); exit 1; }; }
6215 echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6224 # Checks for library functions.
6228 for ac_func in vsyslog vasprintf vsnprintf
6230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6231 echo "$as_me:$LINENO: checking for $ac_func" >&5
6232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6233 if eval "test \"\${$as_ac_var+set}\" = set"; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6244 #define $ac_func innocuous_$ac_func
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func (); below.
6248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 <limits.h> exists even on freestanding compilers. */
6252 # include <limits.h>
6254 # include <assert.h>
6259 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6273 char (*f) () = $ac_func;
6282 return f != $ac_func;
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_cxx_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 eval "$as_ac_var=yes"
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 eval "$as_ac_var=no"
6316 rm -f conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6321 if test `eval echo '${'$as_ac_var'}'` = yes; then
6322 cat >>confdefs.h <<_ACEOF
6323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6331 for ac_func in asprintf snprintf
6333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6334 echo "$as_me:$LINENO: checking for $ac_func" >&5
6335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_var+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6347 #define $ac_func innocuous_$ac_func
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func (); below.
6351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 <limits.h> exists even on freestanding compilers. */
6355 # include <limits.h>
6357 # include <assert.h>
6362 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6376 char (*f) () = $ac_func;
6385 return f != $ac_func;
6390 rm -f conftest.$ac_objext conftest$ac_exeext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392 (eval $ac_link) 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_cxx_werror_flag"
6400 || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest$ac_exeext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 eval "$as_ac_var=yes"
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 eval "$as_ac_var=no"
6419 rm -f conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6424 if test `eval echo '${'$as_ac_var'}'` = yes; then
6425 cat >>confdefs.h <<_ACEOF
6426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6432 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6433 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6434 if test "${ac_cv_search_gethostbyname+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 ac_func_search_save_LIBS=$LIBS
6438 ac_cv_search_gethostbyname=no
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452 char gethostbyname ();
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_cxx_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_search_gethostbyname="none required"
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6489 rm -f conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 if test "$ac_cv_search_gethostbyname" = no; then
6492 for ac_lib in nsl; do
6493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6501 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6507 char gethostbyname ();
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -z "$ac_cxx_werror_flag"
6526 || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_search_gethostbyname="-l$ac_lib"
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6545 rm -f conftest.err conftest.$ac_objext \
6546 conftest$ac_exeext conftest.$ac_ext
6549 LIBS=$ac_func_search_save_LIBS
6551 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6552 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6553 if test "$ac_cv_search_gethostbyname" != no; then
6554 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6558 echo "$as_me:$LINENO: checking for library containing connect" >&5
6559 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
6560 if test "${ac_cv_search_connect+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_func_search_save_LIBS=$LIBS
6564 ac_cv_search_connect=no
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_cxx_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_search_connect="none required"
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 if test "$ac_cv_search_connect" = no; then
6618 for ac_lib in socket; do
6619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_cxx_werror_flag"
6652 || test ! -s conftest.err'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_cv_search_connect="-l$ac_lib"
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6671 rm -f conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_func_search_save_LIBS
6677 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
6678 echo "${ECHO_T}$ac_cv_search_connect" >&6
6679 if test "$ac_cv_search_connect" != no; then
6680 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
6684 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
6685 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
6686 if test "${ac_cv_search_inet_aton+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 ac_func_search_save_LIBS=$LIBS
6690 ac_cv_search_inet_aton=no
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6698 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest$ac_exeext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_cv_search_inet_aton="none required"
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6741 rm -f conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 if test "$ac_cv_search_inet_aton" = no; then
6744 for ac_lib in resolv; do
6745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6753 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1 >conftest.err
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_cxx_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_search_inet_aton="-l$ac_lib"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6801 LIBS=$ac_func_search_save_LIBS
6803 echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
6804 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
6805 if test "$ac_cv_search_inet_aton" != no; then
6806 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
6811 # Check for functions and verify that the system provides a prototype for them.
6812 # Switch to C linkage. Though the autoconf manual claims it does
6813 # automatically. It lies.
6815 ac_cpp='$CPP $CPPFLAGS'
6816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822 for ac_func in strsep daemon
6824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6825 echo "$as_me:$LINENO: checking for $ac_func" >&5
6826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6827 if eval "test \"\${$as_ac_var+set}\" = set"; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6838 #define $ac_func innocuous_$ac_func
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func (); below.
6842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 <limits.h> exists even on freestanding compilers. */
6846 # include <limits.h>
6848 # include <assert.h>
6853 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6861 /* The GNU C library defines this for functions which it implements
6862 to always fail with ENOSYS. Some functions are actually named
6863 something starting with __ and the normal name is an alias. */
6864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6867 char (*f) () = $ac_func;
6876 return f != $ac_func;
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 eval "$as_ac_var=yes"
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 eval "$as_ac_var=no"
6910 rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6915 if test `eval echo '${'$as_ac_var'}'` = yes; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6922 "$ac_func.$ac_objext" | \
6923 *" $ac_func.$ac_objext" | \
6924 "$ac_func.$ac_objext "* | \
6925 *" $ac_func.$ac_objext "* ) ;;
6926 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6933 echo "$as_me:$LINENO: checking whether strsep is declared" >&5
6934 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
6935 if test "${ac_cv_have_decl_strsep+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6949 char *p = (char *) strsep;
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_have_decl_strsep=yes
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_cv_have_decl_strsep=no
6985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
6988 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
6989 if test $ac_cv_have_decl_strsep = yes; then
6991 cat >>confdefs.h <<_ACEOF
6992 #define HAVE_DECL_STRSEP 1
6997 cat >>confdefs.h <<_ACEOF
6998 #define HAVE_DECL_STRSEP 0
7003 echo "$as_me:$LINENO: checking whether daemon is declared" >&5
7004 echo $ECHO_N "checking whether daemon is declared... $ECHO_C" >&6
7005 if test "${ac_cv_have_decl_daemon+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7019 char *p = (char *) daemon;
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag"
7036 || test ! -s conftest.err'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest.$ac_objext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_have_decl_daemon=yes
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_cv_have_decl_daemon=no
7055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_cv_have_decl_daemon" >&5
7058 echo "${ECHO_T}$ac_cv_have_decl_daemon" >&6
7059 if test $ac_cv_have_decl_daemon = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_DECL_DAEMON 1
7067 cat >>confdefs.h <<_ACEOF
7068 #define HAVE_DECL_DAEMON 0
7076 ac_cpp='$CXXCPP $CPPFLAGS'
7077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7082 # Check for libmilter and its header files in the usual locations
7083 if test -d /usr/lib/libmilter ; then
7084 LDFLAGS="$LDFLAGS -L/usr/lib/libmilter"
7087 echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5
7088 echo $ECHO_N "checking for mi_stop in -lmilter... $ECHO_C" >&6
7089 if test "${ac_cv_lib_milter_mi_stop+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lmilter $LIBS"
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7101 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_cxx_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_lib_milter_mi_stop=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_lib_milter_mi_stop=no
7145 rm -f conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 LIBS=$ac_check_lib_save_LIBS
7149 echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5
7150 echo "${ECHO_T}$ac_cv_lib_milter_mi_stop" >&6
7151 if test $ac_cv_lib_milter_mi_stop = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_LIBMILTER 1
7156 LIBS="-lmilter $LIBS"
7160 # Older sendmails require libsm for support functions
7161 echo "$as_me:$LINENO: checking for library containing strlcpy" >&5
7162 echo $ECHO_N "checking for library containing strlcpy... $ECHO_C" >&6
7163 if test "${ac_cv_search_strlcpy+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_func_search_save_LIBS=$LIBS
7167 ac_cv_search_strlcpy=no
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7175 /* Override any gcc2 internal prototype to avoid an error. */
7179 /* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_cxx_werror_flag"
7200 || test ! -s conftest.err'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 ac_cv_search_strlcpy="none required"
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 if test "$ac_cv_search_strlcpy" = no; then
7221 for ac_lib in sm smutil; do
7222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7230 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7245 rm -f conftest.$ac_objext conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_cxx_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_search_strlcpy="-l$ac_lib"
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -f conftest.err conftest.$ac_objext \
7275 conftest$ac_exeext conftest.$ac_ext
7278 LIBS=$ac_func_search_save_LIBS
7280 echo "$as_me:$LINENO: result: $ac_cv_search_strlcpy" >&5
7281 echo "${ECHO_T}$ac_cv_search_strlcpy" >&6
7282 if test "$ac_cv_search_strlcpy" != no; then
7283 test "$ac_cv_search_strlcpy" = "none required" || LIBS="$ac_cv_search_strlcpy $LIBS"
7287 $as_unset ac_cv_lib_milter_mi_stop
7289 echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5
7290 echo $ECHO_N "checking for mi_stop in -lmilter... $ECHO_C" >&6
7291 if test "${ac_cv_lib_milter_mi_stop+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_check_lib_save_LIBS=$LIBS
7295 LIBS="-lmilter $LIBS"
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7303 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_cxx_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest$ac_exeext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_lib_milter_mi_stop=yes
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 ac_cv_lib_milter_mi_stop=no
7347 rm -f conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7349 LIBS=$ac_check_lib_save_LIBS
7351 echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5
7352 echo "${ECHO_T}$ac_cv_lib_milter_mi_stop" >&6
7353 if test $ac_cv_lib_milter_mi_stop = yes; then
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_LIBMILTER 1
7358 LIBS="-lmilter $LIBS"
7362 { { echo "$as_me:$LINENO: error: Cannot find libmilter" >&5
7363 echo "$as_me: error: Cannot find libmilter" >&2;}
7364 { (exit 1); exit 1; }; }
7372 for ac_header in libmilter/mfapi.h
7374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7384 # Is the header compilable?
7385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 #include <$ac_header>
7396 rm -f conftest.$ac_objext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398 (eval $ac_compile) 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -z "$ac_cxx_werror_flag"
7406 || test ! -s conftest.err'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try='test -s conftest.$ac_objext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 ac_header_compiler=yes
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ac_header_compiler=no
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6
7429 # Is the header present?
7430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <$ac_header>
7440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7443 grep -v '^ *+' conftest.er1 >conftest.err
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev/null; then
7448 if test -s conftest.err; then
7449 ac_cpp_err=$ac_cxx_preproc_warn_flag
7450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7457 if test -z "$ac_cpp_err"; then
7458 ac_header_preproc=yes
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_header_preproc=no
7465 rm -f conftest.err conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7467 echo "${ECHO_T}$ac_header_preproc" >&6
7469 # So? What about this header?
7470 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7476 ac_header_preproc=yes
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7493 ## ----------------------------------------- ##
7494 ## Report this to the spamass-milter lists. ##
7495 ## ----------------------------------------- ##
7498 sed "s/^/$as_me: WARNING: /" >&2
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 eval "$as_ac_Header=\$ac_header_preproc"
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513 cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519 { { echo "$as_me:$LINENO: error: Please install mfapi.h from the sendmail distribution" >&5
7520 echo "$as_me: error: Please install mfapi.h from the sendmail distribution" >&2;}
7521 { (exit 1); exit 1; }; }
7528 # Files to create from .in templates:
7529 ac_config_files="$ac_config_files Makefile contrib/spamass-milter.spec spamass-milter.1"
7530 cat >confcache <<\_ACEOF
7531 # This file is a shell script that caches the results of configure
7532 # tests run on this system so they can be shared between configure
7533 # scripts and configure runs, see configure's option --config-cache.
7534 # It is not useful on other systems. If it contains results you don't
7535 # want to keep, you may remove or edit it.
7537 # config.status only pays attention to the cache file if you give it
7538 # the --recheck option to rerun configure.
7540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7546 # The following way of writing the cache mishandles newlines in values,
7547 # but we know of no workaround that is simple, portable, and efficient.
7548 # So, don't put newlines in cache variables' values.
7549 # Ultrix sh set writes to stderr and can't be redirected directly,
7550 # and sets the high bit in the cache file unless we assign to the vars.
7553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7555 # `set' does not quote correctly, so add quotes (double-quote
7556 # substitution turns \\\\ into \\, and sed turns \\ into \).
7559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7562 # `set' quotes correctly as required by POSIX, so do not add quotes.
7564 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7573 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7575 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7576 if test -w $cache_file; then
7577 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7578 cat confcache >$cache_file
7580 echo "not updating unwritable cache $cache_file"
7585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7586 # Let make expand exec_prefix.
7587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7589 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7590 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7591 # trailing colons and then remove the whole line if VPATH becomes empty
7592 # (actually we leave an empty line to preserve line numbers).
7593 if test "x$srcdir" = x.; then
7594 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7595 s/:*\$(srcdir):*/:/;
7596 s/:*\${srcdir}:*/:/;
7598 s/^\([^=]*=[ ]*\):*/\1/;
7604 DEFS=-DHAVE_CONFIG_H
7608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7609 # 1. Remove the extension, and $U if already installed.
7610 ac_i=`echo "$ac_i" |
7611 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7613 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7614 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7618 LTLIBOBJS=$ac_ltlibobjs
7621 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7622 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7623 Usually this means the macro was only invoked conditionally." >&5
7624 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7625 Usually this means the macro was only invoked conditionally." >&2;}
7626 { (exit 1); exit 1; }; }
7628 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7630 Usually this means the macro was only invoked conditionally." >&5
7631 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7632 Usually this means the macro was only invoked conditionally." >&2;}
7633 { (exit 1); exit 1; }; }
7635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7636 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7637 Usually this means the macro was only invoked conditionally." >&5
7638 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7639 Usually this means the macro was only invoked conditionally." >&2;}
7640 { (exit 1); exit 1; }; }
7642 if test -z "${HAVE_MDOC_TRUE}" && test -z "${HAVE_MDOC_FALSE}"; then
7643 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MDOC\" was never defined.
7644 Usually this means the macro was only invoked conditionally." >&5
7645 echo "$as_me: error: conditional \"HAVE_MDOC\" was never defined.
7646 Usually this means the macro was only invoked conditionally." >&2;}
7647 { (exit 1); exit 1; }; }
7650 : ${CONFIG_STATUS=./config.status}
7651 ac_clean_files_save=$ac_clean_files
7652 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7653 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7654 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7655 cat >$CONFIG_STATUS <<_ACEOF
7657 # Generated by $as_me.
7658 # Run this file to recreate the current configuration.
7659 # Compiler output produced by configure, useful for debugging
7660 # configure, is in config.log if it exists.
7665 SHELL=\${CONFIG_SHELL-$SHELL}
7668 cat >>$CONFIG_STATUS <<\_ACEOF
7669 ## --------------------- ##
7670 ## M4sh Initialization. ##
7671 ## --------------------- ##
7673 # Be Bourne compatible
7674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7677 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7678 # is contrary to our usage. Disable this feature.
7679 alias -g '${1+"$@"}'='"$@"'
7680 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7683 DUALCASE=1; export DUALCASE # for MKS sh
7685 # Support unset when possible.
7686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7693 # Work around bugs in pre-3.0 UWIN ksh.
7694 $as_unset ENV MAIL MAILPATH
7701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7703 LC_TELEPHONE LC_TIME
7705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7706 eval $as_var=C; export $as_var
7712 # Required to use basename.
7713 if expr a : '\(a\)' >/dev/null 2>&1; then
7719 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7720 as_basename=basename
7726 # Name of the executable.
7727 as_me=`$as_basename "$0" ||
7728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7729 X"$0" : 'X\(//\)$' \| \
7730 X"$0" : 'X\(/\)$' \| \
7731 . : '\(.\)' 2>/dev/null ||
7733 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7734 /^X\/\(\/\/\)$/{ s//\1/; q; }
7735 /^X\/\(\/\).*/{ s//\1/; q; }
7739 # PATH needs CR, and LINENO needs CR and PATH.
7740 # Avoid depending upon Character Ranges.
7741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7744 as_cr_digits='0123456789'
7745 as_cr_alnum=$as_cr_Letters$as_cr_digits
7747 # The user is always right.
7748 if test "${PATH_SEPARATOR+set}" != set; then
7749 echo "#! /bin/sh" >conf$$.sh
7750 echo "exit 0" >>conf$$.sh
7752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7763 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7764 test "x$as_lineno_1" != "x$as_lineno_2" &&
7765 test "x$as_lineno_3" = "x$as_lineno_2" || {
7766 # Find who we are. Look in the path if we contain no path at all
7769 *[\\/]* ) as_myself=$0 ;;
7770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7780 # We did not find ourselves, most probably we were run as `sh COMMAND'
7781 # in which case we are not to be found in the path.
7782 if test "x$as_myself" = x; then
7785 if test ! -f "$as_myself"; then
7786 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7787 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7788 { (exit 1); exit 1; }; }
7790 case $CONFIG_SHELL in
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7796 test -z "$as_dir" && as_dir=.
7797 for as_base in sh bash ksh sh5; do
7800 if ("$as_dir/$as_base" -c '
7803 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7804 test "x$as_lineno_1" != "x$as_lineno_2" &&
7805 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7806 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7807 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7808 CONFIG_SHELL=$as_dir/$as_base
7810 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7818 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7819 # uniformly replaced by the line number. The first 'sed' inserts a
7820 # line-number line before each line; the second 'sed' does the real
7821 # work. The second script uses 'N' to pair each line-number line
7822 # with the numbered line, and appends trailing '-' during
7823 # substitution so that $LINENO is not a special case at line end.
7824 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7825 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7826 sed '=' <$as_myself |
7831 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7834 s,^['$as_cr_digits']*\n,,
7836 chmod +x $as_me.lineno ||
7837 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7838 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7839 { (exit 1); exit 1; }; }
7841 # Don't try to exec as it changes $[0], causing all sort of problems
7842 # (the dirname of $[0] is not the place where we might find the
7843 # original and so on. Autoconf is especially sensible to this).
7845 # Exit status is that of the last command.
7850 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7851 *c*,-n*) ECHO_N= ECHO_C='
7853 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7854 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7857 if expr a : '\(a\)' >/dev/null 2>&1; then
7863 rm -f conf$$ conf$$.exe conf$$.file
7865 if ln -s conf$$.file conf$$ 2>/dev/null; then
7866 # We could just check for DJGPP; but this test a) works b) is more generic
7867 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7868 if test -f conf$$.exe; then
7869 # Don't use ln at all; we don't have any links
7874 elif ln conf$$.file conf$$ 2>/dev/null; then
7879 rm -f conf$$ conf$$.exe conf$$.file
7881 if mkdir -p . 2>/dev/null; then
7884 test -d ./-p && rmdir ./-p
7888 as_executable_p="test -f"
7890 # Sed expression to map a string onto a valid CPP name.
7891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7893 # Sed expression to map a string onto a valid variable name.
7894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7898 # We need space, tab and new line, in precisely that order.
7908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7909 # report actual input values of CONFIG_FILES etc. instead of their
7910 # values after options handling. Logging --version etc. is OK.
7914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7915 ## Running $as_me. ##
7920 This file was extended by spamass-milter $as_me 0.3.1, which was
7921 generated by GNU Autoconf 2.59. Invocation command line was
7923 CONFIG_FILES = $CONFIG_FILES
7924 CONFIG_HEADERS = $CONFIG_HEADERS
7925 CONFIG_LINKS = $CONFIG_LINKS
7926 CONFIG_COMMANDS = $CONFIG_COMMANDS
7930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7934 # Files that config.status was made for.
7935 if test -n "$ac_config_files"; then
7936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7939 if test -n "$ac_config_headers"; then
7940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7943 if test -n "$ac_config_links"; then
7944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7947 if test -n "$ac_config_commands"; then
7948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7951 cat >>$CONFIG_STATUS <<\_ACEOF
7954 \`$as_me' instantiates files from templates according to the
7955 current configuration.
7957 Usage: $0 [OPTIONS] [FILE]...
7959 -h, --help print this help, then exit
7960 -V, --version print version number, then exit
7961 -q, --quiet do not print progress messages
7962 -d, --debug don't remove temporary files
7963 --recheck update $as_me by reconfiguring in the same conditions
7964 --file=FILE[:TEMPLATE]
7965 instantiate the configuration file FILE
7966 --header=FILE[:TEMPLATE]
7967 instantiate the configuration header FILE
7969 Configuration files:
7972 Configuration headers:
7975 Configuration commands:
7978 Report bugs to <bug-autoconf@gnu.org>."
7981 cat >>$CONFIG_STATUS <<_ACEOF
7983 spamass-milter config.status 0.3.1
7984 configured by $0, generated by GNU Autoconf 2.59,
7985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7987 Copyright (C) 2003 Free Software Foundation, Inc.
7988 This config.status script is free software; the Free Software Foundation
7989 gives unlimited permission to copy, distribute and modify it."
7994 cat >>$CONFIG_STATUS <<\_ACEOF
7995 # If no file are specified by the user, then we need to provide default
7996 # value. By we need to know if files were specified by the user.
8002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8011 *) # This is not an option, so the user has probably given explicit
8014 ac_need_defaults=false;;
8018 # Handling of the options.
8020 cat >>$CONFIG_STATUS <<\_ACEOF
8021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8023 --version | --vers* | -V )
8024 echo "$ac_cs_version"; exit 0 ;;
8026 # Conflict between --help and --header
8027 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8028 Try \`$0 --help' for more information." >&5
8029 echo "$as_me: error: ambiguous option: $1
8030 Try \`$0 --help' for more information." >&2;}
8031 { (exit 1); exit 1; }; };;
8032 --help | --hel | -h )
8033 echo "$ac_cs_usage"; exit 0 ;;
8034 --debug | --d* | -d )
8036 --file | --fil | --fi | --f )
8038 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8039 ac_need_defaults=false;;
8040 --header | --heade | --head | --hea )
8042 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8043 ac_need_defaults=false;;
8044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8049 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8050 Try \`$0 --help' for more information." >&5
8051 echo "$as_me: error: unrecognized option: $1
8052 Try \`$0 --help' for more information." >&2;}
8053 { (exit 1); exit 1; }; } ;;
8055 *) ac_config_targets="$ac_config_targets $1" ;;
8061 ac_configure_extra_args=
8063 if $ac_cs_silent; then
8065 ac_configure_extra_args="$ac_configure_extra_args --silent"
8069 cat >>$CONFIG_STATUS <<_ACEOF
8070 if \$ac_cs_recheck; then
8071 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8072 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8077 cat >>$CONFIG_STATUS <<_ACEOF
8079 # INIT-COMMANDS section.
8082 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8088 cat >>$CONFIG_STATUS <<\_ACEOF
8089 for ac_config_target in $ac_config_targets
8091 case "$ac_config_target" in
8092 # Handling of arguments.
8093 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8094 "contrib/spamass-milter.spec" ) CONFIG_FILES="$CONFIG_FILES contrib/spamass-milter.spec" ;;
8095 "spamass-milter.1" ) CONFIG_FILES="$CONFIG_FILES spamass-milter.1" ;;
8096 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8097 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8098 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8099 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8100 { (exit 1); exit 1; }; };;
8104 # If the user did not use the arguments to specify the items to instantiate,
8105 # then the envvar interface is used. Set only those that are not.
8106 # We use the long form for the default assignment because of an extremely
8107 # bizarre bug on SunOS 4.1.3.
8108 if $ac_need_defaults; then
8109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8114 # Have a temporary directory for convenience. Make it in the build tree
8115 # simply because there is no reason to put it here, and in addition,
8116 # creating and moving files from /tmp can sometimes cause problems.
8117 # Create a temporary directory, and hook for its removal unless debugging.
8120 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8121 trap '{ (exit 1); exit 1; }' 1 2 13 15
8124 # Create a (secure) tmp directory for tmp files.
8127 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8128 test -n "$tmp" && test -d "$tmp"
8131 tmp=./confstat$$-$RANDOM
8132 (umask 077 && mkdir $tmp)
8135 echo "$me: cannot create a temporary directory in ." >&2
8136 { (exit 1); exit 1; }
8141 cat >>$CONFIG_STATUS <<_ACEOF
8144 # CONFIG_FILES section.
8147 # No need to generate the scripts if there are no CONFIG_FILES.
8148 # This happens for instance when ./config.status config.h
8149 if test -n "\$CONFIG_FILES"; then
8150 # Protect against being on the right side of a sed subst in config.status.
8151 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8152 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8153 s,@SHELL@,$SHELL,;t t
8154 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8155 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8156 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8157 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8158 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8159 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8160 s,@exec_prefix@,$exec_prefix,;t t
8161 s,@prefix@,$prefix,;t t
8162 s,@program_transform_name@,$program_transform_name,;t t
8163 s,@bindir@,$bindir,;t t
8164 s,@sbindir@,$sbindir,;t t
8165 s,@libexecdir@,$libexecdir,;t t
8166 s,@datadir@,$datadir,;t t
8167 s,@sysconfdir@,$sysconfdir,;t t
8168 s,@sharedstatedir@,$sharedstatedir,;t t
8169 s,@localstatedir@,$localstatedir,;t t
8170 s,@libdir@,$libdir,;t t
8171 s,@includedir@,$includedir,;t t
8172 s,@oldincludedir@,$oldincludedir,;t t
8173 s,@infodir@,$infodir,;t t
8174 s,@mandir@,$mandir,;t t
8175 s,@build_alias@,$build_alias,;t t
8176 s,@host_alias@,$host_alias,;t t
8177 s,@target_alias@,$target_alias,;t t
8179 s,@ECHO_C@,$ECHO_C,;t t
8180 s,@ECHO_N@,$ECHO_N,;t t
8181 s,@ECHO_T@,$ECHO_T,;t t
8183 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8184 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8185 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8186 s,@CYGPATH_W@,$CYGPATH_W,;t t
8187 s,@PACKAGE@,$PACKAGE,;t t
8188 s,@VERSION@,$VERSION,;t t
8189 s,@ACLOCAL@,$ACLOCAL,;t t
8190 s,@AUTOCONF@,$AUTOCONF,;t t
8191 s,@AUTOMAKE@,$AUTOMAKE,;t t
8192 s,@AUTOHEADER@,$AUTOHEADER,;t t
8193 s,@MAKEINFO@,$MAKEINFO,;t t
8194 s,@install_sh@,$install_sh,;t t
8195 s,@STRIP@,$STRIP,;t t
8196 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8197 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8198 s,@mkdir_p@,$mkdir_p,;t t
8200 s,@SET_MAKE@,$SET_MAKE,;t t
8201 s,@am__leading_dot@,$am__leading_dot,;t t
8202 s,@AMTAR@,$AMTAR,;t t
8203 s,@am__tar@,$am__tar,;t t
8204 s,@am__untar@,$am__untar,;t t
8206 s,@CXXFLAGS@,$CXXFLAGS,;t t
8207 s,@LDFLAGS@,$LDFLAGS,;t t
8208 s,@CPPFLAGS@,$CPPFLAGS,;t t
8209 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8210 s,@EXEEXT@,$EXEEXT,;t t
8211 s,@OBJEXT@,$OBJEXT,;t t
8212 s,@DEPDIR@,$DEPDIR,;t t
8213 s,@am__include@,$am__include,;t t
8214 s,@am__quote@,$am__quote,;t t
8215 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8216 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8217 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8218 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8219 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8220 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8222 s,@CFLAGS@,$CFLAGS,;t t
8223 s,@ac_ct_CC@,$ac_ct_CC,;t t
8224 s,@CCDEPMODE@,$CCDEPMODE,;t t
8225 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8226 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8227 s,@SPAMC@,$SPAMC,;t t
8228 s,@SENDMAIL@,$SENDMAIL,;t t
8229 s,@NROFF@,$NROFF,;t t
8230 s,@HAVE_MDOC_TRUE@,$HAVE_MDOC_TRUE,;t t
8231 s,@HAVE_MDOC_FALSE@,$HAVE_MDOC_FALSE,;t t
8232 s,@build@,$build,;t t
8233 s,@build_cpu@,$build_cpu,;t t
8234 s,@build_vendor@,$build_vendor,;t t
8235 s,@build_os@,$build_os,;t t
8237 s,@host_cpu@,$host_cpu,;t t
8238 s,@host_vendor@,$host_vendor,;t t
8239 s,@host_os@,$host_os,;t t
8240 s,@acx_pthread_config@,$acx_pthread_config,;t t
8241 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
8242 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
8243 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
8244 s,@CXXCPP@,$CXXCPP,;t t
8245 s,@EGREP@,$EGREP,;t t
8246 s,@LIBOBJS@,$LIBOBJS,;t t
8247 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8252 cat >>$CONFIG_STATUS <<\_ACEOF
8253 # Split the substitutions into bite-sized pieces for seds with
8254 # small command number limits, like on Digital OSF/1 and HP-UX.
8256 ac_sed_frag=1 # Number of current file.
8257 ac_beg=1 # First line for current file.
8258 ac_end=$ac_max_sed_lines # Line after last line for current file.
8261 while $ac_more_lines; do
8262 if test $ac_beg -gt 1; then
8263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8265 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8267 if test ! -s $tmp/subs.frag; then
8270 # The purpose of the label and of the branching condition is to
8271 # speed up the sed processing (if there are no `@' at all, there
8272 # is no need to browse any of the substitutions).
8273 # These are the two extra sed commands mentioned above.
8275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8276 if test -z "$ac_sed_cmds"; then
8277 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8279 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8281 ac_sed_frag=`expr $ac_sed_frag + 1`
8283 ac_end=`expr $ac_end + $ac_max_sed_lines`
8286 if test -z "$ac_sed_cmds"; then
8289 fi # test -n "$CONFIG_FILES"
8292 cat >>$CONFIG_STATUS <<\_ACEOF
8293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8296 - | *:- | *:-:* ) # input from stdin
8298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8302 * ) ac_file_in=$ac_file.in ;;
8305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8308 X"$ac_file" : 'X\(//\)[^/]' \| \
8309 X"$ac_file" : 'X\(//\)$' \| \
8310 X"$ac_file" : 'X\(/\)' \| \
8311 . : '\(.\)' 2>/dev/null ||
8313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8315 /^X\(\/\/\)$/{ s//\1/; q; }
8316 /^X\(\/\).*/{ s//\1/; q; }
8318 { if $as_mkdir_p; then
8323 while test ! -d "$as_dir"; do
8324 as_dirs="$as_dir $as_dirs"
8325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8327 X"$as_dir" : 'X\(//\)[^/]' \| \
8328 X"$as_dir" : 'X\(//\)$' \| \
8329 X"$as_dir" : 'X\(/\)' \| \
8330 . : '\(.\)' 2>/dev/null ||
8332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8334 /^X\(\/\/\)$/{ s//\1/; q; }
8335 /^X\(\/\).*/{ s//\1/; q; }
8338 test ! -n "$as_dirs" || mkdir $as_dirs
8339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8341 { (exit 1); exit 1; }; }; }
8345 if test "$ac_dir" != .; then
8346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8347 # A "../" for each directory in $ac_dir_suffix.
8348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8350 ac_dir_suffix= ac_top_builddir=
8354 .) # No --srcdir option. We are building in place.
8356 if test -z "$ac_top_builddir"; then
8359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8361 [\\/]* | ?:[\\/]* ) # Absolute path.
8362 ac_srcdir=$srcdir$ac_dir_suffix;
8363 ac_top_srcdir=$srcdir ;;
8365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8369 # Do not use `cd foo && pwd` to compute absolute paths, because
8370 # the directories may not exist.
8372 .) ac_abs_builddir="$ac_dir";;
8375 .) ac_abs_builddir=`pwd`;;
8376 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8377 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8380 case $ac_abs_builddir in
8381 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8383 case ${ac_top_builddir}. in
8384 .) ac_abs_top_builddir=$ac_abs_builddir;;
8385 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8386 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8389 case $ac_abs_builddir in
8390 .) ac_abs_srcdir=$ac_srcdir;;
8393 .) ac_abs_srcdir=$ac_abs_builddir;;
8394 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8395 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8398 case $ac_abs_builddir in
8399 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8401 case $ac_top_srcdir in
8402 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8403 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8404 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8411 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8414 if test x"$ac_file" != x-; then
8415 { echo "$as_me:$LINENO: creating $ac_file" >&5
8416 echo "$as_me: creating $ac_file" >&6;}
8419 # Let's still pretend it is `configure' which instantiates (i.e., don't
8420 # use $as_me), people would be surprised to read:
8421 # /* config.h. Generated by config.status. */
8422 if test x"$ac_file" = x-; then
8425 configure_input="$ac_file. "
8427 configure_input=$configure_input"Generated from `echo $ac_file_in |
8428 sed 's,.*/,,'` by configure."
8430 # First look for the input files in the build tree, otherwise in the
8432 ac_file_inputs=`IFS=:
8433 for f in $ac_file_in; do
8435 -) echo $tmp/stdin ;;
8437 # Absolute (can't be DOS-style, as IFS=:)
8438 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8439 echo "$as_me: error: cannot find input file: $f" >&2;}
8440 { (exit 1); exit 1; }; }
8443 if test -f "$f"; then
8446 elif test -f "$srcdir/$f"; then
8451 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8452 echo "$as_me: error: cannot find input file: $f" >&2;}
8453 { (exit 1); exit 1; }; }
8456 done` || { (exit 1); exit 1; }
8458 cat >>$CONFIG_STATUS <<_ACEOF
8462 cat >>$CONFIG_STATUS <<\_ACEOF
8464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8465 s,@configure_input@,$configure_input,;t t
8466 s,@srcdir@,$ac_srcdir,;t t
8467 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8468 s,@top_srcdir@,$ac_top_srcdir,;t t
8469 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8470 s,@builddir@,$ac_builddir,;t t
8471 s,@abs_builddir@,$ac_abs_builddir,;t t
8472 s,@top_builddir@,$ac_top_builddir,;t t
8473 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8474 s,@INSTALL@,$ac_INSTALL,;t t
8475 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8477 if test x"$ac_file" != x-; then
8478 mv $tmp/out $ac_file
8486 cat >>$CONFIG_STATUS <<\_ACEOF
8489 # CONFIG_HEADER section.
8492 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8493 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8495 # ac_d sets the value in "#define NAME VALUE" lines.
8496 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8497 ac_dB='[ ].*$,\1#\2'
8500 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8501 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8502 ac_uB='$,\1#\2define\3'
8506 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8509 - | *:- | *:-:* ) # input from stdin
8511 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8513 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8515 * ) ac_file_in=$ac_file.in ;;
8518 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8519 echo "$as_me: creating $ac_file" >&6;}
8521 # First look for the input files in the build tree, otherwise in the
8523 ac_file_inputs=`IFS=:
8524 for f in $ac_file_in; do
8526 -) echo $tmp/stdin ;;
8528 # Absolute (can't be DOS-style, as IFS=:)
8529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8530 echo "$as_me: error: cannot find input file: $f" >&2;}
8531 { (exit 1); exit 1; }; }
8532 # Do quote $f, to prevent DOS paths from being IFS'd.
8535 if test -f "$f"; then
8538 elif test -f "$srcdir/$f"; then
8543 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8544 echo "$as_me: error: cannot find input file: $f" >&2;}
8545 { (exit 1); exit 1; }; }
8548 done` || { (exit 1); exit 1; }
8549 # Remove the trailing spaces.
8550 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8554 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8555 # `conftest.undefs', that substitutes the proper values into
8556 # config.h.in to produce config.h. The first handles `#define'
8557 # templates, and the second `#undef' templates.
8558 # And first: Protect against being on the right side of a sed subst in
8559 # config.status. Protect against being in an unquoted here document
8561 rm -f conftest.defines conftest.undefs
8562 # Using a here document instead of a string reduces the quoting nightmare.
8563 # Putting comments in sed scripts is not portable.
8565 # `end' is used to avoid that the second main sed command (meant for
8566 # 0-ary CPP macros) applies to n-ary macro definitions.
8567 # See the Autoconf documentation for `clear'.
8568 cat >confdef2sed.sed <<\_ACEOF
8573 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8575 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8578 # If some macros were called several times there might be several times
8579 # the same #defines, which is useless. Nevertheless, we may not want to
8580 # sort them, since we want the *last* AC-DEFINE to be honored.
8581 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8582 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8583 rm -f confdef2sed.sed
8585 # This sed command replaces #undef with comments. This is necessary, for
8586 # example, in the case of _POSIX_SOURCE, which is predefined and required
8587 # on some systems where configure will not decide to define it.
8588 cat >>conftest.undefs <<\_ACEOF
8589 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8592 # Break up conftest.defines because some shells have a limit on the size
8593 # of here documents, and old seds have small limits too (100 cmds).
8594 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8595 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8596 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8597 echo ' :' >>$CONFIG_STATUS
8599 while grep . conftest.defines >/dev/null
8601 # Write a limited-size here document to $tmp/defines.sed.
8602 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8603 # Speed up: don't consider the non `#define' lines.
8604 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8605 # Work around the forget-to-reset-the-flag bug.
8606 echo 't clr' >>$CONFIG_STATUS
8607 echo ': clr' >>$CONFIG_STATUS
8608 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8610 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8614 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8615 rm -f conftest.defines
8616 mv conftest.tail conftest.defines
8618 rm -f conftest.defines
8619 echo ' fi # grep' >>$CONFIG_STATUS
8620 echo >>$CONFIG_STATUS
8622 # Break up conftest.undefs because some shells have a limit on the size
8623 # of here documents, and old seds have small limits too (100 cmds).
8624 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8626 while grep . conftest.undefs >/dev/null
8628 # Write a limited-size here document to $tmp/undefs.sed.
8629 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8630 # Speed up: don't consider the non `#undef'
8631 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8632 # Work around the forget-to-reset-the-flag bug.
8633 echo 't clr' >>$CONFIG_STATUS
8634 echo ': clr' >>$CONFIG_STATUS
8635 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8637 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8641 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8642 rm -f conftest.undefs
8643 mv conftest.tail conftest.undefs
8645 rm -f conftest.undefs
8647 cat >>$CONFIG_STATUS <<\_ACEOF
8648 # Let's still pretend it is `configure' which instantiates (i.e., don't
8649 # use $as_me), people would be surprised to read:
8650 # /* config.h. Generated by config.status. */
8651 if test x"$ac_file" = x-; then
8652 echo "/* Generated by configure. */" >$tmp/config.h
8654 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8656 cat $tmp/in >>$tmp/config.h
8658 if test x"$ac_file" != x-; then
8659 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8660 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8661 echo "$as_me: $ac_file is unchanged" >&6;}
8663 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8665 X"$ac_file" : 'X\(//\)[^/]' \| \
8666 X"$ac_file" : 'X\(//\)$' \| \
8667 X"$ac_file" : 'X\(/\)' \| \
8668 . : '\(.\)' 2>/dev/null ||
8670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8672 /^X\(\/\/\)$/{ s//\1/; q; }
8673 /^X\(\/\).*/{ s//\1/; q; }
8675 { if $as_mkdir_p; then
8680 while test ! -d "$as_dir"; do
8681 as_dirs="$as_dir $as_dirs"
8682 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8684 X"$as_dir" : 'X\(//\)[^/]' \| \
8685 X"$as_dir" : 'X\(//\)$' \| \
8686 X"$as_dir" : 'X\(/\)' \| \
8687 . : '\(.\)' 2>/dev/null ||
8689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8691 /^X\(\/\/\)$/{ s//\1/; q; }
8692 /^X\(\/\).*/{ s//\1/; q; }
8695 test ! -n "$as_dirs" || mkdir $as_dirs
8696 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8697 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8698 { (exit 1); exit 1; }; }; }
8701 mv $tmp/config.h $ac_file
8707 # Compute $ac_file's index in $config_headers.
8709 for _am_header in $config_headers :; do
8711 $ac_file | $ac_file:* )
8714 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8717 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8718 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8719 X$ac_file : 'X\(//\)[^/]' \| \
8720 X$ac_file : 'X\(//\)$' \| \
8721 X$ac_file : 'X\(/\)' \| \
8722 . : '\(.\)' 2>/dev/null ||
8724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8726 /^X\(\/\/\)$/{ s//\1/; q; }
8727 /^X\(\/\).*/{ s//\1/; q; }
8728 s/.*/./; q'`/stamp-h$_am_stamp_count
8731 cat >>$CONFIG_STATUS <<\_ACEOF
8734 # CONFIG_COMMANDS section.
8736 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8737 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8738 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8739 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8740 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8741 X"$ac_dest" : 'X\(//\)[^/]' \| \
8742 X"$ac_dest" : 'X\(//\)$' \| \
8743 X"$ac_dest" : 'X\(/\)' \| \
8744 . : '\(.\)' 2>/dev/null ||
8746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8748 /^X\(\/\/\)$/{ s//\1/; q; }
8749 /^X\(\/\).*/{ s//\1/; q; }
8751 { if $as_mkdir_p; then
8756 while test ! -d "$as_dir"; do
8757 as_dirs="$as_dir $as_dirs"
8758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8760 X"$as_dir" : 'X\(//\)[^/]' \| \
8761 X"$as_dir" : 'X\(//\)$' \| \
8762 X"$as_dir" : 'X\(/\)' \| \
8763 . : '\(.\)' 2>/dev/null ||
8765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8767 /^X\(\/\/\)$/{ s//\1/; q; }
8768 /^X\(\/\).*/{ s//\1/; q; }
8771 test ! -n "$as_dirs" || mkdir $as_dirs
8772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8774 { (exit 1); exit 1; }; }; }
8778 if test "$ac_dir" != .; then
8779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8780 # A "../" for each directory in $ac_dir_suffix.
8781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8783 ac_dir_suffix= ac_top_builddir=
8787 .) # No --srcdir option. We are building in place.
8789 if test -z "$ac_top_builddir"; then
8792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8794 [\\/]* | ?:[\\/]* ) # Absolute path.
8795 ac_srcdir=$srcdir$ac_dir_suffix;
8796 ac_top_srcdir=$srcdir ;;
8798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8802 # Do not use `cd foo && pwd` to compute absolute paths, because
8803 # the directories may not exist.
8805 .) ac_abs_builddir="$ac_dir";;
8808 .) ac_abs_builddir=`pwd`;;
8809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8813 case $ac_abs_builddir in
8814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8816 case ${ac_top_builddir}. in
8817 .) ac_abs_top_builddir=$ac_abs_builddir;;
8818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8822 case $ac_abs_builddir in
8823 .) ac_abs_srcdir=$ac_srcdir;;
8826 .) ac_abs_srcdir=$ac_abs_builddir;;
8827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8831 case $ac_abs_builddir in
8832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8834 case $ac_top_srcdir in
8835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8842 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8843 echo "$as_me: executing $ac_dest commands" >&6;}
8845 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8846 # Strip MF so we end up with the name of the file.
8847 mf=`echo "$mf" | sed -e 's/:.*$//'`
8848 # Check whether this is an Automake generated Makefile or not.
8849 # We used to match only the files named `Makefile.in', but
8850 # some people rename them; so instead we look at the file content.
8851 # Grep'ing the first line is not enough: some people post-process
8852 # each Makefile.in and add a new line on top of each file to say so.
8853 # So let's grep whole file.
8854 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8855 dirpart=`(dirname "$mf") 2>/dev/null ||
8856 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8857 X"$mf" : 'X\(//\)[^/]' \| \
8858 X"$mf" : 'X\(//\)$' \| \
8859 X"$mf" : 'X\(/\)' \| \
8860 . : '\(.\)' 2>/dev/null ||
8862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8864 /^X\(\/\/\)$/{ s//\1/; q; }
8865 /^X\(\/\).*/{ s//\1/; q; }
8870 # Extract the definition of DEPDIR, am__include, and am__quote
8871 # from the Makefile without running `make'.
8872 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8873 test -z "$DEPDIR" && continue
8874 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8875 test -z "am__include" && continue
8876 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8877 # When using ansi2knr, U may be empty or an underscore; expand it
8878 U=`sed -n 's/^U = //p' < "$mf"`
8879 # Find all dependency output files, they are included files with
8880 # $(DEPDIR) in their names. We invoke sed twice because it is the
8881 # simplest approach to changing $(DEPDIR) to its actual value in the
8883 for file in `sed -n "
8884 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8885 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8886 # Make sure the directory exists.
8887 test -f "$dirpart/$file" && continue
8888 fdir=`(dirname "$file") 2>/dev/null ||
8889 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8890 X"$file" : 'X\(//\)[^/]' \| \
8891 X"$file" : 'X\(//\)$' \| \
8892 X"$file" : 'X\(/\)' \| \
8893 . : '\(.\)' 2>/dev/null ||
8895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8897 /^X\(\/\/\)$/{ s//\1/; q; }
8898 /^X\(\/\).*/{ s//\1/; q; }
8900 { if $as_mkdir_p; then
8901 mkdir -p $dirpart/$fdir
8903 as_dir=$dirpart/$fdir
8905 while test ! -d "$as_dir"; do
8906 as_dirs="$as_dir $as_dirs"
8907 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8909 X"$as_dir" : 'X\(//\)[^/]' \| \
8910 X"$as_dir" : 'X\(//\)$' \| \
8911 X"$as_dir" : 'X\(/\)' \| \
8912 . : '\(.\)' 2>/dev/null ||
8914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8916 /^X\(\/\/\)$/{ s//\1/; q; }
8917 /^X\(\/\).*/{ s//\1/; q; }
8920 test ! -n "$as_dirs" || mkdir $as_dirs
8921 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8922 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8923 { (exit 1); exit 1; }; }; }
8925 # echo "creating $dirpart/$file"
8926 echo '# dummy' > "$dirpart/$file"
8934 cat >>$CONFIG_STATUS <<\_ACEOF
8936 { (exit 0); exit 0; }
8938 chmod +x $CONFIG_STATUS
8939 ac_clean_files=$ac_clean_files_save
8942 # configure is writing to config.log, and then calls config.status.
8943 # config.status does its own redirection, appending to config.log.
8944 # Unfortunately, on DOS this fails, as config.log is still kept open
8945 # by configure, so config.status won't be able to write to it; its
8946 # output is simply discarded. So we exec the FD to /dev/null,
8947 # effectively closing config.log, so it can be properly (re)opened and
8948 # appended to by config.status. When coming back to configure, we
8949 # need to make the FD available again.
8950 if test "$no_create" != yes; then
8952 ac_config_status_args=
8953 test "$silent" = yes &&
8954 ac_config_status_args="$ac_config_status_args --quiet"
8956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8959 # would make configure fail if this is the last instruction.
8960 $ac_cs_success || { (exit 1); exit 1; }