2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="mutt.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-largefile omit support for large files
853 --enable-gpgme Enable GPGME support
854 --disable-pgp Disable PGP support
855 --disable-smime Disable SMIME support
856 --enable-external-dotlock
857 Force use of an external dotlock program
858 --enable-pop Enable POP3 support
859 --enable-imap Enable IMAP support
860 --enable-nntp Enable NNTP support
861 --enable-debug Enable debugging support
862 --enable-flock Use flock() to lock files
863 --disable-fcntl Do NOT use fcntl() to lock files
864 --enable-inodesort Read files in maildir folders sorted by inode.
865 --disable-warnings Turn off compiler warnings (not recommended)
866 --enable-nfs-fix Work around an NFS with broken attributes caching
867 --enable-buffy-size Use file size attribute instead of access time
868 --enable-mailtool Enable Sun mailtool attachments support
869 --enable-compressed Enable compressed folders support
870 --enable-locales-fix The result of isprint() is unreliable
871 --enable-exact-address Enable regeneration of email addresses
872 --enable-hcache Enable header caching
873 --disable-iconv Disable iconv support
874 --disable-nls Do not use Native Language Support
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
880 --with-mixmaster=PATH Include Mixmaster support
881 --with-slang=DIR Use S-Lang instead of ncurses
882 --with-curses=DIR Where ncurses is installed
883 --with-regex Use the GNU regex library
884 --with-homespool=FILE File in user's directory where new mail is spooled
885 --with-mailpath=DIR Directory where spool mailboxes are located
886 --with-docdir=PATH Specify where to put the documentation
887 --with-domain=DOMAIN Specify your DNS domain name
888 --with-gss=PFX Compile in GSSAPI authentication for IMAP
889 --with-ssl=PFX Compile in SSL support for POP/IMAP
890 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
891 --with-gnutls=PFX Enable SSL support using gnutls
892 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
893 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP
895 --with-idn=PFX Use GNU libidn for domain names
896 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
897 --without-gdbm Don't use gdbm even if it is available
898 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
899 --with-libiconv-prefix=DIR
900 Search for libiconv in DIR/include and DIR/lib
901 --with-included-gettext Use the GNU gettext library included here
902 --without-wc-funcs Do not use the system's wchar_t functions
903 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 ac_dir_suffix= ac_top_builddir=
936 .) # No --srcdir option. We are building in place.
938 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
954 .) ac_abs_builddir="$ac_dir";;
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1001 $ac_configure --help
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353 ac_config_headers="$ac_config_headers config.h"
1355 ac_config_commands="$ac_config_commands default-1"
1358 mutt_cv_version=`cat $srcdir/VERSION`
1361 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1362 if test -f $ac_dir/install-sh; then
1364 ac_install_sh="$ac_aux_dir/install-sh -c"
1366 elif test -f $ac_dir/install.sh; then
1368 ac_install_sh="$ac_aux_dir/install.sh -c"
1370 elif test -f $ac_dir/shtool; then
1372 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 if test -z "$ac_aux_dir"; then
1377 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1378 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1379 { (exit 1); exit 1; }; }
1381 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1382 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1383 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1385 # Find a good install program. We prefer a C program (faster),
1386 # so one script is as good as another. But avoid the broken or
1387 # incompatible versions:
1388 # SysV /etc/install, /usr/sbin/install
1389 # SunOS /usr/etc/install
1390 # IRIX /sbin/install
1392 # AmigaOS /C/install, which installs bootblocks on floppy discs
1393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1396 # OS/2's system install, which has a completely different semantic
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir=.
1409 # Account for people who put trailing slashes in PATH elements.
1411 ./ | .// | /cC/* | \
1412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1416 # OSF1 and SCO ODT 3.0 have their own names for install.
1417 # Don't use installbsd from OSF since it installs stuff as root
1419 for ac_prog in ginstall scoinst install; do
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1422 if test $ac_prog = install &&
1423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1424 # AIX install. It has an incompatible calling convention.
1426 elif test $ac_prog = install &&
1427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428 # program-specific install script used by HP pwplus--don't use.
1431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1443 if test "${ac_cv_path_install+set}" = set; then
1444 INSTALL=$ac_cv_path_install
1446 # As a last resort, use the slow shell script. We don't cache a
1447 # path for INSTALL within a source directory, because that will
1448 # break other packages using the cache if that directory is
1449 # removed, or if the path is relative.
1450 INSTALL=$ac_install_sh
1453 echo "$as_me:$LINENO: result: $INSTALL" >&5
1454 echo "${ECHO_T}$INSTALL" >&6
1456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1457 # It thinks the first close brace ends the variable substitution.
1458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1464 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1465 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1468 echo timestamp > conftestfile
1469 # Do `set' in a subshell so we don't clobber the current shell's
1470 # arguments. Must try -L first in case configure is actually a
1471 # symlink; some systems play weird games with the mod time of symlinks
1472 # (eg FreeBSD returns the mod time of the symlink's containing
1475 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1476 if test "$*" = "X"; then
1478 set X `ls -t $srcdir/configure conftestfile`
1480 if test "$*" != "X $srcdir/configure conftestfile" \
1481 && test "$*" != "X conftestfile $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftestfile
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1507 echo "$as_me:$LINENO: result: yes" >&5
1508 echo "${ECHO_T}yes" >&6
1509 test "$program_prefix" != NONE &&
1510 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1511 # Use a double $ so make ignores it.
1512 test "$program_suffix" != NONE &&
1513 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1514 # Double any \ or $. echo might interpret backslashes.
1515 # By default was `s,x,x', remove it if useless.
1516 cat <<\_ACEOF >conftest.sed
1517 s/[\\$]/&&/g;s/;s,x,x,$//
1519 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1523 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1524 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1525 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 cat >conftest.make <<\_ACEOF
1530 @echo 'ac_maketemp="$(MAKE)"'
1532 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1533 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1534 if test -n "$ac_maketemp"; then
1535 eval ac_cv_prog_make_${ac_make}_set=yes
1537 eval ac_cv_prog_make_${ac_make}_set=no
1541 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1542 echo "$as_me:$LINENO: result: yes" >&5
1543 echo "${ECHO_T}yes" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 SET_MAKE="MAKE=${MAKE-make}"
1554 VERSION=$mutt_cv_version
1556 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1557 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1558 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1559 { (exit 1); exit 1; }; }
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE "$PACKAGE"
1567 cat >>confdefs.h <<_ACEOF
1568 #define VERSION "$VERSION"
1573 missing_dir=`cd $ac_aux_dir && pwd`
1574 echo "$as_me:$LINENO: checking for working aclocal" >&5
1575 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1576 # Run test in a subshell; some versions of sh will print an error if
1577 # an executable is not found, even if stderr is redirected.
1578 # Redirect stdin to placate older versions of autoconf. Sigh.
1579 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1581 echo "$as_me:$LINENO: result: found" >&5
1582 echo "${ECHO_T}found" >&6
1584 ACLOCAL="$missing_dir/missing aclocal"
1585 echo "$as_me:$LINENO: result: missing" >&5
1586 echo "${ECHO_T}missing" >&6
1589 echo "$as_me:$LINENO: checking for working autoconf" >&5
1590 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1591 # Run test in a subshell; some versions of sh will print an error if
1592 # an executable is not found, even if stderr is redirected.
1593 # Redirect stdin to placate older versions of autoconf. Sigh.
1594 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1596 echo "$as_me:$LINENO: result: found" >&5
1597 echo "${ECHO_T}found" >&6
1599 AUTOCONF="$missing_dir/missing autoconf"
1600 echo "$as_me:$LINENO: result: missing" >&5
1601 echo "${ECHO_T}missing" >&6
1604 echo "$as_me:$LINENO: checking for working automake" >&5
1605 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf. Sigh.
1609 if (automake --version) < /dev/null > /dev/null 2>&1; then
1611 echo "$as_me:$LINENO: result: found" >&5
1612 echo "${ECHO_T}found" >&6
1614 AUTOMAKE="$missing_dir/missing automake"
1615 echo "$as_me:$LINENO: result: missing" >&5
1616 echo "${ECHO_T}missing" >&6
1619 echo "$as_me:$LINENO: checking for working autoheader" >&5
1620 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1621 # Run test in a subshell; some versions of sh will print an error if
1622 # an executable is not found, even if stderr is redirected.
1623 # Redirect stdin to placate older versions of autoconf. Sigh.
1624 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1625 AUTOHEADER=autoheader
1626 echo "$as_me:$LINENO: result: found" >&5
1627 echo "${ECHO_T}found" >&6
1629 AUTOHEADER="$missing_dir/missing autoheader"
1630 echo "$as_me:$LINENO: result: missing" >&5
1631 echo "${ECHO_T}missing" >&6
1634 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1635 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1641 echo "$as_me:$LINENO: result: found" >&5
1642 echo "${ECHO_T}found" >&6
1644 MAKEINFO="$missing_dir/missing makeinfo"
1645 echo "$as_me:$LINENO: result: missing" >&5
1646 echo "${ECHO_T}missing" >&6
1653 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1655 # Make sure we can run config.sub.
1656 $ac_config_sub sun4 >/dev/null 2>&1 ||
1657 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1658 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1659 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: checking build system type" >&5
1662 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1663 if test "${ac_cv_build+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 ac_cv_build_alias=$build_alias
1667 test -z "$ac_cv_build_alias" &&
1668 ac_cv_build_alias=`$ac_config_guess`
1669 test -z "$ac_cv_build_alias" &&
1670 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1671 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1672 { (exit 1); exit 1; }; }
1673 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1676 { (exit 1); exit 1; }; }
1679 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1680 echo "${ECHO_T}$ac_cv_build" >&6
1682 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 echo "$as_me:$LINENO: checking host system type" >&5
1688 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1689 if test "${ac_cv_host+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 ac_cv_host_alias=$host_alias
1693 test -z "$ac_cv_host_alias" &&
1694 ac_cv_host_alias=$ac_cv_build_alias
1695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1696 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1697 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1698 { (exit 1); exit 1; }; }
1701 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1702 echo "${ECHO_T}$ac_cv_host" >&6
1704 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1710 echo "$as_me:$LINENO: checking for prefix" >&5
1711 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1712 if test x$prefix = xNONE; then
1713 mutt_cv_prefix=$ac_default_prefix
1715 mutt_cv_prefix=$prefix
1717 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1718 echo "${ECHO_T}$mutt_cv_prefix" >&6
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725 if test -n "$ac_tool_prefix"; then
1726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 if test -n "$CC"; then
1734 ac_cv_prog_CC="$CC" # Let the user override the test.
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 if test -n "$CC"; then
1754 echo "$as_me:$LINENO: result: $CC" >&5
1755 echo "${ECHO_T}$CC" >&6
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1762 if test -z "$ac_cv_prog_CC"; then
1764 # Extract the first word of "gcc", so it can be a program name with args.
1765 set dummy gcc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$ac_ct_CC"; then
1772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_ac_ct_CC="gcc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1804 if test -z "$CC"; then
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}cc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="${ac_tool_prefix}cc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$ac_cv_prog_CC"; then
1844 # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="cc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1885 if test -z "$CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1905 ac_prog_rejected=yes
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 if test $ac_prog_rejected = yes; then
1916 # We found a bogon in the path, so make sure we never use it.
1917 set dummy $ac_cv_prog_CC
1919 if test $# != 0; then
1920 # We chose a different compiler from the bogus one.
1921 # However, it has the same basename, so the bogon will be chosen
1922 # first if we set CC to just the basename; use the full file name.
1924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1939 if test -z "$CC"; then
1940 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 test -n "$CC" && break
1981 if test -z "$CC"; then
1985 # Extract the first word of "$ac_prog", so it can be a program name with args.
1986 set dummy $ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC="$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$ac_ct_CC" && break
2029 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2030 See \`config.log' for more details." >&5
2031 echo "$as_me: error: no acceptable C compiler found in \$PATH
2032 See \`config.log' for more details." >&2;}
2033 { (exit 1); exit 1; }; }
2035 # Provide some information about the compiler.
2036 echo "$as_me:$LINENO:" \
2037 "checking for C compiler version" >&5
2038 ac_compiler=`set X $ac_compile; echo $2`
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2040 (eval $ac_compiler --version </dev/null >&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2045 (eval $ac_compiler -v </dev/null >&5) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2050 (eval $ac_compiler -V </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2055 cat >conftest.$ac_ext <<_ACEOF
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h. */
2070 ac_clean_files_save=$ac_clean_files
2071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2072 # Try to create an executable without -o first, disregard a.out.
2073 # It will help us diagnose broken compilers, and finding out an intuition
2075 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2076 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2078 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2079 (eval $ac_link_default) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; then
2083 # Find the output, starting from the most likely. This scheme is
2084 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # Be careful to initialize this variable, since it used to be cached.
2088 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2090 # b.out is created by i960 compilers.
2091 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2093 test -f "$ac_file" || continue
2095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2098 # This is the source file.
2101 # We found the default executable, but exeext='' is most
2105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 # FIXME: I believe we export ac_cv_exeext for Libtool,
2107 # but it would be cool to find out if it's true. Does anybody
2108 # maintain Libtool? --akim.
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2119 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: C compiler cannot create executables
2122 See \`config.log' for more details." >&2;}
2123 { (exit 77); exit 77; }; }
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2130 # Check the compiler produces executables we can run. If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137 if { ac_try='./$ac_file'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 if test "$cross_compiling" = maybe; then
2148 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot run C compiled programs.
2152 If you meant to cross compile, use \`--host'.
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2158 echo "$as_me:$LINENO: result: yes" >&5
2159 echo "${ECHO_T}yes" >&6
2161 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2162 ac_clean_files=$ac_clean_files_save
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2166 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2167 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2168 echo "${ECHO_T}$cross_compiling" >&6
2170 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2171 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2173 (eval $ac_link) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2178 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2179 # work properly (i.e., refer to `conftest.exe'), while it won't with
2181 for ac_file in conftest.exe conftest conftest.*; do
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2185 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&2;}
2196 { (exit 1); exit 1; }; }
2199 rm -f conftest$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2201 echo "${ECHO_T}$ac_cv_exeext" >&6
2203 rm -f conftest.$ac_ext
2204 EXEEXT=$ac_cv_exeext
2206 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2207 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2208 if test "${ac_cv_objext+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 rm -f conftest.o conftest.obj
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2252 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2253 echo "${ECHO_T}$ac_cv_objext" >&6
2254 OBJEXT=$ac_cv_objext
2256 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2257 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2258 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 cat >conftest.$ac_ext <<_ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2283 grep -v '^ *+' conftest.er1 >conftest.err
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2311 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2313 GCC=`test $ac_compiler_gnu = yes && echo yes`
2314 ac_test_CFLAGS=${CFLAGS+set}
2315 ac_save_CFLAGS=$CFLAGS
2317 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2319 if test "${ac_cv_prog_cc_g+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
2341 grep -v '^ *+' conftest.er1 >conftest.err
2343 cat conftest.err >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); } &&
2346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370 CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372 if test "$GCC" = yes; then
2378 if test "$GCC" = yes; then
2384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 ac_cv_prog_cc_stdc=no
2391 cat >conftest.$ac_ext <<_ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2399 #include <sys/types.h>
2400 #include <sys/stat.h>
2401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2402 struct buf { int x; };
2403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2404 static char *e (p, i)
2410 static char *f (char * (*g) (char **, int), char **p, ...)
2415 s = g (p, va_arg (v,int));
2420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2421 function prototypes and stuff, but not '\xHH' hex character constants.
2422 These don't provoke an error unfortunately, instead are silently treated
2423 as 'x'. The following induces an error, until -std1 is added to get
2424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2425 array size at least. It's necessary to write '\x00'==0 to get something
2426 that's true only with -std1. */
2427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2429 int test (int i, double x);
2430 struct s1 {int (*f) (int a);};
2431 struct s2 {int (*f) (double a);};
2432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2443 # Don't try gcc -ansi; that turns off useful extensions and
2444 # breaks some systems' header files.
2445 # AIX -qlanglvl=ansi
2446 # Ultrix and OSF/1 -std1
2447 # HP-UX 10.20 and later -Ae
2448 # HP-UX older versions -Aa -D_HPUX_SOURCE
2449 # SVR4 -Xc -D__EXTENSIONS__
2450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2452 CC="$ac_save_CC $ac_arg"
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_stdc=$ac_arg
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 rm -f conftest.err conftest.$ac_objext
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2488 case "x$ac_cv_prog_cc_stdc" in
2490 echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495 CC="$CC $ac_cv_prog_cc_stdc" ;;
2498 # Some people use a C++ compiler to compile C. Since we use `exit',
2499 # in C++ we need to declare it. In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 for ac_declaration in \
2530 'extern "C" void std::exit (int) throw (); using std::exit;' \
2531 'extern "C" void std::exit (int); using std::exit;' \
2532 'extern "C" void exit (int) throw ();' \
2533 'extern "C" void exit (int);' \
2536 cat >conftest.$ac_ext <<_ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 if test -n "$ac_declaration"; then
2627 echo '#ifdef __cplusplus' >>confdefs.h
2628 echo $ac_declaration >>confdefs.h
2629 echo '#endif' >>confdefs.h
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2647 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2648 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 ac_check_lib_save_LIBS=$LIBS
2652 LIBS="-lcposix $LIBS"
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2660 /* Override any gcc2 internal prototype to avoid an error. */
2664 /* We use char because int might match the return type of a gcc2
2665 builtin and then its argument prototype would still apply. */
2675 rm -f conftest.$ac_objext conftest$ac_exeext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2677 (eval $ac_link) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try='test -s conftest$ac_exeext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_cv_lib_cposix_strerror=yes
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 ac_cv_lib_cposix_strerror=no
2703 rm -f conftest.err conftest.$ac_objext \
2704 conftest$ac_exeext conftest.$ac_ext
2705 LIBS=$ac_check_lib_save_LIBS
2707 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2708 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2709 if test $ac_cv_lib_cposix_strerror = yes; then
2710 LIBS="$LIBS -lcposix"
2718 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2720 if test "${am_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 am_cv_prog_cc_stdc=no
2725 # Don't try gcc -ansi; that turns off useful extensions and
2726 # breaks some systems' header files.
2727 # AIX -qlanglvl=ansi
2728 # Ultrix and OSF/1 -std1
2729 # HP-UX -Aa -D_HPUX_SOURCE
2730 # SVR4 -Xc -D__EXTENSIONS__
2731 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2758 s = g (p, va_arg (v,int));
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 am_cv_prog_cc_stdc="$ac_arg"; break
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 if test -z "$am_cv_prog_cc_stdc"; then
2813 echo "$as_me:$LINENO: result: none needed" >&5
2814 echo "${ECHO_T}none needed" >&6
2816 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2817 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2819 case "x$am_cv_prog_cc_stdc" in
2821 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2831 # On Suns, sometimes $CPP names a directory.
2832 if test -n "$CPP" && test -d "$CPP"; then
2835 if test -z "$CPP"; then
2836 if test "${ac_cv_prog_CPP+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 # Double quotes because CPP needs to be expanded
2840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2843 for ac_c_preproc_warn_flag in '' yes
2845 # Use a header file that comes with gcc, so configuring glibc
2846 # with a fresh cross-compiler works.
2847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2848 # <limits.h> exists even on freestanding compilers.
2849 # On the NeXT, cc -E runs the code through the compiler's parser,
2850 # not just through cpp. "Syntax error" is here to catch this case.
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2858 # include <limits.h>
2860 # include <assert.h>
2864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2867 grep -v '^ *+' conftest.er1 >conftest.err
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } >/dev/null; then
2872 if test -s conftest.err; then
2873 ac_cpp_err=$ac_c_preproc_warn_flag
2874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2881 if test -z "$ac_cpp_err"; then
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 # Broken: fails on valid input.
2890 rm -f conftest.err conftest.$ac_ext
2892 # OK, works on sane cases. Now check whether non-existent headers
2893 # can be detected and how.
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 #include <ac_nonexistent.h>
2902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } >/dev/null; then
2910 if test -s conftest.err; then
2911 ac_cpp_err=$ac_c_preproc_warn_flag
2912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919 if test -z "$ac_cpp_err"; then
2920 # Broken: success on invalid input.
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 # Passes both tests.
2930 rm -f conftest.err conftest.$ac_ext
2933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2934 rm -f conftest.err conftest.$ac_ext
2935 if $ac_preproc_ok; then
2947 echo "$as_me:$LINENO: result: $CPP" >&5
2948 echo "${ECHO_T}$CPP" >&6
2950 for ac_c_preproc_warn_flag in '' yes
2952 # Use a header file that comes with gcc, so configuring glibc
2953 # with a fresh cross-compiler works.
2954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2955 # <limits.h> exists even on freestanding compilers.
2956 # On the NeXT, cc -E runs the code through the compiler's parser,
2957 # not just through cpp. "Syntax error" is here to catch this case.
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2965 # include <limits.h>
2967 # include <assert.h>
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null; then
2979 if test -s conftest.err; then
2980 ac_cpp_err=$ac_c_preproc_warn_flag
2981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988 if test -z "$ac_cpp_err"; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 # Broken: fails on valid input.
2997 rm -f conftest.err conftest.$ac_ext
2999 # OK, works on sane cases. Now check whether non-existent headers
3000 # can be detected and how.
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <ac_nonexistent.h>
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_c_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 if test -z "$ac_cpp_err"; then
3027 # Broken: success on invalid input.
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 # Passes both tests.
3037 rm -f conftest.err conftest.$ac_ext
3040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3041 rm -f conftest.err conftest.$ac_ext
3042 if $ac_preproc_ok; then
3045 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3048 See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 echo "$as_me:$LINENO: checking for egrep" >&5
3060 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3061 if test "${ac_cv_prog_egrep+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3065 then ac_cv_prog_egrep='grep -E'
3066 else ac_cv_prog_egrep='egrep'
3069 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3070 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3071 EGREP=$ac_cv_prog_egrep
3074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3085 inttypes.h stdint.h unistd.h
3087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3088 echo "$as_me:$LINENO: checking for $ac_header" >&5
3089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 $ac_includes_default
3101 #include <$ac_header>
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 eval "$as_ac_Header=yes"
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 eval "$as_ac_Header=no"
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3136 cat >>confdefs.h <<_ACEOF
3137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3147 echo "$as_me:$LINENO: checking for function prototypes" >&5
3148 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3149 if test "$am_cv_prog_cc_stdc" != no; then
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3153 cat >>confdefs.h <<\_ACEOF
3154 #define PROTOTYPES 1
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161 U=_ ANSI2KNR=./ansi2knr
3162 # Ensure some checks needed by ansi2knr itself.
3163 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3165 if test "${ac_cv_header_stdc+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_header_stdc=yes
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_cv_header_stdc=no
3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 if test $ac_cv_header_stdc = yes; then
3218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 $EGREP "memchr" >/dev/null 2>&1; then
3232 ac_cv_header_stdc=no
3238 if test $ac_cv_header_stdc = yes; then
3239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250 $EGREP "free" >/dev/null 2>&1; then
3253 ac_cv_header_stdc=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3261 if test "$cross_compiling" = yes; then
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3275 # define ISLOWER(c) \
3276 (('a' <= (c) && (c) <= 'i') \
3277 || ('j' <= (c) && (c) <= 'r') \
3278 || ('s' <= (c) && (c) <= 'z'))
3279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3287 for (i = 0; i < 256; i++)
3288 if (XOR (islower (i), ISLOWER (i))
3289 || toupper (i) != TOUPPER (i))
3294 rm -f conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: program exited with status $ac_status" >&5
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3312 ac_cv_header_stdc=no
3314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3320 if test $ac_cv_header_stdc = yes; then
3322 cat >>confdefs.h <<\_ACEOF
3323 #define STDC_HEADERS 1
3329 for ac_header in string.h
3331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3333 echo "$as_me:$LINENO: checking for $ac_header" >&5
3334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3341 # Is the header compilable?
3342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 $ac_includes_default
3351 #include <$ac_header>
3353 rm -f conftest.$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_header_compiler=yes
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_header_compiler=no
3381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3383 echo "${ECHO_T}$ac_header_compiler" >&6
3385 # Is the header present?
3386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <$ac_header>
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 ac_header_preproc=yes
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 ac_header_preproc=no
3421 rm -f conftest.err conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3423 echo "${ECHO_T}$ac_header_preproc" >&6
3425 # So? What about this header?
3426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3432 ac_header_preproc=yes
3435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3449 ## ------------------------------------------ ##
3450 ## Report this to the AC_PACKAGE_NAME lists. ##
3451 ## ------------------------------------------ ##
3454 sed "s/^/$as_me: WARNING: /" >&2
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 eval "$as_ac_Header=\$ac_header_preproc"
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3469 cat >>confdefs.h <<_ACEOF
3470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3479 if test "x$U" != "x"; then
3480 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3481 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3482 { (exit 1); exit 1; }; }
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3491 # On Suns, sometimes $CPP names a directory.
3492 if test -n "$CPP" && test -d "$CPP"; then
3495 if test -z "$CPP"; then
3496 if test "${ac_cv_prog_CPP+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 # Double quotes because CPP needs to be expanded
3500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3503 for ac_c_preproc_warn_flag in '' yes
3505 # Use a header file that comes with gcc, so configuring glibc
3506 # with a fresh cross-compiler works.
3507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508 # <limits.h> exists even on freestanding compilers.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3518 # include <limits.h>
3520 # include <assert.h>
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 # Broken: fails on valid input.
3550 rm -f conftest.err conftest.$ac_ext
3552 # OK, works on sane cases. Now check whether non-existent headers
3553 # can be detected and how.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <ac_nonexistent.h>
3562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 if test -z "$ac_cpp_err"; then
3580 # Broken: success on invalid input.
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Passes both tests.
3590 rm -f conftest.err conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3607 echo "$as_me:$LINENO: result: $CPP" >&5
3608 echo "${ECHO_T}$CPP" >&6
3610 for ac_c_preproc_warn_flag in '' yes
3612 # Use a header file that comes with gcc, so configuring glibc
3613 # with a fresh cross-compiler works.
3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3615 # <limits.h> exists even on freestanding compilers.
3616 # On the NeXT, cc -E runs the code through the compiler's parser,
3617 # not just through cpp. "Syntax error" is here to catch this case.
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3625 # include <limits.h>
3627 # include <assert.h>
3631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3648 if test -z "$ac_cpp_err"; then
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 # Broken: fails on valid input.
3657 rm -f conftest.err conftest.$ac_ext
3659 # OK, works on sane cases. Now check whether non-existent headers
3660 # can be detected and how.
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <ac_nonexistent.h>
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null; then
3677 if test -s conftest.err; then
3678 ac_cpp_err=$ac_c_preproc_warn_flag
3679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686 if test -z "$ac_cpp_err"; then
3687 # Broken: success on invalid input.
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 # Passes both tests.
3697 rm -f conftest.err conftest.$ac_ext
3700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701 rm -f conftest.err conftest.$ac_ext
3702 if $ac_preproc_ok; then
3705 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3708 See \`config.log' for more details." >&2;}
3709 { (exit 1); exit 1; }; }
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 cat >conftest.make <<\_ACEOF
3726 @echo 'ac_maketemp="$(MAKE)"'
3728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3730 if test -n "$ac_maketemp"; then
3731 eval ac_cv_prog_make_${ac_make}_set=yes
3733 eval ac_cv_prog_make_${ac_make}_set=no
3737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6
3742 echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3744 SET_MAKE="MAKE=${MAKE-make}"
3747 # Find a good install program. We prefer a C program (faster),
3748 # so one script is as good as another. But avoid the broken or
3749 # incompatible versions:
3750 # SysV /etc/install, /usr/sbin/install
3751 # SunOS /usr/etc/install
3752 # IRIX /sbin/install
3754 # AmigaOS /C/install, which installs bootblocks on floppy discs
3755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3758 # OS/2's system install, which has a completely different semantic
3759 # ./install, which can be erroneously created by make from ./install.sh.
3760 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3761 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3762 if test -z "$INSTALL"; then
3763 if test "${ac_cv_path_install+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 # Account for people who put trailing slashes in PATH elements.
3773 ./ | .// | /cC/* | \
3774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3775 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3778 # OSF1 and SCO ODT 3.0 have their own names for install.
3779 # Don't use installbsd from OSF since it installs stuff as root
3781 for ac_prog in ginstall scoinst install; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3784 if test $ac_prog = install &&
3785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3786 # AIX install. It has an incompatible calling convention.
3788 elif test $ac_prog = install &&
3789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790 # program-specific install script used by HP pwplus--don't use.
3793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3805 if test "${ac_cv_path_install+set}" = set; then
3806 INSTALL=$ac_cv_path_install
3808 # As a last resort, use the slow shell script. We don't cache a
3809 # path for INSTALL within a source directory, because that will
3810 # break other packages using the cache if that directory is
3811 # removed, or if the path is relative.
3812 INSTALL=$ac_install_sh
3815 echo "$as_me:$LINENO: result: $INSTALL" >&5
3816 echo "${ECHO_T}$INSTALL" >&6
3818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3819 # It thinks the first close brace ends the variable substitution.
3820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3829 echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_RANLIB+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test -n "$RANLIB"; then
3835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 RANLIB=$ac_cv_prog_RANLIB
3854 if test -n "$RANLIB"; then
3855 echo "$as_me:$LINENO: result: $RANLIB" >&5
3856 echo "${ECHO_T}$RANLIB" >&6
3858 echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3863 if test -z "$ac_cv_prog_RANLIB"; then
3864 ac_ct_RANLIB=$RANLIB
3865 # Extract the first word of "ranlib", so it can be a program name with args.
3866 set dummy ranlib; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test -n "$ac_ct_RANLIB"; then
3873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_RANLIB="ranlib"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3893 if test -n "$ac_ct_RANLIB"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3895 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 RANLIB=$ac_ct_RANLIB
3903 RANLIB="$ac_cv_prog_RANLIB"
3906 if test -n "$ac_tool_prefix"; then
3907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_AR="${ac_tool_prefix}ar"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3943 if test -z "$ac_cv_prog_AR"; then
3945 # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_AR="ar"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3973 if test -n "$ac_ct_AR"; then
3974 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3975 echo "${ECHO_T}$ac_ct_AR" >&6
3977 echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3987 echo "$as_me:$LINENO: checking for inline" >&5
3988 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3989 if test "${ac_cv_c_inline+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 for ac_kw in inline __inline__ __inline; do
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4002 static $ac_kw foo_t static_foo () {return 0; }
4003 $ac_kw foo_t foo () {return 0; }
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_c_inline=$ac_kw; break
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4038 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4039 echo "${ECHO_T}$ac_cv_c_inline" >&6
4042 case $ac_cv_c_inline in
4045 case $ac_cv_c_inline in
4047 *) ac_val=$ac_cv_c_inline;;
4049 cat >>confdefs.h <<_ACEOF
4051 #define inline $ac_val
4057 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4059 if test "${ac_cv_c_const+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4072 /* FIXME: Include the comments suggested by Paul. */
4074 /* Ultrix mips cc rejects this. */
4075 typedef int charset[2];
4077 /* SunOS 4.1.1 cc rejects this. */
4078 char const *const *ccp;
4080 /* NEC SVR4.0.2 mips cc rejects this. */
4081 struct point {int x, y;};
4082 static struct point const zero = {0,0};
4083 /* AIX XL C 1.02.0.0 rejects this.
4084 It does not let you subtract one const X* pointer from another in
4085 an arm of an if-expression whose if-part is not a constant
4087 const char *g = "string";
4088 ccp = &g + (g ? g-g : 0);
4089 /* HPUX 7.0 cc rejects these. */
4092 ccp = (char const *const *) p;
4093 { /* SCO 3.2v4 cc rejects this. */
4095 char const *s = 0 ? (char *) 0 : (char const *) 0;
4099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4101 const int *foo = &x[0];
4104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4105 typedef const int *iptr;
4109 { /* AIX XL C 1.02.0.0 rejects this saying
4110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4111 struct s { int j; const int *ap[3]; };
4112 struct s *b; b->j = 5;
4114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1 >conftest.err
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4154 echo "${ECHO_T}$ac_cv_c_const" >&6
4155 if test $ac_cv_c_const = no; then
4157 cat >>confdefs.h <<\_ACEOF
4164 # Check whether --enable-largefile or --disable-largefile was given.
4165 if test "${enable_largefile+set}" = set; then
4166 enableval="$enable_largefile"
4169 if test "$enable_largefile" != no; then
4171 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4172 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4173 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 ac_cv_sys_largefile_CC=no
4177 if test "$GCC" != yes; then
4180 # IRIX 6.2 and later do not support large files by default,
4181 # so use the C compiler's -n32 option if that helps.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <sys/types.h>
4189 /* Check that off_t can represent 2**63 - 1 correctly.
4190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4191 since some C++ compilers masquerading as C compilers
4192 incorrectly reject 9223372036854775807. */
4193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4195 && LARGE_OFF_T % 2147483647 == 1)
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4232 rm -f conftest.err conftest.$ac_objext
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_sys_largefile_CC=' -n32'; break
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4261 rm -f conftest.err conftest.$ac_objext
4265 rm -f conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4269 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4270 if test "$ac_cv_sys_largefile_CC" != no; then
4271 CC=$CC$ac_cv_sys_largefile_CC
4274 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4275 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4276 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 ac_cv_sys_file_offset_bits=no
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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 conftest.$ac_ext
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #define _FILE_OFFSET_BITS 64
4339 #include <sys/types.h>
4340 /* Check that off_t can represent 2**63 - 1 correctly.
4341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4342 since some C++ compilers masquerading as C compilers
4343 incorrectly reject 9223372036854775807. */
4344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4346 && LARGE_OFF_T % 2147483647 == 1)
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_sys_file_offset_bits=64; break
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4388 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4389 if test "$ac_cv_sys_file_offset_bits" != no; then
4391 cat >>confdefs.h <<_ACEOF
4392 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4397 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4398 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_large_files+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_cv_sys_large_files=no
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 /* Check that off_t can represent 2**63 - 1 correctly.
4412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4413 since some C++ compilers masquerading as C compilers
4414 incorrectly reject 9223372036854775807. */
4415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4417 && LARGE_OFF_T % 2147483647 == 1)
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #define _LARGE_FILES 1
4462 #include <sys/types.h>
4463 /* Check that off_t can represent 2**63 - 1 correctly.
4464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4465 since some C++ compilers masquerading as C compilers
4466 incorrectly reject 9223372036854775807. */
4467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4469 && LARGE_OFF_T % 2147483647 == 1)
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_sys_large_files=1; break
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4511 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4512 if test "$ac_cv_sys_large_files" != no; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define _LARGE_FILES $ac_cv_sys_large_files
4523 # Extract the first word of "dbx", so it can be a program name with args.
4524 set dummy dbx; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_path_DBX+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4555 if test -n "$DBX"; then
4556 echo "$as_me:$LINENO: result: $DBX" >&5
4557 echo "${ECHO_T}$DBX" >&6
4559 echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4563 # Extract the first word of "gdb", so it can be a program name with args.
4564 set dummy gdb; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_GDB+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4595 if test -n "$GDB"; then
4596 echo "$as_me:$LINENO: result: $GDB" >&5
4597 echo "${ECHO_T}$GDB" >&6
4599 echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4603 # Extract the first word of "sdb", so it can be a program name with args.
4604 set dummy sdb; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_SDB+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4635 if test -n "$SDB"; then
4636 echo "$as_me:$LINENO: result: $SDB" >&5
4637 echo "${ECHO_T}$SDB" >&6
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4644 if test $GDB != no ; then
4646 elif test $DBX != no ; then
4648 elif test $SDB != no ; then
4678 for ac_header in inttypes.h
4680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4682 echo "$as_me:$LINENO: checking for $ac_header" >&5
4683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4690 # Is the header compilable?
4691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4700 #include <$ac_header>
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_compiler=no
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732 echo "${ECHO_T}$ac_header_compiler" >&6
4734 # Is the header present?
4735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <$ac_header>
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_c_preproc_warn_flag
4755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4762 if test -z "$ac_cpp_err"; then
4763 ac_header_preproc=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_header_preproc=no
4770 rm -f conftest.err conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772 echo "${ECHO_T}$ac_header_preproc" >&6
4774 # So? What about this header?
4775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4781 ac_header_preproc=yes
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4798 ## ------------------------------------------ ##
4799 ## Report this to the AC_PACKAGE_NAME lists. ##
4800 ## ------------------------------------------ ##
4803 sed "s/^/$as_me: WARNING: /" >&2
4806 echo "$as_me:$LINENO: checking for $ac_header" >&5
4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 eval "$as_ac_Header=\$ac_header_preproc"
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6