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
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4826 echo "$as_me:$LINENO: checking for uint32_t" >&5
4827 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4828 if test "${ac_cv_type_uint32_t+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 $ac_includes_default
4843 if (sizeof (uint32_t))
4849 rm -f conftest.$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_type_uint32_t=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_type_uint32_t=no
4877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4880 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4881 if test $ac_cv_type_uint32_t = yes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 #define HAVE_C99_INTTYPES 1
4888 echo "$as_me:$LINENO: checking for short" >&5
4889 echo $ECHO_N "checking for short... $ECHO_C" >&6
4890 if test "${ac_cv_type_short+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_type_short=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4942 echo "${ECHO_T}$ac_cv_type_short" >&6
4944 echo "$as_me:$LINENO: checking size of short" >&5
4945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4946 if test "${ac_cv_sizeof_short+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 if test "$ac_cv_type_short" = yes; then
4950 # The cast to unsigned long works around a bug in the HP C Compiler
4951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4953 # This bug is HP SR number 8606223364.
4954 if test "$cross_compiling" = yes; then
4955 # Depending upon the size, compute the lo and hi bounds.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1 >conftest.err
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5006 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_hi=$ac_mid; break
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5039 ac_lo=`expr $ac_mid + 1`
5040 if test $ac_lo -le $ac_mid; then
5044 ac_mid=`expr 2 '*' $ac_mid + 1`
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 cat >conftest.$ac_ext <<_ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 $ac_includes_default
5062 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5073 grep -v '^ *+' conftest.er1 >conftest.err
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 $ac_includes_default
5102 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_lo=$ac_mid; break
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_hi=`expr '(' $ac_mid ')' - 1`
5136 if test $ac_mid -le $ac_hi; then
5140 ac_mid=`expr 2 '*' $ac_mid`
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 # Binary search between lo and hi bounds.
5154 while test "x$ac_lo" != "x$ac_hi"; do
5155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5166 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5173 rm -f conftest.$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1 >conftest.err
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_lo=`expr '(' $ac_mid ')' + 1`
5201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ?*) ac_cv_sizeof_short=$ac_lo;;
5205 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5206 See \`config.log' for more details." >&5
5207 echo "$as_me: error: cannot compute sizeof (short), 77
5208 See \`config.log' for more details." >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 if test "$cross_compiling" = yes; then
5213 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5214 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5215 { (exit 1); exit 1; }; }
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5224 long longval () { return (long) (sizeof (short)); }
5225 unsigned long ulongval () { return (long) (sizeof (short)); }
5232 FILE *f = fopen ("conftest.val", "w");
5235 if (((long) (sizeof (short))) < 0)
5237 long i = longval ();
5238 if (i != ((long) (sizeof (short))))
5240 fprintf (f, "%ld\n", i);
5244 unsigned long i = ulongval ();
5245 if (i != ((long) (sizeof (short))))
5247 fprintf (f, "%lu\n", i);
5249 exit (ferror (f) || fclose (f) != 0);
5255 rm -f conftest$ac_exeext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257 (eval $ac_link) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_sizeof_short=`cat conftest.val`
5268 echo "$as_me: program exited with status $ac_status" >&5
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: cannot compute sizeof (short), 77
5276 See \`config.log' for more details." >&2;}
5277 { (exit 1); exit 1; }; }
5279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_sizeof_short=0
5287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5288 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5289 cat >>confdefs.h <<_ACEOF
5290 #define SIZEOF_SHORT $ac_cv_sizeof_short
5294 echo "$as_me:$LINENO: checking for int" >&5
5295 echo $ECHO_N "checking for int... $ECHO_C" >&6
5296 if test "${ac_cv_type_int+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5348 echo "${ECHO_T}$ac_cv_type_int" >&6
5350 echo "$as_me:$LINENO: checking size of int" >&5
5351 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5352 if test "${ac_cv_sizeof_int+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 if test "$ac_cv_type_int" = yes; then
5356 # The cast to unsigned long works around a bug in the HP C Compiler
5357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5359 # This bug is HP SR number 8606223364.
5360 if test "$cross_compiling" = yes; then
5361 # Depending upon the size, compute the lo and hi bounds.
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 $ac_includes_default
5412 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_hi=$ac_mid; break
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_lo=`expr $ac_mid + 1`
5446 if test $ac_lo -le $ac_mid; then
5450 ac_mid=`expr 2 '*' $ac_mid + 1`
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 $ac_includes_default
5468 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_lo=$ac_mid; break
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_hi=`expr '(' $ac_mid ')' - 1`
5542 if test $ac_mid -le $ac_hi; then
5546 ac_mid=`expr 2 '*' $ac_mid`
5548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 # Binary search between lo and hi bounds.
5560 while test "x$ac_lo" != "x$ac_hi"; do
5561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5572 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_lo=`expr '(' $ac_mid ')' + 1`
5607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 ?*) ac_cv_sizeof_int=$ac_lo;;
5611 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5612 See \`config.log' for more details." >&5
5613 echo "$as_me: error: cannot compute sizeof (int), 77
5614 See \`config.log' for more details." >&2;}
5615 { (exit 1); exit 1; }; } ;;
5618 if test "$cross_compiling" = yes; then
5619 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5620 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5621 { (exit 1); exit 1; }; }
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 long longval () { return (long) (sizeof (int)); }
5631 unsigned long ulongval () { return (long) (sizeof (int)); }
5638 FILE *f = fopen ("conftest.val", "w");
5641 if (((long) (sizeof (int))) < 0)
5643 long i = longval ();
5644 if (i != ((long) (sizeof (int))))
5646 fprintf (f, "%ld\n", i);
5650 unsigned long i = ulongval ();
5651 if (i != ((long) (sizeof (int))))
5653 fprintf (f, "%lu\n", i);
5655 exit (ferror (f) || fclose (f) != 0);
5661 rm -f conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_sizeof_int=`cat conftest.val`
5674 echo "$as_me: program exited with status $ac_status" >&5
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5680 See \`config.log' for more details." >&5
5681 echo "$as_me: error: cannot compute sizeof (int), 77
5682 See \`config.log' for more details." >&2;}
5683 { (exit 1); exit 1; }; }
5685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5694 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5695 cat >>confdefs.h <<_ACEOF
5696 #define SIZEOF_INT $ac_cv_sizeof_int
5700 echo "$as_me:$LINENO: checking for long" >&5
5701 echo $ECHO_N "checking for long... $ECHO_C" >&6
5702 if test "${ac_cv_type_long+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5754 echo "${ECHO_T}$ac_cv_type_long" >&6
5756 echo "$as_me:$LINENO: checking size of long" >&5
5757 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5758 if test "${ac_cv_sizeof_long+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test "$ac_cv_type_long" = yes; then
5762 # The cast to unsigned long works around a bug in the HP C Compiler
5763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5765 # This bug is HP SR number 8606223364.
5766 if test "$cross_compiling" = yes; then
5767 # Depending upon the size, compute the lo and hi bounds.
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5778 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5789 grep -v '^ *+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 $ac_includes_default
5818 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_hi=$ac_mid; break
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_lo=`expr $ac_mid + 1`
5852 if test $ac_lo -le $ac_mid; then
5856 ac_mid=`expr 2 '*' $ac_mid + 1`
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5874 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5914 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_lo=$ac_mid; break
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_hi=`expr '(' $ac_mid ')' - 1`
5948 if test $ac_mid -le $ac_hi; then
5952 ac_mid=`expr 2 '*' $ac_mid`
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965 # Binary search between lo and hi bounds.
5966 while test "x$ac_lo" != "x$ac_hi"; do
5967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5978 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ac_lo=`expr '(' $ac_mid ')' + 1`
6013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ?*) ac_cv_sizeof_long=$ac_lo;;
6017 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: cannot compute sizeof (long), 77
6020 See \`config.log' for more details." >&2;}
6021 { (exit 1); exit 1; }; } ;;
6024 if test "$cross_compiling" = yes; then
6025 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6026 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6027 { (exit 1); exit 1; }; }
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 $ac_includes_default
6036 long longval () { return (long) (sizeof (long)); }
6037 unsigned long ulongval () { return (long) (sizeof (long)); }
6044 FILE *f = fopen ("conftest.val", "w");
6047 if (((long) (sizeof (long))) < 0)
6049 long i = longval ();
6050 if (i != ((long) (sizeof (long))))
6052 fprintf (f, "%ld\n", i);
6056 unsigned long i = ulongval ();
6057 if (i != ((long) (sizeof (long))))
6059 fprintf (f, "%lu\n", i);
6061 exit (ferror (f) || fclose (f) != 0);
6067 rm -f conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_sizeof_long=`cat conftest.val`
6080 echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6086 See \`config.log' for more details." >&5
6087 echo "$as_me: error: cannot compute sizeof (long), 77
6088 See \`config.log' for more details." >&2;}
6089 { (exit 1); exit 1; }; }
6091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6100 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6101 cat >>confdefs.h <<_ACEOF
6102 #define SIZEOF_LONG $ac_cv_sizeof_long
6106 echo "$as_me:$LINENO: checking for long long" >&5
6107 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6108 if test "${ac_cv_type_long_long+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6121 if ((long long *) 0)
6123 if (sizeof (long long))
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_type_long_long=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_cv_type_long_long=no
6157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6160 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6162 echo "$as_me:$LINENO: checking size of long long" >&5
6163 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6164 if test "${ac_cv_sizeof_long_long+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 if test "$ac_cv_type_long_long" = yes; then
6168 # The cast to unsigned long works around a bug in the HP C Compiler
6169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6171 # This bug is HP SR number 8606223364.
6172 if test "$cross_compiling" = yes; then
6173 # Depending upon the size, compute the lo and hi bounds.
6174 cat >conftest.$ac_ext <<_ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6224 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1 >conftest.err
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_hi=$ac_mid; break
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_lo=`expr $ac_mid + 1`
6258 if test $ac_lo -le $ac_mid; then
6262 ac_mid=`expr 2 '*' $ac_mid + 1`
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 $ac_includes_default
6280 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6287 rm -f conftest.$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 (eval $ac_compile) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 $ac_includes_default
6320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_lo=$ac_mid; break
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_hi=`expr '(' $ac_mid ')' - 1`
6354 if test $ac_mid -le $ac_hi; then
6358 ac_mid=`expr 2 '*' $ac_mid`
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 # Binary search between lo and hi bounds.
6372 while test "x$ac_lo" != "x$ac_hi"; do
6373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6384 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1 >conftest.err
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_lo=`expr '(' $ac_mid ')' + 1`
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6424 See \`config.log' for more details." >&5
6425 echo "$as_me: error: cannot compute sizeof (long long), 77
6426 See \`config.log' for more details." >&2;}
6427 { (exit 1); exit 1; }; } ;;
6430 if test "$cross_compiling" = yes; then
6431 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6432 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6433 { (exit 1); exit 1; }; }
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442 long longval () { return (long) (sizeof (long long)); }
6443 unsigned long ulongval () { return (long) (sizeof (long long)); }
6450 FILE *f = fopen ("conftest.val", "w");
6453 if (((long) (sizeof (long long))) < 0)
6455 long i = longval ();
6456 if (i != ((long) (sizeof (long long))))
6458 fprintf (f, "%ld\n", i);
6462 unsigned long i = ulongval ();
6463 if (i != ((long) (sizeof (long long))))
6465 fprintf (f, "%lu\n", i);
6467 exit (ferror (f) || fclose (f) != 0);
6473 rm -f conftest$ac_exeext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6475 (eval $ac_link) 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 ac_cv_sizeof_long_long=`cat conftest.val`
6486 echo "$as_me: program exited with status $ac_status" >&5
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6492 See \`config.log' for more details." >&5
6493 echo "$as_me: error: cannot compute sizeof (long long), 77
6494 See \`config.log' for more details." >&2;}
6495 { (exit 1); exit 1; }; }
6497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6502 ac_cv_sizeof_long_long=0
6505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6506 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6507 cat >>confdefs.h <<_ACEOF
6508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6518 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6519 # Extract the first word of "sendmail", so it can be a program name with args.
6520 set dummy sendmail; ac_word=$2
6521 echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 as_dummy="$PATH:$ac_aux_path_sendmail"
6533 for as_dir in $as_dummy
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6550 SENDMAIL=$ac_cv_path_SENDMAIL
6552 if test -n "$SENDMAIL"; then
6553 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6554 echo "${ECHO_T}$SENDMAIL" >&6
6556 echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6561 cat >>confdefs.h <<_ACEOF
6562 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6567 if test -f $srcdir/EXPORTABLE ; then
6572 # Check whether --enable-gpgme or --disable-gpgme was given.
6573 if test "${enable_gpgme+set}" = set; then
6574 enableval="$enable_gpgme"
6575 if test x$enableval = xyes; then
6581 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6582 if test "${with_gpgme_prefix+set}" = set; then
6583 withval="$with_gpgme_prefix"
6584 gpgme_config_prefix="$withval"
6586 gpgme_config_prefix=""
6589 if test x$have_gpgme = xyes; then
6590 if test x$gpgme_config_prefix != x; then
6591 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6593 # Extract the first word of "gpgme-config", so it can be a program name with args.
6594 set dummy gpgme-config; ac_word=$2
6595 echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6597 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 case $GPGME_CONFIG in
6602 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6623 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6625 if test -n "$GPGME_CONFIG"; then
6626 echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6627 echo "${ECHO_T}$GPGME_CONFIG" >&6
6629 echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6
6634 if test "x$GPGME_CONFIG" = "xno"; then
6635 { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6636 echo "$as_me: error: GPGME not found" >&2;}
6637 { (exit 1); exit 1; }; }
6639 LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6640 LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6641 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6643 cat >>confdefs.h <<\_ACEOF
6644 #define CRYPT_BACKEND_GPGME 1
6652 # Check whether --enable-pgp or --disable-pgp was given.
6653 if test "${enable_pgp+set}" = set; then
6654 enableval="$enable_pgp"
6655 if test x$enableval = xno ; then
6661 if test x$have_pgp != xno ; then
6663 cat >>confdefs.h <<\_ACEOF
6664 #define CRYPT_BACKEND_CLASSIC_PGP 1
6667 PGPAUX_TARGET="pgpringng pgpewrapng"
6668 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
6671 # Check whether --enable-smime or --disable-smime was given.
6672 if test "${enable_smime+set}" = set; then
6673 enableval="$enable_smime"
6674 if test x$enableval = xno ; then
6680 if test x$have_smime != xno ; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6686 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6687 SMIMEAUX_TARGET="smime_keysng"
6691 # Check whether --with-mixmaster or --without-mixmaster was given.
6692 if test "${with_mixmaster+set}" = set; then
6693 withval="$with_mixmaster"
6694 if test -x "$withval" ; then
6695 MIXMASTER="$withval"
6697 MIXMASTER="mixmaster"
6699 OPS="$OPS \$(srcdir)/OPS.MIX"
6700 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6702 cat >>confdefs.h <<_ACEOF
6703 #define MIXMASTER "$MIXMASTER"
6710 # We now require all OPS
6711 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6719 cat >>confdefs.h <<_ACEOF
6720 #define SUBVERSION "$SUBVERSION"
6725 # Extract the first word of "ispell", so it can be a program name with args.
6726 set dummy ispell; ac_word=$2
6727 echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6729 if test "${ac_cv_path_ISPELL+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6755 ISPELL=$ac_cv_path_ISPELL
6757 if test -n "$ISPELL"; then
6758 echo "$as_me:$LINENO: result: $ISPELL" >&5
6759 echo "${ECHO_T}$ISPELL" >&6
6761 echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6765 if test $ISPELL != no; then
6767 cat >>confdefs.h <<_ACEOF
6768 #define ISPELL "$ISPELL"
6774 # Check whether --with-slang or --without-slang was given.
6775 if test "${with_slang+set}" = set; then
6776 withval="$with_slang"
6777 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6778 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6779 if test "${mutt_cv_bsdish+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 if test "$cross_compiling" = yes; then
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <sys/param.h>
6802 rm -f conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6815 echo "$as_me: program exited with status $ac_status" >&5
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6826 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6828 echo "$as_me:$LINENO: checking for S-Lang" >&5
6829 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6830 if test $withval = yes; then
6831 if test -d $srcdir/../slang; then
6832 mutt_cv_slang=$srcdir/../slang/src
6833 CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6834 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6836 if test -d $mutt_cv_prefix/include/slang; then
6837 CFLAGS="$CFLAGS -I$mutt_cv_prefix/include/slang"
6838 elif test -d /usr/include/slang; then
6839 CFLAGS="$CFLAGS -I/usr/include/slang"
6844 if test -f $withval/src/slang.h; then
6845 mutt_cv_slang=$withval/src
6846 CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6847 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6849 mutt_cv_slang=$withval
6850 if test -d $withval/include/slang; then
6851 CFLAGS="$CFLAGS -I${withval}/include/slang"
6852 elif test -d $withval/include; then
6853 CFLAGS="$CFLAGS -I${withval}/include"
6855 LDFLAGS="$LDFLAGS -L${withval}/lib"
6858 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6859 echo "${ECHO_T}$mutt_cv_slang" >&6
6860 if test $mutt_cv_bsdish = yes; then
6862 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6863 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6864 if test "${ac_cv_lib_termlib_main+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-ltermlib $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>conftest.er1
6889 grep -v '^ *+' conftest.er1 >conftest.err
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_lib_termlib_main=yes
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_cv_lib_termlib_main=no
6913 rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 LIBS=$ac_check_lib_save_LIBS
6917 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6918 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6919 if test $ac_cv_lib_termlib_main = yes; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_LIBTERMLIB 1
6924 LIBS="-ltermlib $LIBS"
6930 cat >>confdefs.h <<\_ACEOF
6931 #define USE_SLANG_CURSES 1
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_COLOR 1
6939 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6942 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6943 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6944 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_check_lib_save_LIBS=$LIBS
6948 LIBS="-lslang -lm $LIBS"
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char SLtt_get_terminfo ();
6966 SLtt_get_terminfo ();
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>conftest.er1
6975 grep -v '^ *+' conftest.er1 >conftest.err
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_lib_slang_SLtt_get_terminfo=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_cv_lib_slang_SLtt_get_terminfo=no
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
7004 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
7005 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
7006 MUTTLIBS="$MUTTLIBS -lslang -lm"
7008 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
7009 echo "$as_me: error: unable to compile. check config.log" >&2;}
7010 { (exit 1); exit 1; }; }
7018 # Check whether --with-curses or --without-curses was given.
7019 if test "${with_curses+set}" = set; then
7020 withval="$with_curses"
7021 if test $withval != yes; then
7022 mutt_cv_curses=$withval
7024 if test x$mutt_cv_curses != x/usr; then
7025 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
7026 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
7030 echo "$as_me:$LINENO: checking for initscr" >&5
7031 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7032 if test "${ac_cv_func_initscr+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7043 #define initscr innocuous_initscr
7045 /* System header to define __stub macros and hopefully few prototypes,
7046 which can conflict with char initscr (); below.
7047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 <limits.h> exists even on freestanding compilers. */
7051 # include <limits.h>
7053 # include <assert.h>
7058 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7066 /* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069 #if defined (__stub_initscr) || defined (__stub___initscr)
7072 char (*f) () = initscr;
7081 return f != initscr;
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>conftest.er1
7090 grep -v '^ *+' conftest.er1 >conftest.err
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_func_initscr=yes
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ac_cv_func_initscr=no
7114 rm -f conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7117 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7118 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7119 if test $ac_cv_func_initscr = yes; then
7123 cf_ncurses="ncurses"
7124 for lib in ncurses ncursesw
7126 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
7127 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
7128 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_check_lib_save_LIBS=$LIBS
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7141 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7158 (eval $ac_link) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 eval "$as_ac_Lib=yes"
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 eval "$as_ac_Lib=no"
7184 rm -f conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7189 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7190 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7191 cf_ncurses="$lib"; break
7195 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7196 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7197 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 ac_check_lib_save_LIBS=$LIBS
7202 LIBS="-l$cf_ncurses $LIBS"
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 eval "$as_ac_Lib=yes"
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 eval "$as_ac_Lib=no"
7253 rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7258 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7259 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7260 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7261 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7262 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7265 if test "$cf_ncurses" = ncursesw; then
7267 for ac_header in ncursesw/ncurses.h
7269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 # Is the header compilable?
7280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7289 #include <$ac_header>
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; } &&
7306 { ac_try='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_header_compiler=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_header_compiler=no
7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #include <$ac_header>
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7337 grep -v '^ *+' conftest.er1 >conftest.err
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } >/dev/null; then
7342 if test -s conftest.err; then
7343 ac_cpp_err=$ac_c_preproc_warn_flag
7344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7351 if test -z "$ac_cpp_err"; then
7352 ac_header_preproc=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_header_preproc=no
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7363 # So? What about this header?
7364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7370 ac_header_preproc=yes
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7387 ## ------------------------------------------ ##
7388 ## Report this to the AC_PACKAGE_NAME lists. ##
7389 ## ------------------------------------------ ##
7392 sed "s/^/$as_me: WARNING: /" >&2
7395 echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 eval "$as_ac_Header=\$ac_header_preproc"
7402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7410 cf_cv_ncurses_header="ncursesw/ncurses.h"
7417 for ac_header in ncurses.h
7419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421 echo "$as_me:$LINENO: checking for $ac_header" >&5
7422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7429 # Is the header compilable?
7430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 #include <$ac_header>
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_header_compiler=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_header_compiler=no
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7471 echo "${ECHO_T}$ac_header_compiler" >&6
7473 # Is the header present?
7474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 #include <$ac_header>
7484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } >/dev/null; then
7492 if test -s conftest.err; then
7493 ac_cpp_err=$ac_c_preproc_warn_flag
7494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7501 if test -z "$ac_cpp_err"; then
7502 ac_header_preproc=yes
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7507 ac_header_preproc=no
7509 rm -f conftest.err conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7511 echo "${ECHO_T}$ac_header_preproc" >&6
7513 # So? What about this header?
7514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7520 ac_header_preproc=yes
7523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7537 ## ------------------------------------------ ##
7538 ## Report this to the AC_PACKAGE_NAME lists. ##
7539 ## ------------------------------------------ ##
7542 sed "s/^/$as_me: WARNING: /" >&2
7545 echo "$as_me:$LINENO: checking for $ac_header" >&5
7546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 eval "$as_ac_Header=\$ac_header_preproc"
7552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7557 cat >>confdefs.h <<_ACEOF
7558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560 cf_cv_ncurses_header="ncurses.h"
7568 echo "$as_me:$LINENO: checking for initscr" >&5
7569 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7570 if test "${ac_cv_func_initscr+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7581 #define initscr innocuous_initscr
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char initscr (); below.
7585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586 <limits.h> exists even on freestanding compilers. */
7589 # include <limits.h>
7591 # include <assert.h>
7596 /* Override any gcc2 internal prototype to avoid an error. */
7601 /* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7604 /* The GNU C library defines this for functions which it implements
7605 to always fail with ENOSYS. Some functions are actually named
7606 something starting with __ and the normal name is an alias. */
7607 #if defined (__stub_initscr) || defined (__stub___initscr)
7610 char (*f) () = initscr;
7619 return f != initscr;
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_func_initscr=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_func_initscr=no
7652 rm -f conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7656 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7657 if test $ac_cv_func_initscr = yes; then
7661 case $host_os in #(vi
7663 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7664 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7665 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_check_lib_save_LIBS=$LIBS
7669 LIBS="-lmytinfo $LIBS"
7670 cat >conftest.$ac_ext <<_ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7692 rm -f conftest.$ac_objext conftest$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_lib_mytinfo_tgoto=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_cv_lib_mytinfo_tgoto=no
7720 rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7724 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7725 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7726 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7727 LIBS="-lmytinfo $LIBS"
7732 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7733 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7734 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lcur_colr $LIBS"
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 /* Override any gcc2 internal prototype to avoid an error. */
7750 /* We use char because int might match the return type of a gcc2
7751 builtin and then its argument prototype would still apply. */
7761 rm -f conftest.$ac_objext conftest$ac_exeext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763 (eval $ac_link) 2>conftest.er1
7765 grep -v '^ *+' conftest.er1 >conftest.err
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_lib_cur_colr_initscr=yes
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_cv_lib_cur_colr_initscr=no
7789 rm -f conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 LIBS=$ac_check_lib_save_LIBS
7793 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7794 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7795 if test $ac_cv_lib_cur_colr_initscr = yes; then
7797 LIBS="-lcur_colr $LIBS"
7798 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7799 ac_cv_func_initscr=yes
7803 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7804 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7805 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_check_lib_save_LIBS=$LIBS
7809 LIBS="-lHcurses $LIBS"
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7817 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>conftest.er1
7836 grep -v '^ *+' conftest.er1 >conftest.err
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 ac_cv_lib_Hcurses_initscr=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 ac_cv_lib_Hcurses_initscr=no
7860 rm -f conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7865 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7866 if test $ac_cv_lib_Hcurses_initscr = yes; then
7868 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7869 LIBS="-lHcurses $LIBS"
7870 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7871 ac_cv_func_initscr=yes
7878 linux*) # Suse Linux does not follow /usr/lib convention
7883 if test ".$With5lib" != ".no" ; then
7884 if test -d /usr/5lib ; then
7886 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7887 LIBS="$LIBS -L/usr/5lib"
7891 if test ".$ac_cv_func_initscr" != .yes ; then
7892 cf_save_LIBS="$LIBS"
7896 # Check for library containing tgoto. Do this before curses library
7897 # because it may be needed to link the test-case for initscr.
7898 echo "$as_me:$LINENO: checking for tgoto" >&5
7899 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7900 if test "${ac_cv_func_tgoto+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
7910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7911 #define tgoto innocuous_tgoto
7913 /* System header to define __stub macros and hopefully few prototypes,
7914 which can conflict with char tgoto (); below.
7915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916 <limits.h> exists even on freestanding compilers. */
7919 # include <limits.h>
7921 # include <assert.h>
7926 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7934 /* The GNU C library defines this for functions which it implements
7935 to always fail with ENOSYS. Some functions are actually named
7936 something starting with __ and the normal name is an alias. */
7937 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7940 char (*f) () = tgoto;
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7956 (eval $ac_link) 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_func_tgoto=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7982 rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7986 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7987 if test $ac_cv_func_tgoto = yes; then
7988 cf_term_lib=predefined
7991 for cf_term_lib in termcap termlib unknown
7993 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7994 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7995 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-l$cf_term_lib $LIBS"
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>conftest.er1
8027 grep -v '^ *+' conftest.er1 >conftest.err
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 eval "$as_ac_Lib=yes"
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 eval "$as_ac_Lib=no"
8051 rm -f conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8066 # Check for library containing initscr
8067 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8068 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8070 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8071 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
8072 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
8073 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 ac_check_lib_save_LIBS=$LIBS
8077 LIBS="-l$cf_curs_lib $LIBS"
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8085 /* Override any gcc2 internal prototype to avoid an error. */
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 eval "$as_ac_Lib=yes"
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 eval "$as_ac_Lib=no"
8128 rm -f conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_lib_save_LIBS
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8134 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8139 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
8140 echo "$as_me: error: no curses library found" >&2;}
8141 { (exit 1); exit 1; }; }
8143 LIBS="-l$cf_curs_lib $cf_save_LIBS"
8144 if test "$cf_term_lib" = unknown ; then
8145 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
8146 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <${cf_cv_ncurses_header-curses.h}>
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8190 rm -f conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $cf_result" >&5
8193 echo "${ECHO_T}$cf_result" >&6
8194 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
8195 echo "$as_me: error: Cannot link curses library" >&2;}
8196 { (exit 1); exit 1; }; }
8197 elif test "$cf_term_lib" != predefined ; then
8198 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8199 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 #include <${cf_cv_ncurses_header-curses.h}>
8210 initscr(); tgoto((char *)0, 0, 0);
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8242 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #include <${cf_cv_ncurses_header-curses.h}>
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest$ac_exeext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8286 rm -f conftest.err conftest.$ac_objext \
8287 conftest$ac_exeext conftest.$ac_ext
8290 rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $cf_result" >&5
8293 echo "${ECHO_T}$cf_result" >&6
8307 LIBS="$LIBS $MUTTLIBS"
8308 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8311 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8312 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8313 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <${cf_cv_ncurses_header-curses.h}>
8327 extern int ${ac_func}();
8333 rm -f conftest.$ac_objext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <${cf_cv_ncurses_header-curses.h}>
8366 int (*p)() = ${ac_func};
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8394 eval "ac_cv_func_decl_$ac_func=yes"
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8400 eval "ac_cv_func_decl_$ac_func=no"
8402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8408 eval "ac_cv_func_decl_$ac_func=yes"
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8414 echo "$as_me:$LINENO: result: yes" >&5
8415 echo "${ECHO_T}yes" >&6
8418 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8420 cat >>confdefs.h <<_ACEOF
8421 #define $ac_tr_func 1
8425 echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8430 if test "$ac_cv_func_decl_start_color" = yes; then
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_COLOR 1
8437 if test "$ac_cv_func_decl_resizeterm" = yes; then
8438 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8446 if test "${ac_cv_header_stdc+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; } &&
8483 { ac_try='test -s conftest.$ac_objext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_header_stdc=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_header_stdc=no
8496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 if test $ac_cv_header_stdc = yes; then
8499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510 $EGREP "memchr" >/dev/null 2>&1; then
8513 ac_cv_header_stdc=no
8519 if test $ac_cv_header_stdc = yes; then
8520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531 $EGREP "free" >/dev/null 2>&1; then
8534 ac_cv_header_stdc=no
8540 if test $ac_cv_header_stdc = yes; then
8541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8542 if test "$cross_compiling" = yes; then
8545 cat >conftest.$ac_ext <<_ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8552 #if ((' ' & 0x0FF) == 0x020)
8553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8556 # define ISLOWER(c) \
8557 (('a' <= (c) && (c) <= 'i') \
8558 || ('j' <= (c) && (c) <= 'r') \
8559 || ('s' <= (c) && (c) <= 'z'))
8560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8568 for (i = 0; i < 256; i++)
8569 if (XOR (islower (i), ISLOWER (i))
8570 || toupper (i) != TOUPPER (i))
8575 rm -f conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8588 echo "$as_me: program exited with status $ac_status" >&5
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_header_stdc=no
8595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8601 if test $ac_cv_header_stdc = yes; then
8603 cat >>confdefs.h <<\_ACEOF
8604 #define STDC_HEADERS 1
8614 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8626 # Is the header compilable?
8627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <$ac_header>
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest.$ac_objext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_header_compiler=yes
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_header_compiler=no
8666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6
8670 # Is the header present?
8671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <$ac_header>
8681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } >/dev/null; then
8689 if test -s conftest.err; then
8690 ac_cpp_err=$ac_c_preproc_warn_flag
8691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8698 if test -z "$ac_cpp_err"; then
8699 ac_header_preproc=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_header_preproc=no
8706 rm -f conftest.err conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8710 # So? What about this header?
8711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717 ac_header_preproc=yes
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8734 ## ------------------------------------------ ##
8735 ## Report this to the AC_PACKAGE_NAME lists. ##
8736 ## ------------------------------------------ ##
8739 sed "s/^/$as_me: WARNING: /" >&2
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 eval "$as_ac_Header=\$ac_header_preproc"
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8754 cat >>confdefs.h <<_ACEOF
8755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764 for ac_header in sys/time.h sys/resource.h
8766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776 # Is the header compilable?
8777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 #include <$ac_header>
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_header_compiler=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_compiler=no
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <$ac_header>
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null; then
8839 if test -s conftest.err; then
8840 ac_cpp_err=$ac_c_preproc_warn_flag
8841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8848 if test -z "$ac_cpp_err"; then
8849 ac_header_preproc=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_header_preproc=no
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8860 # So? What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867 ac_header_preproc=yes
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884 ## ------------------------------------------ ##
8885 ## Report this to the AC_PACKAGE_NAME lists. ##
8886 ## ------------------------------------------ ##
8889 sed "s/^/$as_me: WARNING: /" >&2
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 eval "$as_ac_Header=\$ac_header_preproc"
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904 cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913 for ac_header in unix.h
8915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917 echo "$as_me:$LINENO: checking for $ac_header" >&5
8918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925 # Is the header compilable?
8926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 $ac_includes_default
8935 #include <$ac_header>
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>conftest.er1
8941 grep -v '^ *+' conftest.er1 >conftest.err
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_header_compiler=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_header_compiler=no
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8967 echo "${ECHO_T}$ac_header_compiler" >&6
8969 # Is the header present?
8970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #include <$ac_header>
8980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } >/dev/null; then
8988 if test -s conftest.err; then
8989 ac_cpp_err=$ac_c_preproc_warn_flag
8990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8997 if test -z "$ac_cpp_err"; then
8998 ac_header_preproc=yes
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_header_preproc=no
9005 rm -f conftest.err conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9007 echo "${ECHO_T}$ac_header_preproc" >&6
9009 # So? What about this header?
9010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9016 ac_header_preproc=yes
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9033 ## ------------------------------------------ ##
9034 ## Report this to the AC_PACKAGE_NAME lists. ##
9035 ## ------------------------------------------ ##
9038 sed "s/^/$as_me: WARNING: /" >&2
9041 echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 eval "$as_ac_Header=\$ac_header_preproc"
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9053 cat >>confdefs.h <<_ACEOF
9054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065 for ac_func in setrlimit getsid isctype
9067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9068 echo "$as_me:$LINENO: checking for $ac_func" >&5
9069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9070 if eval "test \"\${$as_ac_var+set}\" = set"; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9081 #define $ac_func innocuous_$ac_func
9083 /* System header to define __stub macros and hopefully few prototypes,
9084 which can conflict with char $ac_func (); below.
9085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9086 <limits.h> exists even on freestanding compilers. */
9089 # include <limits.h>
9091 # include <assert.h>
9096 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9104 /* The GNU C library defines this for functions which it implements
9105 to always fail with ENOSYS. Some functions are actually named
9106 something starting with __ and the normal name is an alias. */
9107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9110 char (*f) () = $ac_func;
9119 return f != $ac_func;
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 eval "$as_ac_var=yes"
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 eval "$as_ac_var=no"
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9157 if test `eval echo '${'$as_ac_var'}'` = yes; then
9158 cat >>confdefs.h <<_ACEOF
9159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9168 if test "${ac_cv_type_signal+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #include <sys/types.h>
9183 extern "C" void (*signal (int, void (*)(int)))(int);
9185 void (*signal ()) ();
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>conftest.er1
9200 grep -v '^ *+' conftest.er1 >conftest.err
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } &&
9205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest.$ac_objext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 ac_cv_type_signal=void
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_cv_type_signal=int
9224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9226 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9227 echo "${ECHO_T}$ac_cv_type_signal" >&6
9229 cat >>confdefs.h <<_ACEOF
9230 #define RETSIGTYPE $ac_cv_type_signal
9235 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
9236 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9247 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
9249 ac_cv_type_sig_atomic_t=yes;
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
9262 is_sig_atomic_t_volatile=yes;
9263 echo "$as_me:$LINENO: result: yes, volatile" >&5
9264 echo "${ECHO_T}yes, volatile" >&6
9268 is_sig_atomic_t_volatile=no;
9269 echo "$as_me:$LINENO: result: yes, non volatile" >&5
9270 echo "${ECHO_T}yes, non volatile" >&6
9278 echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6
9280 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
9281 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9282 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 $ac_includes_default
9295 if ((sig_atomic_t *) 0)
9297 if (sizeof (sig_atomic_t))
9303 rm -f conftest.$ac_objext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9305 (eval $ac_compile) 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_type_sig_atomic_t=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_type_sig_atomic_t=no
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
9334 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9335 if test $ac_cv_type_sig_atomic_t = yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define sig_atomic_t int
9345 is_sig_atomic_t_volatile=no
9350 if test $is_sig_atomic_t_volatile = 'yes'
9352 cat >>confdefs.h <<\_ACEOF
9353 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
9357 cat >>confdefs.h <<\_ACEOF
9358 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9363 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9364 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9365 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9375 /* NetBSD declares sys_siglist in unistd.h. */
9377 # include <unistd.h>
9385 char *p = (char *) sys_siglist;
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_have_decl_sys_siglist=yes
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_have_decl_sys_siglist=no
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9423 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9424 if test $ac_cv_have_decl_sys_siglist = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define HAVE_DECL_SYS_SIGLIST 1
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_DECL_SYS_SIGLIST 0
9442 echo "$as_me:$LINENO: checking for pid_t" >&5
9443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9444 if test "${ac_cv_type_pid_t+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 $ac_includes_default
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>conftest.er1
9469 grep -v '^ *+' conftest.er1 >conftest.err
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_type_pid_t=yes
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9495 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9496 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9497 if test $ac_cv_type_pid_t = yes; then
9501 cat >>confdefs.h <<_ACEOF
9513 for ac_func in fgetpos memmove setegid srand48 strerror
9515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9516 echo "$as_me:$LINENO: checking for $ac_func" >&5
9517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9518 if eval "test \"\${$as_ac_var+set}\" = set"; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9529 #define $ac_func innocuous_$ac_func
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char $ac_func (); below.
9533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534 <limits.h> exists even on freestanding compilers. */
9537 # include <limits.h>
9539 # include <assert.h>
9544 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9552 /* The GNU C library defines this for functions which it implements
9553 to always fail with ENOSYS. Some functions are actually named
9554 something starting with __ and the normal name is an alias. */
9555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9558 char (*f) () = $ac_func;
9567 return f != $ac_func;
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 eval "$as_ac_var=yes"
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 eval "$as_ac_var=no"
9600 rm -f conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9605 if test `eval echo '${'$as_ac_var'}'` = yes; then
9606 cat >>confdefs.h <<_ACEOF
9607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 for ac_func in strcasecmp strdup
9618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9619 echo "$as_me:$LINENO: checking for $ac_func" >&5
9620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9621 if eval "test \"\${$as_ac_var+set}\" = set"; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9632 #define $ac_func innocuous_$ac_func
9634 /* System header to define __stub macros and hopefully few prototypes,
9635 which can conflict with char $ac_func (); below.
9636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9637 <limits.h> exists even on freestanding compilers. */
9640 # include <limits.h>
9642 # include <assert.h>
9647 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9655 /* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9661 char (*f) () = $ac_func;
9670 return f != $ac_func;
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 eval "$as_ac_var=yes"
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 eval "$as_ac_var=no"
9703 rm -f conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9708 if test `eval echo '${'$as_ac_var'}'` = yes; then
9709 cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715 "$ac_func.$ac_objext" | \
9716 *" $ac_func.$ac_objext" | \
9717 "$ac_func.$ac_objext "* | \
9718 *" $ac_func.$ac_objext "* ) ;;
9719 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9727 echo "$as_me:$LINENO: checking for getopt" >&5
9728 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9729 if test "${ac_cv_func_getopt+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
9739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9740 #define getopt innocuous_getopt
9742 /* System header to define __stub macros and hopefully few prototypes,
9743 which can conflict with char getopt (); below.
9744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745 <limits.h> exists even on freestanding compilers. */
9748 # include <limits.h>
9750 # include <assert.h>
9755 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_getopt) || defined (__stub___getopt)
9769 char (*f) () = getopt;
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_func_getopt=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_func_getopt=no
9811 rm -f conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9815 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9817 if test $ac_cv_func_getopt = yes; then
9819 for ac_header in getopt.h
9821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9823 echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9831 # Is the header compilable?
9832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 #include <$ac_header>
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest.$ac_objext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_header_compiler=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_header_compiler=no
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873 echo "${ECHO_T}$ac_header_compiler" >&6
9875 # Is the header present?
9876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884 #include <$ac_header>
9886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } >/dev/null; then
9894 if test -s conftest.err; then
9895 ac_cpp_err=$ac_c_preproc_warn_flag
9896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9903 if test -z "$ac_cpp_err"; then
9904 ac_header_preproc=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_header_preproc=no
9911 rm -f conftest.err conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9913 echo "${ECHO_T}$ac_header_preproc" >&6
9915 # So? What about this header?
9916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9922 ac_header_preproc=yes
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9939 ## ------------------------------------------ ##
9940 ## Report this to the AC_PACKAGE_NAME lists. ##
9941 ## ------------------------------------------ ##
9944 sed "s/^/$as_me: WARNING: /" >&2
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 eval "$as_ac_Header=\$ac_header_preproc"
9954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9972 for ac_func in snprintf
9974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975 echo "$as_me:$LINENO: checking for $ac_func" >&5
9976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9977 if eval "test \"\${$as_ac_var+set}\" = set"; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9988 #define $ac_func innocuous_$ac_func
9990 /* System header to define __stub macros and hopefully few prototypes,
9991 which can conflict with char $ac_func (); below.
9992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993 <limits.h> exists even on freestanding compilers. */
9996 # include <limits.h>
9998 # include <assert.h>
10003 /* Override any gcc2 internal prototype to avoid an error. */
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10011 /* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10017 char (*f) () = $ac_func;
10026 return f != $ac_func;
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033 (eval $ac_link) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 eval "$as_ac_var=yes"
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 eval "$as_ac_var=no"
10059 rm -f conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10064 if test `eval echo '${'$as_ac_var'}'` = yes; then
10065 cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 mutt_cv_snprintf=yes
10075 for ac_func in vsnprintf
10077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078 echo "$as_me:$LINENO: checking for $ac_func" >&5
10079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10080 if eval "test \"\${$as_ac_var+set}\" = set"; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10091 #define $ac_func innocuous_$ac_func
10093 /* System header to define __stub macros and hopefully few prototypes,
10094 which can conflict with char $ac_func (); below.
10095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10096 <limits.h> exists even on freestanding compilers. */
10099 # include <limits.h>
10101 # include <assert.h>
10106 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10114 /* The GNU C library defines this for functions which it implements
10115 to always fail with ENOSYS. Some functions are actually named
10116 something starting with __ and the normal name is an alias. */
10117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10120 char (*f) () = $ac_func;
10129 return f != $ac_func;
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 eval "$as_ac_var=yes"
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 eval "$as_ac_var=no"
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10167 if test `eval echo '${'$as_ac_var'}'` = yes; then
10168 cat >>confdefs.h <<_ACEOF
10169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10173 mutt_cv_snprintf=yes
10177 if test $mutt_cv_snprintf = yes; then
10179 "snprintf.$ac_objext" | \
10180 *" snprintf.$ac_objext" | \
10181 "snprintf.$ac_objext "* | \
10182 *" snprintf.$ac_objext "* ) ;;
10183 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10189 for ac_func in ftruncate
10191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10192 echo "$as_me:$LINENO: checking for $ac_func" >&5
10193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_var+set}\" = set"; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10205 #define $ac_func innocuous_$ac_func
10207 /* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char $ac_func (); below.
10209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210 <limits.h> exists even on freestanding compilers. */
10213 # include <limits.h>
10215 # include <assert.h>
10220 /* Override any gcc2 internal prototype to avoid an error. */
10225 /* We use char because int might match the return type of a gcc2
10226 builtin and then its argument prototype would still apply. */
10228 /* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
10231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10234 char (*f) () = $ac_func;
10243 return f != $ac_func;
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 eval "$as_ac_var=yes"
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 eval "$as_ac_var=no"
10276 rm -f conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10281 if test `eval echo '${'$as_ac_var'}'` = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10288 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
10289 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
10290 if test "${ac_cv_lib_x_chsize+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 ac_check_lib_save_LIBS=$LIBS
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10302 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319 (eval $ac_link) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1 >conftest.err
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest$ac_exeext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_cv_lib_x_chsize=yes
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_cv_lib_x_chsize=no
10345 rm -f conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10349 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
10350 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
10351 if test $ac_cv_lib_x_chsize = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_LIBX 1
10365 for ac_func in strftime
10367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368 echo "$as_me:$LINENO: checking for $ac_func" >&5
10369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_var+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381 #define $ac_func innocuous_$ac_func
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10389 # include <limits.h>
10391 # include <assert.h>
10396 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10410 char (*f) () = $ac_func;
10419 return f != $ac_func;
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10426 (eval $ac_link) 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 eval "$as_ac_var=yes"
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 eval "$as_ac_var=no"
10452 rm -f conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10465 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10466 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lintl $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest$ac_exeext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_cv_lib_intl_strftime=yes
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 ac_cv_lib_intl_strftime=no
10521 rm -f conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10525 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10526 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10527 if test $ac_cv_lib_intl_strftime = yes; then
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_LIBINTL 1
10532 LIBS="-lintl $LIBS"
10541 for ac_func in fchdir
10543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10544 echo "$as_me:$LINENO: checking for $ac_func" >&5
10545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_var+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10557 #define $ac_func innocuous_$ac_func
10559 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func (); below.
10561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 <limits.h> exists even on freestanding compilers. */
10565 # include <limits.h>
10567 # include <assert.h>
10572 /* Override any gcc2 internal prototype to avoid an error. */
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10580 /* The GNU C library defines this for functions which it implements
10581 to always fail with ENOSYS. Some functions are actually named
10582 something starting with __ and the normal name is an alias. */
10583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10586 char (*f) () = $ac_func;
10595 return f != $ac_func;
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 eval "$as_ac_var=yes"
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 eval "$as_ac_var=no"
10628 rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10645 # Check whether --with-regex or --without-regex was given.
10646 if test "${with_regex+set}" = set; then
10647 withval="$with_regex"
10651 for ac_func in regcomp
10653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10654 echo "$as_me:$LINENO: checking for $ac_func" >&5
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_var+set}\" = set"; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10667 #define $ac_func innocuous_$ac_func
10669 /* System header to define __stub macros and hopefully few prototypes,
10670 which can conflict with char $ac_func (); below.
10671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10672 <limits.h> exists even on freestanding compilers. */
10675 # include <limits.h>
10677 # include <assert.h>
10682 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10690 /* The GNU C library defines this for functions which it implements
10691 to always fail with ENOSYS. Some functions are actually named
10692 something starting with __ and the normal name is an alias. */
10693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10696 char (*f) () = $ac_func;
10705 return f != $ac_func;
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10712 (eval $ac_link) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 eval "$as_ac_var=yes"
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 eval "$as_ac_var=no"
10738 rm -f conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10743 if test `eval echo '${'$as_ac_var'}'` = yes; then
10744 cat >>confdefs.h <<_ACEOF
10745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10755 if test $mutt_cv_regex = no ; then
10756 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10757 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10758 if test "${mutt_cv_regex_broken+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 if test "$cross_compiling" = yes; then
10762 mutt_cv_regex_broken=yes
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10771 #include <unistd.h>
10773 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
10775 rm -f conftest$ac_exeext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 mutt_cv_regex_broken=no
10788 echo "$as_me: program exited with status $ac_status" >&5
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ( exit $ac_status )
10793 mutt_cv_regex_broken=yes
10795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10799 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10800 if test $mutt_cv_regex_broken = yes ; then
10801 echo "Using the included GNU regex instead." >&6
10806 if test $mutt_cv_regex = yes; then
10808 cat >>confdefs.h <<\_ACEOF
10809 #define USE_GNU_REGEX 1
10813 "regex.$ac_objext" | \
10814 *" regex.$ac_objext" | \
10815 "regex.$ac_objext "* | \
10816 *" regex.$ac_objext "* ) ;;
10817 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
10824 # Check whether --with-homespool or --without-homespool was given.
10825 if test "${with_homespool+set}" = set; then
10826 withval="$with_homespool"
10827 with_homespool=${withval}
10829 if test x$with_homespool != x; then
10830 if test $with_homespool = yes; then
10831 with_homespool=mailbox
10834 cat >>confdefs.h <<_ACEOF
10835 #define MAILPATH "$with_homespool"
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HOMESPOOL 1
10844 cat >>confdefs.h <<\_ACEOF
10845 #define USE_DOTLOCK 1
10851 # Check whether --with-mailpath or --without-mailpath was given.
10852 if test "${with_mailpath+set}" = set; then
10853 withval="$with_mailpath"
10854 mutt_cv_mailpath=$withval
10856 echo "$as_me:$LINENO: checking where new mail is stored" >&5
10857 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10858 if test "${mutt_cv_mailpath+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 mutt_cv_mailpath=no
10862 if test -d /var/mail; then
10863 mutt_cv_mailpath=/var/mail
10864 elif test -d /var/spool/mail; then
10865 mutt_cv_mailpath=/var/spool/mail
10866 elif test -d /usr/spool/mail; then
10867 mutt_cv_mailpath=/usr/spool/mail
10868 elif test -d /usr/mail; then
10869 mutt_cv_mailpath=/usr/mail
10872 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10873 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10876 if test "$mutt_cv_mailpath" = no; then
10877 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10878 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10879 { (exit 1); exit 1; }; }
10882 cat >>confdefs.h <<_ACEOF
10883 #define MAILPATH "$mutt_cv_mailpath"
10887 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10888 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10889 if test "${mutt_cv_worldwrite+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 if test "$cross_compiling" = yes; then
10893 mutt_cv_worldwrite=no
10895 cat >conftest.$ac_ext <<_ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901 #include <sys/types.h>
10902 #include <sys/stat.h>
10904 int main (int argc, char **argv)
10908 stat ("$mutt_cv_mailpath", &s);
10909 if (s.st_mode & S_IWOTH) exit (0);
10913 rm -f conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 mutt_cv_worldwrite=yes
10926 echo "$as_me: program exited with status $ac_status" >&5
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ( exit $ac_status )
10931 mutt_cv_worldwrite=no
10933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10937 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10940 if test $mutt_cv_worldwrite = yes; then
10942 cat >>confdefs.h <<\_ACEOF
10943 #define USE_DOTLOCK 1
10948 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10949 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10950 if test "${mutt_cv_groupwrite+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 if test "$cross_compiling" = yes; then
10954 mutt_cv_groupwrite=no
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <sys/types.h>
10963 #include <sys/stat.h>
10965 int main (int argc, char **argv)
10969 stat ("$mutt_cv_mailpath", &s);
10970 if (s.st_mode & S_IWGRP) exit (0);
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 mutt_cv_groupwrite=yes
10987 echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 ( exit $ac_status )
10992 mutt_cv_groupwrite=no
10994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10997 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10998 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
11000 if test $mutt_cv_groupwrite = yes; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define USE_DOTLOCK 1
11007 cat >>confdefs.h <<\_ACEOF
11008 #define USE_SETGID 1
11016 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
11017 if test "${enable_external_dotlock+set}" = set; then
11018 enableval="$enable_external_dotlock"
11019 mutt_cv_external_dotlock="$enableval"
11022 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
11023 || test "x$mutt_cv_external_dotlock" = "xyes"
11026 cat >>confdefs.h <<\_ACEOF
11027 #define DL_STANDALONE 1
11030 DOTLOCK_TARGET="muttng_dotlock"
11032 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
11038 echo "$as_me:$LINENO: checking where to put the documentation" >&5
11039 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
11041 # Check whether --with-docdir or --without-docdir was given.
11042 if test "${with_docdir+set}" = set; then
11043 withval="$with_docdir"
11044 mutt_cv_docdir=$withval
11046 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
11048 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
11049 echo "${ECHO_T}$mutt_cv_docdir" >&6
11051 docdir=$mutt_cv_docdir
11054 if test x$mutt_cv_setgid = xyes; then
11055 DOTLOCK_GROUP='mail'
11056 DOTLOCK_PERMISSION=2755
11059 DOTLOCK_PERMISSION=755
11065 # Check whether --with-domain or --without-domain was given.
11066 if test "${with_domain+set}" = set; then
11067 withval="$with_domain"
11068 if test $withval != yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define DOMAIN "$withval"
11080 # Check whether --enable-pop or --disable-pop was given.
11081 if test "${enable_pop+set}" = set; then
11082 enableval="$enable_pop"
11083 if test x$enableval = xyes ; then
11085 cat >>confdefs.h <<\_ACEOF
11089 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
11097 # Check whether --enable-imap or --disable-imap was given.
11098 if test "${enable_imap+set}" = set; then
11099 enableval="$enable_imap"
11100 if test x$enableval = xyes ; then
11102 cat >>confdefs.h <<\_ACEOF
11106 LIBIMAP="-Limap -limap"
11107 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
11116 if test x$need_imap = xyes; then
11118 BUILD_IMAP_FALSE='#'
11120 BUILD_IMAP_TRUE='#'
11124 # Check whether --enable-nntp or --disable-nntp was given.
11125 if test "${enable_nntp+set}" = set; then
11126 enableval="$enable_nntp"
11127 if test x$enableval = xyes ; then
11128 cat >>confdefs.h <<\_ACEOF
11132 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
11139 if test "$need_socket" = "yes"
11141 echo "$as_me:$LINENO: checking for socklen_t" >&5
11142 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <sys/socket.h>
11152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11153 $EGREP "socklen_t" >/dev/null 2>&1; then
11154 echo "$as_me:$LINENO: result: yes" >&5
11155 echo "${ECHO_T}yes" >&6
11157 echo "$as_me:$LINENO: result: no" >&5
11158 echo "${ECHO_T}no" >&6
11160 cat >>confdefs.h <<\_ACEOF
11161 #define socklen_t int
11167 echo "$as_me:$LINENO: checking for gethostent" >&5
11168 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11169 if test "${ac_cv_func_gethostent+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
11179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11180 #define gethostent innocuous_gethostent
11182 /* System header to define __stub macros and hopefully few prototypes,
11183 which can conflict with char gethostent (); below.
11184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185 <limits.h> exists even on freestanding compilers. */
11188 # include <limits.h>
11190 # include <assert.h>
11195 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11202 char gethostent ();
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11209 char (*f) () = gethostent;
11218 return f != gethostent;
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_cv_func_gethostent=yes
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_cv_func_gethostent=no
11251 rm -f conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11254 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11255 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11256 if test $ac_cv_func_gethostent = yes; then
11260 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11261 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11262 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 ac_check_lib_save_LIBS=$LIBS
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11274 /* Override any gcc2 internal prototype to avoid an error. */
11278 /* We use char because int might match the return type of a gcc2
11279 builtin and then its argument prototype would still apply. */
11280 char gethostent ();
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_cv_lib_nsl_gethostent=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_cv_lib_nsl_gethostent=no
11317 rm -f conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11322 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11323 if test $ac_cv_lib_nsl_gethostent = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define HAVE_LIBNSL 1
11334 echo "$as_me:$LINENO: checking for setsockopt" >&5
11335 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11336 if test "${ac_cv_func_setsockopt+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
11346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11347 #define setsockopt innocuous_setsockopt
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char setsockopt (); below.
11351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352 <limits.h> exists even on freestanding compilers. */
11355 # include <limits.h>
11357 # include <assert.h>
11362 /* Override any gcc2 internal prototype to avoid an error. */
11367 /* We use char because int might match the return type of a gcc2
11368 builtin and then its argument prototype would still apply. */
11369 char setsockopt ();
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11376 char (*f) () = setsockopt;
11385 return f != setsockopt;
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392 (eval $ac_link) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_func_setsockopt=yes
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_cv_func_setsockopt=no
11418 rm -f conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11422 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11423 if test $ac_cv_func_setsockopt = yes; then
11427 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11428 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11429 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lsocket $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char setsockopt ();
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_socket_setsockopt=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_lib_socket_setsockopt=no
11484 rm -f conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11489 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11490 if test $ac_cv_lib_socket_setsockopt = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_LIBSOCKET 1
11495 LIBS="-lsocket $LIBS"
11502 for ac_func in getaddrinfo
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11507 if eval "test \"\${$as_ac_var+set}\" = set"; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11526 # include <limits.h>
11528 # include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11541 /* The GNU C library defines this for functions which it implements
11542 to always fail with ENOSYS. Some functions are actually named
11543 something starting with __ and the normal name is an alias. */
11544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11547 char (*f) () = $ac_func;
11556 return f != $ac_func;
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11565 grep -v '^ *+' conftest.er1 >conftest.err
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest$ac_exeext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 eval "$as_ac_var=yes"
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 eval "$as_ac_var=no"
11589 rm -f conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11603 cat >>confdefs.h <<\_ACEOF
11604 #define USE_SOCKET 1
11607 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
11612 # Check whether --with-gss or --without-gss was given.
11613 if test "${with_gss+set}" = set; then
11614 withval="$with_gss"
11615 gss_prefix="$withval"
11619 if test "$gss_prefix" != "no"
11621 if test "$need_imap" = "yes"
11624 GSSAPI_PREFIX=$gss_prefix
11626 saved_CPPFLAGS="$CPPFLAGS"
11627 saved_LDFLAGS="$LDFLAGS"
11629 if test "$GSSAPI_PREFIX" != "yes"
11631 krb5_path="$GSSAPI_PREFIX/bin"
11635 # Extract the first word of "krb5-config", so it can be a program name with args.
11636 set dummy krb5-config; ac_word=$2
11637 echo "$as_me:$LINENO: checking for $ac_word" >&5
11638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11639 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 case $KRB5CFGPATH in
11644 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $krb5_path
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11665 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11667 if test -n "$KRB5CFGPATH"; then
11668 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11669 echo "${ECHO_T}$KRB5CFGPATH" >&6
11671 echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6
11675 if test "$KRB5CFGPATH" != "none"
11677 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11678 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11679 case "`$KRB5CFGPATH --version`" in
11680 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
11681 ?eimdal*) GSSAPI_IMPL="Heimdal";;
11682 *) GSSAPI_IMPL="Unknown";;
11685 if test "$GSSAPI_PREFIX" != "yes"
11687 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11688 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11689 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11690 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11693 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11694 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11695 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11700 cat >conftest.$ac_ext <<_ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11707 /* Override any gcc2 internal prototype to avoid an error. */
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11713 char gss_init_sec_context ();
11717 gss_init_sec_context ();
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11726 grep -v '^ *+' conftest.er1 >conftest.err
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11750 rm -f conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11754 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11755 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11756 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11759 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11764 if test "$GSSAPI_IMPL" = "none"
11766 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11767 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11768 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 /* Override any gcc2 internal prototype to avoid an error. */
11784 /* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786 char gss_init_sec_context ();
11790 gss_init_sec_context ();
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_lib_gssapi_gss_init_sec_context=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_cv_lib_gssapi_gss_init_sec_context=no
11823 rm -f conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11828 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11829 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11831 GSSAPI_IMPL="Heimdal"
11832 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11833 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11839 if test "$GSSAPI_IMPL" = "none"
11841 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11842 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11843 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 ac_check_lib_save_LIBS=$LIBS
11847 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11848 cat >conftest.$ac_ext <<_ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11855 /* Override any gcc2 internal prototype to avoid an error. */
11859 /* We use char because int might match the return type of a gcc2
11860 builtin and then its argument prototype would still apply. */
11861 char g_order_init ();
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>conftest.er1
11874 grep -v '^ *+' conftest.er1 >conftest.err
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; } &&
11885 { ac_try='test -s conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_lib_gssapi_krb5_g_order_init=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_lib_gssapi_krb5_g_order_init=no
11898 rm -f conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11902 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11903 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11904 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11906 GSSAPI_IMPL="OldMIT",
11907 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11914 CPPFLAGS="$saved_CPPFLAGS"
11915 LDFLAGS="$saved_LDFLAGS"
11918 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11919 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11920 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11921 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11922 if test "$GSSAPI_IMPL" = "none"
11924 cat >confcache <<\_ACEOF
11925 # This file is a shell script that caches the results of configure
11926 # tests run on this system so they can be shared between configure
11927 # scripts and configure runs, see configure's option --config-cache.
11928 # It is not useful on other systems. If it contains results you don't
11929 # want to keep, you may remove or edit it.
11931 # config.status only pays attention to the cache file if you give it
11932 # the --recheck option to rerun configure.
11934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11936 # following values.
11940 # The following way of writing the cache mishandles newlines in values,
11941 # but we know of no workaround that is simple, portable, and efficient.
11942 # So, don't put newlines in cache variables' values.
11943 # Ultrix sh set writes to stderr and can't be redirected directly,
11944 # and sets the high bit in the cache file unless we assign to the vars.
11947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11949 # `set' does not quote correctly, so add quotes (double-quote
11950 # substitution turns \\\\ into \\, and sed turns \\ into \).
11953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11956 # `set' quotes correctly as required by POSIX, so do not add quotes.
11958 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11967 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11969 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11970 if test -w $cache_file; then
11971 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11972 cat confcache >$cache_file
11974 echo "not updating unwritable cache $cache_file"
11978 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11979 echo "${ECHO_T}GSSAPI libraries not found" >&6
11981 if test "$GSSAPI_IMPL" = "Heimdal"
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_HEIMDAL 1
11989 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11990 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11992 cat >>confdefs.h <<\_ACEOF
11998 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11999 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
12004 if test x$need_gss = xyes; then
12014 # Check whether --with-ssl or --without-ssl was given.
12015 if test "${with_ssl+set}" = set; then
12016 withval="$with_ssl"
12017 if test "$with_ssl" != "no"
12019 if test "$need_socket" != "yes"; then
12020 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12021 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12022 { (exit 1); exit 1; }; }
12025 if test "$with_ssl" != "yes"
12027 LDFLAGS="$LDFLAGS -L$withval/lib"
12028 CPPFLAGS="$CPPFLAGS -I$withval/include"
12033 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
12034 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
12035 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-lcrypto $LIBS"
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12047 /* Override any gcc2 internal prototype to avoid an error. */
12051 /* We use char because int might match the return type of a gcc2
12052 builtin and then its argument prototype would still apply. */
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064 (eval $ac_link) 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_lib_crypto_X509_new=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_lib_crypto_X509_new=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
12095 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
12096 if test $ac_cv_lib_crypto_X509_new = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_LIBCRYPTO 1
12101 LIBS="-lcrypto $LIBS"
12104 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12105 echo "$as_me: error: Unable to find SSL library" >&2;}
12106 { (exit 1); exit 1; }; }
12110 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
12111 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
12112 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lssl -lcrypto $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any gcc2 internal prototype to avoid an error. */
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141 (eval $ac_link) 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_lib_ssl_SSL_new=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_ssl_SSL_new=no
12167 rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
12172 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
12173 if test $ac_cv_lib_ssl_SSL_new = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define HAVE_LIBSSL 1
12181 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12182 echo "$as_me: error: Unable to find SSL library" >&2;}
12183 { (exit 1); exit 1; }; }
12189 for ac_func in RAND_status RAND_egd
12191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 echo "$as_me:$LINENO: checking for $ac_func" >&5
12193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_var+set}\" = set"; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12205 #define $ac_func innocuous_$ac_func
12207 /* System header to define __stub macros and hopefully few prototypes,
12208 which can conflict with char $ac_func (); below.
12209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12210 <limits.h> exists even on freestanding compilers. */
12213 # include <limits.h>
12215 # include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12234 char (*f) () = $ac_func;
12243 return f != $ac_func;
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 eval "$as_ac_var=no"
12276 rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291 cat >>confdefs.h <<\_ACEOF
12296 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
12297 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
12305 if test x$need_ssl = xyes; then
12314 # Check whether --with-nss or --without-nss was given.
12315 if test "${with_nss+set}" = set; then
12316 withval="$with_nss"
12317 if test "$with_nss" != no
12319 if test "$need_socket" != "yes"; then
12320 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12321 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12322 { (exit 1); exit 1; }; }
12325 if test "$with_nss" != "yes"
12327 LDFLAGS="$LDFLAGS -L$withval/lib"
12328 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
12332 cat >>confdefs.h <<\_ACEOF
12336 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
12337 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
12338 MUTTLIBS="$MUTTLIBS -lnspr4"
12340 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
12347 # Check whether --with-gnutls or --without-gnutls was given.
12348 if test "${with_gnutls+set}" = set; then
12349 withval="$with_gnutls"
12350 gnutls_prefix="$withval"
12354 if test "$gnutls_prefix" != "no"
12356 if test "$need_socket" != "yes"
12358 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12359 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12360 { (exit 1); exit 1; }; }
12362 libgnutls_config_prefix=$gnutls_prefix
12363 min_libgnutls_version=0.1.0
12365 if test x$libgnutls_config_prefix != x ; then
12366 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
12367 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
12371 # Extract the first word of "libgnutls-config", so it can be a program name with args.
12372 set dummy libgnutls-config; ac_word=$2
12373 echo "$as_me:$LINENO: checking for $ac_word" >&5
12374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12375 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 case $LIBGNUTLS_CONFIG in
12380 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
12401 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
12403 if test -n "$LIBGNUTLS_CONFIG"; then
12404 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
12405 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
12407 echo "$as_me:$LINENO: result: no" >&5
12408 echo "${ECHO_T}no" >&6
12411 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
12412 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
12414 if test "$LIBGNUTLS_CONFIG" = "no" ; then
12417 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
12418 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
12419 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
12422 ac_save_CFLAGS="$CFLAGS"
12423 ac_save_LIBS="$LIBS"
12424 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12425 LIBS="$LIBS $LIBGNUTLS_LIBS"
12427 rm -f conf.libgnutlstest
12428 if test "$cross_compiling" = yes; then
12429 echo $ac_n "cross compiling; assumed OK... $ac_c"
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12439 #include <stdlib.h>
12440 #include <string.h>
12441 #include <gnutls/gnutls.h>
12446 system ("touch conf.libgnutlstest");
12448 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
12450 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
12451 "$libgnutls_config_version", gnutls_check_version(NULL) );
12452 printf("*** was found! If libgnutls-config was correct, then it is best\n");
12453 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
12454 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12455 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12456 printf("*** required on your system.\n");
12457 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
12458 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
12459 printf("*** before re-running configure\n");
12461 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
12463 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
12464 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
12468 if ( gnutls_check_version( "$min_libgnutls_version" ) )
12474 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
12475 gnutls_check_version(NULL) );
12476 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
12477 "$min_libgnutls_version" );
12478 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
12480 printf("*** If you have already installed a sufficiently new version, this error\n");
12481 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12482 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12483 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
12484 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
12485 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12486 printf("*** so that the correct libraries are found at run-time))\n");
12493 rm -f conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12506 echo "$as_me: program exited with status $ac_status" >&5
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ( exit $ac_status )
12513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12515 CFLAGS="$ac_save_CFLAGS"
12516 LIBS="$ac_save_LIBS"
12519 if test "x$no_libgnutls" = x ; then
12520 echo "$as_me:$LINENO: result: yes" >&5
12521 echo "${ECHO_T}yes" >&6
12523 for ac_header in gnutls/openssl.h
12525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12527 echo "$as_me:$LINENO: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535 # Is the header compilable?
12536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12538 cat >conftest.$ac_ext <<_ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12545 #include <$ac_header>
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest.$ac_objext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 ac_header_compiler=yes
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 ac_header_compiler=no
12575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12577 echo "${ECHO_T}$ac_header_compiler" >&6
12579 # Is the header present?
12580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 #include <$ac_header>
12590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null; then
12598 if test -s conftest.err; then
12599 ac_cpp_err=$ac_c_preproc_warn_flag
12600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12607 if test -z "$ac_cpp_err"; then
12608 ac_header_preproc=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_header_preproc=no
12615 rm -f conftest.err conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12617 echo "${ECHO_T}$ac_header_preproc" >&6
12619 # So? What about this header?
12620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12626 ac_header_preproc=yes
12629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12643 ## ------------------------------------------ ##
12644 ## Report this to the AC_PACKAGE_NAME lists. ##
12645 ## ------------------------------------------ ##
12648 sed "s/^/$as_me: WARNING: /" >&2
12651 echo "$as_me:$LINENO: checking for $ac_header" >&5
12652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 eval "$as_ac_Header=\$ac_header_preproc"
12658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
12672 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
12674 cat >>confdefs.h <<\_ACEOF
12675 #define USE_GNUTLS 1
12679 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12682 if test -f conf.libgnutlstest ; then
12685 echo "$as_me:$LINENO: result: no" >&5
12686 echo "${ECHO_T}no" >&6
12688 if test "$LIBGNUTLS_CONFIG" = "no" ; then
12689 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
12690 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
12691 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
12692 echo "*** full path to libgnutls-config."
12694 if test -f conf.libgnutlstest ; then
12697 echo "*** Could not run libgnutls test program, checking why..."
12698 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12699 LIBS="$LIBS $LIBGNUTLS_LIBS"
12700 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12708 #include <stdlib.h>
12709 #include <string.h>
12710 #include <gnutls/gnutls.h>
12715 return !!gnutls_check_version(NULL);
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722 (eval $ac_link) 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 echo "*** The test program compiled, but did not run. This usually means"
12742 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12743 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12744 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12745 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12746 echo "*** is required on your system"
12748 echo "*** If you have an old version installed, it is best to remove it, although"
12749 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 echo "*** The test program failed to compile or link. See the file config.log for the"
12756 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12757 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12758 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12760 rm -f conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 CFLAGS="$ac_save_CFLAGS"
12763 LIBS="$ac_save_LIBS"
12766 LIBGNUTLS_CFLAGS=""
12768 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12769 echo "$as_me: error: could not find libgnutls" >&2;}
12770 { (exit 1); exit 1; }; }
12773 rm -f conf.libgnutlstest
12780 # Check whether --with-sasl or --without-sasl was given.
12781 if test "${with_sasl+set}" = set; then
12782 withval="$with_sasl"
12784 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12786 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12787 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12788 { (exit 1); exit 1; }; }
12791 if test "$with_sasl" != "no"
12793 if test "$with_sasl" != "yes"
12795 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12796 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12802 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12803 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12804 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lsasl $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12816 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char sasl_client_init ();
12826 sasl_client_init ();
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_lib_sasl_sasl_client_init=yes
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_cv_lib_sasl_sasl_client_init=no
12859 rm -f conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12863 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12864 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12865 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12866 cat >>confdefs.h <<_ACEOF
12867 #define HAVE_LIBSASL 1
12870 LIBS="-lsasl $LIBS"
12873 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12874 echo "$as_me: error: could not find libsasl" >&2;}
12875 { (exit 1); exit 1; }; }
12879 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12880 MUTTLIBS="$MUTTLIBS -lsasl"
12883 cat >>confdefs.h <<\_ACEOF
12893 if test x$need_sasl = xyes; then
12902 # Check whether --with-sasl2 or --without-sasl2 was given.
12903 if test "${with_sasl2+set}" = set; then
12904 withval="$with_sasl2"
12906 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12908 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12909 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12910 { (exit 1); exit 1; }; }
12913 if test "$with_sasl2" != "no"
12915 if test "$with_sasl2" != "yes"
12917 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12918 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12924 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12925 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12926 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lsasl2 $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12938 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12944 char sasl_client_init ();
12948 sasl_client_init ();
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12955 (eval $ac_link) 2>conftest.er1
12957 grep -v '^ *+' conftest.er1 >conftest.err
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
12962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_lib_sasl2_sasl_client_init=yes
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 ac_cv_lib_sasl2_sasl_client_init=no
12981 rm -f conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12986 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12987 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LIBSASL2 1
12992 LIBS="-lsasl2 $LIBS"
12995 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12996 echo "$as_me: error: could not find libsasl2" >&2;}
12997 { (exit 1); exit 1; }; }
13001 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13002 MUTTLIBS="$MUTTLIBS -lsasl2"
13005 cat >>confdefs.h <<\_ACEOF
13010 cat >>confdefs.h <<\_ACEOF
13011 #define USE_SASL2 1
13020 if test x$need_sasl = xyes; then
13029 # Check whether --with-idn or --without-idn was given.
13030 if test "${with_idn+set}" = set; then
13031 withval="$with_idn"
13033 if test "$with_idn" != "no" ; then
13034 if test "$with_idn" != "yes" ; then
13035 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
13036 LDFLAGS="$LDFLAGS -L$with_idn/lib"
13043 if test "x$with_idn" != "xno"; then
13045 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
13046 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
13047 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 ac_check_lib_save_LIBS=$LIBS
13052 cat >conftest.$ac_ext <<_ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 /* Override any gcc2 internal prototype to avoid an error. */
13063 /* We use char because int might match the return type of a gcc2
13064 builtin and then its argument prototype would still apply. */
13065 char stringprep_check_version ();
13069 stringprep_check_version ();
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_lib_idn_stringprep_check_version=yes
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_idn_stringprep_check_version=no
13102 rm -f conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13106 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
13107 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
13108 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_LIBIDN 1
13119 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
13121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 echo "$as_me:$LINENO: checking for $ac_func" >&5
13123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_var+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13135 #define $ac_func innocuous_$ac_func
13137 /* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char $ac_func (); below.
13139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140 <limits.h> exists even on freestanding compilers. */
13143 # include <limits.h>
13145 # include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error. */
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13158 /* The GNU C library defines this for functions which it implements
13159 to always fail with ENOSYS. Some functions are actually named
13160 something starting with __ and the normal name is an alias. */
13161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13164 char (*f) () = $ac_func;
13173 return f != $ac_func;
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 eval "$as_ac_var=yes"
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 eval "$as_ac_var=no"
13206 rm -f conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13211 if test `eval echo '${'$as_ac_var'}'` = yes; then
13212 cat >>confdefs.h <<_ACEOF
13213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13221 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
13223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13224 echo "$as_me:$LINENO: checking for $ac_func" >&5
13225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13226 if eval "test \"\${$as_ac_var+set}\" = set"; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13237 #define $ac_func innocuous_$ac_func
13239 /* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char $ac_func (); below.
13241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242 <limits.h> exists even on freestanding compilers. */
13245 # include <limits.h>
13247 # include <assert.h>
13252 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13260 /* The GNU C library defines this for functions which it implements
13261 to always fail with ENOSYS. Some functions are actually named
13262 something starting with __ and the normal name is an alias. */
13263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13266 char (*f) () = $ac_func;
13275 return f != $ac_func;
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282 (eval $ac_link) 2>conftest.er1
13284 grep -v '^ *+' conftest.er1 >conftest.err
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 eval "$as_ac_var=yes"
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13306 eval "$as_ac_var=no"
13308 rm -f conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13313 if test `eval echo '${'$as_ac_var'}'` = yes; then
13314 cat >>confdefs.h <<_ACEOF
13315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13323 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
13325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13326 echo "$as_me:$LINENO: checking for $ac_func" >&5
13327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13328 if eval "test \"\${$as_ac_var+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13339 #define $ac_func innocuous_$ac_func
13341 /* System header to define __stub macros and hopefully few prototypes,
13342 which can conflict with char $ac_func (); below.
13343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13344 <limits.h> exists even on freestanding compilers. */
13347 # include <limits.h>
13349 # include <assert.h>
13354 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */
13362 /* The GNU C library defines this for functions which it implements
13363 to always fail with ENOSYS. Some functions are actually named
13364 something starting with __ and the normal name is an alias. */
13365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368 char (*f) () = $ac_func;
13377 return f != $ac_func;
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 eval "$as_ac_var=yes"
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 eval "$as_ac_var=no"
13410 rm -f conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13415 if test `eval echo '${'$as_ac_var'}'` = yes; then
13416 cat >>confdefs.h <<_ACEOF
13417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13426 # Check whether --enable-debug or --disable-debug was given.
13427 if test "${enable_debug+set}" = set; then
13428 enableval="$enable_debug"
13429 if test x$enableval = xyes ; then
13431 cat >>confdefs.h <<\_ACEOF
13439 # Check whether --enable-flock or --disable-flock was given.
13440 if test "${enable_flock+set}" = set; then
13441 enableval="$enable_flock"
13442 if test $enableval = yes; then
13444 cat >>confdefs.h <<\_ACEOF
13445 #define USE_FLOCK 1
13452 # Check whether --enable-fcntl or --disable-fcntl was given.
13453 if test "${enable_fcntl+set}" = set; then
13454 enableval="$enable_fcntl"
13455 if test $enableval = no; then mutt_cv_fcntl=no; fi
13458 if test $mutt_cv_fcntl = yes; then
13460 cat >>confdefs.h <<\_ACEOF
13461 #define USE_FCNTL 1
13466 mutt_cv_inodesort=no
13467 # Check whether --enable-inodesort or --disable-inodesort was given.
13468 if test "${enable_inodesort+set}" = set; then
13469 enableval="$enable_inodesort"
13470 if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
13473 if test $mutt_cv_inodesort = yes; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define USE_INODESORT 1
13481 mutt_cv_warnings=yes
13482 # Check whether --enable-warnings or --disable-warnings was given.
13483 if test "${enable_warnings+set}" = set; then
13484 enableval="$enable_warnings"
13485 if test $enableval = no; then
13486 mutt_cv_warnings=no
13490 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
13491 CFLAGS="-Wall -pedantic $CFLAGS"
13494 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
13495 if test "${enable_nfs_fix+set}" = set; then
13496 enableval="$enable_nfs_fix"
13497 if test x$enableval = xyes; then
13499 cat >>confdefs.h <<\_ACEOF
13500 #define NFS_ATTRIBUTE_HACK 1
13506 # Check whether --enable-buffy-size or --disable-buffy-size was given.
13507 if test "${enable_buffy_size+set}" = set; then
13508 enableval="$enable_buffy_size"
13509 if test x$enableval = xyes; then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define BUFFY_SIZE 1
13518 # Check whether --enable-mailtool or --disable-mailtool was given.
13519 if test "${enable_mailtool+set}" = set; then
13520 enableval="$enable_mailtool"
13521 if test x$enableval = xyes; then
13523 cat >>confdefs.h <<\_ACEOF
13524 #define SUN_ATTACHMENT 1
13530 # Check whether --enable-compressed or --disable-compressed was given.
13531 if test "${enable_compressed+set}" = set; then
13532 enableval="$enable_compressed"
13533 if test x$enableval = xyes; then
13534 cat >>confdefs.h <<\_ACEOF
13535 #define USE_COMPRESSED 1
13541 # Check whether --enable-locales-fix or --disable-locales-fix was given.
13542 if test "${enable_locales_fix+set}" = set; then
13543 enableval="$enable_locales_fix"
13544 if test x$enableval = xyes; then
13546 cat >>confdefs.h <<\_ACEOF
13547 #define LOCALES_HACK 1
13554 # Check whether --with-exec-shell or --without-exec-shell was given.
13555 if test "${with_exec_shell+set}" = set; then
13556 withval="$with_exec_shell"
13557 if test $withval != yes; then
13559 cat >>confdefs.h <<_ACEOF
13560 #define EXECSHELL "$withval"
13564 cat >>confdefs.h <<_ACEOF
13565 #define EXECSHELL "/bin/sh"
13570 cat >>confdefs.h <<_ACEOF
13571 #define EXECSHELL "/bin/sh"
13576 # Check whether --enable-exact-address or --disable-exact-address was given.
13577 if test "${enable_exact_address+set}" = set; then
13578 enableval="$enable_exact_address"
13579 if test $enableval = yes; then
13581 cat >>confdefs.h <<\_ACEOF
13582 #define EXACT_ADDRESS 1
13589 # Check whether --enable-hcache or --disable-hcache was given.
13590 if test "${enable_hcache+set}" = set; then
13591 enableval="$enable_hcache"
13592 if test x$enableval = xyes; then
13594 cat >>confdefs.h <<\_ACEOF
13595 #define USE_HCACHE 1
13599 OLDCPPFLAGS="$CPPFLAGS"
13605 # Check whether --with-gdbm or --without-gdbm was given.
13606 if test "${with_gdbm+set}" = set; then
13607 withval="$with_gdbm"
13608 ac_prefer_gdbm=$withval
13610 if test x$ac_prefer_gdbm != xno; then
13611 CPPFLAGS="$OLDCPPFLAGS"
13612 LIBS="$OLDLIBS -lgdbm";
13613 echo "$as_me:$LINENO: checking for gdbm_open" >&5
13614 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
13615 if test "${ac_cv_gdbmopen+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13630 gdbm_open(0,0,0,0,0);
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13666 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
13667 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
13672 # Check whether --with-bdb or --without-bdb was given.
13673 if test "${with_bdb+set}" = set; then
13674 withval="$with_bdb"
13675 ac_bdb_prefix=$withval
13677 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
13678 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
13679 for d in $ac_bdb_prefix; do
13680 bdbpfx="$bdbpfx $d"
13681 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
13682 bdbpfx="$bdbpfx $d/$v"
13685 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
13686 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
13687 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
13688 for d in $bdbpfx; do
13691 for v in / $BDB_VERSIONS; do
13692 if test -r "$d/include/$v/db.h"; then
13693 BDB_INCLUDE_DIR="$d/include/$v"
13694 if test -d "$d/lib/$v"; then
13695 BDB_LIB_DIR="$d/lib/$v"
13696 for l in `echo $BDB_VERSIONS`; do
13697 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13698 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 #include <stdlib.h>
13714 db->open(db,NULL,NULL,NULL,0,0,0);
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722 (eval $ac_link) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13754 test x$ac_dbcreate = xyes && break
13758 test x$BDB_LIB != x && break
13760 if test x$ac_cv_dbcreate = xyes; then
13761 echo "$as_me:$LINENO: result: yes" >&5
13762 echo "${ECHO_T}yes" >&6
13764 echo "$as_me:$LINENO: result: no" >&5
13765 echo "${ECHO_T}no" >&6
13769 if test x$ac_cv_gdbmopen = xyes; then
13770 CPPFLAGS="$OLDCPPFLAGS"
13771 LIBS="$OLDLIBS -lgdbm";
13773 cat >>confdefs.h <<\_ACEOF
13774 #define HAVE_GDBM 1
13777 elif test x$ac_cv_dbcreate = xyes; then
13778 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13779 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
13781 cat >>confdefs.h <<\_ACEOF
13786 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
13787 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
13788 { (exit 1); exit 1; }; }
13799 # Check whether --enable-iconv or --disable-iconv was given.
13800 if test "${enable_iconv+set}" = set; then
13801 enableval="$enable_iconv"
13802 if test x$enableval = xno ; then
13803 am_cv_func_iconv=no
13808 echo "$as_me:$LINENO: checking for off_t" >&5
13809 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13810 if test "${ac_cv_type_off_t+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13825 if (sizeof (off_t))
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_type_off_t=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_cv_type_off_t=no
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13861 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13863 if test $ac_cv_type_off_t = yes; then
13867 cat >>confdefs.h <<_ACEOF
13873 echo "$as_me:$LINENO: checking for size_t" >&5
13874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13875 if test "${ac_cv_type_size_t+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13890 if (sizeof (size_t))
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest.$ac_objext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_type_size_t=yes
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 ac_cv_type_size_t=no
13924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13927 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13928 if test $ac_cv_type_size_t = yes; then
13932 cat >>confdefs.h <<_ACEOF
13933 #define size_t unsigned
13938 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13939 # for constant arguments. Useless!
13940 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13941 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13942 if test "${ac_cv_working_alloca_h+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 #include <alloca.h>
13955 char *p = (char *) alloca (2 * sizeof (int));
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962 (eval $ac_link) 2>conftest.er1
13964 grep -v '^ *+' conftest.er1 >conftest.err
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_cv_working_alloca_h=yes
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13986 ac_cv_working_alloca_h=no
13988 rm -f conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13992 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13993 if test $ac_cv_working_alloca_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_ALLOCA_H 1
14001 echo "$as_me:$LINENO: checking for alloca" >&5
14002 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14003 if test "${ac_cv_func_alloca_works+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 # define alloca __builtin_alloca
14016 # include <malloc.h>
14017 # define alloca _alloca
14020 # include <alloca.h>
14025 # ifndef alloca /* predefined by HP cc +Olibcalls */
14036 char *p = (char *) alloca (1);
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>conftest.er1
14045 grep -v '^ *+' conftest.er1 >conftest.err
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_func_alloca_works=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_func_alloca_works=no
14069 rm -f conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14072 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14073 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14075 if test $ac_cv_func_alloca_works = yes; then
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_ALLOCA 1
14082 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14083 # that cause trouble. Some versions do not even contain alloca or
14084 # contain a buggy version. If you still want to use their alloca,
14085 # use ar to extract alloca.o from them instead of compiling alloca.c.
14087 ALLOCA=alloca.$ac_objext
14089 cat >>confdefs.h <<\_ACEOF
14094 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14095 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14096 if test "${ac_cv_os_cray+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 #if defined(CRAY) && ! defined(CRAY2)
14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14113 $EGREP "webecray" >/dev/null 2>&1; then
14121 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14122 echo "${ECHO_T}$ac_cv_os_cray" >&6
14123 if test $ac_cv_os_cray = yes; then
14124 for ac_func in _getb67 GETB67 getb67; do
14125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126 echo "$as_me:$LINENO: checking for $ac_func" >&5
14127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14128 if eval "test \"\${$as_ac_var+set}\" = set"; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14139 #define $ac_func innocuous_$ac_func
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func (); below.
14143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144 <limits.h> exists even on freestanding compilers. */
14147 # include <limits.h>
14149 # include <assert.h>
14154 /* Override any gcc2 internal prototype to avoid an error. */
14159 /* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14162 /* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14168 char (*f) () = $ac_func;
14177 return f != $ac_func;
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 eval "$as_ac_var=yes"
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 eval "$as_ac_var=no"
14210 rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14215 if test `eval echo '${'$as_ac_var'}'` = yes; then
14217 cat >>confdefs.h <<_ACEOF
14218 #define CRAY_STACKSEG_END $ac_func
14227 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14228 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14229 if test "${ac_cv_c_stack_direction+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 if test "$cross_compiling" = yes; then
14233 ac_cv_c_stack_direction=0
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 find_stack_direction ()
14244 static char *addr = 0;
14249 return find_stack_direction ();
14252 return (&dummy > addr) ? 1 : -1;
14258 exit (find_stack_direction () < 0);
14261 rm -f conftest$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_cv_c_stack_direction=1
14274 echo "$as_me: program exited with status $ac_status" >&5
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ( exit $ac_status )
14279 ac_cv_c_stack_direction=-1
14281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14285 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14287 cat >>confdefs.h <<_ACEOF
14288 #define STACK_DIRECTION $ac_cv_c_stack_direction
14296 for ac_header in stdlib.h unistd.h
14298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14300 echo "$as_me:$LINENO: checking for $ac_header" >&5
14301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14308 # Is the header compilable?
14309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14311 cat >conftest.$ac_ext <<_ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14318 #include <$ac_header>
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_header_compiler=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_header_compiler=no
14348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14350 echo "${ECHO_T}$ac_header_compiler" >&6
14352 # Is the header present?
14353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <$ac_header>
14363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14366 grep -v '^ *+' conftest.er1 >conftest.err
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null; then
14371 if test -s conftest.err; then
14372 ac_cpp_err=$ac_c_preproc_warn_flag
14373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14380 if test -z "$ac_cpp_err"; then
14381 ac_header_preproc=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_header_preproc=no
14388 rm -f conftest.err conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14390 echo "${ECHO_T}$ac_header_preproc" >&6
14392 # So? What about this header?
14393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14399 ac_header_preproc=yes
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14416 ## ------------------------------------------ ##
14417 ## Report this to the AC_PACKAGE_NAME lists. ##
14418 ## ------------------------------------------ ##
14421 sed "s/^/$as_me: WARNING: /" >&2
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 eval "$as_ac_Header=\$ac_header_preproc"
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14445 for ac_func in getpagesize
14447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14448 echo "$as_me:$LINENO: checking for $ac_func" >&5
14449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14450 if eval "test \"\${$as_ac_var+set}\" = set"; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14461 #define $ac_func innocuous_$ac_func
14463 /* System header to define __stub macros and hopefully few prototypes,
14464 which can conflict with char $ac_func (); below.
14465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14466 <limits.h> exists even on freestanding compilers. */
14469 # include <limits.h>
14471 # include <assert.h>
14476 /* Override any gcc2 internal prototype to avoid an error. */
14481 /* We use char because int might match the return type of a gcc2
14482 builtin and then its argument prototype would still apply. */
14484 /* The GNU C library defines this for functions which it implements
14485 to always fail with ENOSYS. Some functions are actually named
14486 something starting with __ and the normal name is an alias. */
14487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14490 char (*f) () = $ac_func;
14499 return f != $ac_func;
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14506 (eval $ac_link) 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 eval "$as_ac_var=yes"
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 eval "$as_ac_var=no"
14532 rm -f conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14537 if test `eval echo '${'$as_ac_var'}'` = yes; then
14538 cat >>confdefs.h <<_ACEOF
14539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14545 echo "$as_me:$LINENO: checking for working mmap" >&5
14546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 if test "$cross_compiling" = yes; then
14551 ac_cv_func_mmap_fixed_mapped=no
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14560 /* malloc might have been renamed as rpl_malloc. */
14563 /* Thanks to Mike Haertel and Jim Avera for this test.
14564 Here is a matrix of mmap possibilities:
14565 mmap private not fixed
14566 mmap private fixed at somewhere currently unmapped
14567 mmap private fixed at somewhere already mapped
14568 mmap shared not fixed
14569 mmap shared fixed at somewhere currently unmapped
14570 mmap shared fixed at somewhere already mapped
14571 For private mappings, we should verify that changes cannot be read()
14572 back from the file, nor mmap's back from the file at a different
14573 address. (There have been systems where private was not correctly
14574 implemented like the infamous i386 svr4.0, and systems where the
14575 VM page cache was not coherent with the file system buffer cache
14576 like early versions of FreeBSD and possibly contemporary NetBSD.)
14577 For shared mappings, we should conversely verify that changes get
14578 propagated back to all the places they're supposed to be.
14580 Grep wants private fixed already mapped.
14581 The main things grep needs to know about mmap are:
14582 * does it exist and is it safe to write into the mmap'd area
14583 * how to use it (BSD variants) */
14586 #include <sys/mman.h>
14588 #if !STDC_HEADERS && !HAVE_STDLIB_H
14592 /* This mess was copied from the GNU getpagesize.h. */
14593 #if !HAVE_GETPAGESIZE
14594 /* Assume that all systems that can run configure have sys/param.h. */
14595 # if !HAVE_SYS_PARAM_H
14596 # define HAVE_SYS_PARAM_H 1
14599 # ifdef _SC_PAGESIZE
14600 # define getpagesize() sysconf(_SC_PAGESIZE)
14601 # else /* no _SC_PAGESIZE */
14602 # if HAVE_SYS_PARAM_H
14603 # include <sys/param.h>
14604 # ifdef EXEC_PAGESIZE
14605 # define getpagesize() EXEC_PAGESIZE
14606 # else /* no EXEC_PAGESIZE */
14608 # define getpagesize() NBPG * CLSIZE
14611 # endif /* no CLSIZE */
14612 # else /* no NBPG */
14614 # define getpagesize() NBPC
14615 # else /* no NBPC */
14617 # define getpagesize() PAGESIZE
14618 # endif /* PAGESIZE */
14619 # endif /* no NBPC */
14620 # endif /* no NBPG */
14621 # endif /* no EXEC_PAGESIZE */
14622 # else /* no HAVE_SYS_PARAM_H */
14623 # define getpagesize() 8192 /* punt totally */
14624 # endif /* no HAVE_SYS_PARAM_H */
14625 # endif /* no _SC_PAGESIZE */
14627 #endif /* no HAVE_GETPAGESIZE */
14632 char *data, *data2, *data3;
14636 pagesize = getpagesize ();
14638 /* First, make a file with some known garbage in it. */
14639 data = (char *) malloc (pagesize);
14642 for (i = 0; i < pagesize; ++i)
14643 *(data + i) = rand ();
14645 fd = creat ("conftest.mmap", 0600);
14648 if (write (fd, data, pagesize) != pagesize)
14652 /* Next, try to mmap the file at a fixed address which already has
14653 something else allocated at it. If we can, also make sure that
14654 we see the same garbage. */
14655 fd = open ("conftest.mmap", O_RDWR);
14658 data2 = (char *) malloc (2 * pagesize);
14661 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14665 for (i = 0; i < pagesize; ++i)
14666 if (*(data + i) != *(data2 + i))
14669 /* Finally, make sure that changes to the mapped area do not
14670 percolate back to the file as seen by read(). (This is a bug on
14671 some variants of i386 svr4.0.) */
14672 for (i = 0; i < pagesize; ++i)
14673 *(data2 + i) = *(data2 + i) + 1;
14674 data3 = (char *) malloc (pagesize);
14677 if (read (fd, data3, pagesize) != pagesize)
14679 for (i = 0; i < pagesize; ++i)
14680 if (*(data + i) != *(data3 + i))
14686 rm -f conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_func_mmap_fixed_mapped=yes
14699 echo "$as_me: program exited with status $ac_status" >&5
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ( exit $ac_status )
14704 ac_cv_func_mmap_fixed_mapped=no
14706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14709 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14710 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14711 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14713 cat >>confdefs.h <<\_ACEOF
14714 #define HAVE_MMAP 1
14718 rm -f conftest.mmap
14721 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
14722 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
14723 if test "${ac_cv_gnu_library_2_1+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14733 #include <features.h>
14734 #ifdef __GNU_LIBRARY__
14735 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
14743 ac_cv_gnu_library_2_1=yes
14745 ac_cv_gnu_library_2_1=no
14752 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
14753 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
14755 GLIBC21="$ac_cv_gnu_library_2_1"
14769 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14770 stdlib.h string.h unistd.h sys/param.h
14772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14774 echo "$as_me:$LINENO: checking for $ac_header" >&5
14775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14782 # Is the header compilable?
14783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 $ac_includes_default
14792 #include <$ac_header>
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_header_compiler=yes
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 ac_header_compiler=no
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6
14826 # Is the header present?
14827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <$ac_header>
14837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } >/dev/null; then
14845 if test -s conftest.err; then
14846 ac_cpp_err=$ac_c_preproc_warn_flag
14847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14854 if test -z "$ac_cpp_err"; then
14855 ac_header_preproc=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_header_preproc=no
14862 rm -f conftest.err conftest.$ac_ext
14863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14864 echo "${ECHO_T}$ac_header_preproc" >&6
14866 # So? What about this header?
14867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14873 ac_header_preproc=yes
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14890 ## ------------------------------------------ ##
14891 ## Report this to the AC_PACKAGE_NAME lists. ##
14892 ## ------------------------------------------ ##
14895 sed "s/^/$as_me: WARNING: /" >&2
14898 echo "$as_me:$LINENO: checking for $ac_header" >&5
14899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 eval "$as_ac_Header=\$ac_header_preproc"
14905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14940 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14941 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944 echo "$as_me:$LINENO: checking for $ac_func" >&5
14945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14946 if eval "test \"\${$as_ac_var+set}\" = set"; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14957 #define $ac_func innocuous_$ac_func
14959 /* System header to define __stub macros and hopefully few prototypes,
14960 which can conflict with char $ac_func (); below.
14961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14962 <limits.h> exists even on freestanding compilers. */
14965 # include <limits.h>
14967 # include <assert.h>
14972 /* Override any gcc2 internal prototype to avoid an error. */
14977 /* We use char because int might match the return type of a gcc2
14978 builtin and then its argument prototype would still apply. */
14980 /* The GNU C library defines this for functions which it implements
14981 to always fail with ENOSYS. Some functions are actually named
14982 something starting with __ and the normal name is an alias. */
14983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14986 char (*f) () = $ac_func;
14995 return f != $ac_func;
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002 (eval $ac_link) 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest$ac_exeext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 eval "$as_ac_var=yes"
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 eval "$as_ac_var=no"
15028 rm -f conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15033 if test `eval echo '${'$as_ac_var'}'` = yes; then
15034 cat >>confdefs.h <<_ACEOF
15035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15045 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15046 if test "${with_libiconv_prefix+set}" = set; then
15047 withval="$with_libiconv_prefix"
15049 for dir in `echo "$withval" | tr : ' '`; do
15050 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15051 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15056 echo "$as_me:$LINENO: checking for iconv" >&5
15057 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15058 if test "${am_cv_func_iconv+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 am_cv_func_iconv="no, consider installing GNU libiconv"
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <stdlib.h>
15075 iconv_t cd = iconv_open("","");
15076 iconv(cd,NULL,NULL,NULL,NULL);
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15084 (eval $ac_link) 2>conftest.er1
15086 grep -v '^ *+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest$ac_exeext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 am_cv_func_iconv=yes
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15111 if test "$am_cv_func_iconv" != yes; then
15112 am_save_LIBS="$LIBS"
15113 LIBS="$LIBS -liconv"
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 #include <stdlib.h>
15125 iconv_t cd = iconv_open("","");
15126 iconv(cd,NULL,NULL,NULL,NULL);
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134 (eval $ac_link) 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; } &&
15147 { ac_try='test -s conftest$ac_exeext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 am_cv_lib_iconv=yes
15154 am_cv_func_iconv=yes
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15160 rm -f conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
15162 LIBS="$am_save_LIBS"
15166 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15167 echo "${ECHO_T}$am_cv_func_iconv" >&6
15168 if test "$am_cv_func_iconv" = yes; then
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_ICONV 1
15174 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15175 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15176 if test "${am_cv_proto_iconv+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15187 #include <stdlib.h>
15193 #if defined(__STDC__) || defined(__cplusplus)
15194 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209 (eval $ac_compile) 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest.$ac_objext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 am_cv_proto_iconv_arg1=""
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 am_cv_proto_iconv_arg1="const"
15235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15239 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15240 echo "$as_me:$LINENO: result: ${ac_t:-
15241 }$am_cv_proto_iconv" >&5
15242 echo "${ECHO_T}${ac_t:-
15243 }$am_cv_proto_iconv" >&6
15245 cat >>confdefs.h <<_ACEOF
15246 #define ICONV_CONST $am_cv_proto_iconv_arg1
15251 if test "$am_cv_lib_iconv" = yes; then
15257 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15258 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15259 if test "${am_cv_langinfo_codeset+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 #include <langinfo.h>
15272 char* cs = nl_langinfo(CODESET);
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15279 (eval $ac_link) 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try='test -s conftest$ac_exeext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 am_cv_langinfo_codeset=yes
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 am_cv_langinfo_codeset=no
15305 rm -f conftest.err conftest.$ac_objext \
15306 conftest$ac_exeext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15310 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15311 if test $am_cv_langinfo_codeset = yes; then
15313 cat >>confdefs.h <<\_ACEOF
15314 #define HAVE_LANGINFO_CODESET 1
15319 if test $ac_cv_header_locale_h = yes; then
15320 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15321 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
15322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 cat >conftest.$ac_ext <<_ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 #include <locale.h>
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342 (eval $ac_link) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 am_cv_val_LC_MESSAGES=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 am_cv_val_LC_MESSAGES=no
15368 rm -f conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15371 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15372 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
15373 if test $am_cv_val_LC_MESSAGES = yes; then
15375 cat >>confdefs.h <<\_ACEOF
15376 #define HAVE_LC_MESSAGES 1
15381 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15382 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15383 # Check whether --enable-nls or --disable-nls was given.
15384 if test "${enable_nls+set}" = set; then
15385 enableval="$enable_nls"
15390 echo "$as_me:$LINENO: result: $USE_NLS" >&5
15391 echo "${ECHO_T}$USE_NLS" >&6
15394 BUILD_INCLUDED_LIBINTL=no
15395 USE_INCLUDED_LIBINTL=no
15398 if test "$USE_NLS" = "yes"; then
15400 cat >>confdefs.h <<\_ACEOF
15401 #define ENABLE_NLS 1
15404 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
15405 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
15407 # Check whether --with-included-gettext or --without-included-gettext was given.
15408 if test "${with_included_gettext+set}" = set; then
15409 withval="$with_included_gettext"
15410 nls_cv_force_use_gnu_gettext=$withval
15412 nls_cv_force_use_gnu_gettext=no
15414 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
15415 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
15417 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
15418 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
15424 if test "${ac_cv_header_libintl_h+set}" = set; then
15425 echo "$as_me:$LINENO: checking for libintl.h" >&5
15426 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15427 if test "${ac_cv_header_libintl_h+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15431 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15433 # Is the header compilable?
15434 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15435 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 $ac_includes_default
15443 #include <libintl.h>
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447 (eval $ac_compile) 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_header_compiler=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_header_compiler=no
15473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15479 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <libintl.h>
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null; then
15496 if test -s conftest.err; then
15497 ac_cpp_err=$ac_c_preproc_warn_flag
15498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15505 if test -z "$ac_cpp_err"; then
15506 ac_header_preproc=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_header_preproc=no
15513 rm -f conftest.err conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15515 echo "${ECHO_T}$ac_header_preproc" >&6
15517 # So? What about this header?
15518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15520 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15521 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15523 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15524 ac_header_preproc=yes
15527 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15528 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15530 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15532 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
15534 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15536 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15538 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15541 ## ------------------------------------------ ##
15542 ## Report this to the AC_PACKAGE_NAME lists. ##
15543 ## ------------------------------------------ ##
15546 sed "s/^/$as_me: WARNING: /" >&2
15549 echo "$as_me:$LINENO: checking for libintl.h" >&5
15550 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15551 if test "${ac_cv_header_libintl_h+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 ac_cv_header_libintl_h=$ac_header_preproc
15556 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15557 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15560 if test $ac_cv_header_libintl_h = yes; then
15561 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
15562 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
15563 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 #include <libintl.h>
15573 extern int _nl_msg_cat_cntr;
15577 bindtextdomain ("", "");
15578 return (int) gettext ("") + _nl_msg_cat_cntr
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585 (eval $ac_link) 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 gt_cv_func_gnugettext1_libc=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 gt_cv_func_gnugettext1_libc=no
15611 rm -f conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15614 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
15615 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
15617 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
15618 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15619 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
15620 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 gt_save_LIBS="$LIBS"
15624 LIBS="$LIBS -lintl $LIBICONV"
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <libintl.h>
15632 extern int _nl_msg_cat_cntr;
15636 bindtextdomain ("", "");
15637 return (int) gettext ("") + _nl_msg_cat_cntr
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 gt_cv_func_gnugettext1_libintl=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 gt_cv_func_gnugettext1_libintl=no
15670 rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 LIBS="$gt_save_LIBS"
15674 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
15675 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
15678 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
15679 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
15680 && test "$PACKAGE" != gettext; }; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_GETTEXT 1
15687 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15688 INTLLIBS="-lintl $LIBICONV"
15691 gt_save_LIBS="$LIBS"
15692 LIBS="$LIBS $INTLLIBS"
15694 for ac_func in dcgettext
15696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15697 echo "$as_me:$LINENO: checking for $ac_func" >&5
15698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15699 if eval "test \"\${$as_ac_var+set}\" = set"; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15710 #define $ac_func innocuous_$ac_func
15712 /* System header to define __stub macros and hopefully few prototypes,
15713 which can conflict with char $ac_func (); below.
15714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15715 <limits.h> exists even on freestanding compilers. */
15718 # include <limits.h>
15720 # include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error. */
15730 /* We use char because int might match the return type of a gcc2
15731 builtin and then its argument prototype would still apply. */
15733 /* The GNU C library defines this for functions which it implements
15734 to always fail with ENOSYS. Some functions are actually named
15735 something starting with __ and the normal name is an alias. */
15736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15739 char (*f) () = $ac_func;
15748 return f != $ac_func;
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest$ac_exeext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 eval "$as_ac_var=yes"
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 eval "$as_ac_var=no"
15781 rm -f conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15786 if test `eval echo '${'$as_ac_var'}'` = yes; then
15787 cat >>confdefs.h <<_ACEOF
15788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15794 LIBS="$gt_save_LIBS"
15796 # Extract the first word of "msgfmt", so it can be a program name with args.
15797 set dummy msgfmt; ac_word=$2
15798 echo "$as_me:$LINENO: checking for $ac_word" >&5
15799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15800 if test "${ac_cv_path_MSGFMT+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15809 for ac_dir in $PATH; do
15810 test -z "$ac_dir" && ac_dir=.
15811 if test -f $ac_dir/$ac_word; then
15812 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15813 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15819 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15823 MSGFMT="$ac_cv_path_MSGFMT"
15824 if test "$MSGFMT" != ":"; then
15825 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15826 echo "${ECHO_T}$MSGFMT" >&6
15828 echo "$as_me:$LINENO: result: no" >&5
15829 echo "${ECHO_T}no" >&6
15832 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15833 set dummy gmsgfmt; ac_word=$2
15834 echo "$as_me:$LINENO: checking for $ac_word" >&5
15835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15836 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15848 test -z "$as_dir" && as_dir=.
15849 for ac_exec_ext in '' $ac_executable_extensions; do
15850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15862 GMSGFMT=$ac_cv_path_GMSGFMT
15864 if test -n "$GMSGFMT"; then
15865 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15866 echo "${ECHO_T}$GMSGFMT" >&6
15868 echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6
15873 # Extract the first word of "xgettext", so it can be a program name with args.
15874 set dummy xgettext; ac_word=$2
15875 echo "$as_me:$LINENO: checking for $ac_word" >&5
15876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15877 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 case "$XGETTEXT" in
15882 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15886 for ac_dir in $PATH; do
15887 test -z "$ac_dir" && ac_dir=.
15888 if test -f $ac_dir/$ac_word; then
15889 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15890 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15900 XGETTEXT="$ac_cv_path_XGETTEXT"
15901 if test "$XGETTEXT" != ":"; then
15902 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15903 echo "${ECHO_T}$XGETTEXT" >&6
15905 echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15917 if test "$CATOBJEXT" = "NONE"; then
15918 nls_cv_use_gnu_gettext=yes
15922 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15923 INTLOBJS="\$(GETTOBJS)"
15924 # Extract the first word of "msgfmt", so it can be a program name with args.
15925 set dummy msgfmt; ac_word=$2
15926 echo "$as_me:$LINENO: checking for $ac_word" >&5
15927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15928 if test "${ac_cv_path_MSGFMT+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15937 for ac_dir in $PATH; do
15938 test -z "$ac_dir" && ac_dir=.
15939 if test -f $ac_dir/$ac_word; then
15940 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15941 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15947 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15951 MSGFMT="$ac_cv_path_MSGFMT"
15952 if test "$MSGFMT" != ":"; then
15953 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15954 echo "${ECHO_T}$MSGFMT" >&6
15956 echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6
15960 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15961 set dummy gmsgfmt; ac_word=$2
15962 echo "$as_me:$LINENO: checking for $ac_word" >&5
15963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15964 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15976 test -z "$as_dir" && as_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15986 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15990 GMSGFMT=$ac_cv_path_GMSGFMT
15992 if test -n "$GMSGFMT"; then
15993 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15994 echo "${ECHO_T}$GMSGFMT" >&6
15996 echo "$as_me:$LINENO: result: no" >&5
15997 echo "${ECHO_T}no" >&6
16000 # Extract the first word of "xgettext", so it can be a program name with args.
16001 set dummy xgettext; ac_word=$2
16002 echo "$as_me:$LINENO: checking for $ac_word" >&5
16003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16004 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 case "$XGETTEXT" in
16009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16013 for ac_dir in $PATH; do
16014 test -z "$ac_dir" && ac_dir=.
16015 if test -f $ac_dir/$ac_word; then
16016 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16017 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16023 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16027 XGETTEXT="$ac_cv_path_XGETTEXT"
16028 if test "$XGETTEXT" != ":"; then
16029 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16030 echo "${ECHO_T}$XGETTEXT" >&6
16032 echo "$as_me:$LINENO: result: no" >&5
16033 echo "${ECHO_T}no" >&6
16037 BUILD_INCLUDED_LIBINTL=yes
16038 USE_INCLUDED_LIBINTL=yes
16040 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
16041 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
16044 if test "$GMSGFMT" != ":"; then
16045 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
16048 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
16049 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
16054 if test "$XGETTEXT" != ":"; then
16055 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
16058 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16059 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16066 ac_config_commands="$ac_config_commands default-2"
16070 if test "$PACKAGE" = gettext; then
16071 BUILD_INCLUDED_LIBINTL=yes
16074 for ac_prog in bison
16076 # Extract the first word of "$ac_prog", so it can be a program name with args.
16077 set dummy $ac_prog; ac_word=$2
16078 echo "$as_me:$LINENO: checking for $ac_word" >&5
16079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16080 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 if test -n "$INTLBISON"; then
16084 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16090 test -z "$as_dir" && as_dir=.
16091 for ac_exec_ext in '' $ac_executable_extensions; do
16092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16093 ac_cv_prog_INTLBISON="$ac_prog"
16094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16102 INTLBISON=$ac_cv_prog_INTLBISON
16103 if test -n "$INTLBISON"; then
16104 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16105 echo "${ECHO_T}$INTLBISON" >&6
16107 echo "$as_me:$LINENO: result: no" >&5
16108 echo "${ECHO_T}no" >&6
16111 test -n "$INTLBISON" && break
16114 if test -z "$INTLBISON"; then
16117 echo "$as_me:$LINENO: checking version of bison" >&5
16118 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16119 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16120 case $ac_prog_version in
16121 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16122 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16123 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16124 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16126 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16127 echo "${ECHO_T}$ac_prog_version" >&6
16129 if test $ac_verc_fail = yes; then
16133 for lang in $ALL_LINGUAS; do
16134 GMOFILES="$GMOFILES $lang.gmo"
16135 POFILES="$POFILES $lang.po"
16148 nls_cv_header_intl=
16149 nls_cv_header_libgt=
16161 if test "x$CATOBJEXT" != "x"; then
16162 if test "x$ALL_LINGUAS" = "x"; then
16165 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16166 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
16168 for presentlang in $ALL_LINGUAS; do
16170 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
16171 # Use the presentlang catalog if desiredlang is
16172 # a. equal to presentlang, or
16173 # b. a variant of presentlang (because in this case,
16174 # presentlang can be used as a fallback for messages
16175 # which are not translated in the desiredlang catalog).
16176 case "$desiredlang" in
16177 "$presentlang"*) useit=yes;;
16180 if test $useit = yes; then
16181 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16184 LINGUAS=$NEW_LINGUAS
16185 echo "$as_me:$LINENO: result: $LINGUAS" >&5
16186 echo "${ECHO_T}$LINGUAS" >&6
16189 if test -n "$LINGUAS"; then
16190 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16195 if test -n "$ac_aux_dir"; then
16196 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16198 if test -z "$MKINSTALLDIRS"; then
16199 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16203 INTL_LIBTOOL_SUFFIX_PREFIX=
16207 if test "$am_cv_func_iconv" != "yes"
16209 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
16210 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
16214 for ac_header in iconv.h
16216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16218 echo "$as_me:$LINENO: checking for $ac_header" >&5
16219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16226 # Is the header compilable?
16227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16229 cat >conftest.$ac_ext <<_ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 $ac_includes_default
16236 #include <$ac_header>
16238 rm -f conftest.$ac_objext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240 (eval $ac_compile) 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_header_compiler=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_header_compiler=no
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16268 echo "${ECHO_T}$ac_header_compiler" >&6
16270 # Is the header present?
16271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 #include <$ac_header>
16281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } >/dev/null; then
16289 if test -s conftest.err; then
16290 ac_cpp_err=$ac_c_preproc_warn_flag
16291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16298 if test -z "$ac_cpp_err"; then
16299 ac_header_preproc=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_preproc=no
16306 rm -f conftest.err conftest.$ac_ext
16307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16308 echo "${ECHO_T}$ac_header_preproc" >&6
16310 # So? What about this header?
16311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16317 ac_header_preproc=yes
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16334 ## ------------------------------------------ ##
16335 ## Report this to the AC_PACKAGE_NAME lists. ##
16336 ## ------------------------------------------ ##
16339 sed "s/^/$as_me: WARNING: /" >&2
16342 echo "$as_me:$LINENO: checking for $ac_header" >&5
16343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 eval "$as_ac_Header=\$ac_header_preproc"
16349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
16358 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16369 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
16370 echo "$as_me:$LINENO: result: yes" >&5
16371 echo "${ECHO_T}yes" >&6
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_ICONV_T_DEF 1
16378 echo "$as_me:$LINENO: result: no" >&5
16379 echo "${ECHO_T}no" >&6
16388 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
16389 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
16390 if test "${mutt_cv_iconv_good+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 mutt_save_LIBS="$LIBS"
16394 LIBS="$LIBS $LIBICONV"
16395 if test "$cross_compiling" = yes; then
16396 mutt_cv_iconv_good=yes
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16412 ob = buf, obl = sizeof(buf);
16413 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
16414 (iconv(cd, 0, 0, &ob, &obl) ||
16415 !(ob == buf && obl == sizeof(buf)) ||
16420 rm -f conftest$ac_exeext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16422 (eval $ac_link) 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 mutt_cv_iconv_good=yes
16433 echo "$as_me: program exited with status $ac_status" >&5
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ( exit $ac_status )
16438 mutt_cv_iconv_good=no
16440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16442 LIBS="$mutt_save_LIBS"
16444 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
16445 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
16446 if test "$mutt_cv_iconv_good" = no; then
16447 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
16448 echo "$as_me: error: Try using libiconv instead" >&2;}
16449 { (exit 1); exit 1; }; }
16452 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
16453 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
16454 if test "${mutt_cv_iconv_nontrans+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 mutt_save_LIBS="$LIBS"
16458 LIBS="$LIBS $LIBICONV"
16459 if test "$cross_compiling" = yes; then
16460 mutt_cv_iconv_nontrans=no
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16470 #include <string.h>
16477 const char *s = "\304\211";
16479 ib = s, ibl = 2, ob = t, obl = 3;
16480 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
16481 iconv(cd, &ib, &ibl, &ob, &obl));
16485 rm -f conftest$ac_exeext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16487 (eval $ac_link) 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 mutt_cv_iconv_nontrans=no
16498 echo "$as_me: program exited with status $ac_status" >&5
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ( exit $ac_status )
16503 mutt_cv_iconv_nontrans=yes
16505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16507 LIBS="$mutt_save_LIBS"
16509 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
16510 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
16511 if test "$mutt_cv_iconv_nontrans" = yes; then
16512 cat >>confdefs.h <<\_ACEOF
16513 #define ICONV_NONTRANS 1
16517 cat >>confdefs.h <<\_ACEOF
16518 #define ICONV_NONTRANS 0
16523 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
16525 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
16527 cat >>confdefs.h <<\_ACEOF
16528 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16533 for ac_func in bind_textdomain_codeset
16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536 echo "$as_me:$LINENO: checking for $ac_func" >&5
16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_var+set}\" = set"; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16549 #define $ac_func innocuous_$ac_func
16551 /* System header to define __stub macros and hopefully few prototypes,
16552 which can conflict with char $ac_func (); below.
16553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554 <limits.h> exists even on freestanding compilers. */
16557 # include <limits.h>
16559 # include <assert.h>
16564 /* Override any gcc2 internal prototype to avoid an error. */
16569 /* We use char because int might match the return type of a gcc2
16570 builtin and then its argument prototype would still apply. */
16572 /* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16578 char (*f) () = $ac_func;
16587 return f != $ac_func;
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$as_ac_var=yes"
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 eval "$as_ac_var=no"
16620 rm -f conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16625 if test `eval echo '${'$as_ac_var'}'` = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16639 for ac_header in wchar.h
16641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16643 echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16651 # Is the header compilable?
16652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 $ac_includes_default
16661 #include <$ac_header>
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_header_compiler=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_header_compiler=no
16691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16693 echo "${ECHO_T}$ac_header_compiler" >&6
16695 # Is the header present?
16696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <$ac_header>
16706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } >/dev/null; then
16714 if test -s conftest.err; then
16715 ac_cpp_err=$ac_c_preproc_warn_flag
16716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16723 if test -z "$ac_cpp_err"; then
16724 ac_header_preproc=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_header_preproc=no
16731 rm -f conftest.err conftest.$ac_ext
16732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16733 echo "${ECHO_T}$ac_header_preproc" >&6
16735 # So? What about this header?
16736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16742 ac_header_preproc=yes
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16759 ## ------------------------------------------ ##
16760 ## Report this to the AC_PACKAGE_NAME lists. ##
16761 ## ------------------------------------------ ##
16764 sed "s/^/$as_me: WARNING: /" >&2
16767 echo "$as_me:$LINENO: checking for $ac_header" >&5
16768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 eval "$as_ac_Header=\$ac_header_preproc"
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16788 echo "$as_me:$LINENO: checking for wchar_t" >&5
16789 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
16790 if test "${mutt_cv_wchar_t+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16800 #include <stddef.h>
16801 #include <stdlib.h>
16802 #ifdef HAVE_WCHAR_H
16809 wchar_t wc; return 0;
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816 (eval $ac_compile) 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 mutt_cv_wchar_t=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16844 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
16845 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
16847 if test "$mutt_cv_wchar_t" = no; then
16849 cat >>confdefs.h <<\_ACEOF
16850 #define wchar_t int
16855 echo "$as_me:$LINENO: checking for wint_t" >&5
16856 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
16857 if test "${mutt_cv_wint_t+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16867 #include <stddef.h>
16868 #include <stdlib.h>
16869 #ifdef HAVE_WCHAR_H
16876 wint_t wc; return 0;
16881 rm -f conftest.$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16911 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
16912 echo "${ECHO_T}$mutt_cv_wint_t" >&6
16914 if test "$mutt_cv_wint_t" = no; then
16916 cat >>confdefs.h <<\_ACEOF
16923 for ac_header in wctype.h
16925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16927 echo "$as_me:$LINENO: checking for $ac_header" >&5
16928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16935 # Is the header compilable?
16936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
16945 #include <$ac_header>
16947 rm -f conftest.$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; } &&
16962 { ac_try='test -s conftest.$ac_objext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_header_compiler=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_header_compiler=no
16975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6
16979 # Is the header present?
16980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <$ac_header>
16990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } >/dev/null; then
16998 if test -s conftest.err; then
16999 ac_cpp_err=$ac_c_preproc_warn_flag
17000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17007 if test -z "$ac_cpp_err"; then
17008 ac_header_preproc=yes
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026 ac_header_preproc=yes
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17043 ## ------------------------------------------ ##
17044 ## Report this to the AC_PACKAGE_NAME lists. ##
17045 ## ------------------------------------------ ##
17048 sed "s/^/$as_me: WARNING: /" >&2
17051 echo "$as_me:$LINENO: checking for $ac_header" >&5
17052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 eval "$as_ac_Header=\$ac_header_preproc"
17058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17075 for ac_func in iswalnum iswalpha iswcntrl iswdigit
17077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17078 echo "$as_me:$LINENO: checking for $ac_func" >&5
17079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17080 if eval "test \"\${$as_ac_var+set}\" = set"; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 cat >conftest.$ac_ext <<_ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17091 #define $ac_func innocuous_$ac_func
17093 /* System header to define __stub macros and hopefully few prototypes,
17094 which can conflict with char $ac_func (); below.
17095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17096 <limits.h> exists even on freestanding compilers. */
17099 # include <limits.h>
17101 # include <assert.h>
17106 /* Override any gcc2 internal prototype to avoid an error. */
17111 /* We use char because int might match the return type of a gcc2
17112 builtin and then its argument prototype would still apply. */
17114 /* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17120 char (*f) () = $ac_func;
17129 return f != $ac_func;
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; } &&
17149 { ac_try='test -s conftest$ac_exeext'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 eval "$as_ac_var=yes"
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 eval "$as_ac_var=no"
17162 rm -f conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17168 cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17181 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
17183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17186 if eval "test \"\${$as_ac_var+set}\" = set"; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17197 #define $ac_func innocuous_$ac_func
17199 /* System header to define __stub macros and hopefully few prototypes,
17200 which can conflict with char $ac_func (); below.
17201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202 <limits.h> exists even on freestanding compilers. */
17205 # include <limits.h>
17207 # include <assert.h>
17212 /* Override any gcc2 internal prototype to avoid an error. */
17217 /* We use char because int might match the return type of a gcc2
17218 builtin and then its argument prototype would still apply. */
17220 /* The GNU C library defines this for functions which it implements
17221 to always fail with ENOSYS. Some functions are actually named
17222 something starting with __ and the normal name is an alias. */
17223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17226 char (*f) () = $ac_func;
17235 return f != $ac_func;
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 eval "$as_ac_var=no"
17268 rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17284 for ac_func in iswxdigit towupper towlower
17286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17287 echo "$as_me:$LINENO: checking for $ac_func" >&5
17288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17289 if eval "test \"\${$as_ac_var+set}\" = set"; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17300 #define $ac_func innocuous_$ac_func
17302 /* System header to define __stub macros and hopefully few prototypes,
17303 which can conflict with char $ac_func (); below.
17304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17305 <limits.h> exists even on freestanding compilers. */
17308 # include <limits.h>
17310 # include <assert.h>
17315 /* Override any gcc2 internal prototype to avoid an error. */
17320 /* We use char because int might match the return type of a gcc2
17321 builtin and then its argument prototype would still apply. */
17323 /* The GNU C library defines this for functions which it implements
17324 to always fail with ENOSYS. Some functions are actually named
17325 something starting with __ and the normal name is an alias. */
17326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17329 char (*f) () = $ac_func;
17338 return f != $ac_func;
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345 (eval $ac_link) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 eval "$as_ac_var=yes"
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 eval "$as_ac_var=no"
17371 rm -f conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17385 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17386 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17387 if test "${mutt_cv_mbstate_t+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17397 #include <stddef.h>
17398 #include <stdlib.h>
17399 #ifdef HAVE_WCHAR_H
17406 mbstate_t s; return 0;
17411 rm -f conftest.$ac_objext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413 (eval $ac_compile) 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 mutt_cv_mbstate_t=yes
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 mutt_cv_mbstate_t=no
17439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17441 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
17442 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
17444 if test "$mutt_cv_mbstate_t" = no; then
17446 cat >>confdefs.h <<\_ACEOF
17447 #define mbstate_t int
17454 # Check whether --with-wc-funcs or --without-wc-funcs was given.
17455 if test "${with_wc_funcs+set}" = set; then
17456 withval="$with_wc_funcs"
17460 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
17461 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
17462 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
17463 if test "${mutt_cv_wc_funcs+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 mutt_cv_wc_funcs=no
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17474 #define _XOPEN_SOURCE 1
17475 #include <stddef.h>
17476 #include <stdlib.h>
17477 #ifdef HAVE_WCTYPE_H
17478 #include <wctype.h>
17480 #ifdef HAVE_WCHAR_H
17486 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
17487 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
17492 rm -f conftest.$ac_objext conftest$ac_exeext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17494 (eval $ac_link) 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 mutt_cv_wc_funcs=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17519 rm -f conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17522 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
17523 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
17524 wc_funcs=$mutt_cv_wc_funcs
17527 if test $wc_funcs = yes; then
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_WC_FUNCS 1
17535 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17536 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17537 if test "${mutt_cv_langinfo_codeset+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <langinfo.h>
17550 char* cs = nl_langinfo(CODESET);
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>conftest.er1
17559 grep -v '^ *+' conftest.er1 >conftest.err
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 mutt_cv_langinfo_codeset=yes
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 mutt_cv_langinfo_codeset=no
17583 rm -f conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17586 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
17587 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
17588 if test $mutt_cv_langinfo_codeset = yes; then
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_LANGINFO_CODESET 1
17596 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
17597 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
17598 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 #include <langinfo.h>
17611 char* cs = nl_langinfo(YESEXPR);
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 mutt_cv_langinfo_yesexpr=yes
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 mutt_cv_langinfo_yesexpr=no
17644 rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17647 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
17648 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
17649 if test $mutt_cv_langinfo_yesexpr = yes; then
17651 cat >>confdefs.h <<\_ACEOF
17652 #define HAVE_LANGINFO_YESEXPR 1
17659 # Check whether --with-libesmtp or --without-libesmtp was given.
17660 if test "${with_libesmtp+set}" = set; then
17661 withval="$with_libesmtp"
17662 if test "$with_libesmtp" != "no"
17664 mutt_libesmtp_check_path="$PATH"
17666 if test "$with_libesmtp" != "yes"
17668 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
17671 # Extract the first word of "libesmtp-config", so it can be a program name with args.
17672 set dummy libesmtp-config; ac_word=$2
17673 echo "$as_me:$LINENO: checking for $ac_word" >&5
17674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17675 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 case $mutt_libesmtp_config_path in
17680 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
17683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17684 for as_dir in $mutt_libesmtp_check_path
17687 test -z "$as_dir" && as_dir=.
17688 for ac_exec_ext in '' $ac_executable_extensions; do
17689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17690 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
17691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17697 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
17701 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
17703 if test -n "$mutt_libesmtp_config_path"; then
17704 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
17705 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
17707 echo "$as_me:$LINENO: result: no" >&5
17708 echo "${ECHO_T}no" >&6
17712 if test "$mutt_libesmtp_config_path" = "no"
17714 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
17715 echo "$as_me: error: libesmtp-config binary not found." >&2;}
17716 { (exit 1); exit 1; }; }
17719 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
17720 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
17722 temp_CFLAGS="$CFLAGS"
17723 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17724 if test "${ac_cv_header_libesmtp_h+set}" = set; then
17725 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
17726 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
17727 if test "${ac_cv_header_libesmtp_h+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
17731 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
17733 # Is the header compilable?
17734 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
17735 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
17736 cat >conftest.$ac_ext <<_ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17742 $ac_includes_default
17743 #include <libesmtp.h>
17745 rm -f conftest.$ac_objext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747 (eval $ac_compile) 2>conftest.er1
17749 grep -v '^ *+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_header_compiler=yes
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_header_compiler=no
17773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17775 echo "${ECHO_T}$ac_header_compiler" >&6
17777 # Is the header present?
17778 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
17779 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <libesmtp.h>
17788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } >/dev/null; then
17796 if test -s conftest.err; then
17797 ac_cpp_err=$ac_c_preproc_warn_flag
17798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17805 if test -z "$ac_cpp_err"; then
17806 ac_header_preproc=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_header_preproc=no
17813 rm -f conftest.err conftest.$ac_ext
17814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17815 echo "${ECHO_T}$ac_header_preproc" >&6
17817 # So? What about this header?
17818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17820 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
17821 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17822 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
17823 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
17824 ac_header_preproc=yes
17827 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
17828 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
17829 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
17830 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
17832 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&5
17834 echo "$as_me: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
17835 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
17836 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
17837 { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
17838 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
17841 ## ------------------------------------------ ##
17842 ## Report this to the AC_PACKAGE_NAME lists. ##
17843 ## ------------------------------------------ ##
17846 sed "s/^/$as_me: WARNING: /" >&2
17849 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
17850 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
17851 if test "${ac_cv_header_libesmtp_h+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 ac_cv_header_libesmtp_h=$ac_header_preproc
17856 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
17857 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
17860 if test $ac_cv_header_libesmtp_h = yes; then
17863 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
17864 echo "$as_me: error: Could not find libesmtp.h" >&2;}
17865 { (exit 1); exit 1; }; }
17869 CFLAGS="$temp_CFLAGS"
17871 temp_CFLAGS="$CFLAGS"
17873 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17874 LIBS="$LIBS $mutt_libesmtp_libs"
17876 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
17877 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
17878 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lesmtp $LIBS"
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17890 /* Override any gcc2 internal prototype to avoid an error. */
17894 /* We use char because int might match the return type of a gcc2
17895 builtin and then its argument prototype would still apply. */
17896 char smtp_create_session ();
17900 smtp_create_session ();
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_esmtp_smtp_create_session=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_esmtp_smtp_create_session=no
17933 rm -f conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
17938 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
17939 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
17940 cat >>confdefs.h <<_ACEOF
17941 #define HAVE_LIBESMTP 1
17944 LIBS="-lesmtp $LIBS"
17947 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
17948 echo "$as_me: error: Could not find libesmtp" >&2;}
17949 { (exit 1); exit 1; }; }
17952 CFLAGS="$temp_CFLAGS"
17961 if test x$use_libesmtp = xyes; then
17962 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17963 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
17964 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
17967 cat >>confdefs.h <<\_ACEOF
17968 #define USE_LIBESMTP 1
17973 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
17974 cat >confcache <<\_ACEOF
17975 # This file is a shell script that caches the results of configure
17976 # tests run on this system so they can be shared between configure
17977 # scripts and configure runs, see configure's option --config-cache.
17978 # It is not useful on other systems. If it contains results you don't
17979 # want to keep, you may remove or edit it.
17981 # config.status only pays attention to the cache file if you give it
17982 # the --recheck option to rerun configure.
17984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17986 # following values.
17990 # The following way of writing the cache mishandles newlines in values,
17991 # but we know of no workaround that is simple, portable, and efficient.
17992 # So, don't put newlines in cache variables' values.
17993 # Ultrix sh set writes to stderr and can't be redirected directly,
17994 # and sets the high bit in the cache file unless we assign to the vars.
17997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17999 # `set' does not quote correctly, so add quotes (double-quote
18000 # substitution turns \\\\ into \\, and sed turns \\ into \).
18003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18006 # `set' quotes correctly as required by POSIX, so do not add quotes.
18008 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18017 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18020 if test -w $cache_file; then
18021 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18022 cat confcache >$cache_file
18024 echo "not updating unwritable cache $cache_file"
18029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18030 # Let make expand exec_prefix.
18031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18035 # trailing colons and then remove the whole line if VPATH becomes empty
18036 # (actually we leave an empty line to preserve line numbers).
18037 if test "x$srcdir" = x.; then
18038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18039 s/:*\$(srcdir):*/:/;
18040 s/:*\${srcdir}:*/:/;
18042 s/^\([^=]*=[ ]*\):*/\1/;
18048 DEFS=-DHAVE_CONFIG_H
18052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18053 # 1. Remove the extension, and $U if already installed.
18054 ac_i=`echo "$ac_i" |
18055 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18057 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18058 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18060 LIBOBJS=$ac_libobjs
18062 LTLIBOBJS=$ac_ltlibobjs
18066 : ${CONFIG_STATUS=./config.status}
18067 ac_clean_files_save=$ac_clean_files
18068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18071 cat >$CONFIG_STATUS <<_ACEOF
18073 # Generated by $as_me.
18074 # Run this file to recreate the current configuration.
18075 # Compiler output produced by configure, useful for debugging
18076 # configure, is in config.log if it exists.
18079 ac_cs_recheck=false
18081 SHELL=\${CONFIG_SHELL-$SHELL}
18084 cat >>$CONFIG_STATUS <<\_ACEOF
18085 ## --------------------- ##
18086 ## M4sh Initialization. ##
18087 ## --------------------- ##
18089 # Be Bourne compatible
18090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18093 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18094 # is contrary to our usage. Disable this feature.
18095 alias -g '${1+"$@"}'='"$@"'
18096 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18099 DUALCASE=1; export DUALCASE # for MKS sh
18101 # Support unset when possible.
18102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18109 # Work around bugs in pre-3.0 UWIN ksh.
18110 $as_unset ENV MAIL MAILPATH
18117 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18118 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18119 LC_TELEPHONE LC_TIME
18121 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18122 eval $as_var=C; export $as_var
18128 # Required to use basename.
18129 if expr a : '\(a\)' >/dev/null 2>&1; then
18135 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18136 as_basename=basename
18142 # Name of the executable.
18143 as_me=`$as_basename "$0" ||
18144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18145 X"$0" : 'X\(//\)$' \| \
18146 X"$0" : 'X\(/\)$' \| \
18147 . : '\(.\)' 2>/dev/null ||
18149 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18150 /^X\/\(\/\/\)$/{ s//\1/; q; }
18151 /^X\/\(\/\).*/{ s//\1/; q; }
18155 # PATH needs CR, and LINENO needs CR and PATH.
18156 # Avoid depending upon Character Ranges.
18157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18160 as_cr_digits='0123456789'
18161 as_cr_alnum=$as_cr_Letters$as_cr_digits
18163 # The user is always right.
18164 if test "${PATH_SEPARATOR+set}" != set; then
18165 echo "#! /bin/sh" >conf$$.sh
18166 echo "exit 0" >>conf$$.sh
18168 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18177 as_lineno_1=$LINENO
18178 as_lineno_2=$LINENO
18179 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18180 test "x$as_lineno_1" != "x$as_lineno_2" &&
18181 test "x$as_lineno_3" = "x$as_lineno_2" || {
18182 # Find who we are. Look in the path if we contain no path at all
18185 *[\\/]* ) as_myself=$0 ;;
18186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18187 for as_dir in $PATH
18190 test -z "$as_dir" && as_dir=.
18191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18196 # We did not find ourselves, most probably we were run as `sh COMMAND'
18197 # in which case we are not to be found in the path.
18198 if test "x$as_myself" = x; then
18201 if test ! -f "$as_myself"; then
18202 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18203 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18204 { (exit 1); exit 1; }; }
18206 case $CONFIG_SHELL in
18208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18212 test -z "$as_dir" && as_dir=.
18213 for as_base in sh bash ksh sh5; do
18216 if ("$as_dir/$as_base" -c '
18217 as_lineno_1=$LINENO
18218 as_lineno_2=$LINENO
18219 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18220 test "x$as_lineno_1" != "x$as_lineno_2" &&
18221 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18222 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18223 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18224 CONFIG_SHELL=$as_dir/$as_base
18225 export CONFIG_SHELL
18226 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18234 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18235 # uniformly replaced by the line number. The first 'sed' inserts a
18236 # line-number line before each line; the second 'sed' does the real
18237 # work. The second script uses 'N' to pair each line-number line
18238 # with the numbered line, and appends trailing '-' during
18239 # substitution so that $LINENO is not a special case at line end.
18240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18241 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18242 sed '=' <$as_myself |
18247 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18250 s,^['$as_cr_digits']*\n,,
18251 ' >$as_me.lineno &&
18252 chmod +x $as_me.lineno ||
18253 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18254 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18255 { (exit 1); exit 1; }; }
18257 # Don't try to exec as it changes $[0], causing all sort of problems
18258 # (the dirname of $[0] is not the place where we might find the
18259 # original and so on. Autoconf is especially sensible to this).
18261 # Exit status is that of the last command.
18266 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18267 *c*,-n*) ECHO_N= ECHO_C='
18269 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18270 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18273 if expr a : '\(a\)' >/dev/null 2>&1; then
18279 rm -f conf$$ conf$$.exe conf$$.file
18281 if ln -s conf$$.file conf$$ 2>/dev/null; then
18282 # We could just check for DJGPP; but this test a) works b) is more generic
18283 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18284 if test -f conf$$.exe; then
18285 # Don't use ln at all; we don't have any links
18290 elif ln conf$$.file conf$$ 2>/dev/null; then
18295 rm -f conf$$ conf$$.exe conf$$.file
18297 if mkdir -p . 2>/dev/null; then
18300 test -d ./-p && rmdir ./-p
18304 as_executable_p="test -f"
18306 # Sed expression to map a string onto a valid CPP name.
18307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18309 # Sed expression to map a string onto a valid variable name.
18310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18314 # We need space, tab and new line, in precisely that order.
18324 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18325 # report actual input values of CONFIG_FILES etc. instead of their
18326 # values after options handling. Logging --version etc. is OK.
18330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18331 ## Running $as_me. ##
18336 This file was extended by $as_me, which was
18337 generated by GNU Autoconf 2.59. Invocation command line was
18339 CONFIG_FILES = $CONFIG_FILES
18340 CONFIG_HEADERS = $CONFIG_HEADERS
18341 CONFIG_LINKS = $CONFIG_LINKS
18342 CONFIG_COMMANDS = $CONFIG_COMMANDS
18346 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18350 # Files that config.status was made for.
18351 if test -n "$ac_config_files"; then
18352 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18355 if test -n "$ac_config_headers"; then
18356 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18359 if test -n "$ac_config_links"; then
18360 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18363 if test -n "$ac_config_commands"; then
18364 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18367 cat >>$CONFIG_STATUS <<\_ACEOF
18370 \`$as_me' instantiates files from templates according to the
18371 current configuration.
18373 Usage: $0 [OPTIONS] [FILE]...
18375 -h, --help print this help, then exit
18376 -V, --version print version number, then exit
18377 -q, --quiet do not print progress messages
18378 -d, --debug don't remove temporary files
18379 --recheck update $as_me by reconfiguring in the same conditions
18380 --file=FILE[:TEMPLATE]
18381 instantiate the configuration file FILE
18382 --header=FILE[:TEMPLATE]
18383 instantiate the configuration header FILE
18385 Configuration files:
18388 Configuration headers:
18391 Configuration commands:
18394 Report bugs to <bug-autoconf@gnu.org>."
18397 cat >>$CONFIG_STATUS <<_ACEOF
18400 configured by $0, generated by GNU Autoconf 2.59,
18401 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18403 Copyright (C) 2003 Free Software Foundation, Inc.
18404 This config.status script is free software; the Free Software Foundation
18405 gives unlimited permission to copy, distribute and modify it."
18410 cat >>$CONFIG_STATUS <<\_ACEOF
18411 # If no file are specified by the user, then we need to provide default
18412 # value. By we need to know if files were specified by the user.
18418 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18419 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18427 *) # This is not an option, so the user has probably given explicit
18430 ac_need_defaults=false;;
18434 # Handling of the options.
18436 cat >>$CONFIG_STATUS <<\_ACEOF
18437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18439 --version | --vers* | -V )
18440 echo "$ac_cs_version"; exit 0 ;;
18442 # Conflict between --help and --header
18443 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18444 Try \`$0 --help' for more information." >&5
18445 echo "$as_me: error: ambiguous option: $1
18446 Try \`$0 --help' for more information." >&2;}
18447 { (exit 1); exit 1; }; };;
18448 --help | --hel | -h )
18449 echo "$ac_cs_usage"; exit 0 ;;
18450 --debug | --d* | -d )
18452 --file | --fil | --fi | --f )
18454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18455 ac_need_defaults=false;;
18456 --header | --heade | --head | --hea )
18458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18459 ac_need_defaults=false;;
18460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18464 # This is an error.
18465 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18466 Try \`$0 --help' for more information." >&5
18467 echo "$as_me: error: unrecognized option: $1
18468 Try \`$0 --help' for more information." >&2;}
18469 { (exit 1); exit 1; }; } ;;
18471 *) ac_config_targets="$ac_config_targets $1" ;;
18477 ac_configure_extra_args=
18479 if $ac_cs_silent; then
18481 ac_configure_extra_args="$ac_configure_extra_args --silent"
18485 cat >>$CONFIG_STATUS <<_ACEOF
18486 if \$ac_cs_recheck; then
18487 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18488 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18493 cat >>$CONFIG_STATUS <<_ACEOF
18495 # INIT-COMMANDS section.
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18506 for ac_config_target in $ac_config_targets
18508 case "$ac_config_target" in
18509 # Handling of arguments.
18510 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18511 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18512 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18513 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18514 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18515 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18516 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
18517 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
18518 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
18519 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
18520 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18521 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18522 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18523 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18524 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18525 { (exit 1); exit 1; }; };;
18529 # If the user did not use the arguments to specify the items to instantiate,
18530 # then the envvar interface is used. Set only those that are not.
18531 # We use the long form for the default assignment because of an extremely
18532 # bizarre bug on SunOS 4.1.3.
18533 if $ac_need_defaults; then
18534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18536 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18539 # Have a temporary directory for convenience. Make it in the build tree
18540 # simply because there is no reason to put it here, and in addition,
18541 # creating and moving files from /tmp can sometimes cause problems.
18542 # Create a temporary directory, and hook for its removal unless debugging.
18545 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18546 trap '{ (exit 1); exit 1; }' 1 2 13 15
18549 # Create a (secure) tmp directory for tmp files.
18552 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18553 test -n "$tmp" && test -d "$tmp"
18556 tmp=./confstat$$-$RANDOM
18557 (umask 077 && mkdir $tmp)
18560 echo "$me: cannot create a temporary directory in ." >&2
18561 { (exit 1); exit 1; }
18566 cat >>$CONFIG_STATUS <<_ACEOF
18569 # CONFIG_FILES section.
18572 # No need to generate the scripts if there are no CONFIG_FILES.
18573 # This happens for instance when ./config.status config.h
18574 if test -n "\$CONFIG_FILES"; then
18575 # Protect against being on the right side of a sed subst in config.status.
18576 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18577 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18578 s,@SHELL@,$SHELL,;t t
18579 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18580 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18581 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18582 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18583 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18584 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18585 s,@exec_prefix@,$exec_prefix,;t t
18586 s,@prefix@,$prefix,;t t
18587 s,@program_transform_name@,$program_transform_name,;t t
18588 s,@bindir@,$bindir,;t t
18589 s,@sbindir@,$sbindir,;t t
18590 s,@libexecdir@,$libexecdir,;t t
18591 s,@datadir@,$datadir,;t t
18592 s,@sysconfdir@,$sysconfdir,;t t
18593 s,@sharedstatedir@,$sharedstatedir,;t t
18594 s,@localstatedir@,$localstatedir,;t t
18595 s,@libdir@,$libdir,;t t
18596 s,@includedir@,$includedir,;t t
18597 s,@oldincludedir@,$oldincludedir,;t t
18598 s,@infodir@,$infodir,;t t
18599 s,@mandir@,$mandir,;t t
18600 s,@build_alias@,$build_alias,;t t
18601 s,@host_alias@,$host_alias,;t t
18602 s,@target_alias@,$target_alias,;t t
18603 s,@DEFS@,$DEFS,;t t
18604 s,@ECHO_C@,$ECHO_C,;t t
18605 s,@ECHO_N@,$ECHO_N,;t t
18606 s,@ECHO_T@,$ECHO_T,;t t
18607 s,@LIBS@,$LIBS,;t t
18608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18611 s,@PACKAGE@,$PACKAGE,;t t
18612 s,@VERSION@,$VERSION,;t t
18613 s,@ACLOCAL@,$ACLOCAL,;t t
18614 s,@AUTOCONF@,$AUTOCONF,;t t
18615 s,@AUTOMAKE@,$AUTOMAKE,;t t
18616 s,@AUTOHEADER@,$AUTOHEADER,;t t
18617 s,@MAKEINFO@,$MAKEINFO,;t t
18618 s,@SET_MAKE@,$SET_MAKE,;t t
18619 s,@build@,$build,;t t
18620 s,@build_cpu@,$build_cpu,;t t
18621 s,@build_vendor@,$build_vendor,;t t
18622 s,@build_os@,$build_os,;t t
18623 s,@host@,$host,;t t
18624 s,@host_cpu@,$host_cpu,;t t
18625 s,@host_vendor@,$host_vendor,;t t
18626 s,@host_os@,$host_os,;t t
18628 s,@CFLAGS@,$CFLAGS,;t t
18629 s,@LDFLAGS@,$LDFLAGS,;t t
18630 s,@CPPFLAGS@,$CPPFLAGS,;t t
18631 s,@ac_ct_CC@,$ac_ct_CC,;t t
18632 s,@EXEEXT@,$EXEEXT,;t t
18633 s,@OBJEXT@,$OBJEXT,;t t
18635 s,@EGREP@,$EGREP,;t t
18637 s,@ANSI2KNR@,$ANSI2KNR,;t t
18638 s,@RANLIB@,$RANLIB,;t t
18639 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18641 s,@ac_ct_AR@,$ac_ct_AR,;t t
18645 s,@DEBUGGER@,$DEBUGGER,;t t
18646 s,@SENDMAIL@,$SENDMAIL,;t t
18647 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
18648 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
18649 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
18651 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
18652 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
18653 s,@SUBVERSION@,$SUBVERSION,;t t
18654 s,@ISPELL@,$ISPELL,;t t
18655 s,@LIBOBJS@,$LIBOBJS,;t t
18656 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
18657 s,@docdir@,$docdir,;t t
18658 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
18659 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
18660 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
18661 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
18662 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
18663 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
18664 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
18665 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
18666 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
18667 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
18668 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
18669 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
18670 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
18671 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
18672 s,@MUTTLIBS@,$MUTTLIBS,;t t
18673 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
18674 s,@LIBIMAP@,$LIBIMAP,;t t
18675 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
18676 s,@ALLOCA@,$ALLOCA,;t t
18677 s,@GLIBC21@,$GLIBC21,;t t
18678 s,@LIBICONV@,$LIBICONV,;t t
18679 s,@USE_NLS@,$USE_NLS,;t t
18680 s,@MSGFMT@,$MSGFMT,;t t
18681 s,@GMSGFMT@,$GMSGFMT,;t t
18682 s,@XGETTEXT@,$XGETTEXT,;t t
18683 s,@INTLBISON@,$INTLBISON,;t t
18684 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
18685 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18686 s,@CATALOGS@,$CATALOGS,;t t
18687 s,@CATOBJEXT@,$CATOBJEXT,;t t
18688 s,@GMOFILES@,$GMOFILES,;t t
18689 s,@INTLLIBS@,$INTLLIBS,;t t
18690 s,@INTLOBJS@,$INTLOBJS,;t t
18691 s,@POFILES@,$POFILES,;t t
18692 s,@POSUB@,$POSUB,;t t
18693 s,@DATADIRNAME@,$DATADIRNAME,;t t
18694 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18695 s,@GENCAT@,$GENCAT,;t t
18696 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18697 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
18698 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
18699 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18704 cat >>$CONFIG_STATUS <<\_ACEOF
18705 # Split the substitutions into bite-sized pieces for seds with
18706 # small command number limits, like on Digital OSF/1 and HP-UX.
18707 ac_max_sed_lines=48
18708 ac_sed_frag=1 # Number of current file.
18709 ac_beg=1 # First line for current file.
18710 ac_end=$ac_max_sed_lines # Line after last line for current file.
18713 while $ac_more_lines; do
18714 if test $ac_beg -gt 1; then
18715 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18717 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18719 if test ! -s $tmp/subs.frag; then
18720 ac_more_lines=false
18722 # The purpose of the label and of the branching condition is to
18723 # speed up the sed processing (if there are no `@' at all, there
18724 # is no need to browse any of the substitutions).
18725 # These are the two extra sed commands mentioned above.
18727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18728 if test -z "$ac_sed_cmds"; then
18729 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18731 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18733 ac_sed_frag=`expr $ac_sed_frag + 1`
18735 ac_end=`expr $ac_end + $ac_max_sed_lines`
18738 if test -z "$ac_sed_cmds"; then
18741 fi # test -n "$CONFIG_FILES"
18744 cat >>$CONFIG_STATUS <<\_ACEOF
18745 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18746 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18748 - | *:- | *:-:* ) # input from stdin
18750 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18752 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18754 * ) ac_file_in=$ac_file.in ;;
18757 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18758 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18760 X"$ac_file" : 'X\(//\)[^/]' \| \
18761 X"$ac_file" : 'X\(//\)$' \| \
18762 X"$ac_file" : 'X\(/\)' \| \
18763 . : '\(.\)' 2>/dev/null ||
18765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18767 /^X\(\/\/\)$/{ s//\1/; q; }
18768 /^X\(\/\).*/{ s//\1/; q; }
18770 { if $as_mkdir_p; then
18775 while test ! -d "$as_dir"; do
18776 as_dirs="$as_dir $as_dirs"
18777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18779 X"$as_dir" : 'X\(//\)[^/]' \| \
18780 X"$as_dir" : 'X\(//\)$' \| \
18781 X"$as_dir" : 'X\(/\)' \| \
18782 . : '\(.\)' 2>/dev/null ||
18784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18786 /^X\(\/\/\)$/{ s//\1/; q; }
18787 /^X\(\/\).*/{ s//\1/; q; }
18790 test ! -n "$as_dirs" || mkdir $as_dirs
18791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18793 { (exit 1); exit 1; }; }; }
18797 if test "$ac_dir" != .; then
18798 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18799 # A "../" for each directory in $ac_dir_suffix.
18800 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18802 ac_dir_suffix= ac_top_builddir=
18806 .) # No --srcdir option. We are building in place.
18808 if test -z "$ac_top_builddir"; then
18811 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18813 [\\/]* | ?:[\\/]* ) # Absolute path.
18814 ac_srcdir=$srcdir$ac_dir_suffix;
18815 ac_top_srcdir=$srcdir ;;
18816 *) # Relative path.
18817 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18818 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18821 # Do not use `cd foo && pwd` to compute absolute paths, because
18822 # the directories may not exist.
18824 .) ac_abs_builddir="$ac_dir";;
18827 .) ac_abs_builddir=`pwd`;;
18828 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18829 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18832 case $ac_abs_builddir in
18833 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18835 case ${ac_top_builddir}. in
18836 .) ac_abs_top_builddir=$ac_abs_builddir;;
18837 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18838 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18841 case $ac_abs_builddir in
18842 .) ac_abs_srcdir=$ac_srcdir;;
18845 .) ac_abs_srcdir=$ac_abs_builddir;;
18846 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18847 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18850 case $ac_abs_builddir in
18851 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18853 case $ac_top_srcdir in
18854 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18855 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18856 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18863 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18866 # Let's still pretend it is `configure' which instantiates (i.e., don't
18867 # use $as_me), people would be surprised to read:
18868 # /* config.h. Generated by config.status. */
18869 if test x"$ac_file" = x-; then
18872 configure_input="$ac_file. "
18874 configure_input=$configure_input"Generated from `echo $ac_file_in |
18875 sed 's,.*/,,'` by configure."
18877 # First look for the input files in the build tree, otherwise in the
18879 ac_file_inputs=`IFS=:
18880 for f in $ac_file_in; do
18882 -) echo $tmp/stdin ;;
18884 # Absolute (can't be DOS-style, as IFS=:)
18885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18886 echo "$as_me: error: cannot find input file: $f" >&2;}
18887 { (exit 1); exit 1; }; }
18890 if test -f "$f"; then
18893 elif test -f "$srcdir/$f"; then
18898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18899 echo "$as_me: error: cannot find input file: $f" >&2;}
18900 { (exit 1); exit 1; }; }
18903 done` || { (exit 1); exit 1; }
18905 if test x"$ac_file" != x-; then
18906 { echo "$as_me:$LINENO: creating $ac_file" >&5
18907 echo "$as_me: creating $ac_file" >&6;}
18911 cat >>$CONFIG_STATUS <<_ACEOF
18915 cat >>$CONFIG_STATUS <<\_ACEOF
18917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18918 s,@configure_input@,$configure_input,;t t
18919 s,@srcdir@,$ac_srcdir,;t t
18920 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18921 s,@top_srcdir@,$ac_top_srcdir,;t t
18922 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18923 s,@builddir@,$ac_builddir,;t t
18924 s,@abs_builddir@,$ac_abs_builddir,;t t
18925 s,@top_builddir@,$ac_top_builddir,;t t
18926 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18927 s,@INSTALL@,$ac_INSTALL,;t t
18928 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18930 if test x"$ac_file" != x-; then
18931 mv $tmp/out $ac_file
18939 cat >>$CONFIG_STATUS <<\_ACEOF
18942 # CONFIG_HEADER section.
18945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18948 # ac_d sets the value in "#define NAME VALUE" lines.
18949 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18950 ac_dB='[ ].*$,\1#\2'
18953 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18954 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18955 ac_uB='$,\1#\2define\3'
18959 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18962 - | *:- | *:-:* ) # input from stdin
18964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18968 * ) ac_file_in=$ac_file.in ;;
18971 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18972 echo "$as_me: creating $ac_file" >&6;}
18974 # First look for the input files in the build tree, otherwise in the
18976 ac_file_inputs=`IFS=:
18977 for f in $ac_file_in; do
18979 -) echo $tmp/stdin ;;
18981 # Absolute (can't be DOS-style, as IFS=:)
18982 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18983 echo "$as_me: error: cannot find input file: $f" >&2;}
18984 { (exit 1); exit 1; }; }
18985 # Do quote $f, to prevent DOS paths from being IFS'd.
18988 if test -f "$f"; then
18991 elif test -f "$srcdir/$f"; then
18996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18997 echo "$as_me: error: cannot find input file: $f" >&2;}
18998 { (exit 1); exit 1; }; }
19001 done` || { (exit 1); exit 1; }
19002 # Remove the trailing spaces.
19003 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19007 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19008 # `conftest.undefs', that substitutes the proper values into
19009 # config.h.in to produce config.h. The first handles `#define'
19010 # templates, and the second `#undef' templates.
19011 # And first: Protect against being on the right side of a sed subst in
19012 # config.status. Protect against being in an unquoted here document
19013 # in config.status.
19014 rm -f conftest.defines conftest.undefs
19015 # Using a here document instead of a string reduces the quoting nightmare.
19016 # Putting comments in sed scripts is not portable.
19018 # `end' is used to avoid that the second main sed command (meant for
19019 # 0-ary CPP macros) applies to n-ary macro definitions.
19020 # See the Autoconf documentation for `clear'.
19021 cat >confdef2sed.sed <<\_ACEOF
19026 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19028 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19031 # If some macros were called several times there might be several times
19032 # the same #defines, which is useless. Nevertheless, we may not want to
19033 # sort them, since we want the *last* AC-DEFINE to be honored.
19034 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19035 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19036 rm -f confdef2sed.sed
19038 # This sed command replaces #undef with comments. This is necessary, for
19039 # example, in the case of _POSIX_SOURCE, which is predefined and required
19040 # on some systems where configure will not decide to define it.
19041 cat >>conftest.undefs <<\_ACEOF
19042 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19045 # Break up conftest.defines because some shells have a limit on the size
19046 # of here documents, and old seds have small limits too (100 cmds).
19047 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19048 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19049 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19050 echo ' :' >>$CONFIG_STATUS
19051 rm -f conftest.tail
19052 while grep . conftest.defines >/dev/null
19054 # Write a limited-size here document to $tmp/defines.sed.
19055 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19056 # Speed up: don't consider the non `#define' lines.
19057 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19058 # Work around the forget-to-reset-the-flag bug.
19059 echo 't clr' >>$CONFIG_STATUS
19060 echo ': clr' >>$CONFIG_STATUS
19061 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19063 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19065 mv $tmp/out $tmp/in
19067 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19068 rm -f conftest.defines
19069 mv conftest.tail conftest.defines
19071 rm -f conftest.defines
19072 echo ' fi # grep' >>$CONFIG_STATUS
19073 echo >>$CONFIG_STATUS
19075 # Break up conftest.undefs because some shells have a limit on the size
19076 # of here documents, and old seds have small limits too (100 cmds).
19077 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19078 rm -f conftest.tail
19079 while grep . conftest.undefs >/dev/null
19081 # Write a limited-size here document to $tmp/undefs.sed.
19082 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19083 # Speed up: don't consider the non `#undef'
19084 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19085 # Work around the forget-to-reset-the-flag bug.
19086 echo 't clr' >>$CONFIG_STATUS
19087 echo ': clr' >>$CONFIG_STATUS
19088 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19090 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19092 mv $tmp/out $tmp/in
19094 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19095 rm -f conftest.undefs
19096 mv conftest.tail conftest.undefs
19098 rm -f conftest.undefs
19100 cat >>$CONFIG_STATUS <<\_ACEOF
19101 # Let's still pretend it is `configure' which instantiates (i.e., don't
19102 # use $as_me), people would be surprised to read:
19103 # /* config.h. Generated by config.status. */
19104 if test x"$ac_file" = x-; then
19105 echo "/* Generated by configure. */" >$tmp/config.h
19107 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19109 cat $tmp/in >>$tmp/config.h
19111 if test x"$ac_file" != x-; then
19112 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19114 echo "$as_me: $ac_file is unchanged" >&6;}
19116 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$ac_file" : 'X\(//\)[^/]' \| \
19119 X"$ac_file" : 'X\(//\)$' \| \
19120 X"$ac_file" : 'X\(/\)' \| \
19121 . : '\(.\)' 2>/dev/null ||
19123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19125 /^X\(\/\/\)$/{ s//\1/; q; }
19126 /^X\(\/\).*/{ s//\1/; q; }
19128 { if $as_mkdir_p; then
19133 while test ! -d "$as_dir"; do
19134 as_dirs="$as_dir $as_dirs"
19135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19137 X"$as_dir" : 'X\(//\)[^/]' \| \
19138 X"$as_dir" : 'X\(//\)$' \| \
19139 X"$as_dir" : 'X\(/\)' \| \
19140 . : '\(.\)' 2>/dev/null ||
19142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19144 /^X\(\/\/\)$/{ s//\1/; q; }
19145 /^X\(\/\).*/{ s//\1/; q; }
19148 test ! -n "$as_dirs" || mkdir $as_dirs
19149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19151 { (exit 1); exit 1; }; }; }
19154 mv $tmp/config.h $ac_file
19158 rm -f $tmp/config.h
19162 cat >>$CONFIG_STATUS <<\_ACEOF
19165 # CONFIG_COMMANDS section.
19167 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19168 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19169 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19170 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19171 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19172 X"$ac_dest" : 'X\(//\)[^/]' \| \
19173 X"$ac_dest" : 'X\(//\)$' \| \
19174 X"$ac_dest" : 'X\(/\)' \| \
19175 . : '\(.\)' 2>/dev/null ||
19177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19179 /^X\(\/\/\)$/{ s//\1/; q; }
19180 /^X\(\/\).*/{ s//\1/; q; }
19182 { if $as_mkdir_p; then
19187 while test ! -d "$as_dir"; do
19188 as_dirs="$as_dir $as_dirs"
19189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19191 X"$as_dir" : 'X\(//\)[^/]' \| \
19192 X"$as_dir" : 'X\(//\)$' \| \
19193 X"$as_dir" : 'X\(/\)' \| \
19194 . : '\(.\)' 2>/dev/null ||
19196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19198 /^X\(\/\/\)$/{ s//\1/; q; }
19199 /^X\(\/\).*/{ s//\1/; q; }
19202 test ! -n "$as_dirs" || mkdir $as_dirs
19203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19205 { (exit 1); exit 1; }; }; }
19209 if test "$ac_dir" != .; then
19210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19211 # A "../" for each directory in $ac_dir_suffix.
19212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19214 ac_dir_suffix= ac_top_builddir=
19218 .) # No --srcdir option. We are building in place.
19220 if test -z "$ac_top_builddir"; then
19223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19225 [\\/]* | ?:[\\/]* ) # Absolute path.
19226 ac_srcdir=$srcdir$ac_dir_suffix;
19227 ac_top_srcdir=$srcdir ;;
19228 *) # Relative path.
19229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19230 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19233 # Do not use `cd foo && pwd` to compute absolute paths, because
19234 # the directories may not exist.
19236 .) ac_abs_builddir="$ac_dir";;
19239 .) ac_abs_builddir=`pwd`;;
19240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19241 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19244 case $ac_abs_builddir in
19245 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19247 case ${ac_top_builddir}. in
19248 .) ac_abs_top_builddir=$ac_abs_builddir;;
19249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19253 case $ac_abs_builddir in
19254 .) ac_abs_srcdir=$ac_srcdir;;
19257 .) ac_abs_srcdir=$ac_abs_builddir;;
19258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19262 case $ac_abs_builddir in
19263 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19265 case $ac_top_srcdir in
19266 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19273 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19274 echo "$as_me: executing $ac_dest commands" >&6;}
19276 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
19277 default-2 ) for ac_file in $CONFIG_FILES; do
19278 # Support "outfile[:infile[:infile...]]"
19280 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19282 # PO directories have a Makefile.in generated from Makefile.in.in.
19283 case "$ac_file" in */Makefile.in)
19284 # Adjust a relative srcdir.
19285 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19286 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19287 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19288 # In autoconf-2.13 it is called $ac_given_srcdir.
19289 # In autoconf-2.50 it is called $srcdir.
19290 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19291 case "$ac_given_srcdir" in
19292 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19293 /*) top_srcdir="$ac_given_srcdir" ;;
19294 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19296 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19297 rm -f "$ac_dir/POTFILES"
19298 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19299 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
19300 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19301 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19312 { (exit 0); exit 0; }
19314 chmod +x $CONFIG_STATUS
19315 ac_clean_files=$ac_clean_files_save
19318 # configure is writing to config.log, and then calls config.status.
19319 # config.status does its own redirection, appending to config.log.
19320 # Unfortunately, on DOS this fails, as config.log is still kept open
19321 # by configure, so config.status won't be able to write to it; its
19322 # output is simply discarded. So we exec the FD to /dev/null,
19323 # effectively closing config.log, so it can be properly (re)opened and
19324 # appended to by config.status. When coming back to configure, we
19325 # need to make the FD available again.
19326 if test "$no_create" != yes; then
19328 ac_config_status_args=
19329 test "$silent" = yes &&
19330 ac_config_status_args="$ac_config_status_args --quiet"
19332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19335 # would make configure fail if this is the last instruction.
19336 $ac_cs_success || { (exit 1); exit 1; }