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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL 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 USE_GNUTLS_TRUE USE_GNUTLS_FALSE 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-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --disable-pgp Disable PGP support
855 --disable-smime Disable SMIME support
856 --enable-external-dotlock Force use of an external dotlock program
857 --enable-pop Enable POP3 support
858 --enable-imap Enable IMAP support
859 --enable-nntp Enable NNTP support
860 --enable-debug Enable debugging support
861 --enable-flock Use flock() to lock files
862 --disable-fcntl Do NOT use fcntl() to lock files
863 --disable-inodesort Do NOT read files in maildir folders sorted by inode.
864 --disable-warnings Turn off compiler warnings (not recommended)
865 --enable-nfs-fix Work around an NFS with broken attributes caching
866 --enable-buffy-size Use file size attribute instead of access time
867 --enable-mailtool Enable Sun mailtool attachments support
868 --enable-compressed Enable compressed folders support
869 --enable-locales-fix The result of isprint() is unreliable
870 --enable-exact-address Enable regeneration of email addresses
871 --enable-hcache Enable header caching
872 --disable-iconv Disable iconv support
873 --disable-nls Do not use Native Language Support
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-mixmaster=PATH Include Mixmaster support
879 --with-slang=DIR Use S-Lang instead of ncurses
880 --with-curses=DIR Where ncurses is installed
881 --with-regex Use the GNU regex library
882 --with-homespool=FILE File in user's directory where new mail is spooled
883 --with-mailpath=DIR Directory where spool mailboxes are located
884 --with-docdir=PATH Specify where to put the documentation
885 --with-domain=DOMAIN Specify your DNS domain name
886 --with-gss=PFX Compile in GSSAPI authentication for IMAP
887 --with-ssl=PFX Compile in SSL support for POP/IMAP
888 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
889 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
890 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
891 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
892 --with-idn=PFX Use GNU libidn for domain names
893 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
894 --without-gdbm Get rid of gdbm even if it is available
895 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
896 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
897 --with-included-gettext Use the GNU gettext library included here
898 --without-wc-funcs Do not use the system's wchar_t functions
899 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
950 .) ac_abs_builddir="$ac_dir";;
953 .) ac_abs_builddir=`pwd`;;
954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 case ${ac_top_builddir}. in
962 .) ac_abs_top_builddir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
971 .) ac_abs_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 case $ac_top_srcdir in
980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 # Check for guested configure; otherwise get Cygnus style configure.
988 if test -f $ac_srcdir/configure.gnu; then
990 $SHELL $ac_srcdir/configure.gnu --help=recursive
991 elif test -f $ac_srcdir/configure; then
993 $SHELL $ac_srcdir/configure --help=recursive
994 elif test -f $ac_srcdir/configure.ac ||
995 test -f $ac_srcdir/configure.in; then
999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1009 Copyright (C) 2003 Free Software Foundation, Inc.
1010 This configure script is free software; the Free Software Foundation
1011 gives unlimited permission to copy, distribute and modify it.
1017 This file contains any messages produced by compilers while
1018 running configure, to aid debugging if configure makes a mistake.
1020 It was created by $as_me, which was
1021 generated by GNU Autoconf 2.59. Invocation command line was
1032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1044 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 test -z "$as_dir" && as_dir=.
1056 echo "PATH: $as_dir"
1071 # Keep a trace of the command line.
1072 # Strip out --no-create and --no-recursion so they do not pile up.
1073 # Strip out --silent because we don't want to record it for future runs.
1074 # Also quote any args containing shell meta-characters.
1075 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_must_keep_next=false
1086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1090 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1091 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1097 if test $ac_must_keep_next = true; then
1098 ac_must_keep_next=false # Got value, back to normal.
1101 *=* | --config-cache | -C | -disable-* | --disable-* \
1102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1104 | -with-* | --with-* | -without-* | --without-* | --x)
1105 case "$ac_configure_args0 " in
1106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 -* ) ac_must_keep_next=true ;;
1112 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1113 # Get rid of the leading space.
1119 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1120 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122 # When interrupted or exit'd, cleanup temporary files, and complete
1123 # config.log. We remove comments because anyway the quotes in there
1124 # would cause problems or look ugly.
1125 # WARNING: Be sure not to use single quotes in there, as some shells,
1126 # such as our DU 5.0 friend, will then `close' the trap.
1127 trap 'exit_status=$?
1128 # Save into config.log some information that might help in debugging.
1133 ## ---------------- ##
1134 ## Cache variables. ##
1135 ## ---------------- ##
1138 # The following way of writing the cache mishandles newlines in values,
1141 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156 ## ----------------- ##
1157 ## Output variables. ##
1158 ## ----------------- ##
1161 for ac_var in $ac_subst_vars
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -n "$ac_subst_files"; then
1175 for ac_var in $ac_subst_files
1177 eval ac_val=$`echo $ac_var`
1178 echo "$ac_var='"'"'$ac_val'"'"'"
1183 if test -s confdefs.h; then
1190 sed "/^$/d" confdefs.h | sort
1193 test "$ac_signal" != 0 &&
1194 echo "$as_me: caught signal $ac_signal"
1195 echo "$as_me: exit $exit_status"
1197 rm -f core *.core &&
1198 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 for ac_signal in 1 2 13 15; do
1202 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1207 rm -rf conftest* confdefs.h
1208 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 # Predefined preprocessor variables.
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 # Let the site file select an alternate cache file if it wants to.
1239 # Prefer explicitly selected file to automatically selected ones.
1240 if test -z "$CONFIG_SITE"; then
1241 if test "x$prefix" != xNONE; then
1242 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 for ac_site_file in $CONFIG_SITE; do
1248 if test -r "$ac_site_file"; then
1249 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1250 echo "$as_me: loading site script $ac_site_file" >&6;}
1251 sed 's/^/| /' "$ac_site_file" >&5
1256 if test -r "$cache_file"; then
1257 # Some versions of bash will fail to source /dev/null (special
1258 # files actually), so we avoid doing that.
1259 if test -f "$cache_file"; then
1260 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1261 echo "$as_me: loading cache $cache_file" >&6;}
1263 [\\/]* | ?:[\\/]* ) . $cache_file;;
1264 *) . ./$cache_file;;
1268 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1269 echo "$as_me: creating cache $cache_file" >&6;}
1273 # Check that the precious variables saved in the cache have kept the same
1275 ac_cache_corrupted=false
1276 for ac_var in `(set) 2>&1 |
1277 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1279 eval ac_new_set=\$ac_env_${ac_var}_set
1280 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1281 eval ac_new_val="\$ac_env_${ac_var}_value"
1282 case $ac_old_set,$ac_new_set in
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1293 if test "x$ac_old_val" != "x$ac_new_val"; then
1294 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1295 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1296 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1297 echo "$as_me: former value: $ac_old_val" >&2;}
1298 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1299 echo "$as_me: current value: $ac_new_val" >&2;}
1300 ac_cache_corrupted=:
1303 # Pass precious variables to config.status.
1304 if test "$ac_new_set" = set; then
1306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1308 *) ac_arg=$ac_var=$ac_new_val ;;
1310 case " $ac_configure_args " in
1311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1312 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316 if $ac_cache_corrupted; then
1317 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1318 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1319 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1320 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1321 { (exit 1); exit 1; }; }
1325 ac_cpp='$CPP $CPPFLAGS'
1326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348 ac_config_headers="$ac_config_headers config.h"
1351 mutt_cv_version=`cat $srcdir/VERSION`
1354 am__api_version="1.7"
1356 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357 if test -f $ac_dir/install-sh; then
1359 ac_install_sh="$ac_aux_dir/install-sh -c"
1361 elif test -f $ac_dir/install.sh; then
1363 ac_install_sh="$ac_aux_dir/install.sh -c"
1365 elif test -f $ac_dir/shtool; then
1367 ac_install_sh="$ac_aux_dir/shtool install -c"
1371 if test -z "$ac_aux_dir"; then
1372 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374 { (exit 1); exit 1; }; }
1376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1380 # Find a good install program. We prefer a C program (faster),
1381 # so one script is as good as another. But avoid the broken or
1382 # incompatible versions:
1383 # SysV /etc/install, /usr/sbin/install
1384 # SunOS /usr/etc/install
1385 # IRIX /sbin/install
1387 # AmigaOS /C/install, which installs bootblocks on floppy discs
1388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1391 # OS/2's system install, which has a completely different semantic
1392 # ./install, which can be erroneously created by make from ./install.sh.
1393 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1394 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1395 if test -z "$INSTALL"; then
1396 if test "${ac_cv_path_install+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 test -z "$as_dir" && as_dir=.
1404 # Account for people who put trailing slashes in PATH elements.
1406 ./ | .// | /cC/* | \
1407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1408 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1411 # OSF1 and SCO ODT 3.0 have their own names for install.
1412 # Don't use installbsd from OSF since it installs stuff as root
1414 for ac_prog in ginstall scoinst install; do
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1417 if test $ac_prog = install &&
1418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1419 # AIX install. It has an incompatible calling convention.
1421 elif test $ac_prog = install &&
1422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423 # program-specific install script used by HP pwplus--don't use.
1426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1438 if test "${ac_cv_path_install+set}" = set; then
1439 INSTALL=$ac_cv_path_install
1441 # As a last resort, use the slow shell script. We don't cache a
1442 # path for INSTALL within a source directory, because that will
1443 # break other packages using the cache if that directory is
1444 # removed, or if the path is relative.
1445 INSTALL=$ac_install_sh
1448 echo "$as_me:$LINENO: result: $INSTALL" >&5
1449 echo "${ECHO_T}$INSTALL" >&6
1451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1452 # It thinks the first close brace ends the variable substitution.
1453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1459 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1460 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1463 echo timestamp > conftest.file
1464 # Do `set' in a subshell so we don't clobber the current shell's
1465 # arguments. Must try -L first in case configure is actually a
1466 # symlink; some systems play weird games with the mod time of symlinks
1467 # (eg FreeBSD returns the mod time of the symlink's containing
1470 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1471 if test "$*" = "X"; then
1473 set X `ls -t $srcdir/configure conftest.file`
1476 if test "$*" != "X $srcdir/configure conftest.file" \
1477 && test "$*" != "X conftest.file $srcdir/configure"; then
1479 # If neither matched, then we have a broken ls. This can happen
1480 # if, for instance, CONFIG_SHELL is bash and it inherits a
1481 # broken ls alias from the environment. This has actually
1482 # happened. Such a system could not be considered "sane".
1483 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1484 alias in your environment" >&5
1485 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1486 alias in your environment" >&2;}
1487 { (exit 1); exit 1; }; }
1490 test "$2" = conftest.file
1496 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1497 Check your system clock" >&5
1498 echo "$as_me: error: newly created file is older than distributed files!
1499 Check your system clock" >&2;}
1500 { (exit 1); exit 1; }; }
1502 echo "$as_me:$LINENO: result: yes" >&5
1503 echo "${ECHO_T}yes" >&6
1504 test "$program_prefix" != NONE &&
1505 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1506 # Use a double $ so make ignores it.
1507 test "$program_suffix" != NONE &&
1508 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1509 # Double any \ or $. echo might interpret backslashes.
1510 # By default was `s,x,x', remove it if useless.
1511 cat <<\_ACEOF >conftest.sed
1512 s/[\\$]/&&/g;s/;s,x,x,$//
1514 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1518 # expand $ac_aux_dir to an absolute path
1519 am_aux_dir=`cd $ac_aux_dir && pwd`
1521 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1522 # Use eval to expand $SHELL
1523 if eval "$MISSING --run true"; then
1524 am_missing_run="$MISSING --run "
1527 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1528 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1531 for ac_prog in gawk mawk nawk awk
1533 # Extract the first word of "$ac_prog", so it can be a program name with args.
1534 set dummy $ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_AWK+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$AWK"; then
1541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_AWK="$ac_prog"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 if test -n "$AWK"; then
1561 echo "$as_me:$LINENO: result: $AWK" >&5
1562 echo "${ECHO_T}$AWK" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1568 test -n "$AWK" && break
1571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 cat >conftest.make <<\_ACEOF
1579 @echo 'ac_maketemp="$(MAKE)"'
1581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1583 if test -n "$ac_maketemp"; then
1584 eval ac_cv_prog_make_${ac_make}_set=yes
1586 eval ac_cv_prog_make_${ac_make}_set=no
1590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1591 echo "$as_me:$LINENO: result: yes" >&5
1592 echo "${ECHO_T}yes" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 SET_MAKE="MAKE=${MAKE-make}"
1600 rm -rf .tst 2>/dev/null
1601 mkdir .tst 2>/dev/null
1602 if test -d .tst; then
1607 rmdir .tst 2>/dev/null
1609 # test to see if srcdir already configured
1610 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1611 test -f $srcdir/config.status; then
1612 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1613 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1614 { (exit 1); exit 1; }; }
1617 # test whether we have cygpath
1618 if test -z "$CYGPATH_W"; then
1619 if (cygpath --version) >/dev/null 2>/dev/null; then
1620 CYGPATH_W='cygpath -w'
1627 # Define the identity of the package.
1629 VERSION=$mutt_cv_version
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE "$PACKAGE"
1637 cat >>confdefs.h <<_ACEOF
1638 #define VERSION "$VERSION"
1641 # Some tools Automake needs.
1643 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1646 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1649 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1652 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1655 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1658 AMTAR=${AMTAR-"${am_missing_run}tar"}
1660 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1662 # Installed binaries are usually stripped using `strip' when the user
1663 # run `make install-strip'. However `strip' might not be the right
1664 # tool to use in cross-compilation environments, therefore Automake
1665 # will honor the `STRIP' environment variable to overrule this program.
1666 if test "$cross_compiling" != no; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}strip; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_STRIP+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 if test -n "$STRIP"; then
1676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 STRIP=$ac_cv_prog_STRIP
1695 if test -n "$STRIP"; then
1696 echo "$as_me:$LINENO: result: $STRIP" >&5
1697 echo "${ECHO_T}$STRIP" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1704 if test -z "$ac_cv_prog_STRIP"; then
1706 # Extract the first word of "strip", so it can be a program name with args.
1707 set dummy strip; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$ac_ct_STRIP"; then
1714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_STRIP="strip"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1734 if test -n "$ac_ct_STRIP"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1736 echo "${ECHO_T}$ac_ct_STRIP" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1744 STRIP="$ac_cv_prog_STRIP"
1748 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1750 # We need awk for the "check" target. The system "awk" is bad on
1758 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"
1760 # Make sure we can run config.sub.
1761 $ac_config_sub sun4 >/dev/null 2>&1 ||
1762 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764 { (exit 1); exit 1; }; }
1766 echo "$as_me:$LINENO: checking build system type" >&5
1767 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768 if test "${ac_cv_build+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 ac_cv_build_alias=$build_alias
1772 test -z "$ac_cv_build_alias" &&
1773 ac_cv_build_alias=`$ac_config_guess`
1774 test -z "$ac_cv_build_alias" &&
1775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777 { (exit 1); exit 1; }; }
1778 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781 { (exit 1); exit 1; }; }
1784 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785 echo "${ECHO_T}$ac_cv_build" >&6
1787 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792 echo "$as_me:$LINENO: checking host system type" >&5
1793 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794 if test "${ac_cv_host+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 ac_cv_host_alias=$host_alias
1798 test -z "$ac_cv_host_alias" &&
1799 ac_cv_host_alias=$ac_cv_build_alias
1800 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6
1809 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1815 echo "$as_me:$LINENO: checking for prefix" >&5
1816 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1817 if test x$prefix = xNONE; then
1818 mutt_cv_prefix=$ac_default_prefix
1820 mutt_cv_prefix=$prefix
1822 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1823 echo "${ECHO_T}$mutt_cv_prefix" >&6
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1867 if test -z "$ac_cv_prog_CC"; then
1869 # Extract the first word of "gcc", so it can be a program name with args.
1870 set dummy gcc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$ac_ct_CC"; then
1877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_CC="gcc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1909 if test -z "$CC"; then
1910 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1912 set dummy ${ac_tool_prefix}cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_CC="${ac_tool_prefix}cc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$CC"; then
1939 echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1947 if test -z "$ac_cv_prog_CC"; then
1949 # Extract the first word of "cc", so it can be a program name with args.
1950 set dummy cc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$ac_ct_CC"; then
1957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CC="cc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 # Extract the first word of "cc", so it can be a program name with args.
1992 set dummy cc; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010 ac_prog_rejected=yes
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test $ac_prog_rejected = yes; then
2021 # We found a bogon in the path, so make sure we never use it.
2022 set dummy $ac_cv_prog_CC
2024 if test $# != 0; then
2025 # We chose a different compiler from the bogus one.
2026 # However, it has the same basename, so the bogon will be chosen
2027 # first if we set CC to just the basename; use the full file name.
2029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 if test -n "$CC"; then
2076 echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2083 test -n "$CC" && break
2086 if test -z "$CC"; then
2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2091 set dummy $ac_prog; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_ac_ct_CC="$ac_prog"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2125 test -n "$ac_ct_CC" && break
2134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev/null >&5) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev/null >&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev/null >&5) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.$ac_ext <<_ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2180 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184 (eval $ac_link_default) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # Find the output, starting from the most likely. This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2195 # b.out is created by i960 compilers.
2196 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2198 test -f "$ac_file" || continue
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2203 # This is the source file.
2206 # We found the default executable, but exeext='' is most
2210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211 # FIXME: I believe we export ac_cv_exeext for Libtool,
2212 # but it would be cool to find out if it's true. Does anybody
2213 # maintain Libtool? --akim.
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2235 # Check the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242 if { ac_try='./$ac_file'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 if test "$cross_compiling" = maybe; then
2253 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2266 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2267 ac_clean_files=$ac_clean_files_save
2268 # Check the compiler produces executables we can run. If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278 (eval $ac_link) 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; then
2282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2286 for ac_file in conftest.exe conftest conftest.*; do
2287 test -f "$ac_file" || continue
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 cat >conftest.$ac_ext <<_ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.o conftest.obj
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6
2359 OBJEXT=$ac_cv_objext
2361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1 >conftest.err
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2474 if test "$ac_test_CFLAGS" = set; then
2475 CFLAGS=$ac_save_CFLAGS
2476 elif test $ac_cv_prog_cc_g = yes; then
2477 if test "$GCC" = yes; then
2483 if test "$GCC" = yes; then
2489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 ac_cv_prog_cc_stdc=no
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2504 #include <sys/types.h>
2505 #include <sys/stat.h>
2506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2507 struct buf { int x; };
2508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2509 static char *e (p, i)
2515 static char *f (char * (*g) (char **, int), char **p, ...)
2520 s = g (p, va_arg (v,int));
2525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2526 function prototypes and stuff, but not '\xHH' hex character constants.
2527 These don't provoke an error unfortunately, instead are silently treated
2528 as 'x'. The following induces an error, until -std1 is added to get
2529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2530 array size at least. It's necessary to write '\x00'==0 to get something
2531 that's true only with -std1. */
2532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX -qlanglvl=ansi
2551 # Ultrix and OSF/1 -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions -Aa -D_HPUX_SOURCE
2554 # SVR4 -Xc -D__EXTENSIONS__
2555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557 CC="$ac_save_CC $ac_arg"
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cc_stdc=$ac_arg
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext
2588 rm -f conftest.$ac_ext conftest.$ac_objext
2593 case "x$ac_cv_prog_cc_stdc" in
2595 echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600 CC="$CC $ac_cv_prog_cc_stdc" ;;
2603 # Some people use a C++ compiler to compile C. Since we use `exit',
2604 # in C++ we need to declare it. In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.$ac_ext <<_ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 for ac_declaration in \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 DEPDIR="${am__leading_dot}deps"
2750 ac_config_commands="$ac_config_commands depfiles"
2753 am_make=${MAKE-make}
2754 cat > confinc << 'END'
2759 # If we don't find an include directive, just comment out the code.
2760 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2761 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 # First try GNU make style include.
2766 echo "include confinc" > confmf
2767 # We grep out `Entering directory' and `Leaving directory'
2768 # messages which can occur if `w' ends up in MAKEFLAGS.
2769 # In particular we don't look at `^make:' because GNU make might
2770 # be invoked under some other name (usually "gmake"), in which
2771 # case it prints its new name instead of `make'.
2772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777 # Now try BSD make style include.
2778 if test "$am__include" = "#"; then
2779 echo '.include "confinc"' > confmf
2780 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2781 am__include=.include
2788 echo "$as_me:$LINENO: result: $_am_result" >&5
2789 echo "${ECHO_T}$_am_result" >&6
2790 rm -f confinc confmf
2792 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2793 if test "${enable_dependency_tracking+set}" = set; then
2794 enableval="$enable_dependency_tracking"
2797 if test "x$enable_dependency_tracking" != xno; then
2798 am_depcomp="$ac_aux_dir/depcomp"
2803 if test "x$enable_dependency_tracking" != xno; then
2814 depcc="$CC" am_compiler_list=
2816 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2817 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2818 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2822 # We make a subdir and do the tests there. Otherwise we can end up
2823 # making bogus files that we don't know about and never remove. For
2824 # instance it was reported that on HP-UX the gcc test will end up
2825 # making a dummy file named `D' -- because `-MD' means `put the output
2828 # Copy depcomp to subdir because otherwise we won't find it if we're
2829 # using a relative directory.
2830 cp "$am_depcomp" conftest.dir
2832 # We will build objects and dependencies in a subdirectory because
2833 # it helps to detect inapplicable dependency modes. For instance
2834 # both Tru64's cc and ICC support -MD to output dependencies as a
2835 # side effect of compilation, but ICC will put the dependencies in
2836 # the current directory while Tru64 will put them in the object
2840 am_cv_CC_dependencies_compiler_type=none
2841 if test "$am_compiler_list" = ""; then
2842 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2844 for depmode in $am_compiler_list; do
2845 # Setup a source with many dependencies, because some compilers
2846 # like to wrap large dependency lists on column 80 (with \), and
2847 # we should not choose a depcomp mode which is confused by this.
2849 # We need to recreate these files for each test, as the compiler may
2850 # overwrite some of them when testing with obscure command lines.
2851 # This happens at least with the AIX C compiler.
2853 for i in 1 2 3 4 5 6; do
2854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2861 # after this tag, mechanisms are not by side-effect, so they'll
2862 # only be used when explicitly requested
2863 if test "x$enable_dependency_tracking" = xyes; then
2871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2872 # mode. It turns out that the SunPro C++ compiler does not properly
2873 # handle `-M -o', and we need to detect this.
2874 if depmode=$depmode \
2875 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2877 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2878 >/dev/null 2>conftest.err &&
2879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2880 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2882 # icc doesn't choke on unknown options, it will just issue warnings
2883 # (even with -Werror). So we grep stderr for any message
2884 # that says an option was ignored.
2885 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2886 am_cv_CC_dependencies_compiler_type=$depmode
2895 am_cv_CC_dependencies_compiler_type=none
2899 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2900 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2906 test "x$enable_dependency_tracking" != xno \
2907 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2909 am__fastdepCC_FALSE='#'
2911 am__fastdepCC_TRUE='#'
2912 am__fastdepCC_FALSE=
2918 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2919 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2920 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_check_lib_save_LIBS=$LIBS
2924 LIBS="-lcposix $LIBS"
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2947 rm -f conftest.$ac_objext conftest$ac_exeext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949 (eval $ac_link) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest$ac_exeext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_cv_lib_cposix_strerror=yes
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 ac_cv_lib_cposix_strerror=no
2975 rm -f conftest.err conftest.$ac_objext \
2976 conftest$ac_exeext conftest.$ac_ext
2977 LIBS=$ac_check_lib_save_LIBS
2979 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2980 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2981 if test $ac_cv_lib_cposix_strerror = yes; then
2982 LIBS="$LIBS -lcposix"
2990 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2991 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2992 if test "${am_cv_prog_cc_stdc+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 am_cv_prog_cc_stdc=no
2997 # Don't try gcc -ansi; that turns off useful extensions and
2998 # breaks some systems' header files.
2999 # AIX -qlanglvl=ansi
3000 # Ultrix and OSF/1 -std1
3001 # HP-UX 10.20 and later -Ae
3002 # HP-UX older versions -Aa -D_HPUX_SOURCE
3003 # SVR4 -Xc -D__EXTENSIONS__
3004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3006 CC="$ac_save_CC $ac_arg"
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3015 #include <sys/types.h>
3016 #include <sys/stat.h>
3017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3018 struct buf { int x; };
3019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3020 static char *e (p, i)
3026 static char *f (char * (*g) (char **, int), char **p, ...)
3031 s = g (p, va_arg (v,int));
3035 int test (int i, double x);
3036 struct s1 {int (*f) (int a);};
3037 struct s2 {int (*f) (double a);};
3038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 am_cv_prog_cc_stdc="$ac_arg"; break
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 if test -z "$am_cv_prog_cc_stdc"; then
3086 echo "$as_me:$LINENO: result: none needed" >&5
3087 echo "${ECHO_T}none needed" >&6
3089 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3090 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3092 case "x$am_cv_prog_cc_stdc" in
3094 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3104 # On Suns, sometimes $CPP names a directory.
3105 if test -n "$CPP" && test -d "$CPP"; then
3108 if test -z "$CPP"; then
3109 if test "${ac_cv_prog_CPP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 # Double quotes because CPP needs to be expanded
3113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 for ac_c_preproc_warn_flag in '' yes
3118 # Use a header file that comes with gcc, so configuring glibc
3119 # with a fresh cross-compiler works.
3120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121 # <limits.h> exists even on freestanding compilers.
3122 # On the NeXT, cc -E runs the code through the compiler's parser,
3123 # not just through cpp. "Syntax error" is here to catch this case.
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3131 # include <limits.h>
3133 # include <assert.h>
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3154 if test -z "$ac_cpp_err"; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Broken: fails on valid input.
3163 rm -f conftest.err conftest.$ac_ext
3165 # OK, works on sane cases. Now check whether non-existent headers
3166 # can be detected and how.
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <ac_nonexistent.h>
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
3185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3192 if test -z "$ac_cpp_err"; then
3193 # Broken: success on invalid input.
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 # Passes both tests.
3203 rm -f conftest.err conftest.$ac_ext
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3220 echo "$as_me:$LINENO: result: $CPP" >&5
3221 echo "${ECHO_T}$CPP" >&6
3223 for ac_c_preproc_warn_flag in '' yes
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3238 # include <limits.h>
3240 # include <assert.h>
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 # Broken: fails on valid input.
3270 rm -f conftest.err conftest.$ac_ext
3272 # OK, works on sane cases. Now check whether non-existent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include <ac_nonexistent.h>
3282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null; then
3290 if test -s conftest.err; then
3291 ac_cpp_err=$ac_c_preproc_warn_flag
3292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299 if test -z "$ac_cpp_err"; then
3300 # Broken: success on invalid input.
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 # Passes both tests.
3310 rm -f conftest.err conftest.$ac_ext
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.$ac_ext
3315 if $ac_preproc_ok; then
3318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 echo "$as_me:$LINENO: checking for egrep" >&5
3333 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3334 if test "${ac_cv_prog_egrep+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3338 then ac_cv_prog_egrep='grep -E'
3339 else ac_cv_prog_egrep='egrep'
3342 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3343 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3344 EGREP=$ac_cv_prog_egrep
3347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3358 inttypes.h stdint.h unistd.h
3360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3361 echo "$as_me:$LINENO: checking for $ac_header" >&5
3362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 $ac_includes_default
3374 #include <$ac_header>
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; } &&
3391 { ac_try='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 eval "$as_ac_Header=yes"
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 eval "$as_ac_Header=no"
3404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3409 cat >>confdefs.h <<_ACEOF
3410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3420 echo "$as_me:$LINENO: checking for function prototypes" >&5
3421 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3422 if test "$am_cv_prog_cc_stdc" != no; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3426 cat >>confdefs.h <<\_ACEOF
3427 #define PROTOTYPES 1
3432 echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3434 U=_ ANSI2KNR=./ansi2knr
3436 # Ensure some checks needed by ansi2knr itself.
3437 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3439 if test "${ac_cv_header_stdc+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest.$ac_objext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_cv_header_stdc=yes
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_cv_header_stdc=no
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 if test $ac_cv_header_stdc = yes; then
3492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 $EGREP "memchr" >/dev/null 2>&1; then
3506 ac_cv_header_stdc=no
3512 if test $ac_cv_header_stdc = yes; then
3513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 $EGREP "free" >/dev/null 2>&1; then
3527 ac_cv_header_stdc=no
3533 if test $ac_cv_header_stdc = yes; then
3534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3535 if test "$cross_compiling" = yes; then
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3545 #if ((' ' & 0x0FF) == 0x020)
3546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3549 # define ISLOWER(c) \
3550 (('a' <= (c) && (c) <= 'i') \
3551 || ('j' <= (c) && (c) <= 'r') \
3552 || ('s' <= (c) && (c) <= 'z'))
3553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3561 for (i = 0; i < 256; i++)
3562 if (XOR (islower (i), ISLOWER (i))
3563 || toupper (i) != TOUPPER (i))
3568 rm -f conftest$ac_exeext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3570 (eval $ac_link) 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3581 echo "$as_me: program exited with status $ac_status" >&5
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3586 ac_cv_header_stdc=no
3588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3593 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3594 if test $ac_cv_header_stdc = yes; then
3596 cat >>confdefs.h <<\_ACEOF
3597 #define STDC_HEADERS 1
3603 for ac_header in string.h
3605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607 echo "$as_me:$LINENO: checking for $ac_header" >&5
3608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3615 # Is the header compilable?
3616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3625 #include <$ac_header>
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_header_compiler=yes
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_header_compiler=no
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3657 echo "${ECHO_T}$ac_header_compiler" >&6
3659 # Is the header present?
3660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 #include <$ac_header>
3670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null; then
3678 if test -s conftest.err; then
3679 ac_cpp_err=$ac_c_preproc_warn_flag
3680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3687 if test -z "$ac_cpp_err"; then
3688 ac_header_preproc=yes
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_header_preproc=no
3695 rm -f conftest.err conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3697 echo "${ECHO_T}$ac_header_preproc" >&6
3699 # So? What about this header?
3700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3706 ac_header_preproc=yes
3709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3723 ## ------------------------------------------ ##
3724 ## Report this to the AC_PACKAGE_NAME lists. ##
3725 ## ------------------------------------------ ##
3728 sed "s/^/$as_me: WARNING: /" >&2
3731 echo "$as_me:$LINENO: checking for $ac_header" >&5
3732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 eval "$as_ac_Header=\$ac_header_preproc"
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3743 cat >>confdefs.h <<_ACEOF
3744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3752 if test "x$U" != "x"; then
3753 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3754 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3755 { (exit 1); exit 1; }; }
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3768 if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3776 for ac_c_preproc_warn_flag in '' yes
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3791 # include <limits.h>
3793 # include <assert.h>
3797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null; then
3805 if test -s conftest.err; then
3806 ac_cpp_err=$ac_c_preproc_warn_flag
3807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3814 if test -z "$ac_cpp_err"; then
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 # Broken: fails on valid input.
3823 rm -f conftest.err conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether non-existent headers
3826 # can be detected and how.
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev/null; then
3843 if test -s conftest.err; then
3844 ac_cpp_err=$ac_c_preproc_warn_flag
3845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3852 if test -z "$ac_cpp_err"; then
3853 # Broken: success on invalid input.
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 # Passes both tests.
3863 rm -f conftest.err conftest.$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then
3880 echo "$as_me:$LINENO: result: $CPP" >&5
3881 echo "${ECHO_T}$CPP" >&6
3883 for ac_c_preproc_warn_flag in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 # include <limits.h>
3900 # include <assert.h>
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null; then
3912 if test -s conftest.err; then
3913 ac_cpp_err=$ac_c_preproc_warn_flag
3914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3921 if test -z "$ac_cpp_err"; then
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.$ac_ext
3932 # OK, works on sane cases. Now check whether non-existent headers
3933 # can be detected and how.
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null; then
3950 if test -s conftest.err; then
3951 ac_cpp_err=$ac_c_preproc_warn_flag
3952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959 if test -z "$ac_cpp_err"; then
3960 # Broken: success on invalid input.
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 # Passes both tests.
3970 rm -f conftest.err conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3978 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&2;}
3982 { (exit 1); exit 1; }; }
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3992 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3993 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3994 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.make <<\_ACEOF
3999 @echo 'ac_maketemp="$(MAKE)"'
4001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4002 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4003 if test -n "$ac_maketemp"; then
4004 eval ac_cv_prog_make_${ac_make}_set=yes
4006 eval ac_cv_prog_make_${ac_make}_set=no
4010 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017 SET_MAKE="MAKE=${MAKE-make}"
4020 # Find a good install program. We prefer a C program (faster),
4021 # so one script is as good as another. But avoid the broken or
4022 # incompatible versions:
4023 # SysV /etc/install, /usr/sbin/install
4024 # SunOS /usr/etc/install
4025 # IRIX /sbin/install
4027 # AmigaOS /C/install, which installs bootblocks on floppy discs
4028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4031 # OS/2's system install, which has a completely different semantic
4032 # ./install, which can be erroneously created by make from ./install.sh.
4033 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4034 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4035 if test -z "$INSTALL"; then
4036 if test "${ac_cv_path_install+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 # Account for people who put trailing slashes in PATH elements.
4046 ./ | .// | /cC/* | \
4047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4048 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4051 # OSF1 and SCO ODT 3.0 have their own names for install.
4052 # Don't use installbsd from OSF since it installs stuff as root
4054 for ac_prog in ginstall scoinst install; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4057 if test $ac_prog = install &&
4058 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4059 # AIX install. It has an incompatible calling convention.
4061 elif test $ac_prog = install &&
4062 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4063 # program-specific install script used by HP pwplus--don't use.
4066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4078 if test "${ac_cv_path_install+set}" = set; then
4079 INSTALL=$ac_cv_path_install
4081 # As a last resort, use the slow shell script. We don't cache a
4082 # path for INSTALL within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the path is relative.
4085 INSTALL=$ac_install_sh
4088 echo "$as_me:$LINENO: result: $INSTALL" >&5
4089 echo "${ECHO_T}$INSTALL" >&6
4091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092 # It thinks the first close brace ends the variable substitution.
4093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_RANLIB+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 if test -n "$RANLIB"; then
4108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 RANLIB=$ac_cv_prog_RANLIB
4127 if test -n "$RANLIB"; then
4128 echo "$as_me:$LINENO: result: $RANLIB" >&5
4129 echo "${ECHO_T}$RANLIB" >&6
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4136 if test -z "$ac_cv_prog_RANLIB"; then
4137 ac_ct_RANLIB=$RANLIB
4138 # Extract the first word of "ranlib", so it can be a program name with args.
4139 set dummy ranlib; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$ac_ct_RANLIB"; then
4146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_ac_ct_RANLIB="ranlib"
4156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4166 if test -n "$ac_ct_RANLIB"; then
4167 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 RANLIB=$ac_ct_RANLIB
4176 RANLIB="$ac_cv_prog_RANLIB"
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ar; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_AR+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test -n "$AR"; then
4188 ac_cv_prog_AR="$AR" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_AR="${ac_tool_prefix}ar"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 if test -n "$AR"; then
4208 echo "$as_me:$LINENO: result: $AR" >&5
4209 echo "${ECHO_T}$AR" >&6
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4216 if test -z "$ac_cv_prog_AR"; then
4218 # Extract the first word of "ar", so it can be a program name with args.
4219 set dummy ar; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 if test -n "$ac_ct_AR"; then
4226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_AR="ar"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4245 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4246 if test -n "$ac_ct_AR"; then
4247 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4248 echo "${ECHO_T}$ac_ct_AR" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4260 echo "$as_me:$LINENO: checking for inline" >&5
4261 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4262 if test "${ac_cv_c_inline+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 for ac_kw in inline __inline__ __inline; do
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4275 static $ac_kw foo_t static_foo () {return 0; }
4276 $ac_kw foo_t foo () {return 0; }
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_c_inline=$ac_kw; break
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4312 echo "${ECHO_T}$ac_cv_c_inline" >&6
4315 case $ac_cv_c_inline in
4318 case $ac_cv_c_inline in
4320 *) ac_val=$ac_cv_c_inline;;
4322 cat >>confdefs.h <<_ACEOF
4324 #define inline $ac_val
4330 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4331 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4332 if test "${ac_cv_c_const+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4345 /* FIXME: Include the comments suggested by Paul. */
4347 /* Ultrix mips cc rejects this. */
4348 typedef int charset[2];
4350 /* SunOS 4.1.1 cc rejects this. */
4351 char const *const *ccp;
4353 /* NEC SVR4.0.2 mips cc rejects this. */
4354 struct point {int x, y;};
4355 static struct point const zero = {0,0};
4356 /* AIX XL C 1.02.0.0 rejects this.
4357 It does not let you subtract one const X* pointer from another in
4358 an arm of an if-expression whose if-part is not a constant
4360 const char *g = "string";
4361 ccp = &g + (g ? g-g : 0);
4362 /* HPUX 7.0 cc rejects these. */
4365 ccp = (char const *const *) p;
4366 { /* SCO 3.2v4 cc rejects this. */
4368 char const *s = 0 ? (char *) 0 : (char const *) 0;
4372 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4374 const int *foo = &x[0];
4377 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4378 typedef const int *iptr;
4382 { /* AIX XL C 1.02.0.0 rejects this saying
4383 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4384 struct s { int j; const int *ap[3]; };
4385 struct s *b; b->j = 5;
4387 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4427 echo "${ECHO_T}$ac_cv_c_const" >&6
4428 if test $ac_cv_c_const = no; then
4430 cat >>confdefs.h <<\_ACEOF
4437 # Extract the first word of "dbx", so it can be a program name with args.
4438 set dummy dbx; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_path_DBX+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4469 if test -n "$DBX"; then
4470 echo "$as_me:$LINENO: result: $DBX" >&5
4471 echo "${ECHO_T}$DBX" >&6
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4477 # Extract the first word of "gdb", so it can be a program name with args.
4478 set dummy gdb; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_path_GDB+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4509 if test -n "$GDB"; then
4510 echo "$as_me:$LINENO: result: $GDB" >&5
4511 echo "${ECHO_T}$GDB" >&6
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4517 # Extract the first word of "sdb", so it can be a program name with args.
4518 set dummy sdb; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_SDB+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4549 if test -n "$SDB"; then
4550 echo "$as_me:$LINENO: result: $SDB" >&5
4551 echo "${ECHO_T}$SDB" >&6
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4558 if test $GDB != no ; then
4560 elif test $DBX != no ; then
4562 elif test $SDB != no ; then
4570 # The following templates should be used with newer automakes
4571 # instead of acconfig.h
4573 #AH_TEMPLATE([sig_atomic_t],
4574 # [/* Define to `int' if <signal.h> doesn't define.])
4575 #AH_TEMPLATE([HAVE_START_COLOR],
4576 # [Define if you have start_color, as a function or macro.])
4577 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4578 # [Define if you have typeahead, as a function or macro.])
4579 #AH_TEMPLATE([HAVE_BKGDSET],
4580 # [Define if you have bkgdset, as a function or macro.])
4581 #AH_TEMPLATE([HAVE_CURS_SET],
4582 # [Define if you have curs_set, as a function or macro.])
4583 #AH_TEMPLATE([HAVE_META],
4584 # [Define if you have meta, as a function or macro.])
4585 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4586 # [Define if you have use_default_colors, as a function or macro.])
4587 #AH_TEMPLATE([HAVE_RESIZETERM],
4588 # [Define if you have resizeterm, as a function or macro.])
4589 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4590 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4591 # This define will have value `sig_atomic_t' or
4592 # `volatile sig_atomic_t' accordingly.])
4593 #AH_TEMPLATE([ICONV_NONTRANS],
4594 # [Define as 1 if iconv() only converts exactly and we should treat
4595 # all return values other than (size_t)(-1) as equivalent.])
4598 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4599 # Extract the first word of "sendmail", so it can be a program name with args.
4600 set dummy sendmail; ac_word=$2
4601 echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4603 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 as_dummy="$PATH:$ac_aux_path_sendmail"
4613 for as_dir in $as_dummy
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4630 SENDMAIL=$ac_cv_path_SENDMAIL
4632 if test -n "$SENDMAIL"; then
4633 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4634 echo "${ECHO_T}$SENDMAIL" >&6
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4641 cat >>confdefs.h <<_ACEOF
4642 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4647 if test -f $srcdir/EXPORTABLE ; then
4652 # Check whether --enable-pgp or --disable-pgp was given.
4653 if test "${enable_pgp+set}" = set; then
4654 enableval="$enable_pgp"
4655 if test x$enableval = xno ; then
4661 if test x$have_pgp != xno ; then
4663 cat >>confdefs.h <<\_ACEOF
4664 #define CRYPT_BACKEND_CLASSIC_PGP 1
4667 PGPAUX_TARGET="pgpring pgpewrap"
4668 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"
4671 # Check whether --enable-smime or --disable-smime was given.
4672 if test "${enable_smime+set}" = set; then
4673 enableval="$enable_smime"
4674 if test x$enableval = xno ; then
4680 if test x$have_smime != xno ; then
4682 cat >>confdefs.h <<\_ACEOF
4683 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4686 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
4687 SMIMEAUX_TARGET="smime_keys"
4691 # Check whether --with-mixmaster or --without-mixmaster was given.
4692 if test "${with_mixmaster+set}" = set; then
4693 withval="$with_mixmaster"
4694 if test -x "$withval" ; then
4695 MIXMASTER="$withval"
4697 MIXMASTER="mixmaster"
4699 OPS="$OPS \$(srcdir)/OPS.MIX"
4700 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4702 cat >>confdefs.h <<_ACEOF
4703 #define MIXMASTER "$MIXMASTER"
4710 # We now require all OPS
4711 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4719 cat >>confdefs.h <<_ACEOF
4720 #define SUBVERSION "$SUBVERSION"
4725 # Extract the first word of "ispell", so it can be a program name with args.
4726 set dummy ispell; ac_word=$2
4727 echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_path_ISPELL+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4755 ISPELL=$ac_cv_path_ISPELL
4757 if test -n "$ISPELL"; then
4758 echo "$as_me:$LINENO: result: $ISPELL" >&5
4759 echo "${ECHO_T}$ISPELL" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4765 if test $ISPELL != no; then
4767 cat >>confdefs.h <<_ACEOF
4768 #define ISPELL "$ISPELL"
4774 # Check whether --with-slang or --without-slang was given.
4775 if test "${with_slang+set}" = set; then
4776 withval="$with_slang"
4777 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4778 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4779 if test "${mutt_cv_bsdish+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test "$cross_compiling" = yes; then
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <sys/param.h>
4802 rm -f conftest$ac_exeext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4804 (eval $ac_link) 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4815 echo "$as_me: program exited with status $ac_status" >&5
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4826 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4828 echo "$as_me:$LINENO: checking for S-Lang" >&5
4829 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4830 if test $withval = yes; then
4831 if test -d $srcdir/../slang; then
4832 mutt_cv_slang=$srcdir/../slang/src
4833 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4834 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4836 if test -d $mutt_cv_prefix/include/slang; then
4837 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4838 elif test -d /usr/include/slang; then
4839 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4844 if test -f $withval/src/slang.h; then
4845 mutt_cv_slang=$withval/src
4846 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4847 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4849 mutt_cv_slang=$withval
4850 if test -d $withval/include/slang; then
4851 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4852 elif test -d $withval/include; then
4853 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4855 LDFLAGS="$LDFLAGS -L${withval}/lib"
4858 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4859 echo "${ECHO_T}$mutt_cv_slang" >&6
4860 if test $mutt_cv_bsdish = yes; then
4862 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4863 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4864 if test "${ac_cv_lib_termlib_main+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_check_lib_save_LIBS=$LIBS
4868 LIBS="-ltermlib $LIBS"
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext conftest$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>conftest.er1
4889 grep -v '^ *+' conftest.er1 >conftest.err
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_lib_termlib_main=yes
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 ac_cv_lib_termlib_main=no
4913 rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4917 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4918 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4919 if test $ac_cv_lib_termlib_main = yes; then
4920 cat >>confdefs.h <<_ACEOF
4921 #define HAVE_LIBTERMLIB 1
4924 LIBS="-ltermlib $LIBS"
4930 cat >>confdefs.h <<\_ACEOF
4931 #define USE_SLANG_CURSES 1
4935 cat >>confdefs.h <<\_ACEOF
4936 #define HAVE_COLOR 1
4939 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4942 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4943 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4944 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lslang -lm $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4962 char SLtt_get_terminfo ();
4966 SLtt_get_terminfo ();
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973 (eval $ac_link) 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_slang_SLtt_get_terminfo=yes
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_lib_slang_SLtt_get_terminfo=no
4999 rm -f conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5001 LIBS=$ac_check_lib_save_LIBS
5003 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
5004 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
5005 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
5006 MUTTLIBS="$MUTTLIBS -lslang -lm"
5008 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
5009 echo "$as_me: error: unable to compile. check config.log" >&2;}
5010 { (exit 1); exit 1; }; }
5018 # Check whether --with-curses or --without-curses was given.
5019 if test "${with_curses+set}" = set; then
5020 withval="$with_curses"
5021 if test $withval != yes; then
5022 mutt_cv_curses=$withval
5024 if test x$mutt_cv_curses != x/usr; then
5025 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
5026 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
5030 echo "$as_me:$LINENO: checking for initscr" >&5
5031 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5032 if test "${ac_cv_func_initscr+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5043 #define initscr innocuous_initscr
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char initscr (); below.
5047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 <limits.h> exists even on freestanding compilers. */
5051 # include <limits.h>
5053 # include <assert.h>
5058 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_initscr) || defined (__stub___initscr)
5072 char (*f) () = initscr;
5081 return f != initscr;
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest$ac_exeext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_func_initscr=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_cv_func_initscr=no
5114 rm -f conftest.err conftest.$ac_objext \
5115 conftest$ac_exeext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5118 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5119 if test $ac_cv_func_initscr = yes; then
5123 cf_ncurses="ncurses"
5124 for lib in ncurses ncursesw
5126 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
5127 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
5128 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 ac_check_lib_save_LIBS=$LIBS
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5141 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158 (eval $ac_link) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 eval "$as_ac_Lib=yes"
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 eval "$as_ac_Lib=no"
5184 rm -f conftest.err conftest.$ac_objext \
5185 conftest$ac_exeext conftest.$ac_ext
5186 LIBS=$ac_check_lib_save_LIBS
5188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5189 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5190 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5191 cf_ncurses="$lib"; break
5195 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5196 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5197 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-l$cf_ncurses $LIBS"
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5225 rm -f conftest.$ac_objext conftest$ac_exeext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5227 (eval $ac_link) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1 >conftest.err
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try='test -s conftest$ac_exeext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 eval "$as_ac_Lib=yes"
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 eval "$as_ac_Lib=no"
5253 rm -f conftest.err conftest.$ac_objext \
5254 conftest$ac_exeext conftest.$ac_ext
5255 LIBS=$ac_check_lib_save_LIBS
5257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5258 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5259 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5260 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5261 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5262 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5265 if test "$cf_ncurses" = ncursesw; then
5267 for ac_header in ncursesw/ncurses.h
5269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5271 echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5279 # Is the header compilable?
5280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 #include <$ac_header>
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_header_compiler=yes
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_header_compiler=no
5319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 echo "${ECHO_T}$ac_header_compiler" >&6
5323 # Is the header present?
5324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <$ac_header>
5334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5351 if test -z "$ac_cpp_err"; then
5352 ac_header_preproc=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_header_preproc=no
5359 rm -f conftest.err conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361 echo "${ECHO_T}$ac_header_preproc" >&6
5363 # So? What about this header?
5364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5370 ac_header_preproc=yes
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5387 ## ------------------------------------------ ##
5388 ## Report this to the AC_PACKAGE_NAME lists. ##
5389 ## ------------------------------------------ ##
5392 sed "s/^/$as_me: WARNING: /" >&2
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 eval "$as_ac_Header=\$ac_header_preproc"
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407 cat >>confdefs.h <<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410 cf_cv_ncurses_header="ncursesw/ncurses.h"
5417 for ac_header in ncurses.h
5419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421 echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5429 # Is the header compilable?
5430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 #include <$ac_header>
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_header_compiler=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_header_compiler=no
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5471 echo "${ECHO_T}$ac_header_compiler" >&6
5473 # Is the header present?
5474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <$ac_header>
5484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null; then
5492 if test -s conftest.err; then
5493 ac_cpp_err=$ac_c_preproc_warn_flag
5494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 if test -z "$ac_cpp_err"; then
5502 ac_header_preproc=yes
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_header_preproc=no
5509 rm -f conftest.err conftest.$ac_ext
5510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5511 echo "${ECHO_T}$ac_header_preproc" >&6
5513 # So? What about this header?
5514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5520 ac_header_preproc=yes
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5537 ## ------------------------------------------ ##
5538 ## Report this to the AC_PACKAGE_NAME lists. ##
5539 ## ------------------------------------------ ##
5542 sed "s/^/$as_me: WARNING: /" >&2
5545 echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 eval "$as_ac_Header=\$ac_header_preproc"
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 cf_cv_ncurses_header="ncurses.h"
5568 echo "$as_me:$LINENO: checking for initscr" >&5
5569 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5570 if test "${ac_cv_func_initscr+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5581 #define initscr innocuous_initscr
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char initscr (); below.
5585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 <limits.h> exists even on freestanding compilers. */
5589 # include <limits.h>
5591 # include <assert.h>
5596 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined (__stub_initscr) || defined (__stub___initscr)
5610 char (*f) () = initscr;
5619 return f != initscr;
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_cv_func_initscr=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_cv_func_initscr=no
5652 rm -f conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5656 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5657 if test $ac_cv_func_initscr = yes; then
5661 case $host_os in #(vi
5663 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5664 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5665 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 ac_check_lib_save_LIBS=$LIBS
5669 LIBS="-lmytinfo $LIBS"
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5677 /* Override any gcc2 internal prototype to avoid an error. */
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_lib_mytinfo_tgoto=yes
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 ac_cv_lib_mytinfo_tgoto=no
5720 rm -f conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5724 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5725 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5726 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5727 LIBS="-lmytinfo $LIBS"
5732 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5733 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5734 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_check_lib_save_LIBS=$LIBS
5738 LIBS="-lcur_colr $LIBS"
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5746 /* Override any gcc2 internal prototype to avoid an error. */
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_lib_cur_colr_initscr=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 ac_cv_lib_cur_colr_initscr=no
5789 rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5793 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5794 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5795 if test $ac_cv_lib_cur_colr_initscr = yes; then
5797 LIBS="-lcur_colr $LIBS"
5798 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5799 ac_cv_func_initscr=yes
5803 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5804 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5805 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_check_lib_save_LIBS=$LIBS
5809 LIBS="-lHcurses $LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_lib_Hcurses_initscr=yes
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_cv_lib_Hcurses_initscr=no
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5865 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5866 if test $ac_cv_lib_Hcurses_initscr = yes; then
5868 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5869 LIBS="-lHcurses $LIBS"
5870 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5871 ac_cv_func_initscr=yes
5878 linux*) # Suse Linux does not follow /usr/lib convention
5883 if test ".$With5lib" != ".no" ; then
5884 if test -d /usr/5lib ; then
5886 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5887 LIBS="$LIBS -L/usr/5lib"
5891 if test ".$ac_cv_func_initscr" != .yes ; then
5892 cf_save_LIBS="$LIBS"
5896 # Check for library containing tgoto. Do this before curses library
5897 # because it may be needed to link the test-case for initscr.
5898 echo "$as_me:$LINENO: checking for tgoto" >&5
5899 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5900 if test "${ac_cv_func_tgoto+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
5910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5911 #define tgoto innocuous_tgoto
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char tgoto (); below.
5915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 <limits.h> exists even on freestanding compilers. */
5919 # include <limits.h>
5921 # include <assert.h>
5926 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5940 char (*f) () = tgoto;
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956 (eval $ac_link) 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_func_tgoto=yes
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5982 rm -f conftest.err conftest.$ac_objext \
5983 conftest$ac_exeext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5986 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5987 if test $ac_cv_func_tgoto = yes; then
5988 cf_term_lib=predefined
5991 for cf_term_lib in termcap termlib unknown
5993 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5995 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 ac_check_lib_save_LIBS=$LIBS
6000 LIBS="-l$cf_term_lib $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; } &&
6038 { ac_try='test -s conftest$ac_exeext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 eval "$as_ac_Lib=yes"
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 eval "$as_ac_Lib=no"
6051 rm -f conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6066 # Check for library containing initscr
6067 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6068 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
6070 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
6071 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
6072 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 ac_check_lib_save_LIBS=$LIBS
6077 LIBS="-l$cf_curs_lib $LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6085 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest$ac_exeext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 eval "$as_ac_Lib=yes"
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 eval "$as_ac_Lib=no"
6128 rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6133 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6134 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6139 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
6140 echo "$as_me: error: no curses library found" >&2;}
6141 { (exit 1); exit 1; }; }
6143 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6144 if test "$cf_term_lib" = unknown ; then
6145 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
6146 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <${cf_cv_ncurses_header-curses.h}>
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest$ac_exeext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -f conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6192 echo "$as_me:$LINENO: result: $cf_result" >&5
6193 echo "${ECHO_T}$cf_result" >&6
6194 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
6195 echo "$as_me: error: Cannot link curses library" >&2;}
6196 { (exit 1); exit 1; }; }
6197 elif test "$cf_term_lib" != predefined ; then
6198 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6199 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <${cf_cv_ncurses_header-curses.h}>
6210 initscr(); tgoto((char *)0, 0, 0);
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6242 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <${cf_cv_ncurses_header-curses.h}>
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest$ac_exeext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6286 rm -f conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6290 rm -f conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6292 echo "$as_me:$LINENO: result: $cf_result" >&5
6293 echo "${ECHO_T}$cf_result" >&6
6307 LIBS="$LIBS $MUTTLIBS"
6308 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
6311 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
6312 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
6313 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <${cf_cv_ncurses_header-curses.h}>
6327 extern int ${ac_func}();
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <${cf_cv_ncurses_header-curses.h}>
6366 int (*p)() = ${ac_func};
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6394 eval "ac_cv_func_decl_$ac_func=yes"
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6400 eval "ac_cv_func_decl_$ac_func=no"
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6408 eval "ac_cv_func_decl_$ac_func=yes"
6410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6414 echo "$as_me:$LINENO: result: yes" >&5
6415 echo "${ECHO_T}yes" >&6
6418 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6420 cat >>confdefs.h <<_ACEOF
6421 #define $ac_tr_func 1
6425 echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6
6430 if test "$ac_cv_func_decl_start_color" = yes; then
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_COLOR 1
6437 if test "$ac_cv_func_decl_resizeterm" = yes; then
6438 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6446 if test "${ac_cv_header_stdc+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6468 rm -f conftest.$ac_objext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470 (eval $ac_compile) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 ac_cv_header_stdc=yes
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_cv_header_stdc=no
6496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498 if test $ac_cv_header_stdc = yes; then
6499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "memchr" >/dev/null 2>&1; then
6513 ac_cv_header_stdc=no
6519 if test $ac_cv_header_stdc = yes; then
6520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 $EGREP "free" >/dev/null 2>&1; then
6534 ac_cv_header_stdc=no
6540 if test $ac_cv_header_stdc = yes; then
6541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6542 if test "$cross_compiling" = yes; then
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6552 #if ((' ' & 0x0FF) == 0x020)
6553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6556 # define ISLOWER(c) \
6557 (('a' <= (c) && (c) <= 'i') \
6558 || ('j' <= (c) && (c) <= 'r') \
6559 || ('s' <= (c) && (c) <= 'z'))
6560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6568 for (i = 0; i < 256; i++)
6569 if (XOR (islower (i), ISLOWER (i))
6570 || toupper (i) != TOUPPER (i))
6575 rm -f conftest$ac_exeext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6588 echo "$as_me: program exited with status $ac_status" >&5
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_cv_header_stdc=no
6595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6601 if test $ac_cv_header_stdc = yes; then
6603 cat >>confdefs.h <<\_ACEOF
6604 #define STDC_HEADERS 1
6614 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618 echo "$as_me:$LINENO: checking for $ac_header" >&5
6619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626 # Is the header compilable?
6627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 #include <$ac_header>
6638 rm -f conftest.$ac_objext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640 (eval $ac_compile) 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest.$ac_objext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_header_compiler=yes
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ac_header_compiler=no
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668 echo "${ECHO_T}$ac_header_compiler" >&6
6670 # Is the header present?
6671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <$ac_header>
6681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev/null; then
6689 if test -s conftest.err; then
6690 ac_cpp_err=$ac_c_preproc_warn_flag
6691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6698 if test -z "$ac_cpp_err"; then
6699 ac_header_preproc=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_header_preproc=no
6706 rm -f conftest.err conftest.$ac_ext
6707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6708 echo "${ECHO_T}$ac_header_preproc" >&6
6710 # So? What about this header?
6711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6717 ac_header_preproc=yes
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6734 ## ------------------------------------------ ##
6735 ## Report this to the AC_PACKAGE_NAME lists. ##
6736 ## ------------------------------------------ ##
6739 sed "s/^/$as_me: WARNING: /" >&2
6742 echo "$as_me:$LINENO: checking for $ac_header" >&5
6743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 eval "$as_ac_Header=\$ac_header_preproc"
6749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754 cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 for ac_header in sys/time.h sys/resource.h
6766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6768 echo "$as_me:$LINENO: checking for $ac_header" >&5
6769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6776 # Is the header compilable?
6777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6786 #include <$ac_header>
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_header_compiler=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_header_compiler=no
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6818 echo "${ECHO_T}$ac_header_compiler" >&6
6820 # Is the header present?
6821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <$ac_header>
6831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } >/dev/null; then
6839 if test -s conftest.err; then
6840 ac_cpp_err=$ac_c_preproc_warn_flag
6841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6848 if test -z "$ac_cpp_err"; then
6849 ac_header_preproc=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_header_preproc=no
6856 rm -f conftest.err conftest.$ac_ext
6857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6858 echo "${ECHO_T}$ac_header_preproc" >&6
6860 # So? What about this header?
6861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6867 ac_header_preproc=yes
6870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6884 ## ------------------------------------------ ##
6885 ## Report this to the AC_PACKAGE_NAME lists. ##
6886 ## ------------------------------------------ ##
6889 sed "s/^/$as_me: WARNING: /" >&2
6892 echo "$as_me:$LINENO: checking for $ac_header" >&5
6893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 eval "$as_ac_Header=\$ac_header_preproc"
6899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6904 cat >>confdefs.h <<_ACEOF
6905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6913 for ac_header in unix.h
6915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6917 echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6925 # Is the header compilable?
6926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 #include <$ac_header>
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1 >conftest.err
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_header_compiler=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_header_compiler=no
6965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6
6969 # Is the header present?
6970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <$ac_header>
6980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6983 grep -v '^ *+' conftest.er1 >conftest.err
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } >/dev/null; then
6988 if test -s conftest.err; then
6989 ac_cpp_err=$ac_c_preproc_warn_flag
6990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6997 if test -z "$ac_cpp_err"; then
6998 ac_header_preproc=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_header_preproc=no
7005 rm -f conftest.err conftest.$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7007 echo "${ECHO_T}$ac_header_preproc" >&6
7009 # So? What about this header?
7010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7016 ac_header_preproc=yes
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7033 ## ------------------------------------------ ##
7034 ## Report this to the AC_PACKAGE_NAME lists. ##
7035 ## ------------------------------------------ ##
7038 sed "s/^/$as_me: WARNING: /" >&2
7041 echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 eval "$as_ac_Header=\$ac_header_preproc"
7048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7053 cat >>confdefs.h <<_ACEOF
7054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065 for ac_func in setrlimit getsid isctype
7067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7068 echo "$as_me:$LINENO: checking for $ac_func" >&5
7069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7070 if eval "test \"\${$as_ac_var+set}\" = set"; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7081 #define $ac_func innocuous_$ac_func
7083 /* System header to define __stub macros and hopefully few prototypes,
7084 which can conflict with char $ac_func (); below.
7085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7086 <limits.h> exists even on freestanding compilers. */
7089 # include <limits.h>
7091 # include <assert.h>
7096 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7110 char (*f) () = $ac_func;
7119 return f != $ac_func;
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7128 grep -v '^ *+' conftest.er1 >conftest.err
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 eval "$as_ac_var=yes"
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 eval "$as_ac_var=no"
7152 rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7157 if test `eval echo '${'$as_ac_var'}'` = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7168 if test "${ac_cv_type_signal+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7183 extern "C" void (*signal (int, void (*)(int)))(int);
7185 void (*signal ()) ();
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest.$ac_objext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7217 ac_cv_type_signal=void
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_type_signal=int
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7227 echo "${ECHO_T}$ac_cv_type_signal" >&6
7229 cat >>confdefs.h <<_ACEOF
7230 #define RETSIGTYPE $ac_cv_type_signal
7235 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
7236 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
7249 ac_cv_type_sig_atomic_t=yes;
7250 cat >conftest.$ac_ext <<_ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
7262 is_sig_atomic_t_volatile=yes;
7263 echo "$as_me:$LINENO: result: yes, volatile" >&5
7264 echo "${ECHO_T}yes, volatile" >&6
7268 is_sig_atomic_t_volatile=no;
7269 echo "$as_me:$LINENO: result: yes, non volatile" >&5
7270 echo "${ECHO_T}yes, non volatile" >&6
7278 echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6
7280 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
7281 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
7282 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7295 if ((sig_atomic_t *) 0)
7297 if (sizeof (sig_atomic_t))
7303 rm -f conftest.$ac_objext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305 (eval $ac_compile) 2>conftest.er1
7307 grep -v '^ *+' conftest.er1 >conftest.err
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_cv_type_sig_atomic_t=yes
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_cv_type_sig_atomic_t=no
7331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
7334 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
7335 if test $ac_cv_type_sig_atomic_t = yes; then
7339 cat >>confdefs.h <<_ACEOF
7340 #define sig_atomic_t int
7345 is_sig_atomic_t_volatile=no
7350 if test $is_sig_atomic_t_volatile = 'yes'
7352 cat >>confdefs.h <<\_ACEOF
7353 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
7357 cat >>confdefs.h <<\_ACEOF
7358 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
7363 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7364 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7365 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7375 /* NetBSD declares sys_siglist in unistd.h. */
7377 # include <unistd.h>
7385 char *p = (char *) sys_siglist;
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_have_decl_sys_siglist=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ac_cv_have_decl_sys_siglist=no
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7423 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7424 if test $ac_cv_have_decl_sys_siglist = yes; then
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_DECL_SYS_SIGLIST 1
7432 cat >>confdefs.h <<_ACEOF
7433 #define HAVE_DECL_SYS_SIGLIST 0
7442 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7443 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7444 if test "${ac_cv_c_bigendian+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 # See if sys/param.h defines the BYTE_ORDER macro.
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <sys/types.h>
7455 #include <sys/param.h>
7460 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 # It does; now see whether it defined to BIG_ENDIAN or not.
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <sys/types.h>
7497 #include <sys/param.h>
7502 #if BYTE_ORDER != BIG_ENDIAN
7510 rm -f conftest.$ac_objext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512 (eval $ac_compile) 2>conftest.er1
7514 grep -v '^ *+' conftest.er1 >conftest.err
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; } &&
7525 { ac_try='test -s conftest.$ac_objext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_cv_c_bigendian=yes
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_cv_c_bigendian=no
7538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 # It does not; compile a test program.
7544 if test "$cross_compiling" = yes; then
7545 # try to guess the endianness by grepping values into an object file
7546 ac_cv_c_bigendian=unknown
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7554 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7555 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7556 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7557 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7558 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7562 _ascii (); _ebcdic ();
7567 rm -f conftest.$ac_objext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569 (eval $ac_compile) 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7589 ac_cv_c_bigendian=yes
7591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7592 if test "$ac_cv_c_bigendian" = unknown; then
7593 ac_cv_c_bigendian=no
7595 # finding both strings is unlikely to happen, but who knows?
7596 ac_cv_c_bigendian=unknown
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7615 /* Are we little or big endian? From Harbison&Steele. */
7619 char c[sizeof (long)];
7622 exit (u.c[sizeof (long) - 1] == 1);
7625 rm -f conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_c_bigendian=no
7638 echo "$as_me: program exited with status $ac_status" >&5
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_cv_c_bigendian=yes
7645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7652 case $ac_cv_c_bigendian in
7655 cat >>confdefs.h <<\_ACEOF
7656 #define WORDS_BIGENDIAN 1
7662 { { echo "$as_me:$LINENO: error: unknown endianness
7663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7664 echo "$as_me: error: unknown endianness
7665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7666 { (exit 1); exit 1; }; } ;;
7671 for ac_header in inttypes.h stdint.h
7673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675 echo "$as_me:$LINENO: checking for $ac_header" >&5
7676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7683 # Is the header compilable?
7684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7693 #include <$ac_header>
7695 rm -f conftest.$ac_objext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697 (eval $ac_compile) 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; } &&
7710 { ac_try='test -s conftest.$ac_objext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_header_compiler=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_header_compiler=no
7723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7725 echo "${ECHO_T}$ac_header_compiler" >&6
7727 # Is the header present?
7728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #include <$ac_header>
7738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7741 grep -v '^ *+' conftest.er1 >conftest.err
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } >/dev/null; then
7746 if test -s conftest.err; then
7747 ac_cpp_err=$ac_c_preproc_warn_flag
7748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7755 if test -z "$ac_cpp_err"; then
7756 ac_header_preproc=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_header_preproc=no
7763 rm -f conftest.err conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6
7767 # So? What about this header?
7768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7774 ac_header_preproc=yes
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7791 ## ------------------------------------------ ##
7792 ## Report this to the AC_PACKAGE_NAME lists. ##
7793 ## ------------------------------------------ ##
7796 sed "s/^/$as_me: WARNING: /" >&2
7799 echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 eval "$as_ac_Header=\$ac_header_preproc"
7806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811 cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7819 echo "$as_me:$LINENO: checking for uint32_t" >&5
7820 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 #include <sys/types.h>
7830 #include <inttypes.h>
7841 if (sizeof (uint32_t))
7848 rm -f conftest.$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850 (eval $ac_compile) 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest.$ac_objext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_UINT32_T 1
7875 echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7887 echo "$as_me:$LINENO: checking for int" >&5
7888 echo $ECHO_N "checking for int... $ECHO_C" >&6
7889 if test "${ac_cv_type_int+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7941 echo "${ECHO_T}$ac_cv_type_int" >&6
7943 echo "$as_me:$LINENO: checking size of int" >&5
7944 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7945 if test "${ac_cv_sizeof_int+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 if test "$ac_cv_type_int" = yes; then
7949 # The cast to unsigned long works around a bug in the HP C Compiler
7950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952 # This bug is HP SR number 8606223364.
7953 if test "$cross_compiling" = yes; then
7954 # Depending upon the size, compute the lo and hi bounds.
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 $ac_includes_default
7965 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974 (eval $ac_compile) 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 $ac_includes_default
8005 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014 (eval $ac_compile) 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_hi=$ac_mid; break
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_lo=`expr $ac_mid + 1`
8039 if test $ac_lo -le $ac_mid; then
8043 ac_mid=`expr 2 '*' $ac_mid + 1`
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8061 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 $ac_includes_default
8101 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8108 rm -f conftest.$ac_objext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110 (eval $ac_compile) 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_lo=$ac_mid; break
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_hi=`expr '(' $ac_mid ')' - 1`
8135 if test $ac_mid -le $ac_hi; then
8139 ac_mid=`expr 2 '*' $ac_mid`
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152 # Binary search between lo and hi bounds.
8153 while test "x$ac_lo" != "x$ac_hi"; do
8154 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8165 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_lo=`expr '(' $ac_mid ')' + 1`
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203 ?*) ac_cv_sizeof_int=$ac_lo;;
8204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8205 See \`config.log' for more details." >&5
8206 echo "$as_me: error: cannot compute sizeof (int), 77
8207 See \`config.log' for more details." >&2;}
8208 { (exit 1); exit 1; }; } ;;
8211 if test "$cross_compiling" = yes; then
8212 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8213 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8214 { (exit 1); exit 1; }; }
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 $ac_includes_default
8223 long longval () { return (long) (sizeof (int)); }
8224 unsigned long ulongval () { return (long) (sizeof (int)); }
8231 FILE *f = fopen ("conftest.val", "w");
8234 if (((long) (sizeof (int))) < 0)
8236 long i = longval ();
8237 if (i != ((long) (sizeof (int))))
8239 fprintf (f, "%ld\n", i);
8243 unsigned long i = ulongval ();
8244 if (i != ((long) (sizeof (int))))
8246 fprintf (f, "%lu\n", i);
8248 exit (ferror (f) || fclose (f) != 0);
8254 rm -f conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_sizeof_int=`cat conftest.val`
8267 echo "$as_me: program exited with status $ac_status" >&5
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8273 See \`config.log' for more details." >&5
8274 echo "$as_me: error: cannot compute sizeof (int), 77
8275 See \`config.log' for more details." >&2;}
8276 { (exit 1); exit 1; }; }
8278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8286 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8287 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8288 cat >>confdefs.h <<_ACEOF
8289 #define SIZEOF_INT $ac_cv_sizeof_int
8293 echo "$as_me:$LINENO: checking for long" >&5
8294 echo $ECHO_N "checking for long... $ECHO_C" >&6
8295 if test "${ac_cv_type_long+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest.$ac_objext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8347 echo "${ECHO_T}$ac_cv_type_long" >&6
8349 echo "$as_me:$LINENO: checking size of long" >&5
8350 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8351 if test "${ac_cv_sizeof_long+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 if test "$ac_cv_type_long" = yes; then
8355 # The cast to unsigned long works around a bug in the HP C Compiler
8356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8358 # This bug is HP SR number 8606223364.
8359 if test "$cross_compiling" = yes; then
8360 # Depending upon the size, compute the lo and hi bounds.
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 $ac_includes_default
8371 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8401 cat >conftest.$ac_ext <<_ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8411 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8418 rm -f conftest.$ac_objext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420 (eval $ac_compile) 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 ac_hi=$ac_mid; break
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 ac_lo=`expr $ac_mid + 1`
8445 if test $ac_lo -le $ac_mid; then
8449 ac_mid=`expr 2 '*' $ac_mid + 1`
8451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8467 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 $ac_includes_default
8507 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_lo=$ac_mid; break
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_hi=`expr '(' $ac_mid ')' - 1`
8541 if test $ac_mid -le $ac_hi; then
8545 ac_mid=`expr 2 '*' $ac_mid`
8547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 # Binary search between lo and hi bounds.
8559 while test "x$ac_lo" != "x$ac_hi"; do
8560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8571 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_lo=`expr '(' $ac_mid ')' + 1`
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609 ?*) ac_cv_sizeof_long=$ac_lo;;
8610 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8611 See \`config.log' for more details." >&5
8612 echo "$as_me: error: cannot compute sizeof (long), 77
8613 See \`config.log' for more details." >&2;}
8614 { (exit 1); exit 1; }; } ;;
8617 if test "$cross_compiling" = yes; then
8618 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8619 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8620 { (exit 1); exit 1; }; }
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 long longval () { return (long) (sizeof (long)); }
8630 unsigned long ulongval () { return (long) (sizeof (long)); }
8637 FILE *f = fopen ("conftest.val", "w");
8640 if (((long) (sizeof (long))) < 0)
8642 long i = longval ();
8643 if (i != ((long) (sizeof (long))))
8645 fprintf (f, "%ld\n", i);
8649 unsigned long i = ulongval ();
8650 if (i != ((long) (sizeof (long))))
8652 fprintf (f, "%lu\n", i);
8654 exit (ferror (f) || fclose (f) != 0);
8660 rm -f conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_sizeof_long=`cat conftest.val`
8673 echo "$as_me: program exited with status $ac_status" >&5
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8679 See \`config.log' for more details." >&5
8680 echo "$as_me: error: cannot compute sizeof (long), 77
8681 See \`config.log' for more details." >&2;}
8682 { (exit 1); exit 1; }; }
8684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8693 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8694 cat >>confdefs.h <<_ACEOF
8695 #define SIZEOF_LONG $ac_cv_sizeof_long
8700 echo "$as_me:$LINENO: checking for pid_t" >&5
8701 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8702 if test "${ac_cv_type_pid_t+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_type_pid_t=yes
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8754 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8755 if test $ac_cv_type_pid_t = yes; then
8759 cat >>confdefs.h <<_ACEOF
8771 for ac_func in fgetpos memmove setegid srand48 strerror
8773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8774 echo "$as_me:$LINENO: checking for $ac_func" >&5
8775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_var+set}\" = set"; then
8777 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8787 #define $ac_func innocuous_$ac_func
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char $ac_func (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8795 # include <limits.h>
8797 # include <assert.h>
8802 /* Override any gcc2 internal prototype to avoid an error. */
8807 /* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8810 /* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8816 char (*f) () = $ac_func;
8825 return f != $ac_func;
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 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); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 eval "$as_ac_var=yes"
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 eval "$as_ac_var=no"
8858 rm -f conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8863 if test `eval echo '${'$as_ac_var'}'` = yes; then
8864 cat >>confdefs.h <<_ACEOF
8865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8874 for ac_func in strcasecmp strdup
8876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8877 echo "$as_me:$LINENO: checking for $ac_func" >&5
8878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8879 if eval "test \"\${$as_ac_var+set}\" = set"; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8890 #define $ac_func innocuous_$ac_func
8892 /* System header to define __stub macros and hopefully few prototypes,
8893 which can conflict with char $ac_func (); below.
8894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8895 <limits.h> exists even on freestanding compilers. */
8898 # include <limits.h>
8900 # include <assert.h>
8905 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8913 /* The GNU C library defines this for functions which it implements
8914 to always fail with ENOSYS. Some functions are actually named
8915 something starting with __ and the normal name is an alias. */
8916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8919 char (*f) () = $ac_func;
8928 return f != $ac_func;
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 eval "$as_ac_var=yes"
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 eval "$as_ac_var=no"
8961 rm -f conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8966 if test `eval echo '${'$as_ac_var'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8973 "$ac_func.$ac_objext" | \
8974 *" $ac_func.$ac_objext" | \
8975 "$ac_func.$ac_objext "* | \
8976 *" $ac_func.$ac_objext "* ) ;;
8977 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
8985 echo "$as_me:$LINENO: checking for getopt" >&5
8986 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8987 if test "${ac_cv_func_getopt+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8998 #define getopt innocuous_getopt
9000 /* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char getopt (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9006 # include <limits.h>
9008 # include <assert.h>
9013 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_getopt) || defined (__stub___getopt)
9027 char (*f) () = getopt;
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try='test -s conftest$ac_exeext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_func_getopt=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_cv_func_getopt=no
9069 rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9072 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9073 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9075 if test $ac_cv_func_getopt = yes; then
9077 for ac_header in getopt.h
9079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo "$as_me:$LINENO: checking for $ac_header" >&5
9082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089 # Is the header compilable?
9090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 #include <$ac_header>
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest.$ac_objext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_header_compiler=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_header_compiler=no
9129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9131 echo "${ECHO_T}$ac_header_compiler" >&6
9133 # Is the header present?
9134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 #include <$ac_header>
9144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } >/dev/null; then
9152 if test -s conftest.err; then
9153 ac_cpp_err=$ac_c_preproc_warn_flag
9154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9161 if test -z "$ac_cpp_err"; then
9162 ac_header_preproc=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9169 rm -f conftest.err conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171 echo "${ECHO_T}$ac_header_preproc" >&6
9173 # So? What about this header?
9174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9180 ac_header_preproc=yes
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9197 ## ------------------------------------------ ##
9198 ## Report this to the AC_PACKAGE_NAME lists. ##
9199 ## ------------------------------------------ ##
9202 sed "s/^/$as_me: WARNING: /" >&2
9205 echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 eval "$as_ac_Header=\$ac_header_preproc"
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217 cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9230 for ac_func in snprintf
9232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233 echo "$as_me:$LINENO: checking for $ac_func" >&5
9234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9246 #define $ac_func innocuous_$ac_func
9248 /* System header to define __stub macros and hopefully few prototypes,
9249 which can conflict with char $ac_func (); below.
9250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9251 <limits.h> exists even on freestanding compilers. */
9254 # include <limits.h>
9256 # include <assert.h>
9261 /* Override any gcc2 internal prototype to avoid an error. */
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9269 /* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9275 char (*f) () = $ac_func;
9284 return f != $ac_func;
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 eval "$as_ac_var=yes"
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 eval "$as_ac_var=no"
9317 rm -f conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9322 if test `eval echo '${'$as_ac_var'}'` = yes; then
9323 cat >>confdefs.h <<_ACEOF
9324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9328 mutt_cv_snprintf=yes
9333 for ac_func in vsnprintf
9335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_var+set}\" = set"; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9349 #define $ac_func innocuous_$ac_func
9351 /* System header to define __stub macros and hopefully few prototypes,
9352 which can conflict with char $ac_func (); below.
9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354 <limits.h> exists even on freestanding compilers. */
9357 # include <limits.h>
9359 # include <assert.h>
9364 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9378 char (*f) () = $ac_func;
9387 return f != $ac_func;
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 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_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 eval "$as_ac_var=yes"
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 eval "$as_ac_var=no"
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9425 if test `eval echo '${'$as_ac_var'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9431 mutt_cv_snprintf=yes
9435 if test $mutt_cv_snprintf = yes; then
9437 "snprintf.$ac_objext" | \
9438 *" snprintf.$ac_objext" | \
9439 "snprintf.$ac_objext "* | \
9440 *" snprintf.$ac_objext "* ) ;;
9441 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
9447 for ac_func in ftruncate
9449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9450 echo "$as_me:$LINENO: checking for $ac_func" >&5
9451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9452 if eval "test \"\${$as_ac_var+set}\" = set"; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9463 #define $ac_func innocuous_$ac_func
9465 /* System header to define __stub macros and hopefully few prototypes,
9466 which can conflict with char $ac_func (); below.
9467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9468 <limits.h> exists even on freestanding compilers. */
9471 # include <limits.h>
9473 # include <assert.h>
9478 /* Override any gcc2 internal prototype to avoid an error. */
9483 /* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9486 /* The GNU C library defines this for functions which it implements
9487 to always fail with ENOSYS. Some functions are actually named
9488 something starting with __ and the normal name is an alias. */
9489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 char (*f) () = $ac_func;
9501 return f != $ac_func;
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 eval "$as_ac_var=yes"
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 eval "$as_ac_var=no"
9534 rm -f conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9539 if test `eval echo '${'$as_ac_var'}'` = yes; then
9540 cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9546 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9547 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9548 if test "${ac_cv_lib_x_chsize+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_check_lib_save_LIBS=$LIBS
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9560 /* Override any gcc2 internal prototype to avoid an error. */
9564 /* We use char because int might match the return type of a gcc2
9565 builtin and then its argument prototype would still apply. */
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_lib_x_chsize=yes
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_cv_lib_x_chsize=no
9603 rm -f conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LIBS=$ac_check_lib_save_LIBS
9607 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9608 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9609 if test $ac_cv_lib_x_chsize = yes; then
9610 cat >>confdefs.h <<_ACEOF
9623 for ac_func in strftime
9625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 echo "$as_me:$LINENO: checking for $ac_func" >&5
9627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9628 if eval "test \"\${$as_ac_var+set}\" = set"; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9639 #define $ac_func innocuous_$ac_func
9641 /* System header to define __stub macros and hopefully few prototypes,
9642 which can conflict with char $ac_func (); below.
9643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9644 <limits.h> exists even on freestanding compilers. */
9647 # include <limits.h>
9649 # include <assert.h>
9654 /* Override any gcc2 internal prototype to avoid an error. */
9659 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9662 /* The GNU C library defines this for functions which it implements
9663 to always fail with ENOSYS. Some functions are actually named
9664 something starting with __ and the normal name is an alias. */
9665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9668 char (*f) () = $ac_func;
9677 return f != $ac_func;
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 eval "$as_ac_var=yes"
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 eval "$as_ac_var=no"
9710 rm -f conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9715 if test `eval echo '${'$as_ac_var'}'` = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9722 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9723 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9724 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 ac_check_lib_save_LIBS=$LIBS
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_lib_intl_strftime=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_cv_lib_intl_strftime=no
9779 rm -f conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9783 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9784 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9785 if test $ac_cv_lib_intl_strftime = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define HAVE_LIBINTL 1
9799 for ac_func in fchdir
9801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_func" >&5
9803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_var+set}\" = set"; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9815 #define $ac_func innocuous_$ac_func
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func (); below.
9819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820 <limits.h> exists even on freestanding compilers. */
9823 # include <limits.h>
9825 # include <assert.h>
9830 /* Override any gcc2 internal prototype to avoid an error. */
9835 /* We use char because int might match the return type of a gcc2
9836 builtin and then its argument prototype would still apply. */
9838 /* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9844 char (*f) () = $ac_func;
9853 return f != $ac_func;
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 eval "$as_ac_var=yes"
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 eval "$as_ac_var=no"
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9903 # Check whether --with-regex or --without-regex was given.
9904 if test "${with_regex+set}" = set; then
9905 withval="$with_regex"
9909 for ac_func in regcomp
9911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912 echo "$as_me:$LINENO: checking for $ac_func" >&5
9913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9914 if eval "test \"\${$as_ac_var+set}\" = set"; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9925 #define $ac_func innocuous_$ac_func
9927 /* System header to define __stub macros and hopefully few prototypes,
9928 which can conflict with char $ac_func (); below.
9929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930 <limits.h> exists even on freestanding compilers. */
9933 # include <limits.h>
9935 # include <assert.h>
9940 /* Override any gcc2 internal prototype to avoid an error. */
9945 /* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9948 /* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
9951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9954 char (*f) () = $ac_func;
9963 return f != $ac_func;
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 eval "$as_ac_var=no"
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001 if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013 if test $mutt_cv_regex = no ; then
10014 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10015 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10016 if test "${mutt_cv_regex_broken+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 if test "$cross_compiling" = yes; then
10020 mutt_cv_regex_broken=yes
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 #include <unistd.h>
10031 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); }
10033 rm -f conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 mutt_cv_regex_broken=no
10046 echo "$as_me: program exited with status $ac_status" >&5
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ( exit $ac_status )
10051 mutt_cv_regex_broken=yes
10053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10056 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10057 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10058 if test $mutt_cv_regex_broken = yes ; then
10059 echo "Using the included GNU regex instead." >&6
10064 if test $mutt_cv_regex = yes; then
10066 cat >>confdefs.h <<\_ACEOF
10067 #define USE_GNU_REGEX 1
10071 "regex.$ac_objext" | \
10072 *" regex.$ac_objext" | \
10073 "regex.$ac_objext "* | \
10074 *" regex.$ac_objext "* ) ;;
10075 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
10082 # Check whether --with-homespool or --without-homespool was given.
10083 if test "${with_homespool+set}" = set; then
10084 withval="$with_homespool"
10085 with_homespool=${withval}
10087 if test x$with_homespool != x; then
10088 if test $with_homespool = yes; then
10089 with_homespool=mailbox
10092 cat >>confdefs.h <<_ACEOF
10093 #define MAILPATH "$with_homespool"
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HOMESPOOL 1
10102 cat >>confdefs.h <<\_ACEOF
10103 #define USE_DOTLOCK 1
10109 # Check whether --with-mailpath or --without-mailpath was given.
10110 if test "${with_mailpath+set}" = set; then
10111 withval="$with_mailpath"
10112 mutt_cv_mailpath=$withval
10114 echo "$as_me:$LINENO: checking where new mail is stored" >&5
10115 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10116 if test "${mutt_cv_mailpath+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 mutt_cv_mailpath=no
10120 if test -d /var/mail; then
10121 mutt_cv_mailpath=/var/mail
10122 elif test -d /var/spool/mail; then
10123 mutt_cv_mailpath=/var/spool/mail
10124 elif test -d /usr/spool/mail; then
10125 mutt_cv_mailpath=/usr/spool/mail
10126 elif test -d /usr/mail; then
10127 mutt_cv_mailpath=/usr/mail
10130 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10131 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10134 if test "$mutt_cv_mailpath" = no; then
10135 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10136 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10137 { (exit 1); exit 1; }; }
10140 cat >>confdefs.h <<_ACEOF
10141 #define MAILPATH "$mutt_cv_mailpath"
10145 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10146 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10147 if test "${mutt_cv_worldwrite+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 if test "$cross_compiling" = yes; then
10151 mutt_cv_worldwrite=no
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 #include <sys/types.h>
10160 #include <sys/stat.h>
10162 int main (int argc, char **argv)
10166 stat ("$mutt_cv_mailpath", &s);
10167 if (s.st_mode & S_IWOTH) exit (0);
10171 rm -f conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 mutt_cv_worldwrite=yes
10184 echo "$as_me: program exited with status $ac_status" >&5
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ( exit $ac_status )
10189 mutt_cv_worldwrite=no
10191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10194 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10195 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10198 if test $mutt_cv_worldwrite = yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define USE_DOTLOCK 1
10206 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10207 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10208 if test "${mutt_cv_groupwrite+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 if test "$cross_compiling" = yes; then
10212 mutt_cv_groupwrite=no
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 #include <sys/types.h>
10221 #include <sys/stat.h>
10223 int main (int argc, char **argv)
10227 stat ("$mutt_cv_mailpath", &s);
10228 if (s.st_mode & S_IWGRP) exit (0);
10232 rm -f conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 mutt_cv_groupwrite=yes
10245 echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ( exit $ac_status )
10250 mutt_cv_groupwrite=no
10252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10256 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10258 if test $mutt_cv_groupwrite = yes; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define USE_DOTLOCK 1
10265 cat >>confdefs.h <<\_ACEOF
10266 #define USE_SETGID 1
10274 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10275 if test "${enable_external_dotlock+set}" = set; then
10276 enableval="$enable_external_dotlock"
10277 mutt_cv_external_dotlock="$enableval"
10280 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10281 || test "x$mutt_cv_external_dotlock" = "xyes"
10284 cat >>confdefs.h <<\_ACEOF
10285 #define DL_STANDALONE 1
10288 DOTLOCK_TARGET="muttng_dotlock"
10290 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10296 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10297 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10299 # Check whether --with-docdir or --without-docdir was given.
10300 if test "${with_docdir+set}" = set; then
10301 withval="$with_docdir"
10302 mutt_cv_docdir=$withval
10304 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10306 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10307 echo "${ECHO_T}$mutt_cv_docdir" >&6
10309 docdir=$mutt_cv_docdir
10312 if test x$mutt_cv_setgid = xyes; then
10313 DOTLOCK_GROUP='mail'
10314 DOTLOCK_PERMISSION=2755
10317 DOTLOCK_PERMISSION=755
10323 # Check whether --with-domain or --without-domain was given.
10324 if test "${with_domain+set}" = set; then
10325 withval="$with_domain"
10326 if test $withval != yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define DOMAIN "$withval"
10338 # Check whether --enable-pop or --disable-pop was given.
10339 if test "${enable_pop+set}" = set; then
10340 enableval="$enable_pop"
10341 if test x$enableval = xyes ; then
10343 cat >>confdefs.h <<\_ACEOF
10347 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10355 # Check whether --enable-imap or --disable-imap was given.
10356 if test "${enable_imap+set}" = set; then
10357 enableval="$enable_imap"
10358 if test x$enableval = xyes ; then
10360 cat >>confdefs.h <<\_ACEOF
10364 LIBIMAP="-Limap -limap"
10365 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10374 if test x$need_imap = xyes; then
10376 BUILD_IMAP_FALSE='#'
10378 BUILD_IMAP_TRUE='#'
10383 # Check whether --enable-nntp or --disable-nntp was given.
10384 if test "${enable_nntp+set}" = set; then
10385 enableval="$enable_nntp"
10386 if test x$enableval = xyes ; then
10387 cat >>confdefs.h <<\_ACEOF
10391 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10398 if test "$need_socket" = "yes"
10400 echo "$as_me:$LINENO: checking for socklen_t" >&5
10401 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <sys/socket.h>
10411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10412 $EGREP "socklen_t" >/dev/null 2>&1; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414 echo "${ECHO_T}yes" >&6
10416 echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6
10419 cat >>confdefs.h <<\_ACEOF
10420 #define socklen_t int
10426 echo "$as_me:$LINENO: checking for gethostent" >&5
10427 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10428 if test "${ac_cv_func_gethostent+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
10438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10439 #define gethostent innocuous_gethostent
10441 /* System header to define __stub macros and hopefully few prototypes,
10442 which can conflict with char gethostent (); below.
10443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444 <limits.h> exists even on freestanding compilers. */
10447 # include <limits.h>
10449 # include <assert.h>
10454 /* Override any gcc2 internal prototype to avoid an error. */
10459 /* We use char because int might match the return type of a gcc2
10460 builtin and then its argument prototype would still apply. */
10461 char gethostent ();
10462 /* The GNU C library defines this for functions which it implements
10463 to always fail with ENOSYS. Some functions are actually named
10464 something starting with __ and the normal name is an alias. */
10465 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10468 char (*f) () = gethostent;
10477 return f != gethostent;
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_func_gethostent=yes
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_func_gethostent=no
10510 rm -f conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10513 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10514 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10515 if test $ac_cv_func_gethostent = yes; then
10519 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10520 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10521 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_check_lib_save_LIBS=$LIBS
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10539 char gethostent ();
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_lib_nsl_gethostent=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_cv_lib_nsl_gethostent=no
10576 rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 LIBS=$ac_check_lib_save_LIBS
10580 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10581 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10582 if test $ac_cv_lib_nsl_gethostent = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define HAVE_LIBNSL 1
10593 echo "$as_me:$LINENO: checking for setsockopt" >&5
10594 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10595 if test "${ac_cv_func_setsockopt+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10606 #define setsockopt innocuous_setsockopt
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char setsockopt (); below.
10610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611 <limits.h> exists even on freestanding compilers. */
10614 # include <limits.h>
10616 # include <assert.h>
10621 /* Override any gcc2 internal prototype to avoid an error. */
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10628 char setsockopt ();
10629 /* The GNU C library defines this for functions which it implements
10630 to always fail with ENOSYS. Some functions are actually named
10631 something starting with __ and the normal name is an alias. */
10632 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10635 char (*f) () = setsockopt;
10644 return f != setsockopt;
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>conftest.er1
10653 grep -v '^ *+' conftest.er1 >conftest.err
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_func_setsockopt=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_func_setsockopt=no
10677 rm -f conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10681 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10682 if test $ac_cv_func_setsockopt = yes; then
10686 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10687 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10688 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lsocket $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10706 char setsockopt ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_lib_socket_setsockopt=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_lib_socket_setsockopt=no
10743 rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10748 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10749 if test $ac_cv_lib_socket_setsockopt = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define HAVE_LIBSOCKET 1
10754 LIBS="-lsocket $LIBS"
10761 for ac_func in getaddrinfo
10763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764 echo "$as_me:$LINENO: checking for $ac_func" >&5
10765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10766 if eval "test \"\${$as_ac_var+set}\" = set"; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define $ac_func innocuous_$ac_func
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10785 # include <limits.h>
10787 # include <assert.h>
10792 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */
10800 /* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
10803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10806 char (*f) () = $ac_func;
10815 return f != $ac_func;
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 eval "$as_ac_var=yes"
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 eval "$as_ac_var=no"
10848 rm -f conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10853 if test `eval echo '${'$as_ac_var'}'` = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862 cat >>confdefs.h <<\_ACEOF
10863 #define USE_SOCKET 1
10866 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10871 # Check whether --with-gss or --without-gss was given.
10872 if test "${with_gss+set}" = set; then
10873 withval="$with_gss"
10874 gss_prefix="$withval"
10878 if test "$gss_prefix" != "no"
10880 if test "$need_imap" = "yes"
10883 GSSAPI_PREFIX=$gss_prefix
10885 saved_CPPFLAGS="$CPPFLAGS"
10886 saved_LDFLAGS="$LDFLAGS"
10888 if test "$GSSAPI_PREFIX" != "yes"
10890 krb5_path="$GSSAPI_PREFIX/bin"
10894 # Extract the first word of "krb5-config", so it can be a program name with args.
10895 set dummy krb5-config; ac_word=$2
10896 echo "$as_me:$LINENO: checking for $ac_word" >&5
10897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10898 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 case $KRB5CFGPATH in
10903 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $krb5_path
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10924 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10926 if test -n "$KRB5CFGPATH"; then
10927 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10928 echo "${ECHO_T}$KRB5CFGPATH" >&6
10930 echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6
10934 if test "$KRB5CFGPATH" != "none"
10936 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10937 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10938 case "`$KRB5CFGPATH --version`" in
10939 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10940 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10941 *) GSSAPI_IMPL="Unknown";;
10944 if test "$GSSAPI_PREFIX" != "yes"
10946 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10947 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10948 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10949 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10952 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10953 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10954 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 ac_check_lib_save_LIBS=$LIBS
10958 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10966 /* Override any gcc2 internal prototype to avoid an error. */
10970 /* We use char because int might match the return type of a gcc2
10971 builtin and then its argument prototype would still apply. */
10972 char gss_init_sec_context ();
10976 gss_init_sec_context ();
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest$ac_exeext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11009 rm -f conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11014 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11015 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11018 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11023 if test "$GSSAPI_IMPL" = "none"
11025 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11026 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11027 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11039 /* Override any gcc2 internal prototype to avoid an error. */
11043 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */
11045 char gss_init_sec_context ();
11049 gss_init_sec_context ();
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056 (eval $ac_link) 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_lib_gssapi_gss_init_sec_context=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_lib_gssapi_gss_init_sec_context=no
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11086 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11087 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11088 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11090 GSSAPI_IMPL="Heimdal"
11091 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11092 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11098 if test "$GSSAPI_IMPL" = "none"
11100 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11101 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11102 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11114 /* Override any gcc2 internal prototype to avoid an error. */
11118 /* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120 char g_order_init ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>conftest.er1
11133 grep -v '^ *+' conftest.er1 >conftest.err
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_lib_gssapi_krb5_g_order_init=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_lib_gssapi_krb5_g_order_init=no
11157 rm -f conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11161 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11162 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11163 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11165 GSSAPI_IMPL="OldMIT",
11166 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11173 CPPFLAGS="$saved_CPPFLAGS"
11174 LDFLAGS="$saved_LDFLAGS"
11177 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11178 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11179 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11180 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11181 if test "$GSSAPI_IMPL" = "none"
11183 cat >confcache <<\_ACEOF
11184 # This file is a shell script that caches the results of configure
11185 # tests run on this system so they can be shared between configure
11186 # scripts and configure runs, see configure's option --config-cache.
11187 # It is not useful on other systems. If it contains results you don't
11188 # want to keep, you may remove or edit it.
11190 # config.status only pays attention to the cache file if you give it
11191 # the --recheck option to rerun configure.
11193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11195 # following values.
11199 # The following way of writing the cache mishandles newlines in values,
11200 # but we know of no workaround that is simple, portable, and efficient.
11201 # So, don't put newlines in cache variables' values.
11202 # Ultrix sh set writes to stderr and can't be redirected directly,
11203 # and sets the high bit in the cache file unless we assign to the vars.
11206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11208 # `set' does not quote correctly, so add quotes (double-quote
11209 # substitution turns \\\\ into \\, and sed turns \\ into \).
11212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11215 # `set' quotes correctly as required by POSIX, so do not add quotes.
11217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11226 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11228 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11229 if test -w $cache_file; then
11230 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11231 cat confcache >$cache_file
11233 echo "not updating unwritable cache $cache_file"
11237 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11238 echo "${ECHO_T}GSSAPI libraries not found" >&6
11240 if test "$GSSAPI_IMPL" = "Heimdal"
11243 cat >>confdefs.h <<\_ACEOF
11244 #define HAVE_HEIMDAL 1
11248 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11249 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11251 cat >>confdefs.h <<\_ACEOF
11257 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11258 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11263 if test x$need_gss = xyes; then
11274 # Check whether --with-ssl or --without-ssl was given.
11275 if test "${with_ssl+set}" = set; then
11276 withval="$with_ssl"
11277 if test "$with_ssl" != "no"
11279 if test "$need_socket" != "yes"; then
11280 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11281 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11282 { (exit 1); exit 1; }; }
11285 if test "$with_ssl" != "yes"
11287 LDFLAGS="$LDFLAGS -L$withval/lib"
11288 CPPFLAGS="$CPPFLAGS -I$withval/include"
11293 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11294 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11295 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-lcrypto $LIBS"
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11307 /* Override any gcc2 internal prototype to avoid an error. */
11311 /* We use char because int might match the return type of a gcc2
11312 builtin and then its argument prototype would still apply. */
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324 (eval $ac_link) 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_crypto_X509_new=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_lib_crypto_X509_new=no
11350 rm -f conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11354 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11355 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11356 if test $ac_cv_lib_crypto_X509_new = yes; then
11357 cat >>confdefs.h <<_ACEOF
11358 #define HAVE_LIBCRYPTO 1
11361 LIBS="-lcrypto $LIBS"
11364 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11365 echo "$as_me: error: Unable to find SSL library" >&2;}
11366 { (exit 1); exit 1; }; }
11370 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11371 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11372 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 ac_check_lib_save_LIBS=$LIBS
11376 LIBS="-lssl -lcrypto $LIBS"
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11384 /* Override any gcc2 internal prototype to avoid an error. */
11388 /* We use char because int might match the return type of a gcc2
11389 builtin and then its argument prototype would still apply. */
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>conftest.er1
11403 grep -v '^ *+' conftest.er1 >conftest.err
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_ssl_SSL_new=yes
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_cv_lib_ssl_SSL_new=no
11427 rm -f conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11432 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11433 if test $ac_cv_lib_ssl_SSL_new = yes; then
11434 cat >>confdefs.h <<_ACEOF
11435 #define HAVE_LIBSSL 1
11441 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11442 echo "$as_me: error: Unable to find SSL library" >&2;}
11443 { (exit 1); exit 1; }; }
11449 for ac_func in RAND_status RAND_egd
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_var+set}\" = set"; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11465 #define $ac_func innocuous_$ac_func
11467 /* System header to define __stub macros and hopefully few prototypes,
11468 which can conflict with char $ac_func (); below.
11469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470 <limits.h> exists even on freestanding compilers. */
11473 # include <limits.h>
11475 # include <assert.h>
11480 /* Override any gcc2 internal prototype to avoid an error. */
11485 /* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11488 /* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11494 char (*f) () = $ac_func;
11503 return f != $ac_func;
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest$ac_exeext'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 eval "$as_ac_var=yes"
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 eval "$as_ac_var=no"
11536 rm -f conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11541 if test `eval echo '${'$as_ac_var'}'` = yes; then
11542 cat >>confdefs.h <<_ACEOF
11543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551 cat >>confdefs.h <<\_ACEOF
11556 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11557 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11565 if test x$need_ssl = xyes; then
11575 # Check whether --with-gnutls or --without-gnutls was given.
11576 if test "${with_gnutls+set}" = set; then
11577 withval="$with_gnutls"
11578 if test "$need_ssl" = "yes"
11580 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
11581 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
11582 { (exit 1); exit 1; }; }
11584 if test "$with_gnutls" != "no"
11586 if test "$need_socket" != "yes"; then
11587 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
11588 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
11589 { (exit 1); exit 1; }; }
11591 if test "$with_gnutls" != "yes"
11593 LDFLAGS="$LDFLAGS -L$withval/lib"
11594 CPPFLAGS="$CPPFLAGS -I$withval/include"
11596 #saved_LIBS="$LIBS"
11599 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
11600 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
11601 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lgnutls $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11613 /* Override any gcc2 internal prototype to avoid an error. */
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char gnutls_init ();
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_lib_gnutls_gnutls_init=yes
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_cv_lib_gnutls_gnutls_init=no
11656 rm -f conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11660 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
11661 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
11662 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define HAVE_LIBGNUTLS 1
11667 LIBS="-lgnutls $LIBS"
11670 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
11671 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
11672 { (exit 1); exit 1; }; }
11677 cat >>confdefs.h <<\_ACEOF
11678 #define USE_GNUTLS 1
11681 #LIBS="$saved_LIBS"
11682 #MUTTLIBS="$MUTTLIBS -lgnutls"
11683 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11690 if test x$need_gnutls = xyes; then
11692 USE_GNUTLS_FALSE='#'
11694 USE_GNUTLS_TRUE='#'
11700 # Check whether --with-nss or --without-nss was given.
11701 if test "${with_nss+set}" = set; then
11702 withval="$with_nss"
11703 if test "$with_nss" != no
11705 if test "$need_socket" != "yes"; then
11706 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11707 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11708 { (exit 1); exit 1; }; }
11711 if test "$with_nss" != "yes"
11713 LDFLAGS="$LDFLAGS -L$withval/lib"
11714 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11718 cat >>confdefs.h <<\_ACEOF
11722 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11723 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11724 MUTTLIBS="$MUTTLIBS -lnspr4"
11726 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11733 # Check whether --with-sasl or --without-sasl was given.
11734 if test "${with_sasl+set}" = set; then
11735 withval="$with_sasl"
11737 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11739 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
11740 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
11741 { (exit 1); exit 1; }; }
11744 if test "$with_sasl" != "no"
11746 if test "$with_sasl" != "yes"
11748 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
11749 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
11755 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
11756 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
11757 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 ac_check_lib_save_LIBS=$LIBS
11761 LIBS="-lsasl $LIBS"
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11769 /* Override any gcc2 internal prototype to avoid an error. */
11773 /* We use char because int might match the return type of a gcc2
11774 builtin and then its argument prototype would still apply. */
11775 char sasl_client_init ();
11779 sasl_client_init ();
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786 (eval $ac_link) 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_sasl_sasl_client_init=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_lib_sasl_sasl_client_init=no
11812 rm -f conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
11817 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
11818 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define HAVE_LIBSASL 1
11823 LIBS="-lsasl $LIBS"
11826 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11827 echo "$as_me: error: could not find libsasl" >&2;}
11828 { (exit 1); exit 1; }; }
11832 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11833 MUTTLIBS="$MUTTLIBS -lsasl"
11836 cat >>confdefs.h <<\_ACEOF
11846 if test x$need_sasl = xyes; then
11856 # Check whether --with-sasl2 or --without-sasl2 was given.
11857 if test "${with_sasl2+set}" = set; then
11858 withval="$with_sasl2"
11860 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11862 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
11863 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
11864 { (exit 1); exit 1; }; }
11867 if test "$with_sasl2" != "no"
11869 if test "$with_sasl2" != "yes"
11871 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
11872 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
11878 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
11879 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
11880 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lsasl2 $LIBS"
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char sasl_client_init ();
11902 sasl_client_init ();
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_cv_lib_sasl2_sasl_client_init=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_cv_lib_sasl2_sasl_client_init=no
11935 rm -f conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11939 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11940 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11941 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_LIBSASL2 1
11946 LIBS="-lsasl2 $LIBS"
11949 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11950 echo "$as_me: error: could not find libsasl2" >&2;}
11951 { (exit 1); exit 1; }; }
11955 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11956 MUTTLIBS="$MUTTLIBS -lsasl2"
11959 cat >>confdefs.h <<\_ACEOF
11964 cat >>confdefs.h <<\_ACEOF
11965 #define USE_SASL2 1
11974 if test x$need_sasl = xyes; then
11984 # Check whether --with-idn or --without-idn was given.
11985 if test "${with_idn+set}" = set; then
11986 withval="$with_idn"
11988 if test "$with_idn" != "no" ; then
11989 if test "$with_idn" != "yes" ; then
11990 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11991 LDFLAGS="$LDFLAGS -L$with_idn/lib"
11998 if test "x$with_idn" != "xno"; then
12000 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12001 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12002 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 ac_check_lib_save_LIBS=$LIBS
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12014 /* Override any gcc2 internal prototype to avoid an error. */
12018 /* We use char because int might match the return type of a gcc2
12019 builtin and then its argument prototype would still apply. */
12020 char stringprep_check_version ();
12024 stringprep_check_version ();
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_lib_idn_stringprep_check_version=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_cv_lib_idn_stringprep_check_version=no
12057 rm -f conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12062 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12063 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBIDN 1
12074 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077 echo "$as_me:$LINENO: checking for $ac_func" >&5
12078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12079 if eval "test \"\${$as_ac_var+set}\" = set"; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 cat >conftest.$ac_ext <<_ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12090 #define $ac_func innocuous_$ac_func
12092 /* System header to define __stub macros and hopefully few prototypes,
12093 which can conflict with char $ac_func (); below.
12094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095 <limits.h> exists even on freestanding compilers. */
12098 # include <limits.h>
12100 # include <assert.h>
12105 /* Override any gcc2 internal prototype to avoid an error. */
12110 /* We use char because int might match the return type of a gcc2
12111 builtin and then its argument prototype would still apply. */
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12119 char (*f) () = $ac_func;
12128 return f != $ac_func;
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135 (eval $ac_link) 2>conftest.er1
12137 grep -v '^ *+' conftest.er1 >conftest.err
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12154 eval "$as_ac_var=yes"
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12161 rm -f conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12166 if test `eval echo '${'$as_ac_var'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12179 echo "$as_me:$LINENO: checking for $ac_func" >&5
12180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_var+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12192 #define $ac_func innocuous_$ac_func
12194 /* System header to define __stub macros and hopefully few prototypes,
12195 which can conflict with char $ac_func (); below.
12196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12197 <limits.h> exists even on freestanding compilers. */
12200 # include <limits.h>
12202 # include <assert.h>
12207 /* Override any gcc2 internal prototype to avoid an error. */
12212 /* We use char because int might match the return type of a gcc2
12213 builtin and then its argument prototype would still apply. */
12215 /* The GNU C library defines this for functions which it implements
12216 to always fail with ENOSYS. Some functions are actually named
12217 something starting with __ and the normal name is an alias. */
12218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12221 char (*f) () = $ac_func;
12230 return f != $ac_func;
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest$ac_exeext'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256 eval "$as_ac_var=yes"
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 eval "$as_ac_var=no"
12263 rm -f conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269 cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12278 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281 echo "$as_me:$LINENO: checking for $ac_func" >&5
12282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12283 if eval "test \"\${$as_ac_var+set}\" = set"; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12294 #define $ac_func innocuous_$ac_func
12296 /* System header to define __stub macros and hopefully few prototypes,
12297 which can conflict with char $ac_func (); below.
12298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12299 <limits.h> exists even on freestanding compilers. */
12302 # include <limits.h>
12304 # include <assert.h>
12309 /* Override any gcc2 internal prototype to avoid an error. */
12314 /* We use char because int might match the return type of a gcc2
12315 builtin and then its argument prototype would still apply. */
12317 /* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12323 char (*f) () = $ac_func;
12332 return f != $ac_func;
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 eval "$as_ac_var=yes"
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 eval "$as_ac_var=no"
12365 rm -f conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12370 if test `eval echo '${'$as_ac_var'}'` = yes; then
12371 cat >>confdefs.h <<_ACEOF
12372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12381 # Check whether --enable-debug or --disable-debug was given.
12382 if test "${enable_debug+set}" = set; then
12383 enableval="$enable_debug"
12384 if test x$enableval = xyes ; then
12386 cat >>confdefs.h <<\_ACEOF
12394 # Check whether --enable-flock or --disable-flock was given.
12395 if test "${enable_flock+set}" = set; then
12396 enableval="$enable_flock"
12397 if test $enableval = yes; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define USE_FLOCK 1
12407 # Check whether --enable-fcntl or --disable-fcntl was given.
12408 if test "${enable_fcntl+set}" = set; then
12409 enableval="$enable_fcntl"
12410 if test $enableval = no; then mutt_cv_fcntl=no; fi
12413 if test $mutt_cv_fcntl = yes; then
12415 cat >>confdefs.h <<\_ACEOF
12416 #define USE_FCNTL 1
12421 mutt_cv_inodesort=yes
12422 # Check whether --enable-inodesort or --disable-inodesort was given.
12423 if test "${enable_inodesort+set}" = set; then
12424 enableval="$enable_inodesort"
12425 if test $enableval = no ; then mutt_cv_inodesort=no; fi
12428 if test $mutt_cv_inodesort = yes; then
12430 cat >>confdefs.h <<\_ACEOF
12431 #define USE_INODESORT 1
12436 mutt_cv_warnings=yes
12437 # Check whether --enable-warnings or --disable-warnings was given.
12438 if test "${enable_warnings+set}" = set; then
12439 enableval="$enable_warnings"
12440 if test $enableval = no; then
12441 mutt_cv_warnings=no
12445 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12446 CFLAGS="-Wall -pedantic $CFLAGS"
12449 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12450 if test "${enable_nfs_fix+set}" = set; then
12451 enableval="$enable_nfs_fix"
12452 if test x$enableval = xyes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define NFS_ATTRIBUTE_HACK 1
12461 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12462 if test "${enable_buffy_size+set}" = set; then
12463 enableval="$enable_buffy_size"
12464 if test x$enableval = xyes; then
12466 cat >>confdefs.h <<\_ACEOF
12467 #define BUFFY_SIZE 1
12473 # Check whether --enable-mailtool or --disable-mailtool was given.
12474 if test "${enable_mailtool+set}" = set; then
12475 enableval="$enable_mailtool"
12476 if test x$enableval = xyes; then
12478 cat >>confdefs.h <<\_ACEOF
12479 #define SUN_ATTACHMENT 1
12485 # Check whether --enable-compressed or --disable-compressed was given.
12486 if test "${enable_compressed+set}" = set; then
12487 enableval="$enable_compressed"
12488 if test x$enableval = xyes; then
12489 cat >>confdefs.h <<\_ACEOF
12490 #define USE_COMPRESSED 1
12496 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12497 if test "${enable_locales_fix+set}" = set; then
12498 enableval="$enable_locales_fix"
12499 if test x$enableval = xyes; then
12501 cat >>confdefs.h <<\_ACEOF
12502 #define LOCALES_HACK 1
12509 # Check whether --with-exec-shell or --without-exec-shell was given.
12510 if test "${with_exec_shell+set}" = set; then
12511 withval="$with_exec_shell"
12512 if test $withval != yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define EXECSHELL "$withval"
12519 cat >>confdefs.h <<_ACEOF
12520 #define EXECSHELL "/bin/sh"
12525 cat >>confdefs.h <<_ACEOF
12526 #define EXECSHELL "/bin/sh"
12531 # Check whether --enable-exact-address or --disable-exact-address was given.
12532 if test "${enable_exact_address+set}" = set; then
12533 enableval="$enable_exact_address"
12534 if test $enableval = yes; then
12536 cat >>confdefs.h <<\_ACEOF
12537 #define EXACT_ADDRESS 1
12544 # Check whether --enable-hcache or --disable-hcache was given.
12545 if test "${enable_hcache+set}" = set; then
12546 enableval="$enable_hcache"
12547 if test x$enableval = xyes; then
12549 cat >>confdefs.h <<\_ACEOF
12550 #define USE_HCACHE 1
12554 OLDCPPFLAGS="$CPPFLAGS"
12560 # Check whether --with-gdbm or --without-gdbm was given.
12561 if test "${with_gdbm+set}" = set; then
12562 withval="$with_gdbm"
12563 ac_prefer_gdbm=$withval
12565 if test x$ac_prefer_gdbm != xno; then
12566 CPPFLAGS="$OLDCPPFLAGS"
12567 LIBS="$OLDLIBS -lgdbm";
12568 echo "$as_me:$LINENO: checking for gdbm_open" >&5
12569 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12570 if test "${ac_cv_gdbmopen+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12585 gdbm_open(0,0,0,0,0);
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12617 rm -f conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12621 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12622 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12627 # Check whether --with-bdb or --without-bdb was given.
12628 if test "${with_bdb+set}" = set; then
12629 withval="$with_bdb"
12630 ac_bdb_prefix=$withval
12632 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12633 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12634 for d in $ac_bdb_prefix; do
12635 bdbpfx="$bdbpfx $d"
12636 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12637 bdbpfx="$bdbpfx $d/$v"
12640 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12641 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12642 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12643 for d in $bdbpfx; do
12646 for v in / $BDB_VERSIONS; do
12647 if test -r "$d/include/$v/db.h"; then
12648 BDB_INCLUDE_DIR="$d/include/$v"
12649 if test -d "$d/lib/$v"; then
12650 BDB_LIB_DIR="$d/lib/$v"
12651 for l in `echo $BDB_VERSIONS`; do
12652 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12653 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12661 #include <stdlib.h>
12669 db->open(db,NULL,NULL,NULL,0,0,0);
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677 (eval $ac_link) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12706 rm -f conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12709 test x$ac_dbcreate = xyes && break
12713 test x$BDB_LIB != x && break
12715 if test x$ac_cv_dbcreate = xyes; then
12716 echo "$as_me:$LINENO: result: yes" >&5
12717 echo "${ECHO_T}yes" >&6
12719 echo "$as_me:$LINENO: result: no" >&5
12720 echo "${ECHO_T}no" >&6
12724 if test x$ac_cv_gdbmopen = xyes; then
12725 CPPFLAGS="$OLDCPPFLAGS"
12726 LIBS="$OLDLIBS -lgdbm";
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HAVE_GDBM 1
12732 elif test x$ac_cv_dbcreate = xyes; then
12733 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12734 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12736 cat >>confdefs.h <<\_ACEOF
12741 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12742 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12743 { (exit 1); exit 1; }; }
12754 # Check whether --enable-iconv or --disable-iconv was given.
12755 if test "${enable_iconv+set}" = set; then
12756 enableval="$enable_iconv"
12757 if test x$enableval = xno ; then
12758 am_cv_func_iconv=no
12763 echo "$as_me:$LINENO: checking for off_t" >&5
12764 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12765 if test "${ac_cv_type_off_t+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12780 if (sizeof (off_t))
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12790 grep -v '^ *+' conftest.er1 >conftest.err
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_type_off_t=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_type_off_t=no
12814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12817 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12818 if test $ac_cv_type_off_t = yes; then
12822 cat >>confdefs.h <<_ACEOF
12828 echo "$as_me:$LINENO: checking for size_t" >&5
12829 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12830 if test "${ac_cv_type_size_t+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12845 if (sizeof (size_t))
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_cv_type_size_t=yes
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 ac_cv_type_size_t=no
12879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12881 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12882 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12883 if test $ac_cv_type_size_t = yes; then
12887 cat >>confdefs.h <<_ACEOF
12888 #define size_t unsigned
12893 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12894 # for constant arguments. Useless!
12895 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12896 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12897 if test "${ac_cv_working_alloca_h+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 #include <alloca.h>
12910 char *p = (char *) alloca (2 * sizeof (int));
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_working_alloca_h=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_cv_working_alloca_h=no
12943 rm -f conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12947 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12948 if test $ac_cv_working_alloca_h = yes; then
12950 cat >>confdefs.h <<\_ACEOF
12951 #define HAVE_ALLOCA_H 1
12956 echo "$as_me:$LINENO: checking for alloca" >&5
12957 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12958 if test "${ac_cv_func_alloca_works+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12968 # define alloca __builtin_alloca
12971 # include <malloc.h>
12972 # define alloca _alloca
12975 # include <alloca.h>
12980 # ifndef alloca /* predefined by HP cc +Olibcalls */
12991 char *p = (char *) alloca (1);
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_func_alloca_works=yes
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_cv_func_alloca_works=no
13024 rm -f conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13027 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13028 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13030 if test $ac_cv_func_alloca_works = yes; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_ALLOCA 1
13037 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13038 # that cause trouble. Some versions do not even contain alloca or
13039 # contain a buggy version. If you still want to use their alloca,
13040 # use ar to extract alloca.o from them instead of compiling alloca.c.
13042 ALLOCA=alloca.$ac_objext
13044 cat >>confdefs.h <<\_ACEOF
13049 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13050 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13051 if test "${ac_cv_os_cray+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 #if defined(CRAY) && ! defined(CRAY2)
13067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13068 $EGREP "webecray" >/dev/null 2>&1; then
13076 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13077 echo "${ECHO_T}$ac_cv_os_cray" >&6
13078 if test $ac_cv_os_cray = yes; then
13079 for ac_func in _getb67 GETB67 getb67; do
13080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13081 echo "$as_me:$LINENO: checking for $ac_func" >&5
13082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_var+set}\" = set"; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13094 #define $ac_func innocuous_$ac_func
13096 /* System header to define __stub macros and hopefully few prototypes,
13097 which can conflict with char $ac_func (); below.
13098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13099 <limits.h> exists even on freestanding compilers. */
13102 # include <limits.h>
13104 # include <assert.h>
13109 /* Override any gcc2 internal prototype to avoid an error. */
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13117 /* The GNU C library defines this for functions which it implements
13118 to always fail with ENOSYS. Some functions are actually named
13119 something starting with __ and the normal name is an alias. */
13120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13123 char (*f) () = $ac_func;
13132 return f != $ac_func;
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 eval "$as_ac_var=yes"
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 eval "$as_ac_var=no"
13165 rm -f conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13170 if test `eval echo '${'$as_ac_var'}'` = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define CRAY_STACKSEG_END $ac_func
13182 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13183 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13184 if test "${ac_cv_c_stack_direction+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 if test "$cross_compiling" = yes; then
13188 ac_cv_c_stack_direction=0
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13197 find_stack_direction ()
13199 static char *addr = 0;
13204 return find_stack_direction ();
13207 return (&dummy > addr) ? 1 : -1;
13213 exit (find_stack_direction () < 0);
13216 rm -f conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_c_stack_direction=1
13229 echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ( exit $ac_status )
13234 ac_cv_c_stack_direction=-1
13236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13240 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13242 cat >>confdefs.h <<_ACEOF
13243 #define STACK_DIRECTION $ac_cv_c_stack_direction
13251 for ac_header in stdlib.h unistd.h
13253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13255 echo "$as_me:$LINENO: checking for $ac_header" >&5
13256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13263 # Is the header compilable?
13264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 $ac_includes_default
13273 #include <$ac_header>
13275 rm -f conftest.$ac_objext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_header_compiler=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_header_compiler=no
13303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13305 echo "${ECHO_T}$ac_header_compiler" >&6
13307 # Is the header present?
13308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316 #include <$ac_header>
13318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null; then
13326 if test -s conftest.err; then
13327 ac_cpp_err=$ac_c_preproc_warn_flag
13328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13335 if test -z "$ac_cpp_err"; then
13336 ac_header_preproc=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_header_preproc=no
13343 rm -f conftest.err conftest.$ac_ext
13344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13345 echo "${ECHO_T}$ac_header_preproc" >&6
13347 # So? What about this header?
13348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13354 ac_header_preproc=yes
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13371 ## ------------------------------------------ ##
13372 ## Report this to the AC_PACKAGE_NAME lists. ##
13373 ## ------------------------------------------ ##
13376 sed "s/^/$as_me: WARNING: /" >&2
13379 echo "$as_me:$LINENO: checking for $ac_header" >&5
13380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 eval "$as_ac_Header=\$ac_header_preproc"
13386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13391 cat >>confdefs.h <<_ACEOF
13392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13400 for ac_func in getpagesize
13402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13403 echo "$as_me:$LINENO: checking for $ac_func" >&5
13404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13405 if eval "test \"\${$as_ac_var+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13416 #define $ac_func innocuous_$ac_func
13418 /* System header to define __stub macros and hopefully few prototypes,
13419 which can conflict with char $ac_func (); below.
13420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13421 <limits.h> exists even on freestanding compilers. */
13424 # include <limits.h>
13426 # include <assert.h>
13431 /* Override any gcc2 internal prototype to avoid an error. */
13436 /* We use char because int might match the return type of a gcc2
13437 builtin and then its argument prototype would still apply. */
13439 /* The GNU C library defines this for functions which it implements
13440 to always fail with ENOSYS. Some functions are actually named
13441 something starting with __ and the normal name is an alias. */
13442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13445 char (*f) () = $ac_func;
13454 return f != $ac_func;
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 eval "$as_ac_var=yes"
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 eval "$as_ac_var=no"
13487 rm -f conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13492 if test `eval echo '${'$as_ac_var'}'` = yes; then
13493 cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13500 echo "$as_me:$LINENO: checking for working mmap" >&5
13501 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13502 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 if test "$cross_compiling" = yes; then
13506 ac_cv_func_mmap_fixed_mapped=no
13508 cat >conftest.$ac_ext <<_ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13515 /* malloc might have been renamed as rpl_malloc. */
13518 /* Thanks to Mike Haertel and Jim Avera for this test.
13519 Here is a matrix of mmap possibilities:
13520 mmap private not fixed
13521 mmap private fixed at somewhere currently unmapped
13522 mmap private fixed at somewhere already mapped
13523 mmap shared not fixed
13524 mmap shared fixed at somewhere currently unmapped
13525 mmap shared fixed at somewhere already mapped
13526 For private mappings, we should verify that changes cannot be read()
13527 back from the file, nor mmap's back from the file at a different
13528 address. (There have been systems where private was not correctly
13529 implemented like the infamous i386 svr4.0, and systems where the
13530 VM page cache was not coherent with the file system buffer cache
13531 like early versions of FreeBSD and possibly contemporary NetBSD.)
13532 For shared mappings, we should conversely verify that changes get
13533 propagated back to all the places they're supposed to be.
13535 Grep wants private fixed already mapped.
13536 The main things grep needs to know about mmap are:
13537 * does it exist and is it safe to write into the mmap'd area
13538 * how to use it (BSD variants) */
13541 #include <sys/mman.h>
13543 #if !STDC_HEADERS && !HAVE_STDLIB_H
13547 /* This mess was copied from the GNU getpagesize.h. */
13548 #if !HAVE_GETPAGESIZE
13549 /* Assume that all systems that can run configure have sys/param.h. */
13550 # if !HAVE_SYS_PARAM_H
13551 # define HAVE_SYS_PARAM_H 1
13554 # ifdef _SC_PAGESIZE
13555 # define getpagesize() sysconf(_SC_PAGESIZE)
13556 # else /* no _SC_PAGESIZE */
13557 # if HAVE_SYS_PARAM_H
13558 # include <sys/param.h>
13559 # ifdef EXEC_PAGESIZE
13560 # define getpagesize() EXEC_PAGESIZE
13561 # else /* no EXEC_PAGESIZE */
13563 # define getpagesize() NBPG * CLSIZE
13566 # endif /* no CLSIZE */
13567 # else /* no NBPG */
13569 # define getpagesize() NBPC
13570 # else /* no NBPC */
13572 # define getpagesize() PAGESIZE
13573 # endif /* PAGESIZE */
13574 # endif /* no NBPC */
13575 # endif /* no NBPG */
13576 # endif /* no EXEC_PAGESIZE */
13577 # else /* no HAVE_SYS_PARAM_H */
13578 # define getpagesize() 8192 /* punt totally */
13579 # endif /* no HAVE_SYS_PARAM_H */
13580 # endif /* no _SC_PAGESIZE */
13582 #endif /* no HAVE_GETPAGESIZE */
13587 char *data, *data2, *data3;
13591 pagesize = getpagesize ();
13593 /* First, make a file with some known garbage in it. */
13594 data = (char *) malloc (pagesize);
13597 for (i = 0; i < pagesize; ++i)
13598 *(data + i) = rand ();
13600 fd = creat ("conftest.mmap", 0600);
13603 if (write (fd, data, pagesize) != pagesize)
13607 /* Next, try to mmap the file at a fixed address which already has
13608 something else allocated at it. If we can, also make sure that
13609 we see the same garbage. */
13610 fd = open ("conftest.mmap", O_RDWR);
13613 data2 = (char *) malloc (2 * pagesize);
13616 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
13617 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13618 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13620 for (i = 0; i < pagesize; ++i)
13621 if (*(data + i) != *(data2 + i))
13624 /* Finally, make sure that changes to the mapped area do not
13625 percolate back to the file as seen by read(). (This is a bug on
13626 some variants of i386 svr4.0.) */
13627 for (i = 0; i < pagesize; ++i)
13628 *(data2 + i) = *(data2 + i) + 1;
13629 data3 = (char *) malloc (pagesize);
13632 if (read (fd, data3, pagesize) != pagesize)
13634 for (i = 0; i < pagesize; ++i)
13635 if (*(data + i) != *(data3 + i))
13641 rm -f conftest$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 ac_cv_func_mmap_fixed_mapped=yes
13654 echo "$as_me: program exited with status $ac_status" >&5
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ( exit $ac_status )
13659 ac_cv_func_mmap_fixed_mapped=no
13661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13665 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13666 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_MMAP 1
13673 rm -f conftest.mmap
13676 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13677 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13678 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 #include <features.h>
13689 #ifdef __GNU_LIBRARY__
13690 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13697 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13698 ac_cv_gnu_library_2_1=yes
13700 ac_cv_gnu_library_2_1=no
13707 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13708 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13710 GLIBC21="$ac_cv_gnu_library_2_1"
13724 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13725 stdlib.h string.h unistd.h sys/param.h
13727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729 echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13737 # Is the header compilable?
13738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13747 #include <$ac_header>
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_header_compiler=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_header_compiler=no
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13779 echo "${ECHO_T}$ac_header_compiler" >&6
13781 # Is the header present?
13782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 #include <$ac_header>
13792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } >/dev/null; then
13800 if test -s conftest.err; then
13801 ac_cpp_err=$ac_c_preproc_warn_flag
13802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13809 if test -z "$ac_cpp_err"; then
13810 ac_header_preproc=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_preproc=no
13817 rm -f conftest.err conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13819 echo "${ECHO_T}$ac_header_preproc" >&6
13821 # So? What about this header?
13822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13828 ac_header_preproc=yes
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13845 ## ------------------------------------------ ##
13846 ## Report this to the AC_PACKAGE_NAME lists. ##
13847 ## ------------------------------------------ ##
13850 sed "s/^/$as_me: WARNING: /" >&2
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 eval "$as_ac_Header=\$ac_header_preproc"
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865 cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13894 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
13895 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
13896 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13899 echo "$as_me:$LINENO: checking for $ac_func" >&5
13900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13901 if eval "test \"\${$as_ac_var+set}\" = set"; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13912 #define $ac_func innocuous_$ac_func
13914 /* System header to define __stub macros and hopefully few prototypes,
13915 which can conflict with char $ac_func (); below.
13916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917 <limits.h> exists even on freestanding compilers. */
13920 # include <limits.h>
13922 # include <assert.h>
13927 /* Override any gcc2 internal prototype to avoid an error. */
13932 /* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13941 char (*f) () = $ac_func;
13950 return f != $ac_func;
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 eval "$as_ac_var=yes"
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 eval "$as_ac_var=no"
13983 rm -f conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13988 if test `eval echo '${'$as_ac_var'}'` = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14000 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14001 if test "${with_libiconv_prefix+set}" = set; then
14002 withval="$with_libiconv_prefix"
14004 for dir in `echo "$withval" | tr : ' '`; do
14005 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14006 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14011 echo "$as_me:$LINENO: checking for iconv" >&5
14012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14013 if test "${am_cv_func_iconv+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 am_cv_func_iconv="no, consider installing GNU libiconv"
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <stdlib.h>
14030 iconv_t cd = iconv_open("","");
14031 iconv(cd,NULL,NULL,NULL,NULL);
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039 (eval $ac_link) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 am_cv_func_iconv=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14064 rm -f conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 if test "$am_cv_func_iconv" != yes; then
14067 am_save_LIBS="$LIBS"
14068 LIBS="$LIBS -liconv"
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <stdlib.h>
14080 iconv_t cd = iconv_open("","");
14081 iconv(cd,NULL,NULL,NULL,NULL);
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 am_cv_lib_iconv=yes
14109 am_cv_func_iconv=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14115 rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
14117 LIBS="$am_save_LIBS"
14121 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14122 echo "${ECHO_T}$am_cv_func_iconv" >&6
14123 if test "$am_cv_func_iconv" = yes; then
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ICONV 1
14129 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14130 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14131 if test "${am_cv_proto_iconv+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 #include <stdlib.h>
14148 #if defined(__STDC__) || defined(__cplusplus)
14149 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 am_cv_proto_iconv_arg1=""
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 am_cv_proto_iconv_arg1="const"
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 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);"
14194 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14195 echo "$as_me:$LINENO: result: ${ac_t:-
14196 }$am_cv_proto_iconv" >&5
14197 echo "${ECHO_T}${ac_t:-
14198 }$am_cv_proto_iconv" >&6
14200 cat >>confdefs.h <<_ACEOF
14201 #define ICONV_CONST $am_cv_proto_iconv_arg1
14206 if test "$am_cv_lib_iconv" = yes; then
14212 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14213 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14214 if test "${am_cv_langinfo_codeset+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 #include <langinfo.h>
14227 char* cs = nl_langinfo(CODESET);
14232 rm -f conftest.$ac_objext conftest$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234 (eval $ac_link) 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest$ac_exeext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 am_cv_langinfo_codeset=yes
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 am_cv_langinfo_codeset=no
14260 rm -f conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14265 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14266 if test $am_cv_langinfo_codeset = yes; then
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_LANGINFO_CODESET 1
14274 if test $ac_cv_header_locale_h = yes; then
14275 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14276 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14277 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <locale.h>
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297 (eval $ac_link) 2>conftest.er1
14299 grep -v '^ *+' conftest.er1 >conftest.err
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest$ac_exeext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 am_cv_val_LC_MESSAGES=yes
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 am_cv_val_LC_MESSAGES=no
14323 rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14326 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14327 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14328 if test $am_cv_val_LC_MESSAGES = yes; then
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_LC_MESSAGES 1
14336 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14337 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14338 # Check whether --enable-nls or --disable-nls was given.
14339 if test "${enable_nls+set}" = set; then
14340 enableval="$enable_nls"
14345 echo "$as_me:$LINENO: result: $USE_NLS" >&5
14346 echo "${ECHO_T}$USE_NLS" >&6
14349 BUILD_INCLUDED_LIBINTL=no
14350 USE_INCLUDED_LIBINTL=no
14353 if test "$USE_NLS" = "yes"; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define ENABLE_NLS 1
14359 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14360 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14362 # Check whether --with-included-gettext or --without-included-gettext was given.
14363 if test "${with_included_gettext+set}" = set; then
14364 withval="$with_included_gettext"
14365 nls_cv_force_use_gnu_gettext=$withval
14367 nls_cv_force_use_gnu_gettext=no
14369 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14370 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14372 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14373 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14379 if test "${ac_cv_header_libintl_h+set}" = set; then
14380 echo "$as_me:$LINENO: checking for libintl.h" >&5
14381 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14382 if test "${ac_cv_header_libintl_h+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14386 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14388 # Is the header compilable?
14389 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14390 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 $ac_includes_default
14398 #include <libintl.h>
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_header_compiler=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_header_compiler=no
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430 echo "${ECHO_T}$ac_header_compiler" >&6
14432 # Is the header present?
14433 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14434 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <libintl.h>
14443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } >/dev/null; then
14451 if test -s conftest.err; then
14452 ac_cpp_err=$ac_c_preproc_warn_flag
14453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14460 if test -z "$ac_cpp_err"; then
14461 ac_header_preproc=yes
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 ac_header_preproc=no
14468 rm -f conftest.err conftest.$ac_ext
14469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470 echo "${ECHO_T}$ac_header_preproc" >&6
14472 # So? What about this header?
14473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14475 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14476 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14478 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14479 ac_header_preproc=yes
14482 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14483 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14485 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14487 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14489 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14491 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14493 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14496 ## ------------------------------------------ ##
14497 ## Report this to the AC_PACKAGE_NAME lists. ##
14498 ## ------------------------------------------ ##
14501 sed "s/^/$as_me: WARNING: /" >&2
14504 echo "$as_me:$LINENO: checking for libintl.h" >&5
14505 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14506 if test "${ac_cv_header_libintl_h+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_cv_header_libintl_h=$ac_header_preproc
14511 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14512 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14515 if test $ac_cv_header_libintl_h = yes; then
14516 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14517 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14518 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 #include <libintl.h>
14528 extern int _nl_msg_cat_cntr;
14532 bindtextdomain ("", "");
14533 return (int) gettext ("") + _nl_msg_cat_cntr
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14540 (eval $ac_link) 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 gt_cv_func_gnugettext1_libc=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 gt_cv_func_gnugettext1_libc=no
14566 rm -f conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14570 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14572 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14573 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14574 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14575 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 gt_save_LIBS="$LIBS"
14579 LIBS="$LIBS -lintl $LIBICONV"
14580 cat >conftest.$ac_ext <<_ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <libintl.h>
14587 extern int _nl_msg_cat_cntr;
14591 bindtextdomain ("", "");
14592 return (int) gettext ("") + _nl_msg_cat_cntr
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599 (eval $ac_link) 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 gt_cv_func_gnugettext1_libintl=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 gt_cv_func_gnugettext1_libintl=no
14625 rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 LIBS="$gt_save_LIBS"
14629 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14630 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14633 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14634 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14635 && test "$PACKAGE" != gettext; }; then
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_GETTEXT 1
14642 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14643 INTLLIBS="-lintl $LIBICONV"
14646 gt_save_LIBS="$LIBS"
14647 LIBS="$LIBS $INTLLIBS"
14649 for ac_func in dcgettext
14651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14652 echo "$as_me:$LINENO: checking for $ac_func" >&5
14653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14654 if eval "test \"\${$as_ac_var+set}\" = set"; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14665 #define $ac_func innocuous_$ac_func
14667 /* System header to define __stub macros and hopefully few prototypes,
14668 which can conflict with char $ac_func (); below.
14669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14670 <limits.h> exists even on freestanding compilers. */
14673 # include <limits.h>
14675 # include <assert.h>
14680 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14688 /* The GNU C library defines this for functions which it implements
14689 to always fail with ENOSYS. Some functions are actually named
14690 something starting with __ and the normal name is an alias. */
14691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14694 char (*f) () = $ac_func;
14703 return f != $ac_func;
14708 rm -f conftest.$ac_objext conftest$ac_exeext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710 (eval $ac_link) 2>conftest.er1
14712 grep -v '^ *+' conftest.er1 >conftest.err
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest$ac_exeext'
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 eval "$as_ac_var=yes"
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 eval "$as_ac_var=no"
14736 rm -f conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14749 LIBS="$gt_save_LIBS"
14751 # Extract the first word of "msgfmt", so it can be a program name with args.
14752 set dummy msgfmt; ac_word=$2
14753 echo "$as_me:$LINENO: checking for $ac_word" >&5
14754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14755 if test "${ac_cv_path_MSGFMT+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14764 for ac_dir in $PATH; do
14765 test -z "$ac_dir" && ac_dir=.
14766 if test -f $ac_dir/$ac_word; then
14767 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14768 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14774 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14778 MSGFMT="$ac_cv_path_MSGFMT"
14779 if test "$MSGFMT" != ":"; then
14780 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14781 echo "${ECHO_T}$MSGFMT" >&6
14783 echo "$as_me:$LINENO: result: no" >&5
14784 echo "${ECHO_T}no" >&6
14787 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14788 set dummy gmsgfmt; ac_word=$2
14789 echo "$as_me:$LINENO: checking for $ac_word" >&5
14790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14817 GMSGFMT=$ac_cv_path_GMSGFMT
14819 if test -n "$GMSGFMT"; then
14820 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14821 echo "${ECHO_T}$GMSGFMT" >&6
14823 echo "$as_me:$LINENO: result: no" >&5
14824 echo "${ECHO_T}no" >&6
14828 # Extract the first word of "xgettext", so it can be a program name with args.
14829 set dummy xgettext; ac_word=$2
14830 echo "$as_me:$LINENO: checking for $ac_word" >&5
14831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14832 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 case "$XGETTEXT" in
14837 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14841 for ac_dir in $PATH; do
14842 test -z "$ac_dir" && ac_dir=.
14843 if test -f $ac_dir/$ac_word; then
14844 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14845 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14851 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14855 XGETTEXT="$ac_cv_path_XGETTEXT"
14856 if test "$XGETTEXT" != ":"; then
14857 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14858 echo "${ECHO_T}$XGETTEXT" >&6
14860 echo "$as_me:$LINENO: result: no" >&5
14861 echo "${ECHO_T}no" >&6
14872 if test "$CATOBJEXT" = "NONE"; then
14873 nls_cv_use_gnu_gettext=yes
14877 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14878 INTLOBJS="\$(GETTOBJS)"
14879 # Extract the first word of "msgfmt", so it can be a program name with args.
14880 set dummy msgfmt; ac_word=$2
14881 echo "$as_me:$LINENO: checking for $ac_word" >&5
14882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14883 if test "${ac_cv_path_MSGFMT+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14892 for ac_dir in $PATH; do
14893 test -z "$ac_dir" && ac_dir=.
14894 if test -f $ac_dir/$ac_word; then
14895 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14896 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14902 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14906 MSGFMT="$ac_cv_path_MSGFMT"
14907 if test "$MSGFMT" != ":"; then
14908 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14909 echo "${ECHO_T}$MSGFMT" >&6
14911 echo "$as_me:$LINENO: result: no" >&5
14912 echo "${ECHO_T}no" >&6
14915 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14916 set dummy gmsgfmt; ac_word=$2
14917 echo "$as_me:$LINENO: checking for $ac_word" >&5
14918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14919 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14941 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14945 GMSGFMT=$ac_cv_path_GMSGFMT
14947 if test -n "$GMSGFMT"; then
14948 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14949 echo "${ECHO_T}$GMSGFMT" >&6
14951 echo "$as_me:$LINENO: result: no" >&5
14952 echo "${ECHO_T}no" >&6
14955 # Extract the first word of "xgettext", so it can be a program name with args.
14956 set dummy xgettext; ac_word=$2
14957 echo "$as_me:$LINENO: checking for $ac_word" >&5
14958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14959 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 case "$XGETTEXT" in
14964 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14968 for ac_dir in $PATH; do
14969 test -z "$ac_dir" && ac_dir=.
14970 if test -f $ac_dir/$ac_word; then
14971 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14972 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14978 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14982 XGETTEXT="$ac_cv_path_XGETTEXT"
14983 if test "$XGETTEXT" != ":"; then
14984 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14985 echo "${ECHO_T}$XGETTEXT" >&6
14987 echo "$as_me:$LINENO: result: no" >&5
14988 echo "${ECHO_T}no" >&6
14992 BUILD_INCLUDED_LIBINTL=yes
14993 USE_INCLUDED_LIBINTL=yes
14995 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
14996 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14999 if test "$GMSGFMT" != ":"; then
15000 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15003 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15004 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15009 if test "$XGETTEXT" != ":"; then
15010 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15013 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15014 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15021 ac_config_commands="$ac_config_commands default-1"
15025 if test "$PACKAGE" = gettext; then
15026 BUILD_INCLUDED_LIBINTL=yes
15029 for ac_prog in bison
15031 # Extract the first word of "$ac_prog", so it can be a program name with args.
15032 set dummy $ac_prog; ac_word=$2
15033 echo "$as_me:$LINENO: checking for $ac_word" >&5
15034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15035 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 if test -n "$INTLBISON"; then
15039 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $PATH
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048 ac_cv_prog_INTLBISON="$ac_prog"
15049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 INTLBISON=$ac_cv_prog_INTLBISON
15058 if test -n "$INTLBISON"; then
15059 echo "$as_me:$LINENO: result: $INTLBISON" >&5
15060 echo "${ECHO_T}$INTLBISON" >&6
15062 echo "$as_me:$LINENO: result: no" >&5
15063 echo "${ECHO_T}no" >&6
15066 test -n "$INTLBISON" && break
15069 if test -z "$INTLBISON"; then
15072 echo "$as_me:$LINENO: checking version of bison" >&5
15073 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15074 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15075 case $ac_prog_version in
15076 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15077 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15078 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15079 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15081 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15082 echo "${ECHO_T}$ac_prog_version" >&6
15084 if test $ac_verc_fail = yes; then
15088 for lang in $ALL_LINGUAS; do
15089 GMOFILES="$GMOFILES $lang.gmo"
15090 POFILES="$POFILES $lang.po"
15103 nls_cv_header_intl=
15104 nls_cv_header_libgt=
15116 if test "x$CATOBJEXT" != "x"; then
15117 if test "x$ALL_LINGUAS" = "x"; then
15120 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15121 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15123 for presentlang in $ALL_LINGUAS; do
15125 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15126 # Use the presentlang catalog if desiredlang is
15127 # a. equal to presentlang, or
15128 # b. a variant of presentlang (because in this case,
15129 # presentlang can be used as a fallback for messages
15130 # which are not translated in the desiredlang catalog).
15131 case "$desiredlang" in
15132 "$presentlang"*) useit=yes;;
15135 if test $useit = yes; then
15136 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15139 LINGUAS=$NEW_LINGUAS
15140 echo "$as_me:$LINENO: result: $LINGUAS" >&5
15141 echo "${ECHO_T}$LINGUAS" >&6
15144 if test -n "$LINGUAS"; then
15145 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15150 if test -n "$ac_aux_dir"; then
15151 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15153 if test -z "$MKINSTALLDIRS"; then
15154 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15158 INTL_LIBTOOL_SUFFIX_PREFIX=
15162 if test "$am_cv_func_iconv" != "yes"
15164 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15165 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15169 for ac_header in iconv.h
15171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15173 echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15181 # Is the header compilable?
15182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15191 #include <$ac_header>
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195 (eval $ac_compile) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_header_compiler=yes
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_header_compiler=no
15221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223 echo "${ECHO_T}$ac_header_compiler" >&6
15225 # Is the header present?
15226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15228 cat >conftest.$ac_ext <<_ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <$ac_header>
15236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } >/dev/null; then
15244 if test -s conftest.err; then
15245 ac_cpp_err=$ac_c_preproc_warn_flag
15246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15253 if test -z "$ac_cpp_err"; then
15254 ac_header_preproc=yes
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 ac_header_preproc=no
15261 rm -f conftest.err conftest.$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263 echo "${ECHO_T}$ac_header_preproc" >&6
15265 # So? What about this header?
15266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15272 ac_header_preproc=yes
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15289 ## ------------------------------------------ ##
15290 ## Report this to the AC_PACKAGE_NAME lists. ##
15291 ## ------------------------------------------ ##
15294 sed "s/^/$as_me: WARNING: /" >&2
15297 echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 eval "$as_ac_Header=\$ac_header_preproc"
15304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15312 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15313 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15324 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15325 echo "$as_me:$LINENO: result: yes" >&5
15326 echo "${ECHO_T}yes" >&6
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_ICONV_T_DEF 1
15333 echo "$as_me:$LINENO: result: no" >&5
15334 echo "${ECHO_T}no" >&6
15343 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15344 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15345 if test "${mutt_cv_iconv_good+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 mutt_save_LIBS="$LIBS"
15349 LIBS="$LIBS $LIBICONV"
15350 if test "$cross_compiling" = yes; then
15351 mutt_cv_iconv_good=yes
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15367 ob = buf, obl = sizeof(buf);
15368 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15369 (iconv(cd, 0, 0, &ob, &obl) ||
15370 !(ob == buf && obl == sizeof(buf)) ||
15375 rm -f conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377 (eval $ac_link) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 mutt_cv_iconv_good=yes
15388 echo "$as_me: program exited with status $ac_status" >&5
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ( exit $ac_status )
15393 mutt_cv_iconv_good=no
15395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15397 LIBS="$mutt_save_LIBS"
15399 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15400 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15401 if test "$mutt_cv_iconv_good" = no; then
15402 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15403 echo "$as_me: error: Try using libiconv instead" >&2;}
15404 { (exit 1); exit 1; }; }
15407 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15408 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15409 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 mutt_save_LIBS="$LIBS"
15413 LIBS="$LIBS $LIBICONV"
15414 if test "$cross_compiling" = yes; then
15415 mutt_cv_iconv_nontrans=no
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15425 #include <string.h>
15432 const char *s = "\304\211";
15434 ib = s, ibl = 2, ob = t, obl = 3;
15435 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15436 iconv(cd, &ib, &ibl, &ob, &obl));
15440 rm -f conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 mutt_cv_iconv_nontrans=no
15453 echo "$as_me: program exited with status $ac_status" >&5
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 ( exit $ac_status )
15458 mutt_cv_iconv_nontrans=yes
15460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15462 LIBS="$mutt_save_LIBS"
15464 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15465 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15466 if test "$mutt_cv_iconv_nontrans" = yes; then
15467 cat >>confdefs.h <<\_ACEOF
15468 #define ICONV_NONTRANS 1
15472 cat >>confdefs.h <<\_ACEOF
15473 #define ICONV_NONTRANS 0
15478 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15480 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15482 cat >>confdefs.h <<\_ACEOF
15483 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15488 for ac_func in bind_textdomain_codeset
15490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15491 echo "$as_me:$LINENO: checking for $ac_func" >&5
15492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15493 if eval "test \"\${$as_ac_var+set}\" = set"; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 cat >conftest.$ac_ext <<_ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15504 #define $ac_func innocuous_$ac_func
15506 /* System header to define __stub macros and hopefully few prototypes,
15507 which can conflict with char $ac_func (); below.
15508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15509 <limits.h> exists even on freestanding compilers. */
15512 # include <limits.h>
15514 # include <assert.h>
15519 /* Override any gcc2 internal prototype to avoid an error. */
15524 /* We use char because int might match the return type of a gcc2
15525 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 char (*f) () = $ac_func;
15542 return f != $ac_func;
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest$ac_exeext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 eval "$as_ac_var=yes"
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 eval "$as_ac_var=no"
15575 rm -f conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
15578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15580 if test `eval echo '${'$as_ac_var'}'` = yes; then
15581 cat >>confdefs.h <<_ACEOF
15582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 for ac_header in wchar.h
15596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606 # Is the header compilable?
15607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_header_compiler=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 ac_header_compiler=no
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6
15650 # Is the header present?
15651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15653 cat >conftest.$ac_ext <<_ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <$ac_header>
15661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } >/dev/null; then
15669 if test -s conftest.err; then
15670 ac_cpp_err=$ac_c_preproc_warn_flag
15671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15678 if test -z "$ac_cpp_err"; then
15679 ac_header_preproc=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_preproc=no
15686 rm -f conftest.err conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688 echo "${ECHO_T}$ac_header_preproc" >&6
15690 # So? What about this header?
15691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15697 ac_header_preproc=yes
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15714 ## ------------------------------------------ ##
15715 ## Report this to the AC_PACKAGE_NAME lists. ##
15716 ## ------------------------------------------ ##
15719 sed "s/^/$as_me: WARNING: /" >&2
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 eval "$as_ac_Header=\$ac_header_preproc"
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15734 cat >>confdefs.h <<_ACEOF
15735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15743 echo "$as_me:$LINENO: checking for wchar_t" >&5
15744 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15745 if test "${mutt_cv_wchar_t+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15755 #include <stddef.h>
15756 #include <stdlib.h>
15757 #ifdef HAVE_WCHAR_H
15764 wchar_t wc; return 0;
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771 (eval $ac_compile) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 mutt_cv_wchar_t=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15800 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15802 if test "$mutt_cv_wchar_t" = no; then
15804 cat >>confdefs.h <<\_ACEOF
15805 #define wchar_t int
15810 echo "$as_me:$LINENO: checking for wint_t" >&5
15811 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15812 if test "${mutt_cv_wint_t+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15822 #include <stddef.h>
15823 #include <stdlib.h>
15824 #ifdef HAVE_WCHAR_H
15831 wint_t wc; return 0;
15836 rm -f conftest.$ac_objext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_compile) 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15866 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15867 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15869 if test "$mutt_cv_wint_t" = no; then
15871 cat >>confdefs.h <<\_ACEOF
15878 for ac_header in wctype.h
15880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15882 echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15890 # Is the header compilable?
15891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 $ac_includes_default
15900 #include <$ac_header>
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>conftest.er1
15906 grep -v '^ *+' conftest.er1 >conftest.err
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler=yes
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 ac_header_compiler=no
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include <$ac_header>
15945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev/null; then
15953 if test -s conftest.err; then
15954 ac_cpp_err=$ac_c_preproc_warn_flag
15955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15962 if test -z "$ac_cpp_err"; then
15963 ac_header_preproc=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_header_preproc=no
15970 rm -f conftest.err conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15974 # So? What about this header?
15975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15981 ac_header_preproc=yes
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15998 ## ------------------------------------------ ##
15999 ## Report this to the AC_PACKAGE_NAME lists. ##
16000 ## ------------------------------------------ ##
16003 sed "s/^/$as_me: WARNING: /" >&2
16006 echo "$as_me:$LINENO: checking for $ac_header" >&5
16007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 eval "$as_ac_Header=\$ac_header_preproc"
16013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16018 cat >>confdefs.h <<_ACEOF
16019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030 for ac_func in iswalnum iswalpha iswcntrl iswdigit
16032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16033 echo "$as_me:$LINENO: checking for $ac_func" >&5
16034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16035 if eval "test \"\${$as_ac_var+set}\" = set"; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16046 #define $ac_func innocuous_$ac_func
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func (); below.
16050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16051 <limits.h> exists even on freestanding compilers. */
16054 # include <limits.h>
16056 # include <assert.h>
16061 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16069 /* The GNU C library defines this for functions which it implements
16070 to always fail with ENOSYS. Some functions are actually named
16071 something starting with __ and the normal name is an alias. */
16072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16075 char (*f) () = $ac_func;
16084 return f != $ac_func;
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 eval "$as_ac_var=yes"
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no"
16117 rm -f conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16136 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16139 echo "$as_me:$LINENO: checking for $ac_func" >&5
16140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16141 if eval "test \"\${$as_ac_var+set}\" = set"; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16152 #define $ac_func innocuous_$ac_func
16154 /* System header to define __stub macros and hopefully few prototypes,
16155 which can conflict with char $ac_func (); below.
16156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16157 <limits.h> exists even on freestanding compilers. */
16160 # include <limits.h>
16162 # include <assert.h>
16167 /* Override any gcc2 internal prototype to avoid an error. */
16172 /* We use char because int might match the return type of a gcc2
16173 builtin and then its argument prototype would still apply. */
16175 /* The GNU C library defines this for functions which it implements
16176 to always fail with ENOSYS. Some functions are actually named
16177 something starting with __ and the normal name is an alias. */
16178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181 char (*f) () = $ac_func;
16190 return f != $ac_func;
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16197 (eval $ac_link) 2>conftest.er1
16199 grep -v '^ *+' conftest.er1 >conftest.err
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 eval "$as_ac_var=yes"
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 eval "$as_ac_var=no"
16223 rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16228 if test `eval echo '${'$as_ac_var'}'` = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16239 for ac_func in iswxdigit towupper towlower
16241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16242 echo "$as_me:$LINENO: checking for $ac_func" >&5
16243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16244 if eval "test \"\${$as_ac_var+set}\" = set"; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16255 #define $ac_func innocuous_$ac_func
16257 /* System header to define __stub macros and hopefully few prototypes,
16258 which can conflict with char $ac_func (); below.
16259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16260 <limits.h> exists even on freestanding compilers. */
16263 # include <limits.h>
16265 # include <assert.h>
16270 /* Override any gcc2 internal prototype to avoid an error. */
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16278 /* The GNU C library defines this for functions which it implements
16279 to always fail with ENOSYS. Some functions are actually named
16280 something starting with __ and the normal name is an alias. */
16281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16284 char (*f) () = $ac_func;
16293 return f != $ac_func;
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300 (eval $ac_link) 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest$ac_exeext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 eval "$as_ac_var=yes"
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 eval "$as_ac_var=no"
16326 rm -f conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16331 if test `eval echo '${'$as_ac_var'}'` = yes; then
16332 cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16340 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16341 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16342 if test "${mutt_cv_mbstate_t+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16352 #include <stddef.h>
16353 #include <stdlib.h>
16354 #ifdef HAVE_WCHAR_H
16361 mbstate_t s; return 0;
16366 rm -f conftest.$ac_objext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368 (eval $ac_compile) 2>conftest.er1
16370 grep -v '^ *+' conftest.er1 >conftest.err
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 mutt_cv_mbstate_t=yes
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 mutt_cv_mbstate_t=no
16394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16396 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16397 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16399 if test "$mutt_cv_mbstate_t" = no; then
16401 cat >>confdefs.h <<\_ACEOF
16402 #define mbstate_t int
16409 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16410 if test "${with_wc_funcs+set}" = set; then
16411 withval="$with_wc_funcs"
16415 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16416 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16417 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16418 if test "${mutt_cv_wc_funcs+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 mutt_cv_wc_funcs=no
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16429 #define _XOPEN_SOURCE 1
16430 #include <stddef.h>
16431 #include <stdlib.h>
16432 #ifdef HAVE_WCTYPE_H
16433 #include <wctype.h>
16435 #ifdef HAVE_WCHAR_H
16441 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16442 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>conftest.er1
16451 grep -v '^ *+' conftest.er1 >conftest.err
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; } &&
16462 { ac_try='test -s conftest$ac_exeext'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 mutt_cv_wc_funcs=yes
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16474 rm -f conftest.err conftest.$ac_objext \
16475 conftest$ac_exeext conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16478 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16479 wc_funcs=$mutt_cv_wc_funcs
16482 if test $wc_funcs = yes; then
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_WC_FUNCS 1
16490 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16491 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16492 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 #include <langinfo.h>
16505 char* cs = nl_langinfo(CODESET);
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 mutt_cv_langinfo_codeset=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 mutt_cv_langinfo_codeset=no
16538 rm -f conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext conftest.$ac_ext
16541 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16542 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16543 if test $mutt_cv_langinfo_codeset = yes; then
16545 cat >>confdefs.h <<\_ACEOF
16546 #define HAVE_LANGINFO_CODESET 1
16551 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16552 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16553 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 #include <langinfo.h>
16566 char* cs = nl_langinfo(YESEXPR);
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest$ac_exeext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 mutt_cv_langinfo_yesexpr=yes
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 mutt_cv_langinfo_yesexpr=no
16599 rm -f conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext conftest.$ac_ext
16602 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16603 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16604 if test $mutt_cv_langinfo_yesexpr = yes; then
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_LANGINFO_YESEXPR 1
16614 # Check whether --with-libesmtp or --without-libesmtp was given.
16615 if test "${with_libesmtp+set}" = set; then
16616 withval="$with_libesmtp"
16617 if test "$with_libesmtp" != "no"
16619 mutt_libesmtp_check_path="$PATH"
16621 if test "$with_libesmtp" != "yes"
16623 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16626 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16627 set dummy libesmtp-config; ac_word=$2
16628 echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16630 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 case $mutt_libesmtp_config_path in
16635 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16639 for as_dir in $mutt_libesmtp_check_path
16642 test -z "$as_dir" && as_dir=.
16643 for ac_exec_ext in '' $ac_executable_extensions; do
16644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16645 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16652 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16656 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16658 if test -n "$mutt_libesmtp_config_path"; then
16659 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16660 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16662 echo "$as_me:$LINENO: result: no" >&5
16663 echo "${ECHO_T}no" >&6
16667 if test "$mutt_libesmtp_config_path" = "no"
16669 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16670 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16671 { (exit 1); exit 1; }; }
16674 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16675 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16677 temp_CFLAGS="$CFLAGS"
16678 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16679 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16680 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16681 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16682 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16686 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16688 # Is the header compilable?
16689 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16690 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16698 #include <libesmtp.h>
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_header_compiler=yes
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 ac_header_compiler=no
16728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6
16732 # Is the header present?
16733 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16734 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <libesmtp.h>
16743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } >/dev/null; then
16751 if test -s conftest.err; then
16752 ac_cpp_err=$ac_c_preproc_warn_flag
16753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16760 if test -z "$ac_cpp_err"; then
16761 ac_header_preproc=yes
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ac_header_preproc=no
16768 rm -f conftest.err conftest.$ac_ext
16769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16770 echo "${ECHO_T}$ac_header_preproc" >&6
16772 # So? What about this header?
16773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16775 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16776 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
16778 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
16779 ac_header_preproc=yes
16782 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16783 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
16785 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
16787 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&5
16789 echo "$as_me: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
16790 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16791 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
16793 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
16796 ## ------------------------------------------ ##
16797 ## Report this to the AC_PACKAGE_NAME lists. ##
16798 ## ------------------------------------------ ##
16801 sed "s/^/$as_me: WARNING: /" >&2
16804 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16805 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16806 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 ac_cv_header_libesmtp_h=$ac_header_preproc
16811 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16812 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16815 if test $ac_cv_header_libesmtp_h = yes; then
16818 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16819 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16820 { (exit 1); exit 1; }; }
16824 CFLAGS="$temp_CFLAGS"
16826 temp_CFLAGS="$CFLAGS"
16828 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16829 LIBS="$LIBS $mutt_libesmtp_libs"
16831 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16832 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16833 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-lesmtp $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any gcc2 internal prototype to avoid an error. */
16849 /* We use char because int might match the return type of a gcc2
16850 builtin and then its argument prototype would still apply. */
16851 char smtp_create_session ();
16855 smtp_create_session ();
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 ac_cv_lib_esmtp_smtp_create_session=yes
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16886 ac_cv_lib_esmtp_smtp_create_session=no
16888 rm -f conftest.err conftest.$ac_objext \
16889 conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16892 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16893 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16894 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16895 cat >>confdefs.h <<_ACEOF
16896 #define HAVE_LIBESMTP 1
16899 LIBS="-lesmtp $LIBS"
16902 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16903 echo "$as_me: error: Could not find libesmtp" >&2;}
16904 { (exit 1); exit 1; }; }
16907 CFLAGS="$temp_CFLAGS"
16916 if test x$use_libesmtp = xyes; then
16917 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16918 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16919 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16922 cat >>confdefs.h <<\_ACEOF
16923 #define USE_LIBESMTP 1
16928 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"
16929 cat >confcache <<\_ACEOF
16930 # This file is a shell script that caches the results of configure
16931 # tests run on this system so they can be shared between configure
16932 # scripts and configure runs, see configure's option --config-cache.
16933 # It is not useful on other systems. If it contains results you don't
16934 # want to keep, you may remove or edit it.
16936 # config.status only pays attention to the cache file if you give it
16937 # the --recheck option to rerun configure.
16939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16941 # following values.
16945 # The following way of writing the cache mishandles newlines in values,
16946 # but we know of no workaround that is simple, portable, and efficient.
16947 # So, don't put newlines in cache variables' values.
16948 # Ultrix sh set writes to stderr and can't be redirected directly,
16949 # and sets the high bit in the cache file unless we assign to the vars.
16952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16954 # `set' does not quote correctly, so add quotes (double-quote
16955 # substitution turns \\\\ into \\, and sed turns \\ into \).
16958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16961 # `set' quotes correctly as required by POSIX, so do not add quotes.
16963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16975 if test -w $cache_file; then
16976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16977 cat confcache >$cache_file
16979 echo "not updating unwritable cache $cache_file"
16984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16985 # Let make expand exec_prefix.
16986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16990 # trailing colons and then remove the whole line if VPATH becomes empty
16991 # (actually we leave an empty line to preserve line numbers).
16992 if test "x$srcdir" = x.; then
16993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16994 s/:*\$(srcdir):*/:/;
16995 s/:*\${srcdir}:*/:/;
16997 s/^\([^=]*=[ ]*\):*/\1/;
17003 DEFS=-DHAVE_CONFIG_H
17007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17008 # 1. Remove the extension, and $U if already installed.
17009 ac_i=`echo "$ac_i" |
17010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17012 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17013 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17015 LIBOBJS=$ac_libobjs
17017 LTLIBOBJS=$ac_ltlibobjs
17020 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17021 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17022 Usually this means the macro was only invoked conditionally." >&5
17023 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17024 Usually this means the macro was only invoked conditionally." >&2;}
17025 { (exit 1); exit 1; }; }
17027 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17028 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17029 Usually this means the macro was only invoked conditionally." >&5
17030 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17031 Usually this means the macro was only invoked conditionally." >&2;}
17032 { (exit 1); exit 1; }; }
17034 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
17035 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
17036 Usually this means the macro was only invoked conditionally." >&5
17037 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
17038 Usually this means the macro was only invoked conditionally." >&2;}
17039 { (exit 1); exit 1; }; }
17041 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
17042 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
17043 Usually this means the macro was only invoked conditionally." >&5
17044 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
17045 Usually this means the macro was only invoked conditionally." >&2;}
17046 { (exit 1); exit 1; }; }
17048 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
17049 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
17050 Usually this means the macro was only invoked conditionally." >&5
17051 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
17052 Usually this means the macro was only invoked conditionally." >&2;}
17053 { (exit 1); exit 1; }; }
17055 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
17056 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
17057 Usually this means the macro was only invoked conditionally." >&5
17058 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
17059 Usually this means the macro was only invoked conditionally." >&2;}
17060 { (exit 1); exit 1; }; }
17062 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17063 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17064 Usually this means the macro was only invoked conditionally." >&5
17065 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17066 Usually this means the macro was only invoked conditionally." >&2;}
17067 { (exit 1); exit 1; }; }
17069 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17070 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17071 Usually this means the macro was only invoked conditionally." >&5
17072 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17073 Usually this means the macro was only invoked conditionally." >&2;}
17074 { (exit 1); exit 1; }; }
17077 : ${CONFIG_STATUS=./config.status}
17078 ac_clean_files_save=$ac_clean_files
17079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17080 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17081 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17082 cat >$CONFIG_STATUS <<_ACEOF
17084 # Generated by $as_me.
17085 # Run this file to recreate the current configuration.
17086 # Compiler output produced by configure, useful for debugging
17087 # configure, is in config.log if it exists.
17090 ac_cs_recheck=false
17092 SHELL=\${CONFIG_SHELL-$SHELL}
17095 cat >>$CONFIG_STATUS <<\_ACEOF
17096 ## --------------------- ##
17097 ## M4sh Initialization. ##
17098 ## --------------------- ##
17100 # Be Bourne compatible
17101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17104 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17105 # is contrary to our usage. Disable this feature.
17106 alias -g '${1+"$@"}'='"$@"'
17107 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17110 DUALCASE=1; export DUALCASE # for MKS sh
17112 # Support unset when possible.
17113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17120 # Work around bugs in pre-3.0 UWIN ksh.
17121 $as_unset ENV MAIL MAILPATH
17128 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17129 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17130 LC_TELEPHONE LC_TIME
17132 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17133 eval $as_var=C; export $as_var
17139 # Required to use basename.
17140 if expr a : '\(a\)' >/dev/null 2>&1; then
17146 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17147 as_basename=basename
17153 # Name of the executable.
17154 as_me=`$as_basename "$0" ||
17155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17156 X"$0" : 'X\(//\)$' \| \
17157 X"$0" : 'X\(/\)$' \| \
17158 . : '\(.\)' 2>/dev/null ||
17160 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17161 /^X\/\(\/\/\)$/{ s//\1/; q; }
17162 /^X\/\(\/\).*/{ s//\1/; q; }
17166 # PATH needs CR, and LINENO needs CR and PATH.
17167 # Avoid depending upon Character Ranges.
17168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17171 as_cr_digits='0123456789'
17172 as_cr_alnum=$as_cr_Letters$as_cr_digits
17174 # The user is always right.
17175 if test "${PATH_SEPARATOR+set}" != set; then
17176 echo "#! /bin/sh" >conf$$.sh
17177 echo "exit 0" >>conf$$.sh
17179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17188 as_lineno_1=$LINENO
17189 as_lineno_2=$LINENO
17190 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17191 test "x$as_lineno_1" != "x$as_lineno_2" &&
17192 test "x$as_lineno_3" = "x$as_lineno_2" || {
17193 # Find who we are. Look in the path if we contain no path at all
17196 *[\\/]* ) as_myself=$0 ;;
17197 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17201 test -z "$as_dir" && as_dir=.
17202 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17207 # We did not find ourselves, most probably we were run as `sh COMMAND'
17208 # in which case we are not to be found in the path.
17209 if test "x$as_myself" = x; then
17212 if test ! -f "$as_myself"; then
17213 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17214 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17215 { (exit 1); exit 1; }; }
17217 case $CONFIG_SHELL in
17219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17223 test -z "$as_dir" && as_dir=.
17224 for as_base in sh bash ksh sh5; do
17227 if ("$as_dir/$as_base" -c '
17228 as_lineno_1=$LINENO
17229 as_lineno_2=$LINENO
17230 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17231 test "x$as_lineno_1" != "x$as_lineno_2" &&
17232 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17233 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17234 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17235 CONFIG_SHELL=$as_dir/$as_base
17236 export CONFIG_SHELL
17237 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17246 # uniformly replaced by the line number. The first 'sed' inserts a
17247 # line-number line before each line; the second 'sed' does the real
17248 # work. The second script uses 'N' to pair each line-number line
17249 # with the numbered line, and appends trailing '-' during
17250 # substitution so that $LINENO is not a special case at line end.
17251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17252 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17253 sed '=' <$as_myself |
17258 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17261 s,^['$as_cr_digits']*\n,,
17262 ' >$as_me.lineno &&
17263 chmod +x $as_me.lineno ||
17264 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17265 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17266 { (exit 1); exit 1; }; }
17268 # Don't try to exec as it changes $[0], causing all sort of problems
17269 # (the dirname of $[0] is not the place where we might find the
17270 # original and so on. Autoconf is especially sensible to this).
17272 # Exit status is that of the last command.
17277 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17278 *c*,-n*) ECHO_N= ECHO_C='
17280 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17281 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17284 if expr a : '\(a\)' >/dev/null 2>&1; then
17290 rm -f conf$$ conf$$.exe conf$$.file
17292 if ln -s conf$$.file conf$$ 2>/dev/null; then
17293 # We could just check for DJGPP; but this test a) works b) is more generic
17294 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17295 if test -f conf$$.exe; then
17296 # Don't use ln at all; we don't have any links
17301 elif ln conf$$.file conf$$ 2>/dev/null; then
17306 rm -f conf$$ conf$$.exe conf$$.file
17308 if mkdir -p . 2>/dev/null; then
17311 test -d ./-p && rmdir ./-p
17315 as_executable_p="test -f"
17317 # Sed expression to map a string onto a valid CPP name.
17318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17320 # Sed expression to map a string onto a valid variable name.
17321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17325 # We need space, tab and new line, in precisely that order.
17335 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17336 # report actual input values of CONFIG_FILES etc. instead of their
17337 # values after options handling. Logging --version etc. is OK.
17341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17342 ## Running $as_me. ##
17347 This file was extended by $as_me, which was
17348 generated by GNU Autoconf 2.59. Invocation command line was
17350 CONFIG_FILES = $CONFIG_FILES
17351 CONFIG_HEADERS = $CONFIG_HEADERS
17352 CONFIG_LINKS = $CONFIG_LINKS
17353 CONFIG_COMMANDS = $CONFIG_COMMANDS
17357 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17361 # Files that config.status was made for.
17362 if test -n "$ac_config_files"; then
17363 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17366 if test -n "$ac_config_headers"; then
17367 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17370 if test -n "$ac_config_links"; then
17371 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17374 if test -n "$ac_config_commands"; then
17375 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17381 \`$as_me' instantiates files from templates according to the
17382 current configuration.
17384 Usage: $0 [OPTIONS] [FILE]...
17386 -h, --help print this help, then exit
17387 -V, --version print version number, then exit
17388 -q, --quiet do not print progress messages
17389 -d, --debug don't remove temporary files
17390 --recheck update $as_me by reconfiguring in the same conditions
17391 --file=FILE[:TEMPLATE]
17392 instantiate the configuration file FILE
17393 --header=FILE[:TEMPLATE]
17394 instantiate the configuration header FILE
17396 Configuration files:
17399 Configuration headers:
17402 Configuration commands:
17405 Report bugs to <bug-autoconf@gnu.org>."
17408 cat >>$CONFIG_STATUS <<_ACEOF
17411 configured by $0, generated by GNU Autoconf 2.59,
17412 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17414 Copyright (C) 2003 Free Software Foundation, Inc.
17415 This config.status script is free software; the Free Software Foundation
17416 gives unlimited permission to copy, distribute and modify it."
17421 cat >>$CONFIG_STATUS <<\_ACEOF
17422 # If no file are specified by the user, then we need to provide default
17423 # value. By we need to know if files were specified by the user.
17429 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17430 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17438 *) # This is not an option, so the user has probably given explicit
17441 ac_need_defaults=false;;
17445 # Handling of the options.
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17450 --version | --vers* | -V )
17451 echo "$ac_cs_version"; exit 0 ;;
17453 # Conflict between --help and --header
17454 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17455 Try \`$0 --help' for more information." >&5
17456 echo "$as_me: error: ambiguous option: $1
17457 Try \`$0 --help' for more information." >&2;}
17458 { (exit 1); exit 1; }; };;
17459 --help | --hel | -h )
17460 echo "$ac_cs_usage"; exit 0 ;;
17461 --debug | --d* | -d )
17463 --file | --fil | --fi | --f )
17465 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17466 ac_need_defaults=false;;
17467 --header | --heade | --head | --hea )
17469 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17470 ac_need_defaults=false;;
17471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17475 # This is an error.
17476 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17477 Try \`$0 --help' for more information." >&5
17478 echo "$as_me: error: unrecognized option: $1
17479 Try \`$0 --help' for more information." >&2;}
17480 { (exit 1); exit 1; }; } ;;
17482 *) ac_config_targets="$ac_config_targets $1" ;;
17488 ac_configure_extra_args=
17490 if $ac_cs_silent; then
17492 ac_configure_extra_args="$ac_configure_extra_args --silent"
17496 cat >>$CONFIG_STATUS <<_ACEOF
17497 if \$ac_cs_recheck; then
17498 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17499 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17504 cat >>$CONFIG_STATUS <<_ACEOF
17506 # INIT-COMMANDS section.
17509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17516 cat >>$CONFIG_STATUS <<\_ACEOF
17517 for ac_config_target in $ac_config_targets
17519 case "$ac_config_target" in
17520 # Handling of arguments.
17521 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17522 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17523 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17524 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17525 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17526 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17527 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17528 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17529 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17530 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17531 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17532 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17533 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17534 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17535 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17536 { (exit 1); exit 1; }; };;
17540 # If the user did not use the arguments to specify the items to instantiate,
17541 # then the envvar interface is used. Set only those that are not.
17542 # We use the long form for the default assignment because of an extremely
17543 # bizarre bug on SunOS 4.1.3.
17544 if $ac_need_defaults; then
17545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17550 # Have a temporary directory for convenience. Make it in the build tree
17551 # simply because there is no reason to put it here, and in addition,
17552 # creating and moving files from /tmp can sometimes cause problems.
17553 # Create a temporary directory, and hook for its removal unless debugging.
17556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17557 trap '{ (exit 1); exit 1; }' 1 2 13 15
17560 # Create a (secure) tmp directory for tmp files.
17563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17564 test -n "$tmp" && test -d "$tmp"
17567 tmp=./confstat$$-$RANDOM
17568 (umask 077 && mkdir $tmp)
17571 echo "$me: cannot create a temporary directory in ." >&2
17572 { (exit 1); exit 1; }
17577 cat >>$CONFIG_STATUS <<_ACEOF
17580 # CONFIG_FILES section.
17583 # No need to generate the scripts if there are no CONFIG_FILES.
17584 # This happens for instance when ./config.status config.h
17585 if test -n "\$CONFIG_FILES"; then
17586 # Protect against being on the right side of a sed subst in config.status.
17587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17589 s,@SHELL@,$SHELL,;t t
17590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17596 s,@exec_prefix@,$exec_prefix,;t t
17597 s,@prefix@,$prefix,;t t
17598 s,@program_transform_name@,$program_transform_name,;t t
17599 s,@bindir@,$bindir,;t t
17600 s,@sbindir@,$sbindir,;t t
17601 s,@libexecdir@,$libexecdir,;t t
17602 s,@datadir@,$datadir,;t t
17603 s,@sysconfdir@,$sysconfdir,;t t
17604 s,@sharedstatedir@,$sharedstatedir,;t t
17605 s,@localstatedir@,$localstatedir,;t t
17606 s,@libdir@,$libdir,;t t
17607 s,@includedir@,$includedir,;t t
17608 s,@oldincludedir@,$oldincludedir,;t t
17609 s,@infodir@,$infodir,;t t
17610 s,@mandir@,$mandir,;t t
17611 s,@build_alias@,$build_alias,;t t
17612 s,@host_alias@,$host_alias,;t t
17613 s,@target_alias@,$target_alias,;t t
17614 s,@DEFS@,$DEFS,;t t
17615 s,@ECHO_C@,$ECHO_C,;t t
17616 s,@ECHO_N@,$ECHO_N,;t t
17617 s,@ECHO_T@,$ECHO_T,;t t
17618 s,@LIBS@,$LIBS,;t t
17619 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17620 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17621 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17622 s,@CYGPATH_W@,$CYGPATH_W,;t t
17623 s,@PACKAGE@,$PACKAGE,;t t
17624 s,@VERSION@,$VERSION,;t t
17625 s,@ACLOCAL@,$ACLOCAL,;t t
17626 s,@AUTOCONF@,$AUTOCONF,;t t
17627 s,@AUTOMAKE@,$AUTOMAKE,;t t
17628 s,@AUTOHEADER@,$AUTOHEADER,;t t
17629 s,@MAKEINFO@,$MAKEINFO,;t t
17630 s,@AMTAR@,$AMTAR,;t t
17631 s,@install_sh@,$install_sh,;t t
17632 s,@STRIP@,$STRIP,;t t
17633 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17634 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17636 s,@SET_MAKE@,$SET_MAKE,;t t
17637 s,@am__leading_dot@,$am__leading_dot,;t t
17638 s,@build@,$build,;t t
17639 s,@build_cpu@,$build_cpu,;t t
17640 s,@build_vendor@,$build_vendor,;t t
17641 s,@build_os@,$build_os,;t t
17642 s,@host@,$host,;t t
17643 s,@host_cpu@,$host_cpu,;t t
17644 s,@host_vendor@,$host_vendor,;t t
17645 s,@host_os@,$host_os,;t t
17647 s,@CFLAGS@,$CFLAGS,;t t
17648 s,@LDFLAGS@,$LDFLAGS,;t t
17649 s,@CPPFLAGS@,$CPPFLAGS,;t t
17650 s,@ac_ct_CC@,$ac_ct_CC,;t t
17651 s,@EXEEXT@,$EXEEXT,;t t
17652 s,@OBJEXT@,$OBJEXT,;t t
17653 s,@DEPDIR@,$DEPDIR,;t t
17654 s,@am__include@,$am__include,;t t
17655 s,@am__quote@,$am__quote,;t t
17656 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17657 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17658 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17659 s,@CCDEPMODE@,$CCDEPMODE,;t t
17660 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17661 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17663 s,@EGREP@,$EGREP,;t t
17665 s,@ANSI2KNR@,$ANSI2KNR,;t t
17666 s,@RANLIB@,$RANLIB,;t t
17667 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17669 s,@ac_ct_AR@,$ac_ct_AR,;t t
17673 s,@DEBUGGER@,$DEBUGGER,;t t
17674 s,@SENDMAIL@,$SENDMAIL,;t t
17676 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17677 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17678 s,@SUBVERSION@,$SUBVERSION,;t t
17679 s,@ISPELL@,$ISPELL,;t t
17680 s,@LIBOBJS@,$LIBOBJS,;t t
17681 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17682 s,@docdir@,$docdir,;t t
17683 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17684 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17685 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17686 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17687 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17688 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17689 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17690 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17691 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17692 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
17693 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
17694 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17695 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17696 s,@MUTTLIBS@,$MUTTLIBS,;t t
17697 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17698 s,@LIBIMAP@,$LIBIMAP,;t t
17699 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17700 s,@ALLOCA@,$ALLOCA,;t t
17701 s,@GLIBC21@,$GLIBC21,;t t
17702 s,@LIBICONV@,$LIBICONV,;t t
17703 s,@USE_NLS@,$USE_NLS,;t t
17704 s,@MSGFMT@,$MSGFMT,;t t
17705 s,@GMSGFMT@,$GMSGFMT,;t t
17706 s,@XGETTEXT@,$XGETTEXT,;t t
17707 s,@INTLBISON@,$INTLBISON,;t t
17708 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17709 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17710 s,@CATALOGS@,$CATALOGS,;t t
17711 s,@CATOBJEXT@,$CATOBJEXT,;t t
17712 s,@GMOFILES@,$GMOFILES,;t t
17713 s,@INTLLIBS@,$INTLLIBS,;t t
17714 s,@INTLOBJS@,$INTLOBJS,;t t
17715 s,@POFILES@,$POFILES,;t t
17716 s,@POSUB@,$POSUB,;t t
17717 s,@DATADIRNAME@,$DATADIRNAME,;t t
17718 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17719 s,@GENCAT@,$GENCAT,;t t
17720 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17721 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17722 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17728 cat >>$CONFIG_STATUS <<\_ACEOF
17729 # Split the substitutions into bite-sized pieces for seds with
17730 # small command number limits, like on Digital OSF/1 and HP-UX.
17731 ac_max_sed_lines=48
17732 ac_sed_frag=1 # Number of current file.
17733 ac_beg=1 # First line for current file.
17734 ac_end=$ac_max_sed_lines # Line after last line for current file.
17737 while $ac_more_lines; do
17738 if test $ac_beg -gt 1; then
17739 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17741 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17743 if test ! -s $tmp/subs.frag; then
17744 ac_more_lines=false
17746 # The purpose of the label and of the branching condition is to
17747 # speed up the sed processing (if there are no `@' at all, there
17748 # is no need to browse any of the substitutions).
17749 # These are the two extra sed commands mentioned above.
17751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17752 if test -z "$ac_sed_cmds"; then
17753 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17755 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17757 ac_sed_frag=`expr $ac_sed_frag + 1`
17759 ac_end=`expr $ac_end + $ac_max_sed_lines`
17762 if test -z "$ac_sed_cmds"; then
17765 fi # test -n "$CONFIG_FILES"
17768 cat >>$CONFIG_STATUS <<\_ACEOF
17769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17772 - | *:- | *:-:* ) # input from stdin
17774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17778 * ) ac_file_in=$ac_file.in ;;
17781 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784 X"$ac_file" : 'X\(//\)[^/]' \| \
17785 X"$ac_file" : 'X\(//\)$' \| \
17786 X"$ac_file" : 'X\(/\)' \| \
17787 . : '\(.\)' 2>/dev/null ||
17789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17791 /^X\(\/\/\)$/{ s//\1/; q; }
17792 /^X\(\/\).*/{ s//\1/; q; }
17794 { if $as_mkdir_p; then
17799 while test ! -d "$as_dir"; do
17800 as_dirs="$as_dir $as_dirs"
17801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17803 X"$as_dir" : 'X\(//\)[^/]' \| \
17804 X"$as_dir" : 'X\(//\)$' \| \
17805 X"$as_dir" : 'X\(/\)' \| \
17806 . : '\(.\)' 2>/dev/null ||
17808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17810 /^X\(\/\/\)$/{ s//\1/; q; }
17811 /^X\(\/\).*/{ s//\1/; q; }
17814 test ! -n "$as_dirs" || mkdir $as_dirs
17815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17817 { (exit 1); exit 1; }; }; }
17821 if test "$ac_dir" != .; then
17822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17823 # A "../" for each directory in $ac_dir_suffix.
17824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17826 ac_dir_suffix= ac_top_builddir=
17830 .) # No --srcdir option. We are building in place.
17832 if test -z "$ac_top_builddir"; then
17835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17837 [\\/]* | ?:[\\/]* ) # Absolute path.
17838 ac_srcdir=$srcdir$ac_dir_suffix;
17839 ac_top_srcdir=$srcdir ;;
17840 *) # Relative path.
17841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17845 # Do not use `cd foo && pwd` to compute absolute paths, because
17846 # the directories may not exist.
17848 .) ac_abs_builddir="$ac_dir";;
17851 .) ac_abs_builddir=`pwd`;;
17852 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17853 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17856 case $ac_abs_builddir in
17857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17859 case ${ac_top_builddir}. in
17860 .) ac_abs_top_builddir=$ac_abs_builddir;;
17861 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17862 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17865 case $ac_abs_builddir in
17866 .) ac_abs_srcdir=$ac_srcdir;;
17869 .) ac_abs_srcdir=$ac_abs_builddir;;
17870 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17871 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17874 case $ac_abs_builddir in
17875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17877 case $ac_top_srcdir in
17878 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17879 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17880 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17887 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17890 # Let's still pretend it is `configure' which instantiates (i.e., don't
17891 # use $as_me), people would be surprised to read:
17892 # /* config.h. Generated by config.status. */
17893 if test x"$ac_file" = x-; then
17896 configure_input="$ac_file. "
17898 configure_input=$configure_input"Generated from `echo $ac_file_in |
17899 sed 's,.*/,,'` by configure."
17901 # First look for the input files in the build tree, otherwise in the
17903 ac_file_inputs=`IFS=:
17904 for f in $ac_file_in; do
17906 -) echo $tmp/stdin ;;
17908 # Absolute (can't be DOS-style, as IFS=:)
17909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17910 echo "$as_me: error: cannot find input file: $f" >&2;}
17911 { (exit 1); exit 1; }; }
17914 if test -f "$f"; then
17917 elif test -f "$srcdir/$f"; then
17922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17923 echo "$as_me: error: cannot find input file: $f" >&2;}
17924 { (exit 1); exit 1; }; }
17927 done` || { (exit 1); exit 1; }
17929 if test x"$ac_file" != x-; then
17930 { echo "$as_me:$LINENO: creating $ac_file" >&5
17931 echo "$as_me: creating $ac_file" >&6;}
17935 cat >>$CONFIG_STATUS <<_ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17942 s,@configure_input@,$configure_input,;t t
17943 s,@srcdir@,$ac_srcdir,;t t
17944 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17945 s,@top_srcdir@,$ac_top_srcdir,;t t
17946 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17947 s,@builddir@,$ac_builddir,;t t
17948 s,@abs_builddir@,$ac_abs_builddir,;t t
17949 s,@top_builddir@,$ac_top_builddir,;t t
17950 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17951 s,@INSTALL@,$ac_INSTALL,;t t
17952 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17954 if test x"$ac_file" != x-; then
17955 mv $tmp/out $ac_file
17963 cat >>$CONFIG_STATUS <<\_ACEOF
17966 # CONFIG_HEADER section.
17969 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17970 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17972 # ac_d sets the value in "#define NAME VALUE" lines.
17973 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17974 ac_dB='[ ].*$,\1#\2'
17977 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17978 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17979 ac_uB='$,\1#\2define\3'
17983 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17986 - | *:- | *:-:* ) # input from stdin
17988 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17990 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17992 * ) ac_file_in=$ac_file.in ;;
17995 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17996 echo "$as_me: creating $ac_file" >&6;}
17998 # First look for the input files in the build tree, otherwise in the
18000 ac_file_inputs=`IFS=:
18001 for f in $ac_file_in; do
18003 -) echo $tmp/stdin ;;
18005 # Absolute (can't be DOS-style, as IFS=:)
18006 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18007 echo "$as_me: error: cannot find input file: $f" >&2;}
18008 { (exit 1); exit 1; }; }
18009 # Do quote $f, to prevent DOS paths from being IFS'd.
18012 if test -f "$f"; then
18015 elif test -f "$srcdir/$f"; then
18020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18021 echo "$as_me: error: cannot find input file: $f" >&2;}
18022 { (exit 1); exit 1; }; }
18025 done` || { (exit 1); exit 1; }
18026 # Remove the trailing spaces.
18027 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18031 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18032 # `conftest.undefs', that substitutes the proper values into
18033 # config.h.in to produce config.h. The first handles `#define'
18034 # templates, and the second `#undef' templates.
18035 # And first: Protect against being on the right side of a sed subst in
18036 # config.status. Protect against being in an unquoted here document
18037 # in config.status.
18038 rm -f conftest.defines conftest.undefs
18039 # Using a here document instead of a string reduces the quoting nightmare.
18040 # Putting comments in sed scripts is not portable.
18042 # `end' is used to avoid that the second main sed command (meant for
18043 # 0-ary CPP macros) applies to n-ary macro definitions.
18044 # See the Autoconf documentation for `clear'.
18045 cat >confdef2sed.sed <<\_ACEOF
18050 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18052 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18055 # If some macros were called several times there might be several times
18056 # the same #defines, which is useless. Nevertheless, we may not want to
18057 # sort them, since we want the *last* AC-DEFINE to be honored.
18058 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18059 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18060 rm -f confdef2sed.sed
18062 # This sed command replaces #undef with comments. This is necessary, for
18063 # example, in the case of _POSIX_SOURCE, which is predefined and required
18064 # on some systems where configure will not decide to define it.
18065 cat >>conftest.undefs <<\_ACEOF
18066 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18069 # Break up conftest.defines because some shells have a limit on the size
18070 # of here documents, and old seds have small limits too (100 cmds).
18071 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18072 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18073 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18074 echo ' :' >>$CONFIG_STATUS
18075 rm -f conftest.tail
18076 while grep . conftest.defines >/dev/null
18078 # Write a limited-size here document to $tmp/defines.sed.
18079 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18080 # Speed up: don't consider the non `#define' lines.
18081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18082 # Work around the forget-to-reset-the-flag bug.
18083 echo 't clr' >>$CONFIG_STATUS
18084 echo ': clr' >>$CONFIG_STATUS
18085 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18087 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18089 mv $tmp/out $tmp/in
18091 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18092 rm -f conftest.defines
18093 mv conftest.tail conftest.defines
18095 rm -f conftest.defines
18096 echo ' fi # grep' >>$CONFIG_STATUS
18097 echo >>$CONFIG_STATUS
18099 # Break up conftest.undefs because some shells have a limit on the size
18100 # of here documents, and old seds have small limits too (100 cmds).
18101 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18102 rm -f conftest.tail
18103 while grep . conftest.undefs >/dev/null
18105 # Write a limited-size here document to $tmp/undefs.sed.
18106 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18107 # Speed up: don't consider the non `#undef'
18108 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18109 # Work around the forget-to-reset-the-flag bug.
18110 echo 't clr' >>$CONFIG_STATUS
18111 echo ': clr' >>$CONFIG_STATUS
18112 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18114 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18116 mv $tmp/out $tmp/in
18118 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18119 rm -f conftest.undefs
18120 mv conftest.tail conftest.undefs
18122 rm -f conftest.undefs
18124 cat >>$CONFIG_STATUS <<\_ACEOF
18125 # Let's still pretend it is `configure' which instantiates (i.e., don't
18126 # use $as_me), people would be surprised to read:
18127 # /* config.h. Generated by config.status. */
18128 if test x"$ac_file" = x-; then
18129 echo "/* Generated by configure. */" >$tmp/config.h
18131 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18133 cat $tmp/in >>$tmp/config.h
18135 if test x"$ac_file" != x-; then
18136 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18137 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18138 echo "$as_me: $ac_file is unchanged" >&6;}
18140 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18142 X"$ac_file" : 'X\(//\)[^/]' \| \
18143 X"$ac_file" : 'X\(//\)$' \| \
18144 X"$ac_file" : 'X\(/\)' \| \
18145 . : '\(.\)' 2>/dev/null ||
18147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18149 /^X\(\/\/\)$/{ s//\1/; q; }
18150 /^X\(\/\).*/{ s//\1/; q; }
18152 { if $as_mkdir_p; then
18157 while test ! -d "$as_dir"; do
18158 as_dirs="$as_dir $as_dirs"
18159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18161 X"$as_dir" : 'X\(//\)[^/]' \| \
18162 X"$as_dir" : 'X\(//\)$' \| \
18163 X"$as_dir" : 'X\(/\)' \| \
18164 . : '\(.\)' 2>/dev/null ||
18166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18168 /^X\(\/\/\)$/{ s//\1/; q; }
18169 /^X\(\/\).*/{ s//\1/; q; }
18172 test ! -n "$as_dirs" || mkdir $as_dirs
18173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18175 { (exit 1); exit 1; }; }; }
18178 mv $tmp/config.h $ac_file
18182 rm -f $tmp/config.h
18184 # Compute $ac_file's index in $config_headers.
18186 for _am_header in $config_headers :; do
18187 case $_am_header in
18188 $ac_file | $ac_file:* )
18191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18194 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18195 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18196 X$ac_file : 'X\(//\)[^/]' \| \
18197 X$ac_file : 'X\(//\)$' \| \
18198 X$ac_file : 'X\(/\)' \| \
18199 . : '\(.\)' 2>/dev/null ||
18201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18203 /^X\(\/\/\)$/{ s//\1/; q; }
18204 /^X\(\/\).*/{ s//\1/; q; }
18205 s/.*/./; q'`/stamp-h$_am_stamp_count
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18211 # CONFIG_COMMANDS section.
18213 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18214 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18215 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18216 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18217 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18218 X"$ac_dest" : 'X\(//\)[^/]' \| \
18219 X"$ac_dest" : 'X\(//\)$' \| \
18220 X"$ac_dest" : 'X\(/\)' \| \
18221 . : '\(.\)' 2>/dev/null ||
18223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18225 /^X\(\/\/\)$/{ s//\1/; q; }
18226 /^X\(\/\).*/{ s//\1/; q; }
18228 { if $as_mkdir_p; then
18233 while test ! -d "$as_dir"; do
18234 as_dirs="$as_dir $as_dirs"
18235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237 X"$as_dir" : 'X\(//\)[^/]' \| \
18238 X"$as_dir" : 'X\(//\)$' \| \
18239 X"$as_dir" : 'X\(/\)' \| \
18240 . : '\(.\)' 2>/dev/null ||
18242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18244 /^X\(\/\/\)$/{ s//\1/; q; }
18245 /^X\(\/\).*/{ s//\1/; q; }
18248 test ! -n "$as_dirs" || mkdir $as_dirs
18249 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18250 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18251 { (exit 1); exit 1; }; }; }
18255 if test "$ac_dir" != .; then
18256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18257 # A "../" for each directory in $ac_dir_suffix.
18258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18260 ac_dir_suffix= ac_top_builddir=
18264 .) # No --srcdir option. We are building in place.
18266 if test -z "$ac_top_builddir"; then
18269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18271 [\\/]* | ?:[\\/]* ) # Absolute path.
18272 ac_srcdir=$srcdir$ac_dir_suffix;
18273 ac_top_srcdir=$srcdir ;;
18274 *) # Relative path.
18275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18279 # Do not use `cd foo && pwd` to compute absolute paths, because
18280 # the directories may not exist.
18282 .) ac_abs_builddir="$ac_dir";;
18285 .) ac_abs_builddir=`pwd`;;
18286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18290 case $ac_abs_builddir in
18291 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18293 case ${ac_top_builddir}. in
18294 .) ac_abs_top_builddir=$ac_abs_builddir;;
18295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18299 case $ac_abs_builddir in
18300 .) ac_abs_srcdir=$ac_srcdir;;
18303 .) ac_abs_srcdir=$ac_abs_builddir;;
18304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18308 case $ac_abs_builddir in
18309 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18311 case $ac_top_srcdir in
18312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18319 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18320 echo "$as_me: executing $ac_dest commands" >&6;}
18322 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18323 # Strip MF so we end up with the name of the file.
18324 mf=`echo "$mf" | sed -e 's/:.*$//'`
18325 # Check whether this is an Automake generated Makefile or not.
18326 # We used to match only the files named `Makefile.in', but
18327 # some people rename them; so instead we look at the file content.
18328 # Grep'ing the first line is not enough: some people post-process
18329 # each Makefile.in and add a new line on top of each file to say so.
18330 # So let's grep whole file.
18331 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18332 dirpart=`(dirname "$mf") 2>/dev/null ||
18333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18334 X"$mf" : 'X\(//\)[^/]' \| \
18335 X"$mf" : 'X\(//\)$' \| \
18336 X"$mf" : 'X\(/\)' \| \
18337 . : '\(.\)' 2>/dev/null ||
18339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18341 /^X\(\/\/\)$/{ s//\1/; q; }
18342 /^X\(\/\).*/{ s//\1/; q; }
18347 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18348 # Extract the definition of DEP_FILES from the Makefile without
18350 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18351 test -z "$DEPDIR" && continue
18352 # When using ansi2knr, U may be empty or an underscore; expand it
18353 U=`sed -n -e '/^U = / s///p' < "$mf"`
18354 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18355 # We invoke sed twice because it is the simplest approach to
18356 # changing $(DEPDIR) to its actual value in the expansion.
18357 for file in `sed -n -e '
18358 /^DEP_FILES = .*\\\\$/ {
18367 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18368 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18369 # Make sure the directory exists.
18370 test -f "$dirpart/$file" && continue
18371 fdir=`(dirname "$file") 2>/dev/null ||
18372 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18373 X"$file" : 'X\(//\)[^/]' \| \
18374 X"$file" : 'X\(//\)$' \| \
18375 X"$file" : 'X\(/\)' \| \
18376 . : '\(.\)' 2>/dev/null ||
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18380 /^X\(\/\/\)$/{ s//\1/; q; }
18381 /^X\(\/\).*/{ s//\1/; q; }
18383 { if $as_mkdir_p; then
18384 mkdir -p $dirpart/$fdir
18386 as_dir=$dirpart/$fdir
18388 while test ! -d "$as_dir"; do
18389 as_dirs="$as_dir $as_dirs"
18390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18392 X"$as_dir" : 'X\(//\)[^/]' \| \
18393 X"$as_dir" : 'X\(//\)$' \| \
18394 X"$as_dir" : 'X\(/\)' \| \
18395 . : '\(.\)' 2>/dev/null ||
18397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18399 /^X\(\/\/\)$/{ s//\1/; q; }
18400 /^X\(\/\).*/{ s//\1/; q; }
18403 test ! -n "$as_dirs" || mkdir $as_dirs
18404 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18405 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18406 { (exit 1); exit 1; }; }; }
18408 # echo "creating $dirpart/$file"
18409 echo '# dummy' > "$dirpart/$file"
18413 default-1 ) for ac_file in $CONFIG_FILES; do
18414 # Support "outfile[:infile[:infile...]]"
18416 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18418 # PO directories have a Makefile.in generated from Makefile.in.in.
18419 case "$ac_file" in */Makefile.in)
18420 # Adjust a relative srcdir.
18421 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18422 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18423 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18424 # In autoconf-2.13 it is called $ac_given_srcdir.
18425 # In autoconf-2.50 it is called $srcdir.
18426 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18427 case "$ac_given_srcdir" in
18428 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18429 /*) top_srcdir="$ac_given_srcdir" ;;
18430 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18432 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18433 rm -f "$ac_dir/POTFILES"
18434 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18435 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18436 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18437 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18446 cat >>$CONFIG_STATUS <<\_ACEOF
18448 { (exit 0); exit 0; }
18450 chmod +x $CONFIG_STATUS
18451 ac_clean_files=$ac_clean_files_save
18454 # configure is writing to config.log, and then calls config.status.
18455 # config.status does its own redirection, appending to config.log.
18456 # Unfortunately, on DOS this fails, as config.log is still kept open
18457 # by configure, so config.status won't be able to write to it; its
18458 # output is simply discarded. So we exec the FD to /dev/null,
18459 # effectively closing config.log, so it can be properly (re)opened and
18460 # appended to by config.status. When coming back to configure, we
18461 # need to make the FD available again.
18462 if test "$no_create" != yes; then
18464 ac_config_status_args=
18465 test "$silent" = yes &&
18466 ac_config_status_args="$ac_config_status_args --quiet"
18468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18471 # would make configure fail if this is the last instruction.
18472 $ac_cs_success || { (exit 1); exit 1; }