2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-largefile omit support for large files
854 --enable-gpgme Enable GPGME support
855 --disable-pgp Disable PGP support
856 --disable-smime Disable SMIME support
857 --enable-external-dotlock
858 Force use of an external dotlock program
859 --enable-pop Enable POP3 support
860 --enable-imap Enable IMAP support
861 --enable-nntp Enable NNTP support
862 --enable-debug Enable debugging support
863 --enable-flock Use flock() to lock files
864 --disable-fcntl Do NOT use fcntl() to lock files
865 --enable-inodesort Read files in maildir folders sorted by inode.
866 --disable-warnings Turn off compiler warnings (not recommended)
867 --enable-nfs-fix Work around an NFS with broken attributes caching
868 --enable-buffy-size Use file size attribute instead of access time
869 --enable-mailtool Enable Sun mailtool attachments support
870 --enable-compressed Enable compressed folders support
871 --enable-locales-fix The result of isprint() is unreliable
872 --enable-exact-address Enable regeneration of email addresses
873 --enable-hcache Enable header caching
874 --disable-iconv Disable iconv support
875 --disable-nls Do not use Native Language Support
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
881 --with-mixmaster=PATH Include Mixmaster support
882 --with-slang=DIR Use S-Lang instead of ncurses
883 --with-curses=DIR Where ncurses is installed
884 --with-regex Use the GNU regex library
885 --with-homespool=FILE File in user's directory where new mail is spooled
886 --with-mailpath=DIR Directory where spool mailboxes are located
887 --with-docdir=PATH Specify where to put the documentation
888 --with-domain=DOMAIN Specify your DNS domain name
889 --with-gss=PFX Compile in GSSAPI authentication for IMAP
890 --with-ssl=PFX Compile in SSL support for POP/IMAP
891 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
892 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
893 --with-gnutls=PFX Enable SSL support using gnutls
894 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
895 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP
897 --with-idn=PFX Use GNU libidn for domain names
898 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
899 --without-gdbm Don't use gdbm even if it is available
900 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
901 --with-libiconv-prefix=DIR
902 Search for libiconv in DIR/include and DIR/lib
903 --with-included-gettext Use the GNU gettext library included here
904 --without-wc-funcs Do not use the system's wchar_t functions
905 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
907 Some influential environment variables:
908 CC C compiler command
909 CFLAGS C compiler flags
910 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
911 nonstandard directory <lib dir>
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 ac_dir_suffix= ac_top_builddir=
938 .) # No --srcdir option. We are building in place.
940 if test -z "$ac_top_builddir"; then
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
982 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
983 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.57. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core core.* *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h"
1325 mutt_cv_version=`cat $srcdir/VERSION`
1327 am__api_version="1.7"
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 elif test -f $ac_dir/install.sh; then
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 elif test -f $ac_dir/shtool; then
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1360 # AmigaOS /C/install, which installs bootblocks on floppy discs
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367 if test -z "$INSTALL"; then
1368 if test "${ac_cv_path_install+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 # Account for people who put trailing slashes in PATH elements.
1378 ./ | .// | /cC/* | \
1379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1385 for ac_prog in ginstall scoinst install; do
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388 if test $ac_prog = install &&
1389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390 # AIX install. It has an incompatible calling convention.
1392 elif test $ac_prog = install &&
1393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # program-specific install script used by HP pwplus--don't use.
1397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409 if test "${ac_cv_path_install+set}" = set; then
1410 INSTALL=$ac_cv_path_install
1412 # As a last resort, use the slow shell script. We don't cache a
1413 # path for INSTALL within a source directory, because that will
1414 # break other packages using the cache if that directory is
1415 # removed, or if the path is relative.
1416 INSTALL=$ac_install_sh
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1434 echo timestamp > conftest.file
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments. Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1441 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1442 if test "$*" = "X"; then
1444 set X `ls -t $srcdir/configure conftest.file`
1447 if test "$*" != "X $srcdir/configure conftest.file" \
1448 && test "$*" != "X conftest.file $srcdir/configure"; then
1450 # If neither matched, then we have a broken ls. This can happen
1451 # if, for instance, CONFIG_SHELL is bash and it inherits a
1452 # broken ls alias from the environment. This has actually
1453 # happened. Such a system could not be considered "sane".
1454 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1455 alias in your environment" >&5
1456 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1457 alias in your environment" >&2;}
1458 { (exit 1); exit 1; }; }
1461 test "$2" = conftest.file
1467 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1468 Check your system clock" >&5
1469 echo "$as_me: error: newly created file is older than distributed files!
1470 Check your system clock" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $. echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1489 # expand $ac_aux_dir to an absolute path
1490 am_aux_dir=`cd $ac_aux_dir && pwd`
1492 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493 # Use eval to expand $SHELL
1494 if eval "$MISSING --run true"; then
1495 am_missing_run="$MISSING --run "
1498 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1502 for ac_prog in gawk mawk nawk awk
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_AWK+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$AWK"; then
1512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_AWK="$ac_prog"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 if test -n "$AWK"; then
1532 echo "$as_me:$LINENO: result: $AWK" >&5
1533 echo "${ECHO_T}$AWK" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1539 test -n "$AWK" && break
1542 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1543 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1544 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 cat >conftest.make <<\_ACEOF
1550 @echo 'ac_maketemp="$(MAKE)"'
1552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1553 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1554 if test -n "$ac_maketemp"; then
1555 eval ac_cv_prog_make_${ac_make}_set=yes
1557 eval ac_cv_prog_make_${ac_make}_set=no
1561 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 SET_MAKE="MAKE=${MAKE-make}"
1571 rm -rf .tst 2>/dev/null
1572 mkdir .tst 2>/dev/null
1573 if test -d .tst; then
1578 rmdir .tst 2>/dev/null
1580 # test to see if srcdir already configured
1581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1582 test -f $srcdir/config.status; then
1583 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1585 { (exit 1); exit 1; }; }
1588 # test whether we have cygpath
1589 if test -z "$CYGPATH_W"; then
1590 if (cygpath --version) >/dev/null 2>/dev/null; then
1591 CYGPATH_W='cygpath -w'
1598 # Define the identity of the package.
1600 VERSION=$mutt_cv_version
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE "$PACKAGE"
1608 cat >>confdefs.h <<_ACEOF
1609 #define VERSION "$VERSION"
1612 # Some tools Automake needs.
1614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1629 AMTAR=${AMTAR-"${am_missing_run}tar"}
1631 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1633 # Installed binaries are usually stripped using `strip' when the user
1634 # run `make install-strip'. However `strip' might not be the right
1635 # tool to use in cross-compilation environments, therefore Automake
1636 # will honor the `STRIP' environment variable to overrule this program.
1637 if test "$cross_compiling" != no; then
1638 if test -n "$ac_tool_prefix"; then
1639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1640 set dummy ${ac_tool_prefix}strip; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_STRIP+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$STRIP"; then
1647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 STRIP=$ac_cv_prog_STRIP
1666 if test -n "$STRIP"; then
1667 echo "$as_me:$LINENO: result: $STRIP" >&5
1668 echo "${ECHO_T}$STRIP" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1675 if test -z "$ac_cv_prog_STRIP"; then
1677 # Extract the first word of "strip", so it can be a program name with args.
1678 set dummy strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$ac_ct_STRIP"; then
1685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_ac_ct_STRIP="strip"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1705 if test -n "$ac_ct_STRIP"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1707 echo "${ECHO_T}$ac_ct_STRIP" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1715 STRIP="$ac_cv_prog_STRIP"
1719 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1721 # We need awk for the "check" target. The system "awk" is bad on
1729 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"
1731 # Make sure we can run config.sub.
1732 $ac_config_sub sun4 >/dev/null 2>&1 ||
1733 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735 { (exit 1); exit 1; }; }
1737 echo "$as_me:$LINENO: checking build system type" >&5
1738 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739 if test "${ac_cv_build+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 ac_cv_build_alias=$build_alias
1743 test -z "$ac_cv_build_alias" &&
1744 ac_cv_build_alias=`$ac_config_guess`
1745 test -z "$ac_cv_build_alias" &&
1746 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748 { (exit 1); exit 1; }; }
1749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756 echo "${ECHO_T}$ac_cv_build" >&6
1758 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$as_me:$LINENO: checking host system type" >&5
1764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765 if test "${ac_cv_host+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 ac_cv_host_alias=$host_alias
1769 test -z "$ac_cv_host_alias" &&
1770 ac_cv_host_alias=$ac_cv_build_alias
1771 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778 echo "${ECHO_T}$ac_cv_host" >&6
1780 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786 echo "$as_me:$LINENO: checking for prefix" >&5
1787 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1788 if test x$prefix = xNONE; then
1789 mutt_cv_prefix=$ac_default_prefix
1791 mutt_cv_prefix=$prefix
1793 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1794 echo "${ECHO_T}$mutt_cv_prefix" >&6
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 if test -n "$ac_tool_prefix"; then
1802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1838 if test -z "$ac_cv_prog_CC"; then
1840 # Extract the first word of "gcc", so it can be a program name with args.
1841 set dummy gcc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$ac_ct_CC"; then
1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_CC="gcc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867 if test -n "$ac_ct_CC"; then
1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869 echo "${ECHO_T}$ac_ct_CC" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1880 if test -z "$CC"; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}cc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC="${ac_tool_prefix}cc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_CC"; then
1920 # Extract the first word of "cc", so it can be a program name with args.
1921 set dummy cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="cc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 # Extract the first word of "cc", so it can be a program name with args.
1963 set dummy cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1981 ac_prog_rejected=yes
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1995 if test $# != 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2006 if test -n "$CC"; then
2007 echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2015 if test -z "$CC"; then
2016 if test -n "$ac_tool_prefix"; then
2019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2054 test -n "$CC" && break
2057 if test -z "$CC"; then
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_CC="$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2096 test -n "$ac_ct_CC" && break
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C compiler version" >&5
2114 ac_compiler=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev/null >&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev/null >&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev/null >&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line $LINENO "configure"
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2147 ac_clean_files_save=$ac_clean_files
2148 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2149 # Try to create an executable without -o first, disregard a.out.
2150 # It will help us diagnose broken compilers, and finding out an intuition
2152 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2153 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2154 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2156 (eval $ac_link_default) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
2160 # Find the output, starting from the most likely. This scheme is
2161 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164 # Be careful to initialize this variable, since it used to be cached.
2165 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 # b.out is created by i960 compilers.
2168 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 test -f "$ac_file" || continue
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175 # This is the source file.
2178 # We found the default executable, but exeext='' is most
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 # FIXME: I believe we export ac_cv_exeext for Libtool,
2184 # but it would be cool to find out if it's true. Does anybody
2185 # maintain Libtool? --akim.
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200 { (exit 77); exit 77; }; }
2203 ac_exeext=$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214 if { ac_try='./$ac_file'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2244 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6
2247 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2250 (eval $ac_link) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2256 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 for ac_file in conftest.exe conftest conftest.*; do
2259 test -f "$ac_file" || continue
2261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2276 rm -f conftest$ac_cv_exeext
2277 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2283 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2285 if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2377 rm -f conftest.$ac_objext conftest.$ac_ext
2378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2381 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383 GCC=`test $ac_compiler_gnu = yes && echo yes`
2384 ac_test_CFLAGS=${CFLAGS+set}
2385 ac_save_CFLAGS=$CFLAGS
2387 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389 if test "${ac_cv_prog_cc_g+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2430 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2431 if test "$ac_test_CFLAGS" = set; then
2432 CFLAGS=$ac_save_CFLAGS
2433 elif test $ac_cv_prog_cc_g = yes; then
2434 if test "$GCC" = yes; then
2440 if test "$GCC" = yes; then
2446 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2447 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2448 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 ac_cv_prog_cc_stdc=no
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2462 #include <sys/types.h>
2463 #include <sys/stat.h>
2464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2465 struct buf { int x; };
2466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (p, i)
2473 static char *f (char * (*g) (char **, int), char **p, ...)
2478 s = g (p, va_arg (v,int));
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f conftest.$ac_objext
2527 rm -f conftest.$ac_ext conftest.$ac_objext
2532 case "x$ac_cv_prog_cc_stdc" in
2534 echo "$as_me:$LINENO: result: none needed" >&5
2535 echo "${ECHO_T}none needed" >&6 ;;
2537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 # Some people use a C++ compiler to compile C. Since we use `exit',
2543 # in C++ we need to declare it. In case someone uses the same compiler
2544 # for both compiling C and C++ we need to have the C++ compiler decide
2545 # the declaration of exit, since it's the most demanding environment.
2546 cat >conftest.$ac_ext <<_ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 for ac_declaration in \
2565 '#include <stdlib.h>' \
2566 'extern "C" void std::exit (int) throw (); using std::exit;' \
2567 'extern "C" void std::exit (int); using std::exit;' \
2568 'extern "C" void exit (int) throw ();' \
2569 'extern "C" void exit (int);' \
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f conftest.$ac_objext conftest.$ac_ext
2646 if test -n "$ac_declaration"; then
2647 echo '#ifdef __cplusplus' >>confdefs.h
2648 echo $ac_declaration >>confdefs.h
2649 echo '#endif' >>confdefs.h
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 DEPDIR="${am__leading_dot}deps"
2665 ac_config_commands="$ac_config_commands depfiles"
2668 am_make=${MAKE-make}
2669 cat > confinc << 'END'
2674 # If we don't find an include directive, just comment out the code.
2675 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2676 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2680 # First try GNU make style include.
2681 echo "include confinc" > confmf
2682 # We grep out `Entering directory' and `Leaving directory'
2683 # messages which can occur if `w' ends up in MAKEFLAGS.
2684 # In particular we don't look at `^make:' because GNU make might
2685 # be invoked under some other name (usually "gmake"), in which
2686 # case it prints its new name instead of `make'.
2687 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2692 # Now try BSD make style include.
2693 if test "$am__include" = "#"; then
2694 echo '.include "confinc"' > confmf
2695 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2696 am__include=.include
2703 echo "$as_me:$LINENO: result: $_am_result" >&5
2704 echo "${ECHO_T}$_am_result" >&6
2705 rm -f confinc confmf
2707 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2708 if test "${enable_dependency_tracking+set}" = set; then
2709 enableval="$enable_dependency_tracking"
2712 if test "x$enable_dependency_tracking" != xno; then
2713 am_depcomp="$ac_aux_dir/depcomp"
2718 if test "x$enable_dependency_tracking" != xno; then
2729 depcc="$CC" am_compiler_list=
2731 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2737 # We make a subdir and do the tests there. Otherwise we can end up
2738 # making bogus files that we don't know about and never remove. For
2739 # instance it was reported that on HP-UX the gcc test will end up
2740 # making a dummy file named `D' -- because `-MD' means `put the output
2743 # Copy depcomp to subdir because otherwise we won't find it if we're
2744 # using a relative directory.
2745 cp "$am_depcomp" conftest.dir
2747 # We will build objects and dependencies in a subdirectory because
2748 # it helps to detect inapplicable dependency modes. For instance
2749 # both Tru64's cc and ICC support -MD to output dependencies as a
2750 # side effect of compilation, but ICC will put the dependencies in
2751 # the current directory while Tru64 will put them in the object
2755 am_cv_CC_dependencies_compiler_type=none
2756 if test "$am_compiler_list" = ""; then
2757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2759 for depmode in $am_compiler_list; do
2760 # Setup a source with many dependencies, because some compilers
2761 # like to wrap large dependency lists on column 80 (with \), and
2762 # we should not choose a depcomp mode which is confused by this.
2764 # We need to recreate these files for each test, as the compiler may
2765 # overwrite some of them when testing with obscure command lines.
2766 # This happens at least with the AIX C compiler.
2768 for i in 1 2 3 4 5 6; do
2769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2776 # after this tag, mechanisms are not by side-effect, so they'll
2777 # only be used when explicitly requested
2778 if test "x$enable_dependency_tracking" = xyes; then
2786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2787 # mode. It turns out that the SunPro C++ compiler does not properly
2788 # handle `-M -o', and we need to detect this.
2789 if depmode=$depmode \
2790 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2792 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2793 >/dev/null 2>conftest.err &&
2794 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2795 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2796 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2797 # icc doesn't choke on unknown options, it will just issue warnings
2798 # (even with -Werror). So we grep stderr for any message
2799 # that says an option was ignored.
2800 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2801 am_cv_CC_dependencies_compiler_type=$depmode
2810 am_cv_CC_dependencies_compiler_type=none
2814 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2821 test "x$enable_dependency_tracking" != xno \
2822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2824 am__fastdepCC_FALSE='#'
2826 am__fastdepCC_TRUE='#'
2827 am__fastdepCC_FALSE=
2833 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2834 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2835 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 ac_check_lib_save_LIBS=$LIBS
2839 LIBS="-lcposix $LIBS"
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2848 /* Override any gcc2 internal prototype to avoid an error. */
2852 /* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2863 rm -f conftest.$ac_objext conftest$ac_exeext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2865 (eval $ac_link) 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest$ac_exeext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_lib_cposix_strerror=yes
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2880 ac_cv_lib_cposix_strerror=no
2882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2883 LIBS=$ac_check_lib_save_LIBS
2885 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2886 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2887 if test $ac_cv_lib_cposix_strerror = yes; then
2888 LIBS="$LIBS -lcposix"
2896 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2897 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2898 if test "${am_cv_prog_cc_stdc+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 am_cv_prog_cc_stdc=no
2903 # Don't try gcc -ansi; that turns off useful extensions and
2904 # breaks some systems' header files.
2905 # AIX -qlanglvl=ansi
2906 # Ultrix and OSF/1 -std1
2907 # HP-UX 10.20 and later -Ae
2908 # HP-UX older versions -Aa -D_HPUX_SOURCE
2909 # SVR4 -Xc -D__EXTENSIONS__
2910 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2912 CC="$ac_save_CC $ac_arg"
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2922 #include <sys/types.h>
2923 #include <sys/stat.h>
2924 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2925 struct buf { int x; };
2926 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2927 static char *e (p, i)
2933 static char *f (char * (*g) (char **, int), char **p, ...)
2938 s = g (p, va_arg (v,int));
2942 int test (int i, double x);
2943 struct s1 {int (*f) (int a);};
2944 struct s2 {int (*f) (double a);};
2945 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 am_cv_prog_cc_stdc="$ac_arg"; break
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2983 if test -z "$am_cv_prog_cc_stdc"; then
2984 echo "$as_me:$LINENO: result: none needed" >&5
2985 echo "${ECHO_T}none needed" >&6
2987 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2988 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2990 case "x$am_cv_prog_cc_stdc" in
2992 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3001 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3002 # On Suns, sometimes $CPP names a directory.
3003 if test -n "$CPP" && test -d "$CPP"; then
3006 if test -z "$CPP"; then
3007 if test "${ac_cv_prog_CPP+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 # Double quotes because CPP needs to be expanded
3011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 #line $LINENO "configure"
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3030 # include <limits.h>
3032 # include <assert.h>
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <ac_nonexistent.h>
3074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev/null; then
3082 if test -s conftest.err; then
3083 ac_cpp_err=$ac_c_preproc_warn_flag
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # Passes both tests.
3101 rm -f conftest.err conftest.$ac_ext
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3118 echo "$as_me:$LINENO: result: $CPP" >&5
3119 echo "${ECHO_T}$CPP" >&6
3121 for ac_c_preproc_warn_flag in '' yes
3123 # Use a header file that comes with gcc, so configuring glibc
3124 # with a fresh cross-compiler works.
3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126 # <limits.h> exists even on freestanding compilers.
3127 # On the NeXT, cc -E runs the code through the compiler's parser,
3128 # not just through cpp. "Syntax error" is here to catch this case.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line $LINENO "configure"
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3137 # include <limits.h>
3139 # include <assert.h>
3143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } >/dev/null; then
3151 if test -s conftest.err; then
3152 ac_cpp_err=$ac_c_preproc_warn_flag
3159 if test -z "$ac_cpp_err"; then
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 # Broken: fails on valid input.
3168 rm -f conftest.err conftest.$ac_ext
3170 # OK, works on sane cases. Now check whether non-existent headers
3171 # can be detected and how.
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 #include <ac_nonexistent.h>
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3197 if test -z "$ac_cpp_err"; then
3198 # Broken: success on invalid input.
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 # Passes both tests.
3208 rm -f conftest.err conftest.$ac_ext
3211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212 rm -f conftest.err conftest.$ac_ext
3213 if $ac_preproc_ok; then
3216 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3217 See \`config.log' for more details." >&5
3218 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3219 See \`config.log' for more details." >&2;}
3220 { (exit 1); exit 1; }; }
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 echo "$as_me:$LINENO: checking for egrep" >&5
3231 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3232 if test "${ac_cv_prog_egrep+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3236 then ac_cv_prog_egrep='grep -E'
3237 else ac_cv_prog_egrep='egrep'
3240 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3241 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3242 EGREP=$ac_cv_prog_egrep
3245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3256 inttypes.h stdint.h unistd.h
3258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3259 echo "$as_me:$LINENO: checking for $ac_header" >&5
3260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 $ac_includes_default
3273 #include <$ac_header>
3275 rm -f conftest.$ac_objext
3276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277 (eval $ac_compile) 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3287 eval "$as_ac_Header=yes"
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 eval "$as_ac_Header=no"
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3299 cat >>confdefs.h <<_ACEOF
3300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3310 echo "$as_me:$LINENO: checking for function prototypes" >&5
3311 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3312 if test "$am_cv_prog_cc_stdc" != no; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6
3316 cat >>confdefs.h <<\_ACEOF
3317 #define PROTOTYPES 1
3322 echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 U=_ ANSI2KNR=./ansi2knr
3326 # Ensure some checks needed by ansi2knr itself.
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_header_stdc=yes
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 ac_cv_header_stdc=no
3371 rm -f conftest.$ac_objext conftest.$ac_ext
3373 if test $ac_cv_header_stdc = yes; then
3374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3375 cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 $EGREP "memchr" >/dev/null 2>&1; then
3389 ac_cv_header_stdc=no
3395 if test $ac_cv_header_stdc = yes; then
3396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3408 $EGREP "free" >/dev/null 2>&1; then
3411 ac_cv_header_stdc=no
3417 if test $ac_cv_header_stdc = yes; then
3418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3419 if test "$cross_compiling" = yes; then
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 #if ((' ' & 0x0FF) == 0x020)
3431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3434 # define ISLOWER(c) \
3435 (('a' <= (c) && (c) <= 'i') \
3436 || ('j' <= (c) && (c) <= 'r') \
3437 || ('s' <= (c) && (c) <= 'z'))
3438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3446 for (i = 0; i < 256; i++)
3447 if (XOR (islower (i), ISLOWER (i))
3448 || toupper (i) != TOUPPER (i))
3453 rm -f conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: program exited with status $ac_status" >&5
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3471 ac_cv_header_stdc=no
3473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3479 if test $ac_cv_header_stdc = yes; then
3481 cat >>confdefs.h <<\_ACEOF
3482 #define STDC_HEADERS 1
3488 for ac_header in string.h
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 $ac_includes_default
3511 #include <$ac_header>
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_header_compiler=yes
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_header_compiler=no
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <$ac_header>
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3564 if test -z "$ac_cpp_err"; then
3565 ac_header_preproc=yes
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_header_preproc=no
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3576 # So? What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3590 sed "s/^/$as_me: WARNING: /" >&2
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3606 sed "s/^/$as_me: WARNING: /" >&2
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 eval "$as_ac_Header=$ac_header_preproc"
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621 cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3630 if test "x$U" != "x"; then
3631 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3632 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3633 { (exit 1); exit 1; }; }
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3646 if test -z "$CPP"; then
3647 if test "${ac_cv_prog_CPP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 # Double quotes because CPP needs to be expanded
3651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3654 for ac_c_preproc_warn_flag in '' yes
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } >/dev/null; then
3684 if test -s conftest.err; then
3685 ac_cpp_err=$ac_c_preproc_warn_flag
3692 if test -z "$ac_cpp_err"; then
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 # Broken: fails on valid input.
3701 rm -f conftest.err conftest.$ac_ext
3703 # OK, works on sane cases. Now check whether non-existent headers
3704 # can be detected and how.
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <ac_nonexistent.h>
3714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 grep -v '^ *+' conftest.er1 >conftest.err
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } >/dev/null; then
3722 if test -s conftest.err; then
3723 ac_cpp_err=$ac_c_preproc_warn_flag
3730 if test -z "$ac_cpp_err"; then
3731 # Broken: success on invalid input.
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 # Passes both tests.
3741 rm -f conftest.err conftest.$ac_ext
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then
3758 echo "$as_me:$LINENO: result: $CPP" >&5
3759 echo "${ECHO_T}$CPP" >&6
3761 for ac_c_preproc_warn_flag in '' yes
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 # include <limits.h>
3779 # include <assert.h>
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null; then
3791 if test -s conftest.err; then
3792 ac_cpp_err=$ac_c_preproc_warn_flag
3799 if test -z "$ac_cpp_err"; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 # Broken: fails on valid input.
3808 rm -f conftest.err conftest.$ac_ext
3810 # OK, works on sane cases. Now check whether non-existent headers
3811 # can be detected and how.
3812 cat >conftest.$ac_ext <<_ACEOF
3813 #line $LINENO "configure"
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null; then
3829 if test -s conftest.err; then
3830 ac_cpp_err=$ac_c_preproc_warn_flag
3837 if test -z "$ac_cpp_err"; then
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3848 rm -f conftest.err conftest.$ac_ext
3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852 rm -f conftest.err conftest.$ac_ext
3853 if $ac_preproc_ok; then
3856 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3857 See \`config.log' for more details." >&5
3858 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3859 See \`config.log' for more details." >&2;}
3860 { (exit 1); exit 1; }; }
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 cat >conftest.make <<\_ACEOF
3877 @echo 'ac_maketemp="$(MAKE)"'
3879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3881 if test -n "$ac_maketemp"; then
3882 eval ac_cv_prog_make_${ac_make}_set=yes
3884 eval ac_cv_prog_make_${ac_make}_set=no
3888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 SET_MAKE="MAKE=${MAKE-make}"
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # ./install, which can be erroneously created by make from ./install.sh.
3910 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3912 if test -z "$INSTALL"; then
3913 if test "${ac_cv_path_install+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 # Account for people who put trailing slashes in PATH elements.
3923 ./ | .// | /cC/* | \
3924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3927 # OSF1 and SCO ODT 3.0 have their own names for install.
3928 # Don't use installbsd from OSF since it installs stuff as root
3930 for ac_prog in ginstall scoinst install; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3933 if test $ac_prog = install &&
3934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935 # AIX install. It has an incompatible calling convention.
3937 elif test $ac_prog = install &&
3938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939 # program-specific install script used by HP pwplus--don't use.
3942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3954 if test "${ac_cv_path_install+set}" = set; then
3955 INSTALL=$ac_cv_path_install
3957 # As a last resort, use the slow shell script. We don't cache a
3958 # path for INSTALL within a source directory, because that will
3959 # break other packages using the cache if that directory is
3960 # removed, or if the path is relative.
3961 INSTALL=$ac_install_sh
3964 echo "$as_me:$LINENO: result: $INSTALL" >&5
3965 echo "${ECHO_T}$INSTALL" >&6
3967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3968 # It thinks the first close brace ends the variable substitution.
3969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB=$ac_ct_RANLIB
4052 RANLIB="$ac_cv_prog_RANLIB"
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}ar; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_AR+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if test -n "$AR"; then
4064 ac_cv_prog_AR="$AR" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_AR="${ac_tool_prefix}ar"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test -n "$AR"; then
4084 echo "$as_me:$LINENO: result: $AR" >&5
4085 echo "${ECHO_T}$AR" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4092 if test -z "$ac_cv_prog_AR"; then
4094 # Extract the first word of "ar", so it can be a program name with args.
4095 set dummy ar; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$ac_ct_AR"; then
4102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_ac_ct_AR="ar"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4122 if test -n "$ac_ct_AR"; then
4123 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4124 echo "${ECHO_T}$ac_ct_AR" >&6
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4136 echo "$as_me:$LINENO: checking for inline" >&5
4137 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4138 if test "${ac_cv_c_inline+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 for ac_kw in inline __inline__ __inline; do
4143 cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4152 static $ac_kw foo_t static_foo () {return 0; }
4153 $ac_kw foo_t foo () {return 0; }
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_c_inline=$ac_kw; break
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4175 rm -f conftest.$ac_objext conftest.$ac_ext
4179 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4180 echo "${ECHO_T}$ac_cv_c_inline" >&6
4181 case $ac_cv_c_inline in
4184 cat >>confdefs.h <<\_ACEOF
4188 *) cat >>confdefs.h <<_ACEOF
4189 #define inline $ac_cv_c_inline
4194 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4195 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4196 if test "${ac_cv_c_const+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 cat >conftest.$ac_ext <<_ACEOF
4200 #line $LINENO "configure"
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4210 /* FIXME: Include the comments suggested by Paul. */
4212 /* Ultrix mips cc rejects this. */
4213 typedef int charset[2];
4215 /* SunOS 4.1.1 cc rejects this. */
4216 char const *const *ccp;
4218 /* NEC SVR4.0.2 mips cc rejects this. */
4219 struct point {int x, y;};
4220 static struct point const zero = {0,0};
4221 /* AIX XL C 1.02.0.0 rejects this.
4222 It does not let you subtract one const X* pointer from another in
4223 an arm of an if-expression whose if-part is not a constant
4225 const char *g = "string";
4226 ccp = &g + (g ? g-g : 0);
4227 /* HPUX 7.0 cc rejects these. */
4230 ccp = (char const *const *) p;
4231 { /* SCO 3.2v4 cc rejects this. */
4233 char const *s = 0 ? (char *) 0 : (char const *) 0;
4237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4239 const int *foo = &x[0];
4242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4243 typedef const int *iptr;
4247 { /* AIX XL C 1.02.0.0 rejects this saying
4248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4249 struct s { int j; const int *ap[3]; };
4250 struct s *b; b->j = 5;
4252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4280 rm -f conftest.$ac_objext conftest.$ac_ext
4282 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4283 echo "${ECHO_T}$ac_cv_c_const" >&6
4284 if test $ac_cv_c_const = no; then
4286 cat >>confdefs.h <<\_ACEOF
4293 # Check whether --enable-largefile or --disable-largefile was given.
4294 if test "${enable_largefile+set}" = set; then
4295 enableval="$enable_largefile"
4298 if test "$enable_largefile" != no; then
4300 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 ac_cv_sys_largefile_CC=no
4306 if test "$GCC" != yes; then
4309 # IRIX 6.2 and later do not support large files by default,
4310 # so use the C compiler's -n32 option if that helps.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 rm -f conftest.$ac_objext
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_sys_largefile_CC=' -n32'; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4373 rm -f conftest.$ac_objext
4377 rm -f conftest.$ac_ext
4380 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4381 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4382 if test "$ac_cv_sys_largefile_CC" != no; then
4383 CC=$CC$ac_cv_sys_largefile_CC
4386 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4387 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_sys_file_offset_bits=no
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 /* Check that off_t can represent 2**63 - 1 correctly.
4402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4403 since some C++ compilers masquerading as C compilers
4404 incorrectly reject 9223372036854775807. */
4405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4407 && LARGE_OFF_T % 2147483647 == 1)
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f conftest.$ac_objext conftest.$ac_ext
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #define _FILE_OFFSET_BITS 64
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_sys_file_offset_bits=64; break
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4484 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4485 if test "$ac_cv_sys_file_offset_bits" != no; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4493 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4494 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4495 if test "${ac_cv_sys_large_files+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_cv_sys_large_files=no
4500 cat >conftest.$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #define _LARGE_FILES 1
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_sys_large_files=1; break
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4586 rm -f conftest.$ac_objext conftest.$ac_ext
4590 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4591 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4592 if test "$ac_cv_sys_large_files" != no; then
4594 cat >>confdefs.h <<_ACEOF
4595 #define _LARGE_FILES $ac_cv_sys_large_files
4603 # Extract the first word of "dbx", so it can be a program name with args.
4604 set dummy dbx; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_DBX+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4635 if test -n "$DBX"; then
4636 echo "$as_me:$LINENO: result: $DBX" >&5
4637 echo "${ECHO_T}$DBX" >&6
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4643 # Extract the first word of "gdb", so it can be a program name with args.
4644 set dummy gdb; ac_word=$2
4645 echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647 if test "${ac_cv_path_GDB+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4675 if test -n "$GDB"; then
4676 echo "$as_me:$LINENO: result: $GDB" >&5
4677 echo "${ECHO_T}$GDB" >&6
4679 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4683 # Extract the first word of "sdb", so it can be a program name with args.
4684 set dummy sdb; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_path_SDB+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4715 if test -n "$SDB"; then
4716 echo "$as_me:$LINENO: result: $SDB" >&5
4717 echo "${ECHO_T}$SDB" >&6
4719 echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4724 if test $GDB != no ; then
4726 elif test $DBX != no ; then
4728 elif test $SDB != no ; then
4758 for ac_header in inttypes.h
4760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 # Is the header compilable?
4771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4781 #include <$ac_header>
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_header_compiler=yes
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 ac_header_compiler=no
4802 rm -f conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804 echo "${ECHO_T}$ac_header_compiler" >&6
4806 # Is the header present?
4807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 #include <$ac_header>
4818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4821 grep -v '^ *+' conftest.er1 >conftest.err
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev/null; then
4826 if test -s conftest.err; then
4827 ac_cpp_err=$ac_c_preproc_warn_flag
4834 if test -z "$ac_cpp_err"; then
4835 ac_header_preproc=yes
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_header_preproc=no
4842 rm -f conftest.err conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4844 echo "${ECHO_T}$ac_header_preproc" >&6
4846 # So? What about this header?
4847 case $ac_header_compiler:$ac_header_preproc in
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4855 ## ------------------------------------ ##
4856 ## Report this to bug-autoconf@gnu.org. ##
4857 ## ------------------------------------ ##
4860 sed "s/^/$as_me: WARNING: /" >&2
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4871 ## ------------------------------------ ##
4872 ## Report this to bug-autoconf@gnu.org. ##
4873 ## ------------------------------------ ##
4876 sed "s/^/$as_me: WARNING: /" >&2
4879 echo "$as_me:$LINENO: checking for $ac_header" >&5
4880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 eval "$as_ac_Header=$ac_header_preproc"
4886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891 cat >>confdefs.h <<_ACEOF
4892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899 echo "$as_me:$LINENO: checking for uint32_t" >&5
4900 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4901 if test "${ac_cv_type_uint32_t+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 $ac_includes_default
4917 if (sizeof (uint32_t))
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_cv_type_uint32_t=yes
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 ac_cv_type_uint32_t=no
4942 rm -f conftest.$ac_objext conftest.$ac_ext
4944 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4945 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4946 if test $ac_cv_type_uint32_t = yes; then
4948 cat >>confdefs.h <<\_ACEOF
4949 #define HAVE_C99_INTTYPES 1
4953 echo "$as_me:$LINENO: checking for short" >&5
4954 echo $ECHO_N "checking for short... $ECHO_C" >&6
4955 if test "${ac_cv_type_short+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 $ac_includes_default
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_type_short=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4996 rm -f conftest.$ac_objext conftest.$ac_ext
4998 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4999 echo "${ECHO_T}$ac_cv_type_short" >&6
5001 echo "$as_me:$LINENO: checking size of short" >&5
5002 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5003 if test "${ac_cv_sizeof_short+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test "$ac_cv_type_short" = yes; then
5007 # The cast to unsigned long works around a bug in the HP C Compiler
5008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5010 # This bug is HP SR number 8606223364.
5011 if test "$cross_compiling" = yes; then
5012 # Depending upon the size, compute the lo and hi bounds.
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #line $LINENO "configure"
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 $ac_includes_default
5024 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5056 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_hi=$ac_mid; break
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_lo=`expr $ac_mid + 1`
5081 if test $ac_lo -le $ac_mid; then
5085 ac_mid=`expr 2 '*' $ac_mid + 1`
5087 rm -f conftest.$ac_objext conftest.$ac_ext
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5104 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5136 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_lo=$ac_mid; break
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 ac_hi=`expr '(' $ac_mid ')' - 1`
5161 if test $ac_mid -le $ac_hi; then
5165 ac_mid=`expr 2 '*' $ac_mid`
5167 rm -f conftest.$ac_objext conftest.$ac_ext
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5177 rm -f conftest.$ac_objext conftest.$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 ac_lo=`expr '(' $ac_mid ')' + 1`
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5221 ?*) ac_cv_sizeof_short=$ac_lo;;
5222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (short), 77
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 if test "$cross_compiling" = yes; then
5230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: cannot run test program while cross compiling
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 long longval () { return (long) (sizeof (short)); }
5245 unsigned long ulongval () { return (long) (sizeof (short)); }
5252 FILE *f = fopen ("conftest.val", "w");
5255 if (((long) (sizeof (short))) < 0)
5257 long i = longval ();
5258 if (i != ((long) (sizeof (short))))
5260 fprintf (f, "%ld\n", i);
5264 unsigned long i = ulongval ();
5265 if (i != ((long) (sizeof (short))))
5267 fprintf (f, "%lu\n", i);
5269 exit (ferror (f) || fclose (f) != 0);
5275 rm -f conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277 (eval $ac_link) 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_cv_sizeof_short=`cat conftest.val`
5288 echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5293 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5294 See \`config.log' for more details." >&5
5295 echo "$as_me: error: cannot compute sizeof (short), 77
5296 See \`config.log' for more details." >&2;}
5297 { (exit 1); exit 1; }; }
5299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5304 ac_cv_sizeof_short=0
5307 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5308 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5309 cat >>confdefs.h <<_ACEOF
5310 #define SIZEOF_SHORT $ac_cv_sizeof_short
5314 echo "$as_me:$LINENO: checking for int" >&5
5315 echo $ECHO_N "checking for int... $ECHO_C" >&6
5316 if test "${ac_cv_type_int+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5357 rm -f conftest.$ac_objext conftest.$ac_ext
5359 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5360 echo "${ECHO_T}$ac_cv_type_int" >&6
5362 echo "$as_me:$LINENO: checking size of int" >&5
5363 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5364 if test "${ac_cv_sizeof_int+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test "$ac_cv_type_int" = yes; then
5368 # The cast to unsigned long works around a bug in the HP C Compiler
5369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5371 # This bug is HP SR number 8606223364.
5372 if test "$cross_compiling" = yes; then
5373 # Depending upon the size, compute the lo and hi bounds.
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5381 $ac_includes_default
5385 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5392 rm -f conftest.$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 $ac_includes_default
5417 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_hi=$ac_mid; break
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 ac_lo=`expr $ac_mid + 1`
5442 if test $ac_lo -le $ac_mid; then
5446 ac_mid=`expr 2 '*' $ac_mid + 1`
5448 rm -f conftest.$ac_objext conftest.$ac_ext
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5465 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5486 cat >conftest.$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 $ac_includes_default
5497 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506 (eval $ac_compile) 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_lo=$ac_mid; break
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 ac_hi=`expr '(' $ac_mid ')' - 1`
5522 if test $ac_mid -le $ac_hi; then
5526 ac_mid=`expr 2 '*' $ac_mid`
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5536 rm -f conftest.$ac_objext conftest.$ac_ext
5538 rm -f conftest.$ac_objext conftest.$ac_ext
5539 # Binary search between lo and hi bounds.
5540 while test "x$ac_lo" != "x$ac_hi"; do
5541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5542 cat >conftest.$ac_ext <<_ACEOF
5543 #line $LINENO "configure"
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5553 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_lo=`expr '(' $ac_mid ')' + 1`
5579 rm -f conftest.$ac_objext conftest.$ac_ext
5582 ?*) ac_cv_sizeof_int=$ac_lo;;
5583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5584 See \`config.log' for more details." >&5
5585 echo "$as_me: error: cannot compute sizeof (int), 77
5586 See \`config.log' for more details." >&2;}
5587 { (exit 1); exit 1; }; } ;;
5590 if test "$cross_compiling" = yes; then
5591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5592 See \`config.log' for more details." >&5
5593 echo "$as_me: error: cannot run test program while cross compiling
5594 See \`config.log' for more details." >&2;}
5595 { (exit 1); exit 1; }; }
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 $ac_includes_default
5605 long longval () { return (long) (sizeof (int)); }
5606 unsigned long ulongval () { return (long) (sizeof (int)); }
5613 FILE *f = fopen ("conftest.val", "w");
5616 if (((long) (sizeof (int))) < 0)
5618 long i = longval ();
5619 if (i != ((long) (sizeof (int))))
5621 fprintf (f, "%ld\n", i);
5625 unsigned long i = ulongval ();
5626 if (i != ((long) (sizeof (int))))
5628 fprintf (f, "%lu\n", i);
5630 exit (ferror (f) || fclose (f) != 0);
5636 rm -f conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_cv_sizeof_int=`cat conftest.val`
5649 echo "$as_me: program exited with status $ac_status" >&5
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5655 See \`config.log' for more details." >&5
5656 echo "$as_me: error: cannot compute sizeof (int), 77
5657 See \`config.log' for more details." >&2;}
5658 { (exit 1); exit 1; }; }
5660 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5670 cat >>confdefs.h <<_ACEOF
5671 #define SIZEOF_INT $ac_cv_sizeof_int
5675 echo "$as_me:$LINENO: checking for long" >&5
5676 echo $ECHO_N "checking for long... $ECHO_C" >&6
5677 if test "${ac_cv_type_long+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -s conftest.$ac_objext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5718 rm -f conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5721 echo "${ECHO_T}$ac_cv_type_long" >&6
5723 echo "$as_me:$LINENO: checking size of long" >&5
5724 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5725 if test "${ac_cv_sizeof_long+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 if test "$ac_cv_type_long" = yes; then
5729 # The cast to unsigned long works around a bug in the HP C Compiler
5730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5732 # This bug is HP SR number 8606223364.
5733 if test "$cross_compiling" = yes; then
5734 # Depending upon the size, compute the lo and hi bounds.
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5746 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5767 cat >conftest.$ac_ext <<_ACEOF
5768 #line $LINENO "configure"
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5778 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_hi=$ac_mid; break
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 ac_lo=`expr $ac_mid + 1`
5803 if test $ac_lo -le $ac_mid; then
5807 ac_mid=`expr 2 '*' $ac_mid + 1`
5809 rm -f conftest.$ac_objext conftest.$ac_ext
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5826 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5858 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_lo=$ac_mid; break
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_hi=`expr '(' $ac_mid ')' - 1`
5883 if test $ac_mid -le $ac_hi; then
5887 ac_mid=`expr 2 '*' $ac_mid`
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5897 rm -f conftest.$ac_objext conftest.$ac_ext
5899 rm -f conftest.$ac_objext conftest.$ac_ext
5900 # Binary search between lo and hi bounds.
5901 while test "x$ac_lo" != "x$ac_hi"; do
5902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5914 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_lo=`expr '(' $ac_mid ')' + 1`
5940 rm -f conftest.$ac_objext conftest.$ac_ext
5943 ?*) ac_cv_sizeof_long=$ac_lo;;
5944 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: cannot compute sizeof (long), 77
5947 See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; } ;;
5951 if test "$cross_compiling" = yes; then
5952 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: cannot run test program while cross compiling
5955 See \`config.log' for more details." >&2;}
5956 { (exit 1); exit 1; }; }
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 long longval () { return (long) (sizeof (long)); }
5967 unsigned long ulongval () { return (long) (sizeof (long)); }
5974 FILE *f = fopen ("conftest.val", "w");
5977 if (((long) (sizeof (long))) < 0)
5979 long i = longval ();
5980 if (i != ((long) (sizeof (long))))
5982 fprintf (f, "%ld\n", i);
5986 unsigned long i = ulongval ();
5987 if (i != ((long) (sizeof (long))))
5989 fprintf (f, "%lu\n", i);
5991 exit (ferror (f) || fclose (f) != 0);
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_sizeof_long=`cat conftest.val`
6010 echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6016 See \`config.log' for more details." >&5
6017 echo "$as_me: error: cannot compute sizeof (long), 77
6018 See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }
6021 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6030 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_LONG $ac_cv_sizeof_long
6036 echo "$as_me:$LINENO: checking for long long" >&5
6037 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6038 if test "${ac_cv_type_long_long+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6052 if ((long long *) 0)
6054 if (sizeof (long long))
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_type_long_long=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_type_long_long=no
6079 rm -f conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6082 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6084 echo "$as_me:$LINENO: checking size of long long" >&5
6085 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6086 if test "${ac_cv_sizeof_long_long+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 if test "$ac_cv_type_long_long" = yes; then
6090 # The cast to unsigned long works around a bug in the HP C Compiler
6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093 # This bug is HP SR number 8606223364.
6094 if test "$cross_compiling" = yes; then
6095 # Depending upon the size, compute the lo and hi bounds.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 #line $LINENO "configure"
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6107 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -s conftest.$ac_objext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6128 cat >conftest.$ac_ext <<_ACEOF
6129 #line $LINENO "configure"
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 $ac_includes_default
6139 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_hi=$ac_mid; break
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_lo=`expr $ac_mid + 1`
6164 if test $ac_lo -le $ac_mid; then
6168 ac_mid=`expr 2 '*' $ac_mid + 1`
6170 rm -f conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 $ac_includes_default
6219 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_lo=$ac_mid; break
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_hi=`expr '(' $ac_mid ')' - 1`
6244 if test $ac_mid -le $ac_hi; then
6248 ac_mid=`expr 2 '*' $ac_mid`
6250 rm -f conftest.$ac_objext conftest.$ac_ext
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6261 # Binary search between lo and hi bounds.
6262 while test "x$ac_lo" != "x$ac_hi"; do
6263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6264 cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 $ac_includes_default
6275 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6282 rm -f conftest.$ac_objext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284 (eval $ac_compile) 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_lo=`expr '(' $ac_mid ')' + 1`
6301 rm -f conftest.$ac_objext conftest.$ac_ext
6304 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6306 See \`config.log' for more details." >&5
6307 echo "$as_me: error: cannot compute sizeof (long long), 77
6308 See \`config.log' for more details." >&2;}
6309 { (exit 1); exit 1; }; } ;;
6312 if test "$cross_compiling" = yes; then
6313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: cannot run test program while cross compiling
6316 See \`config.log' for more details." >&2;}
6317 { (exit 1); exit 1; }; }
6319 cat >conftest.$ac_ext <<_ACEOF
6320 #line $LINENO "configure"
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 $ac_includes_default
6327 long longval () { return (long) (sizeof (long long)); }
6328 unsigned long ulongval () { return (long) (sizeof (long long)); }
6335 FILE *f = fopen ("conftest.val", "w");
6338 if (((long) (sizeof (long long))) < 0)
6340 long i = longval ();
6341 if (i != ((long) (sizeof (long long))))
6343 fprintf (f, "%ld\n", i);
6347 unsigned long i = ulongval ();
6348 if (i != ((long) (sizeof (long long))))
6350 fprintf (f, "%lu\n", i);
6352 exit (ferror (f) || fclose (f) != 0);
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_sizeof_long_long=`cat conftest.val`
6371 echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (long long), 77
6379 See \`config.log' for more details." >&2;}
6380 { (exit 1); exit 1; }; }
6382 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6387 ac_cv_sizeof_long_long=0
6390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6391 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6403 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6404 # Extract the first word of "sendmail", so it can be a program name with args.
6405 set dummy sendmail; ac_word=$2
6406 echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6408 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 as_dummy="$PATH:$ac_aux_path_sendmail"
6418 for as_dir in $as_dummy
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6435 SENDMAIL=$ac_cv_path_SENDMAIL
6437 if test -n "$SENDMAIL"; then
6438 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6439 echo "${ECHO_T}$SENDMAIL" >&6
6441 echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6446 cat >>confdefs.h <<_ACEOF
6447 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6452 if test -f $srcdir/EXPORTABLE ; then
6457 # Check whether --enable-gpgme or --disable-gpgme was given.
6458 if test "${enable_gpgme+set}" = set; then
6459 enableval="$enable_gpgme"
6460 if test x$enableval = xyes; then
6466 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6467 if test "${with_gpgme_prefix+set}" = set; then
6468 withval="$with_gpgme_prefix"
6469 gpgme_config_prefix="$withval"
6471 gpgme_config_prefix=""
6474 if test x$have_gpgme = xyes; then
6475 if test x$gpgme_config_prefix != x; then
6476 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6478 # Extract the first word of "gpgme-config", so it can be a program name with args.
6479 set dummy gpgme-config; ac_word=$2
6480 echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6482 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 case $GPGME_CONFIG in
6487 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6508 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6510 if test -n "$GPGME_CONFIG"; then
6511 echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6512 echo "${ECHO_T}$GPGME_CONFIG" >&6
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6519 if test "x$GPGME_CONFIG" = "xno"; then
6520 { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6521 echo "$as_me: error: GPGME not found" >&2;}
6522 { (exit 1); exit 1; }; }
6524 LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6525 LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6526 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6528 cat >>confdefs.h <<\_ACEOF
6529 #define CRYPT_BACKEND_GPGME 1
6537 # Check whether --enable-pgp or --disable-pgp was given.
6538 if test "${enable_pgp+set}" = set; then
6539 enableval="$enable_pgp"
6540 if test x$enableval = xno ; then
6546 if test x$have_pgp != xno ; then
6548 cat >>confdefs.h <<\_ACEOF
6549 #define CRYPT_BACKEND_CLASSIC_PGP 1
6552 PGPAUX_TARGET="pgpring pgpewrap"
6553 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"
6556 # Check whether --enable-smime or --disable-smime was given.
6557 if test "${enable_smime+set}" = set; then
6558 enableval="$enable_smime"
6559 if test x$enableval = xno ; then
6565 if test x$have_smime != xno ; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6571 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6572 SMIMEAUX_TARGET="smime_keys"
6576 # Check whether --with-mixmaster or --without-mixmaster was given.
6577 if test "${with_mixmaster+set}" = set; then
6578 withval="$with_mixmaster"
6579 if test -x "$withval" ; then
6580 MIXMASTER="$withval"
6582 MIXMASTER="mixmaster"
6584 OPS="$OPS \$(srcdir)/OPS.MIX"
6585 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6587 cat >>confdefs.h <<_ACEOF
6588 #define MIXMASTER "$MIXMASTER"
6595 # We now require all OPS
6596 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6604 cat >>confdefs.h <<_ACEOF
6605 #define SUBVERSION "$SUBVERSION"
6610 # Extract the first word of "ispell", so it can be a program name with args.
6611 set dummy ispell; ac_word=$2
6612 echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6614 if test "${ac_cv_path_ISPELL+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6640 ISPELL=$ac_cv_path_ISPELL
6642 if test -n "$ISPELL"; then
6643 echo "$as_me:$LINENO: result: $ISPELL" >&5
6644 echo "${ECHO_T}$ISPELL" >&6
6646 echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6
6650 if test $ISPELL != no; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define ISPELL "$ISPELL"
6659 # Check whether --with-slang or --without-slang was given.
6660 if test "${with_slang+set}" = set; then
6661 withval="$with_slang"
6662 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6663 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6664 if test "${mutt_cv_bsdish+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 if test "$cross_compiling" = yes; then
6670 cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/param.h>
6688 rm -f conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6701 echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6708 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6712 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6714 echo "$as_me:$LINENO: checking for S-Lang" >&5
6715 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6716 if test $withval = yes; then
6717 if test -d $srcdir/../slang; then
6718 mutt_cv_slang=$srcdir/../slang/src
6719 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6720 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6722 if test -d $mutt_cv_prefix/include/slang; then
6723 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
6724 elif test -d /usr/include/slang; then
6725 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
6730 if test -f $withval/src/slang.h; then
6731 mutt_cv_slang=$withval/src
6732 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6733 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6735 mutt_cv_slang=$withval
6736 if test -d $withval/include/slang; then
6737 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
6738 elif test -d $withval/include; then
6739 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6741 LDFLAGS="$LDFLAGS -L${withval}/lib"
6744 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6745 echo "${ECHO_T}$mutt_cv_slang" >&6
6746 if test $mutt_cv_bsdish = yes; then
6748 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6749 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6750 if test "${ac_cv_lib_termlib_main+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 ac_check_lib_save_LIBS=$LIBS
6754 LIBS="-ltermlib $LIBS"
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774 (eval $ac_link) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_lib_termlib_main=yes
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_cv_lib_termlib_main=no
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6795 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6796 if test $ac_cv_lib_termlib_main = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_LIBTERMLIB 1
6801 LIBS="-ltermlib $LIBS"
6807 cat >>confdefs.h <<\_ACEOF
6808 #define USE_SLANG_CURSES 1
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_COLOR 1
6816 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6819 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6820 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6821 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 ac_check_lib_save_LIBS=$LIBS
6825 LIBS="-lslang -lm $LIBS"
6826 cat >conftest.$ac_ext <<_ACEOF
6827 #line $LINENO "configure"
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6840 char SLtt_get_terminfo ();
6844 SLtt_get_terminfo ();
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851 (eval $ac_link) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest$ac_exeext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_lib_slang_SLtt_get_terminfo=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_lib_slang_SLtt_get_terminfo=no
6868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6869 LIBS=$ac_check_lib_save_LIBS
6871 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6872 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6873 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6874 MUTTLIBS="$MUTTLIBS -lslang -lm"
6876 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
6877 echo "$as_me: error: unable to compile. check config.log" >&2;}
6878 { (exit 1); exit 1; }; }
6886 # Check whether --with-curses or --without-curses was given.
6887 if test "${with_curses+set}" = set; then
6888 withval="$with_curses"
6889 if test $withval != yes; then
6890 mutt_cv_curses=$withval
6892 if test x$mutt_cv_curses != x/usr; then
6893 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6894 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6898 echo "$as_me:$LINENO: checking for initscr" >&5
6899 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6900 if test "${ac_cv_func_initscr+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 /* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char initscr (); below.
6912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913 <limits.h> exists even on freestanding compilers. */
6915 # include <limits.h>
6917 # include <assert.h>
6919 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_initscr) || defined (__stub___initscr)
6933 char (*f) () = initscr;
6942 return f != initscr;
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest$ac_exeext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_cv_func_initscr=yes
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_func_initscr=no
6966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6969 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6970 if test $ac_cv_func_initscr = yes; then
6974 cf_ncurses="ncurses"
6975 for lib in ncurses ncursesw
6977 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6978 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6979 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6980 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_check_lib_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6986 #line $LINENO "configure"
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6993 /* Override any gcc2 internal prototype to avoid an error. */
6997 /* We use char because int might match the return type of a gcc2
6998 builtin and then its argument prototype would still apply. */
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 eval "$as_ac_Lib=yes"
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 eval "$as_ac_Lib=no"
7027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7032 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7033 cf_ncurses="$lib"; break
7037 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7038 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7039 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_check_lib_save_LIBS=$LIBS
7044 LIBS="-l$cf_ncurses $LIBS"
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7053 /* Override any gcc2 internal prototype to avoid an error. */
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070 (eval $ac_link) 2>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -s conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 eval "$as_ac_Lib=yes"
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 eval "$as_ac_Lib=no"
7087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7088 LIBS=$ac_check_lib_save_LIBS
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7092 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7093 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7094 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7095 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7098 if test "$cf_ncurses" = ncursesw; then
7100 for ac_header in ncursesw/ncurses.h
7102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104 echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112 # Is the header compilable?
7113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 #include <$ac_header>
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_header_compiler=yes
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_header_compiler=no
7144 rm -f conftest.$ac_objext conftest.$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146 echo "${ECHO_T}$ac_header_compiler" >&6
7148 # Is the header present?
7149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <$ac_header>
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null; then
7168 if test -s conftest.err; then
7169 ac_cpp_err=$ac_c_preproc_warn_flag
7176 if test -z "$ac_cpp_err"; then
7177 ac_header_preproc=yes
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_header_preproc=no
7184 rm -f conftest.err conftest.$ac_ext
7185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186 echo "${ECHO_T}$ac_header_preproc" >&6
7188 # So? What about this header?
7189 case $ac_header_compiler:$ac_header_preproc in
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7197 ## ------------------------------------ ##
7198 ## Report this to bug-autoconf@gnu.org. ##
7199 ## ------------------------------------ ##
7202 sed "s/^/$as_me: WARNING: /" >&2
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7213 ## ------------------------------------ ##
7214 ## Report this to bug-autoconf@gnu.org. ##
7215 ## ------------------------------------ ##
7218 sed "s/^/$as_me: WARNING: /" >&2
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 eval "$as_ac_Header=$ac_header_preproc"
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7233 cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 cf_cv_ncurses_header="ncursesw/ncurses.h"
7243 for ac_header in ncurses.h
7245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247 echo "$as_me:$LINENO: checking for $ac_header" >&5
7248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7255 # Is the header compilable?
7256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7258 cat >conftest.$ac_ext <<_ACEOF
7259 #line $LINENO "configure"
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7266 #include <$ac_header>
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } &&
7274 { ac_try='test -s conftest.$ac_objext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_header_compiler=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_header_compiler=no
7287 rm -f conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289 echo "${ECHO_T}$ac_header_compiler" >&6
7291 # Is the header present?
7292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #include <$ac_header>
7303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } >/dev/null; then
7311 if test -s conftest.err; then
7312 ac_cpp_err=$ac_c_preproc_warn_flag
7319 if test -z "$ac_cpp_err"; then
7320 ac_header_preproc=yes
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_preproc=no
7327 rm -f conftest.err conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329 echo "${ECHO_T}$ac_header_preproc" >&6
7331 # So? What about this header?
7332 case $ac_header_compiler:$ac_header_preproc in
7334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7340 ## ------------------------------------ ##
7341 ## Report this to bug-autoconf@gnu.org. ##
7342 ## ------------------------------------ ##
7345 sed "s/^/$as_me: WARNING: /" >&2
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7356 ## ------------------------------------ ##
7357 ## Report this to bug-autoconf@gnu.org. ##
7358 ## ------------------------------------ ##
7361 sed "s/^/$as_me: WARNING: /" >&2
7364 echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 eval "$as_ac_Header=$ac_header_preproc"
7371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7376 cat >>confdefs.h <<_ACEOF
7377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7379 cf_cv_ncurses_header="ncurses.h"
7387 echo "$as_me:$LINENO: checking for initscr" >&5
7388 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7389 if test "${ac_cv_func_initscr+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 /* System header to define __stub macros and hopefully few prototypes,
7400 which can conflict with char initscr (); below.
7401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402 <limits.h> exists even on freestanding compilers. */
7404 # include <limits.h>
7406 # include <assert.h>
7408 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7416 /* The GNU C library defines this for functions which it implements
7417 to always fail with ENOSYS. Some functions are actually named
7418 something starting with __ and the normal name is an alias. */
7419 #if defined (__stub_initscr) || defined (__stub___initscr)
7422 char (*f) () = initscr;
7431 return f != initscr;
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_cv_func_initscr=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_cv_func_initscr=no
7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7457 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7458 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7459 if test $ac_cv_func_initscr = yes; then
7463 case $host_os in #(vi
7465 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7466 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7467 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lmytinfo $LIBS"
7472 cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7480 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_lib_mytinfo_tgoto=yes
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_cv_lib_mytinfo_tgoto=no
7514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7515 LIBS=$ac_check_lib_save_LIBS
7517 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7518 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7519 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7520 LIBS="-lmytinfo $LIBS"
7525 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7526 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7527 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lcur_colr $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7540 /* Override any gcc2 internal prototype to avoid an error. */
7544 /* We use char because int might match the return type of a gcc2
7545 builtin and then its argument prototype would still apply. */
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_lib_cur_colr_initscr=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_lib_cur_colr_initscr=no
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7578 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7579 if test $ac_cv_lib_cur_colr_initscr = yes; then
7581 LIBS="-lcur_colr $LIBS"
7582 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7583 ac_cv_func_initscr=yes
7587 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7588 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7589 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_check_lib_save_LIBS=$LIBS
7593 LIBS="-lHcurses $LIBS"
7594 cat >conftest.$ac_ext <<_ACEOF
7595 #line $LINENO "configure"
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7602 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -s conftest$ac_exeext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_cv_lib_Hcurses_initscr=yes
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_cv_lib_Hcurses_initscr=no
7636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_check_lib_save_LIBS
7639 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7640 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7641 if test $ac_cv_lib_Hcurses_initscr = yes; then
7643 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7644 LIBS="-lHcurses $LIBS"
7645 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7646 ac_cv_func_initscr=yes
7653 linux*) # Suse Linux does not follow /usr/lib convention
7658 if test ".$With5lib" != ".no" ; then
7659 if test -d /usr/5lib ; then
7661 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7662 LIBS="$LIBS -L/usr/5lib"
7666 if test ".$ac_cv_func_initscr" != .yes ; then
7667 cf_save_LIBS="$LIBS"
7671 # Check for library containing tgoto. Do this before curses library
7672 # because it may be needed to link the test-case for initscr.
7673 echo "$as_me:$LINENO: checking for tgoto" >&5
7674 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7675 if test "${ac_cv_func_tgoto+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 cat >conftest.$ac_ext <<_ACEOF
7679 #line $LINENO "configure"
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 /* System header to define __stub macros and hopefully few prototypes,
7686 which can conflict with char tgoto (); below.
7687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7688 <limits.h> exists even on freestanding compilers. */
7690 # include <limits.h>
7692 # include <assert.h>
7694 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7708 char (*f) () = tgoto;
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_func_tgoto=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7744 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7745 if test $ac_cv_func_tgoto = yes; then
7746 cf_term_lib=predefined
7749 for cf_term_lib in termcap termlib unknown
7751 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7752 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7753 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 ac_check_lib_save_LIBS=$LIBS
7758 LIBS="-l$cf_term_lib $LIBS"
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7767 /* Override any gcc2 internal prototype to avoid an error. */
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7784 (eval $ac_link) 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 eval "$as_ac_Lib=yes"
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 eval "$as_ac_Lib=no"
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7802 LIBS=$ac_check_lib_save_LIBS
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7815 # Check for library containing initscr
7816 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7817 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7819 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7820 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7821 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7822 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 ac_check_lib_save_LIBS=$LIBS
7826 LIBS="-l$cf_curs_lib $LIBS"
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line $LINENO "configure"
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -s conftest$ac_exeext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 eval "$as_ac_Lib=yes"
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 eval "$as_ac_Lib=no"
7869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7873 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7874 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7879 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7880 echo "$as_me: error: no curses library found" >&2;}
7881 { (exit 1); exit 1; }; }
7883 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7884 if test "$cf_term_lib" = unknown ; then
7885 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7886 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <${cf_cv_ncurses_header-curses.h}>
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -s conftest$ac_exeext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7923 echo "$as_me:$LINENO: result: $cf_result" >&5
7924 echo "${ECHO_T}$cf_result" >&6
7925 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7926 echo "$as_me: error: Cannot link curses library" >&2;}
7927 { (exit 1); exit 1; }; }
7928 elif test "$cf_term_lib" != predefined ; then
7929 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7930 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <${cf_cv_ncurses_header-curses.h}>
7942 initscr(); tgoto((char *)0, 0, 0);
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7965 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 #include <${cf_cv_ncurses_header-curses.h}>
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $cf_result" >&5
8006 echo "${ECHO_T}$cf_result" >&6
8020 LIBS="$LIBS $MUTTLIBS"
8021 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8024 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8025 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8026 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 #include <${cf_cv_ncurses_header-curses.h}>
8041 extern int ${ac_func}();
8047 rm -f conftest.$ac_objext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -s conftest.$ac_objext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <${cf_cv_ncurses_header-curses.h}>
8072 int (*p)() = ${ac_func};
8078 rm -f conftest.$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8091 eval "ac_cv_func_decl_$ac_func=yes"
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8097 eval "ac_cv_func_decl_$ac_func=no"
8099 rm -f conftest.$ac_objext conftest.$ac_ext
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8105 eval "ac_cv_func_decl_$ac_func=yes"
8107 rm -f conftest.$ac_objext conftest.$ac_ext
8110 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112 echo "${ECHO_T}yes" >&6
8115 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8117 cat >>confdefs.h <<_ACEOF
8118 #define $ac_tr_func 1
8122 echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8127 if test "$ac_cv_func_decl_start_color" = yes; then
8129 cat >>confdefs.h <<\_ACEOF
8130 #define HAVE_COLOR 1
8134 if test "$ac_cv_func_decl_resizeterm" = yes; then
8135 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8143 if test "${ac_cv_header_stdc+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8147 #line $LINENO "configure"
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 ac_cv_header_stdc=yes
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_header_stdc=no
8185 rm -f conftest.$ac_objext conftest.$ac_ext
8187 if test $ac_cv_header_stdc = yes; then
8188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8200 $EGREP "memchr" >/dev/null 2>&1; then
8203 ac_cv_header_stdc=no
8209 if test $ac_cv_header_stdc = yes; then
8210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8211 cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "free" >/dev/null 2>&1; then
8225 ac_cv_header_stdc=no
8231 if test $ac_cv_header_stdc = yes; then
8232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233 if test "$cross_compiling" = yes; then
8236 cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8244 #if ((' ' & 0x0FF) == 0x020)
8245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8248 # define ISLOWER(c) \
8249 (('a' <= (c) && (c) <= 'i') \
8250 || ('j' <= (c) && (c) <= 'r') \
8251 || ('s' <= (c) && (c) <= 'z'))
8252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8260 for (i = 0; i < 256; i++)
8261 if (XOR (islower (i), ISLOWER (i))
8262 || toupper (i) != TOUPPER (i))
8267 rm -f conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269 (eval $ac_link) 2>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8280 echo "$as_me: program exited with status $ac_status" >&5
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8285 ac_cv_header_stdc=no
8287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8293 if test $ac_cv_header_stdc = yes; then
8295 cat >>confdefs.h <<\_ACEOF
8296 #define STDC_HEADERS 1
8306 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310 echo "$as_me:$LINENO: checking for $ac_header" >&5
8311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8318 # Is the header compilable?
8319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 $ac_includes_default
8329 #include <$ac_header>
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -s conftest.$ac_objext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_header_compiler=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_header_compiler=no
8350 rm -f conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352 echo "${ECHO_T}$ac_header_compiler" >&6
8354 # Is the header present?
8355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <$ac_header>
8366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } >/dev/null; then
8374 if test -s conftest.err; then
8375 ac_cpp_err=$ac_c_preproc_warn_flag
8382 if test -z "$ac_cpp_err"; then
8383 ac_header_preproc=yes
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_header_preproc=no
8390 rm -f conftest.err conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8392 echo "${ECHO_T}$ac_header_preproc" >&6
8394 # So? What about this header?
8395 case $ac_header_compiler:$ac_header_preproc in
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8403 ## ------------------------------------ ##
8404 ## Report this to bug-autoconf@gnu.org. ##
8405 ## ------------------------------------ ##
8408 sed "s/^/$as_me: WARNING: /" >&2
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8419 ## ------------------------------------ ##
8420 ## Report this to bug-autoconf@gnu.org. ##
8421 ## ------------------------------------ ##
8424 sed "s/^/$as_me: WARNING: /" >&2
8427 echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 eval "$as_ac_Header=$ac_header_preproc"
8434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8449 for ac_header in sys/time.h sys/resource.h
8451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453 echo "$as_me:$LINENO: checking for $ac_header" >&5
8454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8461 # Is the header compilable?
8462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8472 #include <$ac_header>
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_header_compiler=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_header_compiler=no
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8495 echo "${ECHO_T}$ac_header_compiler" >&6
8497 # Is the header present?
8498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 #include <$ac_header>
8509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } >/dev/null; then
8517 if test -s conftest.err; then
8518 ac_cpp_err=$ac_c_preproc_warn_flag
8525 if test -z "$ac_cpp_err"; then
8526 ac_header_preproc=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_header_preproc=no
8533 rm -f conftest.err conftest.$ac_ext
8534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8535 echo "${ECHO_T}$ac_header_preproc" >&6
8537 # So? What about this header?
8538 case $ac_header_compiler:$ac_header_preproc in
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 ## ------------------------------------ ##
8547 ## Report this to bug-autoconf@gnu.org. ##
8548 ## ------------------------------------ ##
8551 sed "s/^/$as_me: WARNING: /" >&2
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8562 ## ------------------------------------ ##
8563 ## Report this to bug-autoconf@gnu.org. ##
8564 ## ------------------------------------ ##
8567 sed "s/^/$as_me: WARNING: /" >&2
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 eval "$as_ac_Header=$ac_header_preproc"
8577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8582 cat >>confdefs.h <<_ACEOF
8583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8591 for ac_header in unix.h
8593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595 echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603 # Is the header compilable?
8604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #include <$ac_header>
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_header_compiler=yes
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_header_compiler=no
8635 rm -f conftest.$ac_objext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8637 echo "${ECHO_T}$ac_header_compiler" >&6
8639 # Is the header present?
8640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <$ac_header>
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } >/dev/null; then
8659 if test -s conftest.err; then
8660 ac_cpp_err=$ac_c_preproc_warn_flag
8667 if test -z "$ac_cpp_err"; then
8668 ac_header_preproc=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_header_preproc=no
8675 rm -f conftest.err conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8677 echo "${ECHO_T}$ac_header_preproc" >&6
8679 # So? What about this header?
8680 case $ac_header_compiler:$ac_header_preproc in
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8688 ## ------------------------------------ ##
8689 ## Report this to bug-autoconf@gnu.org. ##
8690 ## ------------------------------------ ##
8693 sed "s/^/$as_me: WARNING: /" >&2
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8704 ## ------------------------------------ ##
8705 ## Report this to bug-autoconf@gnu.org. ##
8706 ## ------------------------------------ ##
8709 sed "s/^/$as_me: WARNING: /" >&2
8712 echo "$as_me:$LINENO: checking for $ac_header" >&5
8713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 eval "$as_ac_Header=$ac_header_preproc"
8719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8724 cat >>confdefs.h <<_ACEOF
8725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8736 for ac_func in setrlimit getsid isctype
8738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8739 echo "$as_me:$LINENO: checking for $ac_func" >&5
8740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_var+set}\" = set"; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char $ac_func (); below.
8753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754 <limits.h> exists even on freestanding compilers. */
8756 # include <limits.h>
8758 # include <assert.h>
8760 /* Override any gcc2 internal prototype to avoid an error. */
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8768 /* The GNU C library defines this for functions which it implements
8769 to always fail with ENOSYS. Some functions are actually named
8770 something starting with __ and the normal name is an alias. */
8771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8774 char (*f) () = $ac_func;
8783 return f != $ac_func;
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -s conftest$ac_exeext'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 eval "$as_ac_var=yes"
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 eval "$as_ac_var=no"
8807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8811 if test `eval echo '${'$as_ac_var'}'` = yes; then
8812 cat >>confdefs.h <<_ACEOF
8813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8820 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8821 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8822 if test "${ac_cv_type_signal+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8826 #line $LINENO "configure"
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 #include <sys/types.h>
8838 extern "C" void (*signal (int, void (*)(int)))(int);
8840 void (*signal ()) ();
8851 rm -f conftest.$ac_objext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853 (eval $ac_compile) 2>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -s conftest.$ac_objext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_type_signal=void
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_type_signal=int
8870 rm -f conftest.$ac_objext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8873 echo "${ECHO_T}$ac_cv_type_signal" >&6
8875 cat >>confdefs.h <<_ACEOF
8876 #define RETSIGTYPE $ac_cv_type_signal
8881 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8882 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
8896 ac_cv_type_sig_atomic_t=yes;
8897 cat >conftest.$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8908 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8910 is_sig_atomic_t_volatile=yes;
8911 echo "$as_me:$LINENO: result: yes, volatile" >&5
8912 echo "${ECHO_T}yes, volatile" >&6
8916 is_sig_atomic_t_volatile=no;
8917 echo "$as_me:$LINENO: result: yes, non volatile" >&5
8918 echo "${ECHO_T}yes, non volatile" >&6
8926 echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8928 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8929 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8944 if ((sig_atomic_t *) 0)
8946 if (sizeof (sig_atomic_t))
8952 rm -f conftest.$ac_objext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954 (eval $ac_compile) 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -s conftest.$ac_objext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_type_sig_atomic_t=yes
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 ac_cv_type_sig_atomic_t=no
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8974 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8975 if test $ac_cv_type_sig_atomic_t = yes; then
8979 cat >>confdefs.h <<_ACEOF
8980 #define sig_atomic_t int
8985 is_sig_atomic_t_volatile=no
8990 if test $is_sig_atomic_t_volatile = 'yes'
8992 cat >>confdefs.h <<\_ACEOF
8993 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8997 cat >>confdefs.h <<\_ACEOF
8998 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9003 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9004 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9005 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 cat >conftest.$ac_ext <<_ACEOF
9009 #line $LINENO "configure"
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 $ac_includes_default
9020 char *p = (char *) sys_siglist;
9027 rm -f conftest.$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_have_decl_sys_siglist=yes
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 ac_cv_have_decl_sys_siglist=no
9046 rm -f conftest.$ac_objext conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9049 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9050 if test $ac_cv_have_decl_sys_siglist = yes; then
9052 cat >>confdefs.h <<_ACEOF
9053 #define HAVE_DECL_SYS_SIGLIST 1
9058 cat >>confdefs.h <<_ACEOF
9059 #define HAVE_DECL_SYS_SIGLIST 0
9068 echo "$as_me:$LINENO: checking for pid_t" >&5
9069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9070 if test "${ac_cv_type_pid_t+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9074 #line $LINENO "configure"
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 $ac_includes_default
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094 (eval $ac_compile) 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_type_pid_t=yes
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9111 rm -f conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9114 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9115 if test $ac_cv_type_pid_t = yes; then
9119 cat >>confdefs.h <<_ACEOF
9131 for ac_func in fgetpos memmove setegid srand48 strerror
9133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9134 echo "$as_me:$LINENO: checking for $ac_func" >&5
9135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9136 if eval "test \"\${$as_ac_var+set}\" = set"; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 /* System header to define __stub macros and hopefully few prototypes,
9147 which can conflict with char $ac_func (); below.
9148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9149 <limits.h> exists even on freestanding compilers. */
9151 # include <limits.h>
9153 # include <assert.h>
9155 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9163 /* The GNU C library defines this for functions which it implements
9164 to always fail with ENOSYS. Some functions are actually named
9165 something starting with __ and the normal name is an alias. */
9166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9169 char (*f) () = $ac_func;
9178 return f != $ac_func;
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 eval "$as_ac_var=yes"
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 eval "$as_ac_var=no"
9202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9206 if test `eval echo '${'$as_ac_var'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9217 for ac_func in strcasecmp strdup
9219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9220 echo "$as_me:$LINENO: checking for $ac_func" >&5
9221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_var+set}\" = set"; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9237 # include <limits.h>
9239 # include <assert.h>
9241 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9249 /* The GNU C library defines this for functions which it implements
9250 to always fail with ENOSYS. Some functions are actually named
9251 something starting with __ and the normal name is an alias. */
9252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9255 char (*f) () = $ac_func;
9264 return f != $ac_func;
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 eval "$as_ac_var=yes"
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 eval "$as_ac_var=no"
9288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9292 if test `eval echo '${'$as_ac_var'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9298 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9304 echo "$as_me:$LINENO: checking for getopt" >&5
9305 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9306 if test "${ac_cv_func_getopt+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 /* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char getopt (); below.
9318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319 <limits.h> exists even on freestanding compilers. */
9321 # include <limits.h>
9323 # include <assert.h>
9325 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9333 /* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336 #if defined (__stub_getopt) || defined (__stub___getopt)
9339 char (*f) () = getopt;
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_func_getopt=yes
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_func_getopt=no
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9375 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9377 if test $ac_cv_func_getopt = yes; then
9379 for ac_header in getopt.h
9381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383 echo "$as_me:$LINENO: checking for $ac_header" >&5
9384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391 # Is the header compilable?
9392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 $ac_includes_default
9402 #include <$ac_header>
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406 (eval $ac_compile) 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_header_compiler=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_header_compiler=no
9423 rm -f conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425 echo "${ECHO_T}$ac_header_compiler" >&6
9427 # Is the header present?
9428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 #include <$ac_header>
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } >/dev/null; then
9447 if test -s conftest.err; then
9448 ac_cpp_err=$ac_c_preproc_warn_flag
9455 if test -z "$ac_cpp_err"; then
9456 ac_header_preproc=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_header_preproc=no
9463 rm -f conftest.err conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6
9467 # So? What about this header?
9468 case $ac_header_compiler:$ac_header_preproc in
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476 ## ------------------------------------ ##
9477 ## Report this to bug-autoconf@gnu.org. ##
9478 ## ------------------------------------ ##
9481 sed "s/^/$as_me: WARNING: /" >&2
9484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9492 ## ------------------------------------ ##
9493 ## Report this to bug-autoconf@gnu.org. ##
9494 ## ------------------------------------ ##
9497 sed "s/^/$as_me: WARNING: /" >&2
9500 echo "$as_me:$LINENO: checking for $ac_header" >&5
9501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 eval "$as_ac_Header=$ac_header_preproc"
9507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9512 cat >>confdefs.h <<_ACEOF
9513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525 for ac_func in snprintf
9527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528 echo "$as_me:$LINENO: checking for $ac_func" >&5
9529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9530 if eval "test \"\${$as_ac_var+set}\" = set"; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char $ac_func (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9545 # include <limits.h>
9547 # include <assert.h>
9549 /* Override any gcc2 internal prototype to avoid an error. */
9554 /* We use char because int might match the return type of a gcc2
9555 builtin and then its argument prototype would still apply. */
9557 /* The GNU C library defines this for functions which it implements
9558 to always fail with ENOSYS. Some functions are actually named
9559 something starting with __ and the normal name is an alias. */
9560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9563 char (*f) () = $ac_func;
9572 return f != $ac_func;
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 eval "$as_ac_var=yes"
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 eval "$as_ac_var=no"
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9600 if test `eval echo '${'$as_ac_var'}'` = yes; then
9601 cat >>confdefs.h <<_ACEOF
9602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9606 mutt_cv_snprintf=yes
9611 for ac_func in vsnprintf
9613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9614 echo "$as_me:$LINENO: checking for $ac_func" >&5
9615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_var+set}\" = set"; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 /* System header to define __stub macros and hopefully few prototypes,
9627 which can conflict with char $ac_func (); below.
9628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9629 <limits.h> exists even on freestanding compilers. */
9631 # include <limits.h>
9633 # include <assert.h>
9635 /* Override any gcc2 internal prototype to avoid an error. */
9640 /* We use char because int might match the return type of a gcc2
9641 builtin and then its argument prototype would still apply. */
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649 char (*f) () = $ac_func;
9658 return f != $ac_func;
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 eval "$as_ac_var=yes"
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 eval "$as_ac_var=no"
9682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687 cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9692 mutt_cv_snprintf=yes
9696 if test $mutt_cv_snprintf = yes; then
9697 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9701 for ac_func in ftruncate
9703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9704 echo "$as_me:$LINENO: checking for $ac_func" >&5
9705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9706 if eval "test \"\${$as_ac_var+set}\" = set"; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9710 #line $LINENO "configure"
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 /* System header to define __stub macros and hopefully few prototypes,
9717 which can conflict with char $ac_func (); below.
9718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719 <limits.h> exists even on freestanding compilers. */
9721 # include <limits.h>
9723 # include <assert.h>
9725 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9733 /* The GNU C library defines this for functions which it implements
9734 to always fail with ENOSYS. Some functions are actually named
9735 something starting with __ and the normal name is an alias. */
9736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9739 char (*f) () = $ac_func;
9748 return f != $ac_func;
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 eval "$as_ac_var=yes"
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 eval "$as_ac_var=no"
9772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9776 if test `eval echo '${'$as_ac_var'}'` = yes; then
9777 cat >>confdefs.h <<_ACEOF
9778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9784 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9785 if test "${ac_cv_lib_x_chsize+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 ac_check_lib_save_LIBS=$LIBS
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9798 /* Override any gcc2 internal prototype to avoid an error. */
9802 /* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815 (eval $ac_link) 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_lib_x_chsize=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_cv_lib_x_chsize=no
9832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9836 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9837 if test $ac_cv_lib_x_chsize = yes; then
9838 cat >>confdefs.h <<_ACEOF
9851 for ac_func in strftime
9853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9854 echo "$as_me:$LINENO: checking for $ac_func" >&5
9855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9856 if eval "test \"\${$as_ac_var+set}\" = set"; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 /* System header to define __stub macros and hopefully few prototypes,
9867 which can conflict with char $ac_func (); below.
9868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9869 <limits.h> exists even on freestanding compilers. */
9871 # include <limits.h>
9873 # include <assert.h>
9875 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9883 /* The GNU C library defines this for functions which it implements
9884 to always fail with ENOSYS. Some functions are actually named
9885 something starting with __ and the normal name is an alias. */
9886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9889 char (*f) () = $ac_func;
9898 return f != $ac_func;
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 eval "$as_ac_var=yes"
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 eval "$as_ac_var=no"
9922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9926 if test `eval echo '${'$as_ac_var'}'` = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9934 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9935 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 ac_check_lib_save_LIBS=$LIBS
9940 cat >conftest.$ac_ext <<_ACEOF
9941 #line $LINENO "configure"
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9948 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_lib_intl_strftime=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_cv_lib_intl_strftime=no
9982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9986 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9987 if test $ac_cv_lib_intl_strftime = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_LIBINTL 1
10001 for ac_func in fchdir
10003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10004 echo "$as_me:$LINENO: checking for $ac_func" >&5
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_var+set}\" = set"; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* System header to define __stub macros and hopefully few prototypes,
10017 which can conflict with char $ac_func (); below.
10018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10025 /* Override any gcc2 internal prototype to avoid an error. */
10030 /* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10033 /* The GNU C library defines this for functions which it implements
10034 to always fail with ENOSYS. Some functions are actually named
10035 something starting with __ and the normal name is an alias. */
10036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10039 char (*f) () = $ac_func;
10048 return f != $ac_func;
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -s conftest$ac_exeext'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10065 eval "$as_ac_var=yes"
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 eval "$as_ac_var=no"
10072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10076 if test `eval echo '${'$as_ac_var'}'` = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088 # Check whether --with-regex or --without-regex was given.
10089 if test "${with_regex+set}" = set; then
10090 withval="$with_regex"
10094 for ac_func in regcomp
10096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10097 echo "$as_me:$LINENO: checking for $ac_func" >&5
10098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_var+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 /* System header to define __stub macros and hopefully few prototypes,
10110 which can conflict with char $ac_func (); below.
10111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112 <limits.h> exists even on freestanding compilers. */
10114 # include <limits.h>
10116 # include <assert.h>
10118 /* Override any gcc2 internal prototype to avoid an error. */
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10126 /* The GNU C library defines this for functions which it implements
10127 to always fail with ENOSYS. Some functions are actually named
10128 something starting with __ and the normal name is an alias. */
10129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132 char (*f) () = $ac_func;
10141 return f != $ac_func;
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 eval "$as_ac_var=yes"
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 eval "$as_ac_var=no"
10165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10169 if test `eval echo '${'$as_ac_var'}'` = yes; then
10170 cat >>confdefs.h <<_ACEOF
10171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10181 if test $mutt_cv_regex = no ; then
10182 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10183 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10184 if test "${mutt_cv_regex_broken+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 if test "$cross_compiling" = yes; then
10188 mutt_cv_regex_broken=yes
10190 cat >conftest.$ac_ext <<_ACEOF
10191 #line $LINENO "configure"
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10198 #include <unistd.h>
10200 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); }
10202 rm -f conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 mutt_cv_regex_broken=no
10215 echo "$as_me: program exited with status $ac_status" >&5
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ( exit $ac_status )
10220 mutt_cv_regex_broken=yes
10222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10225 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10226 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10227 if test $mutt_cv_regex_broken = yes ; then
10228 echo "Using the included GNU regex instead." >&6
10233 if test $mutt_cv_regex = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define USE_GNU_REGEX 1
10239 LIBOBJS="$LIBOBJS regex.$ac_objext"
10244 # Check whether --with-homespool or --without-homespool was given.
10245 if test "${with_homespool+set}" = set; then
10246 withval="$with_homespool"
10247 with_homespool=${withval}
10249 if test x$with_homespool != x; then
10250 if test $with_homespool = yes; then
10251 with_homespool=mailbox
10254 cat >>confdefs.h <<_ACEOF
10255 #define MAILPATH "$with_homespool"
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HOMESPOOL 1
10264 cat >>confdefs.h <<\_ACEOF
10265 #define USE_DOTLOCK 1
10271 # Check whether --with-mailpath or --without-mailpath was given.
10272 if test "${with_mailpath+set}" = set; then
10273 withval="$with_mailpath"
10274 mutt_cv_mailpath=$withval
10276 echo "$as_me:$LINENO: checking where new mail is stored" >&5
10277 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10278 if test "${mutt_cv_mailpath+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 mutt_cv_mailpath=no
10282 if test -d /var/mail; then
10283 mutt_cv_mailpath=/var/mail
10284 elif test -d /var/spool/mail; then
10285 mutt_cv_mailpath=/var/spool/mail
10286 elif test -d /usr/spool/mail; then
10287 mutt_cv_mailpath=/usr/spool/mail
10288 elif test -d /usr/mail; then
10289 mutt_cv_mailpath=/usr/mail
10292 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10293 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10296 if test "$mutt_cv_mailpath" = no; then
10297 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10298 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10299 { (exit 1); exit 1; }; }
10302 cat >>confdefs.h <<_ACEOF
10303 #define MAILPATH "$mutt_cv_mailpath"
10307 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10308 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10309 if test "${mutt_cv_worldwrite+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 if test "$cross_compiling" = yes; then
10313 mutt_cv_worldwrite=no
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <sys/types.h>
10323 #include <sys/stat.h>
10325 int main (int argc, char **argv)
10329 stat ("$mutt_cv_mailpath", &s);
10330 if (s.st_mode & S_IWOTH) exit (0);
10334 rm -f conftest$ac_exeext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 mutt_cv_worldwrite=yes
10347 echo "$as_me: program exited with status $ac_status" >&5
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ( exit $ac_status )
10352 mutt_cv_worldwrite=no
10354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10358 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10361 if test $mutt_cv_worldwrite = yes; then
10363 cat >>confdefs.h <<\_ACEOF
10364 #define USE_DOTLOCK 1
10369 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10370 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10371 if test "${mutt_cv_groupwrite+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 if test "$cross_compiling" = yes; then
10375 mutt_cv_groupwrite=no
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 #include <sys/types.h>
10385 #include <sys/stat.h>
10387 int main (int argc, char **argv)
10391 stat ("$mutt_cv_mailpath", &s);
10392 if (s.st_mode & S_IWGRP) exit (0);
10396 rm -f conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 mutt_cv_groupwrite=yes
10409 echo "$as_me: program exited with status $ac_status" >&5
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ( exit $ac_status )
10414 mutt_cv_groupwrite=no
10416 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10420 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10422 if test $mutt_cv_groupwrite = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define USE_DOTLOCK 1
10429 cat >>confdefs.h <<\_ACEOF
10430 #define USE_SETGID 1
10438 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10439 if test "${enable_external_dotlock+set}" = set; then
10440 enableval="$enable_external_dotlock"
10441 mutt_cv_external_dotlock="$enableval"
10444 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10445 || test "x$mutt_cv_external_dotlock" = "xyes"
10448 cat >>confdefs.h <<\_ACEOF
10449 #define DL_STANDALONE 1
10452 DOTLOCK_TARGET="muttng_dotlock"
10454 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10460 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10461 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10463 # Check whether --with-docdir or --without-docdir was given.
10464 if test "${with_docdir+set}" = set; then
10465 withval="$with_docdir"
10466 mutt_cv_docdir=$withval
10468 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10470 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10471 echo "${ECHO_T}$mutt_cv_docdir" >&6
10473 docdir=$mutt_cv_docdir
10476 if test x$mutt_cv_setgid = xyes; then
10477 DOTLOCK_GROUP='mail'
10478 DOTLOCK_PERMISSION=2755
10481 DOTLOCK_PERMISSION=755
10487 # Check whether --with-domain or --without-domain was given.
10488 if test "${with_domain+set}" = set; then
10489 withval="$with_domain"
10490 if test $withval != yes; then
10492 cat >>confdefs.h <<_ACEOF
10493 #define DOMAIN "$withval"
10502 # Check whether --enable-pop or --disable-pop was given.
10503 if test "${enable_pop+set}" = set; then
10504 enableval="$enable_pop"
10505 if test x$enableval = xyes ; then
10507 cat >>confdefs.h <<\_ACEOF
10511 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10519 # Check whether --enable-imap or --disable-imap was given.
10520 if test "${enable_imap+set}" = set; then
10521 enableval="$enable_imap"
10522 if test x$enableval = xyes ; then
10524 cat >>confdefs.h <<\_ACEOF
10528 LIBIMAP="-Limap -limap"
10529 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10538 if test x$need_imap = xyes; then
10540 BUILD_IMAP_FALSE='#'
10542 BUILD_IMAP_TRUE='#'
10547 # Check whether --enable-nntp or --disable-nntp was given.
10548 if test "${enable_nntp+set}" = set; then
10549 enableval="$enable_nntp"
10550 if test x$enableval = xyes ; then
10551 cat >>confdefs.h <<\_ACEOF
10555 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10562 if test "$need_socket" = "yes"
10564 echo "$as_me:$LINENO: checking for socklen_t" >&5
10565 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10566 cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #include <sys/socket.h>
10576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10577 $EGREP "socklen_t" >/dev/null 2>&1; then
10578 echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10581 echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10584 cat >>confdefs.h <<\_ACEOF
10585 #define socklen_t int
10591 echo "$as_me:$LINENO: checking for gethostent" >&5
10592 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10593 if test "${ac_cv_func_gethostent+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line $LINENO "configure"
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 /* System header to define __stub macros and hopefully few prototypes,
10604 which can conflict with char gethostent (); below.
10605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606 <limits.h> exists even on freestanding compilers. */
10608 # include <limits.h>
10610 # include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error. */
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619 char gethostent ();
10620 /* The GNU C library defines this for functions which it implements
10621 to always fail with ENOSYS. Some functions are actually named
10622 something starting with __ and the normal name is an alias. */
10623 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10626 char (*f) () = gethostent;
10635 return f != gethostent;
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_func_gethostent=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_cv_func_gethostent=no
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10662 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10663 if test $ac_cv_func_gethostent = yes; then
10667 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10668 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10669 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 ac_check_lib_save_LIBS=$LIBS
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char gethostent ();
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -s conftest$ac_exeext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_lib_nsl_gethostent=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_cv_lib_nsl_gethostent=no
10716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10720 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10721 if test $ac_cv_lib_nsl_gethostent = yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBNSL 1
10732 echo "$as_me:$LINENO: checking for setsockopt" >&5
10733 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10734 if test "${ac_cv_func_setsockopt+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char setsockopt (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10749 # include <limits.h>
10751 # include <assert.h>
10753 /* Override any gcc2 internal prototype to avoid an error. */
10758 /* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10760 char setsockopt ();
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10767 char (*f) () = setsockopt;
10776 return f != setsockopt;
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_func_setsockopt=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_func_setsockopt=no
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10803 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10804 if test $ac_cv_func_setsockopt = yes; then
10808 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10809 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10810 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lsocket $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10829 char setsockopt ();
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_lib_socket_setsockopt=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_lib_socket_setsockopt=no
10857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10861 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10862 if test $ac_cv_lib_socket_setsockopt = yes; then
10863 cat >>confdefs.h <<_ACEOF
10864 #define HAVE_LIBSOCKET 1
10867 LIBS="-lsocket $LIBS"
10874 for ac_func in getaddrinfo
10876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 echo "$as_me:$LINENO: checking for $ac_func" >&5
10878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_var+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 /* System header to define __stub macros and hopefully few prototypes,
10890 which can conflict with char $ac_func (); below.
10891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10892 <limits.h> exists even on freestanding compilers. */
10894 # include <limits.h>
10896 # include <assert.h>
10898 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10906 /* The GNU C library defines this for functions which it implements
10907 to always fail with ENOSYS. Some functions are actually named
10908 something starting with __ and the normal name is an alias. */
10909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10912 char (*f) () = $ac_func;
10921 return f != $ac_func;
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 eval "$as_ac_var=yes"
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 cat >>confdefs.h <<\_ACEOF
10959 #define USE_SOCKET 1
10962 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10967 # Check whether --with-gss or --without-gss was given.
10968 if test "${with_gss+set}" = set; then
10969 withval="$with_gss"
10970 gss_prefix="$withval"
10974 if test "$gss_prefix" != "no"
10976 if test "$need_imap" = "yes"
10979 GSSAPI_PREFIX=$gss_prefix
10981 saved_CPPFLAGS="$CPPFLAGS"
10982 saved_LDFLAGS="$LDFLAGS"
10984 if test "$GSSAPI_PREFIX" != "yes"
10986 krb5_path="$GSSAPI_PREFIX/bin"
10990 # Extract the first word of "krb5-config", so it can be a program name with args.
10991 set dummy krb5-config; ac_word=$2
10992 echo "$as_me:$LINENO: checking for $ac_word" >&5
10993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10994 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 case $KRB5CFGPATH in
10999 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $krb5_path
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11020 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11022 if test -n "$KRB5CFGPATH"; then
11023 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11024 echo "${ECHO_T}$KRB5CFGPATH" >&6
11026 echo "$as_me:$LINENO: result: no" >&5
11027 echo "${ECHO_T}no" >&6
11030 if test "$KRB5CFGPATH" != "none"
11032 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11033 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11034 case "`$KRB5CFGPATH --version`" in
11035 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
11036 ?eimdal*) GSSAPI_IMPL="Heimdal";;
11037 *) GSSAPI_IMPL="Unknown";;
11040 if test "$GSSAPI_PREFIX" != "yes"
11042 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11043 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11044 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11045 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11048 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11049 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11050 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11063 /* Override any gcc2 internal prototype to avoid an error. */
11067 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */
11069 char gss_init_sec_context ();
11073 gss_init_sec_context ();
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080 (eval $ac_link) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11101 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11102 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11105 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11110 if test "$GSSAPI_IMPL" = "none"
11112 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11113 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11114 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11127 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char gss_init_sec_context ();
11137 gss_init_sec_context ();
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144 (eval $ac_link) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_lib_gssapi_gss_init_sec_context=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_cv_lib_gssapi_gss_init_sec_context=no
11161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11162 LIBS=$ac_check_lib_save_LIBS
11164 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11165 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11166 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11168 GSSAPI_IMPL="Heimdal"
11169 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11170 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11176 if test "$GSSAPI_IMPL" = "none"
11178 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11179 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11180 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11193 /* Override any gcc2 internal prototype to avoid an error. */
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11199 char g_order_init ();
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_lib_gssapi_krb5_g_order_init=yes
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_cv_lib_gssapi_krb5_g_order_init=no
11227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11228 LIBS=$ac_check_lib_save_LIBS
11230 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11231 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11232 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11234 GSSAPI_IMPL="OldMIT",
11235 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11242 CPPFLAGS="$saved_CPPFLAGS"
11243 LDFLAGS="$saved_LDFLAGS"
11246 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11247 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11248 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11249 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11250 if test "$GSSAPI_IMPL" = "none"
11252 cat >confcache <<\_ACEOF
11253 # This file is a shell script that caches the results of configure
11254 # tests run on this system so they can be shared between configure
11255 # scripts and configure runs, see configure's option --config-cache.
11256 # It is not useful on other systems. If it contains results you don't
11257 # want to keep, you may remove or edit it.
11259 # config.status only pays attention to the cache file if you give it
11260 # the --recheck option to rerun configure.
11262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11264 # following values.
11268 # The following way of writing the cache mishandles newlines in values,
11269 # but we know of no workaround that is simple, portable, and efficient.
11270 # So, don't put newlines in cache variables' values.
11271 # Ultrix sh set writes to stderr and can't be redirected directly,
11272 # and sets the high bit in the cache file unless we assign to the vars.
11275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11277 # `set' does not quote correctly, so add quotes (double-quote
11278 # substitution turns \\\\ into \\, and sed turns \\ into \).
11281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11284 # `set' quotes correctly as required by POSIX, so do not add quotes.
11286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11295 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11297 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11298 if test -w $cache_file; then
11299 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11300 cat confcache >$cache_file
11302 echo "not updating unwritable cache $cache_file"
11306 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11307 echo "${ECHO_T}GSSAPI libraries not found" >&6
11309 if test "$GSSAPI_IMPL" = "Heimdal"
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_HEIMDAL 1
11317 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11318 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11320 cat >>confdefs.h <<\_ACEOF
11326 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11327 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11332 if test x$need_gss = xyes; then
11343 # Check whether --with-ssl or --without-ssl was given.
11344 if test "${with_ssl+set}" = set; then
11345 withval="$with_ssl"
11346 if test "$with_ssl" != "no"
11348 if test "$need_socket" != "yes"; then
11349 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11350 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11351 { (exit 1); exit 1; }; }
11354 if test "$with_ssl" != "yes"
11356 LDFLAGS="$LDFLAGS -L$withval/lib"
11357 CPPFLAGS="$CPPFLAGS -I$withval/include"
11362 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11363 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11364 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-lcrypto $LIBS"
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11377 /* Override any gcc2 internal prototype to avoid an error. */
11381 /* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11394 (eval $ac_link) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -s conftest$ac_exeext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_cv_lib_crypto_X509_new=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_cv_lib_crypto_X509_new=no
11411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11414 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11415 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11416 if test $ac_cv_lib_crypto_X509_new = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define HAVE_LIBCRYPTO 1
11421 LIBS="-lcrypto $LIBS"
11424 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11425 echo "$as_me: error: Unable to find SSL library" >&2;}
11426 { (exit 1); exit 1; }; }
11430 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11431 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11432 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lssl -lcrypto $LIBS"
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line $LINENO "configure"
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 /* Override any gcc2 internal prototype to avoid an error. */
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -s conftest$ac_exeext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_cv_lib_ssl_SSL_new=yes
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_cv_lib_ssl_SSL_new=no
11479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11482 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11483 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11484 if test $ac_cv_lib_ssl_SSL_new = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_LIBSSL 1
11492 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11493 echo "$as_me: error: Unable to find SSL library" >&2;}
11494 { (exit 1); exit 1; }; }
11500 for ac_func in RAND_status RAND_egd
11502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11503 echo "$as_me:$LINENO: checking for $ac_func" >&5
11504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11505 if eval "test \"\${$as_ac_var+set}\" = set"; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 /* System header to define __stub macros and hopefully few prototypes,
11516 which can conflict with char $ac_func (); below.
11517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518 <limits.h> exists even on freestanding compilers. */
11520 # include <limits.h>
11522 # include <assert.h>
11524 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11532 /* The GNU C library defines this for functions which it implements
11533 to always fail with ENOSYS. Some functions are actually named
11534 something starting with __ and the normal name is an alias. */
11535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538 char (*f) () = $ac_func;
11547 return f != $ac_func;
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 eval "$as_ac_var=yes"
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 eval "$as_ac_var=no"
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 cat >>confdefs.h <<\_ACEOF
11590 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11591 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11599 if test x$need_ssl = xyes; then
11609 # Check whether --with-gnutls or --without-gnutls was given.
11610 if test "${with_gnutls+set}" = set; then
11611 withval="$with_gnutls"
11612 if test "$need_ssl" = "yes"
11614 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
11615 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
11616 { (exit 1); exit 1; }; }
11618 if test "$with_gnutls" != "no"
11620 if test "$need_socket" != "yes"; then
11621 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
11622 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
11623 { (exit 1); exit 1; }; }
11625 if test "$with_gnutls" != "yes"
11627 LDFLAGS="$LDFLAGS -L$withval/lib"
11628 CPPFLAGS="$CPPFLAGS -I$withval/include"
11630 #saved_LIBS="$LIBS"
11633 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
11634 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
11635 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lgnutls $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11648 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11654 char gnutls_init ();
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665 (eval $ac_link) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_lib_gnutls_gnutls_init=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_lib_gnutls_gnutls_init=no
11682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11685 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
11686 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
11687 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define HAVE_LIBGNUTLS 1
11692 LIBS="-lgnutls $LIBS"
11695 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
11696 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
11697 { (exit 1); exit 1; }; }
11702 cat >>confdefs.h <<\_ACEOF
11703 #define USE_GNUTLS 1
11706 #LIBS="$saved_LIBS"
11707 #MUTTLIBS="$MUTTLIBS -lgnutls"
11708 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11715 if test x$need_gnutls = xyes; then
11717 USE_GNUTLS_FALSE='#'
11719 USE_GNUTLS_TRUE='#'
11725 # Check whether --with-nss or --without-nss was given.
11726 if test "${with_nss+set}" = set; then
11727 withval="$with_nss"
11728 if test "$with_nss" != no
11730 if test "$need_socket" != "yes"; then
11731 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11732 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11733 { (exit 1); exit 1; }; }
11736 if test "$with_nss" != "yes"
11738 LDFLAGS="$LDFLAGS -L$withval/lib"
11739 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11743 cat >>confdefs.h <<\_ACEOF
11747 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11748 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11749 MUTTLIBS="$MUTTLIBS -lnspr4"
11751 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11758 # Check whether --with-gnutls or --without-gnutls was given.
11759 if test "${with_gnutls+set}" = set; then
11760 withval="$with_gnutls"
11761 gnutls_prefix="$withval"
11765 if test "$gnutls_prefix" != "no"
11767 if test "$need_socket" != "yes"
11769 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11770 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11771 { (exit 1); exit 1; }; }
11773 libgnutls_config_prefix=$gnutls_prefix
11774 min_libgnutls_version=0.1.0
11776 if test x$libgnutls_config_prefix != x ; then
11777 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
11778 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
11782 # Extract the first word of "libgnutls-config", so it can be a program name with args.
11783 set dummy libgnutls-config; ac_word=$2
11784 echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11786 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 case $LIBGNUTLS_CONFIG in
11791 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
11812 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
11814 if test -n "$LIBGNUTLS_CONFIG"; then
11815 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
11816 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
11818 echo "$as_me:$LINENO: result: no" >&5
11819 echo "${ECHO_T}no" >&6
11822 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
11823 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
11825 if test "$LIBGNUTLS_CONFIG" = "no" ; then
11828 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
11829 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
11830 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
11833 ac_save_CFLAGS="$CFLAGS"
11834 ac_save_LIBS="$LIBS"
11835 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11836 LIBS="$LIBS $LIBGNUTLS_LIBS"
11838 rm -f conf.libgnutlstest
11839 if test "$cross_compiling" = yes; then
11840 echo $ac_n "cross compiling; assumed OK... $ac_c"
11842 cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11851 #include <stdlib.h>
11852 #include <string.h>
11853 #include <gnutls/gnutls.h>
11858 system ("touch conf.libgnutlstest");
11860 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
11862 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
11863 "$libgnutls_config_version", gnutls_check_version(NULL) );
11864 printf("*** was found! If libgnutls-config was correct, then it is best\n");
11865 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
11866 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11867 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11868 printf("*** required on your system.\n");
11869 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
11870 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
11871 printf("*** before re-running configure\n");
11873 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11875 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11876 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11880 if ( gnutls_check_version( "$min_libgnutls_version" ) )
11886 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11887 gnutls_check_version(NULL) );
11888 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11889 "$min_libgnutls_version" );
11890 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11892 printf("*** If you have already installed a sufficiently new version, this error\n");
11893 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11894 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11895 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11896 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11897 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11898 printf("*** so that the correct libraries are found at run-time))\n");
11905 rm -f conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11918 echo "$as_me: program exited with status $ac_status" >&5
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ( exit $ac_status )
11925 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11927 CFLAGS="$ac_save_CFLAGS"
11928 LIBS="$ac_save_LIBS"
11931 if test "x$no_libgnutls" = x ; then
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11935 for ac_header in gnutls/openssl.h
11937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11939 echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11947 # Is the header compilable?
11948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 $ac_includes_default
11958 #include <$ac_header>
11960 rm -f conftest.$ac_objext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_header_compiler=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_header_compiler=no
11979 rm -f conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 echo "${ECHO_T}$ac_header_compiler" >&6
11983 # Is the header present?
11984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 #include <$ac_header>
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11998 grep -v '^ *+' conftest.er1 >conftest.err
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12011 if test -z "$ac_cpp_err"; then
12012 ac_header_preproc=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_header_preproc=no
12019 rm -f conftest.err conftest.$ac_ext
12020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 echo "${ECHO_T}$ac_header_preproc" >&6
12023 # So? What about this header?
12024 case $ac_header_compiler:$ac_header_preproc in
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12032 ## ------------------------------------ ##
12033 ## Report this to bug-autoconf@gnu.org. ##
12034 ## ------------------------------------ ##
12037 sed "s/^/$as_me: WARNING: /" >&2
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12048 ## ------------------------------------ ##
12049 ## Report this to bug-autoconf@gnu.org. ##
12050 ## ------------------------------------ ##
12053 sed "s/^/$as_me: WARNING: /" >&2
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 eval "$as_ac_Header=$ac_header_preproc"
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
12077 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
12079 cat >>confdefs.h <<\_ACEOF
12080 #define USE_GNUTLS 1
12084 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12087 if test -f conf.libgnutlstest ; then
12090 echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12093 if test "$LIBGNUTLS_CONFIG" = "no" ; then
12094 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
12095 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
12096 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
12097 echo "*** full path to libgnutls-config."
12099 if test -f conf.libgnutlstest ; then
12102 echo "*** Could not run libgnutls test program, checking why..."
12103 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12104 LIBS="$LIBS $LIBGNUTLS_LIBS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 #line $LINENO "configure"
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12114 #include <stdlib.h>
12115 #include <string.h>
12116 #include <gnutls/gnutls.h>
12121 return !!gnutls_check_version(NULL);
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -s conftest$ac_exeext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 echo "*** The test program compiled, but did not run. This usually means"
12139 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12140 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12141 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12142 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12143 echo "*** is required on your system"
12145 echo "*** If you have an old version installed, it is best to remove it, although"
12146 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 echo "*** The test program failed to compile or link. See the file config.log for the"
12153 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12154 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12155 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158 CFLAGS="$ac_save_CFLAGS"
12159 LIBS="$ac_save_LIBS"
12162 LIBGNUTLS_CFLAGS=""
12164 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12165 echo "$as_me: error: could not find libgnutls" >&2;}
12166 { (exit 1); exit 1; }; }
12169 rm -f conf.libgnutlstest
12176 # Check whether --with-sasl or --without-sasl was given.
12177 if test "${with_sasl+set}" = set; then
12178 withval="$with_sasl"
12180 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12182 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12183 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12184 { (exit 1); exit 1; }; }
12187 if test "$with_sasl" != "no"
12189 if test "$with_sasl" != "yes"
12191 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12192 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12198 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12199 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12200 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-lsasl $LIBS"
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line $LINENO "configure"
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12213 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12219 char sasl_client_init ();
12223 sasl_client_init ();
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_lib_sasl_sasl_client_init=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_cv_lib_sasl_sasl_client_init=no
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12251 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12252 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBSASL 1
12257 LIBS="-lsasl $LIBS"
12260 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12261 echo "$as_me: error: could not find libsasl" >&2;}
12262 { (exit 1); exit 1; }; }
12266 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12267 MUTTLIBS="$MUTTLIBS -lsasl"
12270 cat >>confdefs.h <<\_ACEOF
12280 if test x$need_sasl = xyes; then
12290 # Check whether --with-sasl2 or --without-sasl2 was given.
12291 if test "${with_sasl2+set}" = set; then
12292 withval="$with_sasl2"
12294 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12296 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12297 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12298 { (exit 1); exit 1; }; }
12301 if test "$with_sasl2" != "no"
12303 if test "$with_sasl2" != "yes"
12305 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12306 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12312 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12313 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12314 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-lsasl2 $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 #line $LINENO "configure"
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char sasl_client_init ();
12337 sasl_client_init ();
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_sasl2_sasl_client_init=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_sasl2_sasl_client_init=no
12361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12364 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12365 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12366 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12367 cat >>confdefs.h <<_ACEOF
12368 #define HAVE_LIBSASL2 1
12371 LIBS="-lsasl2 $LIBS"
12374 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12375 echo "$as_me: error: could not find libsasl2" >&2;}
12376 { (exit 1); exit 1; }; }
12380 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12381 MUTTLIBS="$MUTTLIBS -lsasl2"
12384 cat >>confdefs.h <<\_ACEOF
12389 cat >>confdefs.h <<\_ACEOF
12390 #define USE_SASL2 1
12399 if test x$need_sasl = xyes; then
12409 # Check whether --with-idn or --without-idn was given.
12410 if test "${with_idn+set}" = set; then
12411 withval="$with_idn"
12413 if test "$with_idn" != "no" ; then
12414 if test "$with_idn" != "yes" ; then
12415 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
12416 LDFLAGS="$LDFLAGS -L$with_idn/lib"
12423 if test "x$with_idn" != "xno"; then
12425 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12426 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12427 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 ac_check_lib_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12440 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char stringprep_check_version ();
12450 stringprep_check_version ();
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_idn_stringprep_check_version=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_idn_stringprep_check_version=no
12474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12478 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12479 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481 #define HAVE_LIBIDN 1
12490 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12493 echo "$as_me:$LINENO: checking for $ac_func" >&5
12494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12495 if eval "test \"\${$as_ac_var+set}\" = set"; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 /* System header to define __stub macros and hopefully few prototypes,
12506 which can conflict with char $ac_func (); below.
12507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508 <limits.h> exists even on freestanding compilers. */
12510 # include <limits.h>
12512 # include <assert.h>
12514 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12522 /* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12528 char (*f) () = $ac_func;
12537 return f != $ac_func;
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest$ac_exeext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 eval "$as_ac_var=yes"
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 eval "$as_ac_var=no"
12561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12565 if test `eval echo '${'$as_ac_var'}'` = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12575 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12580 if eval "test \"\${$as_ac_var+set}\" = set"; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 /* System header to define __stub macros and hopefully few prototypes,
12591 which can conflict with char $ac_func (); below.
12592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593 <limits.h> exists even on freestanding compilers. */
12595 # include <limits.h>
12597 # include <assert.h>
12599 /* Override any gcc2 internal prototype to avoid an error. */
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12613 char (*f) () = $ac_func;
12622 return f != $ac_func;
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12629 (eval $ac_link) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -s conftest$ac_exeext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 eval "$as_ac_var=yes"
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 eval "$as_ac_var=no"
12646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12650 if test `eval echo '${'$as_ac_var'}'` = yes; then
12651 cat >>confdefs.h <<_ACEOF
12652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12660 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663 echo "$as_me:$LINENO: checking for $ac_func" >&5
12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12665 if eval "test \"\${$as_ac_var+set}\" = set"; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 /* System header to define __stub macros and hopefully few prototypes,
12676 which can conflict with char $ac_func (); below.
12677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 <limits.h> exists even on freestanding compilers. */
12680 # include <limits.h>
12682 # include <assert.h>
12684 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12698 char (*f) () = $ac_func;
12707 return f != $ac_func;
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "$as_ac_var=yes"
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 eval "$as_ac_var=no"
12731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12735 if test `eval echo '${'$as_ac_var'}'` = yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12746 # Check whether --enable-debug or --disable-debug was given.
12747 if test "${enable_debug+set}" = set; then
12748 enableval="$enable_debug"
12749 if test x$enableval = xyes ; then
12751 cat >>confdefs.h <<\_ACEOF
12759 # Check whether --enable-flock or --disable-flock was given.
12760 if test "${enable_flock+set}" = set; then
12761 enableval="$enable_flock"
12762 if test $enableval = yes; then
12764 cat >>confdefs.h <<\_ACEOF
12765 #define USE_FLOCK 1
12772 # Check whether --enable-fcntl or --disable-fcntl was given.
12773 if test "${enable_fcntl+set}" = set; then
12774 enableval="$enable_fcntl"
12775 if test $enableval = no; then mutt_cv_fcntl=no; fi
12778 if test $mutt_cv_fcntl = yes; then
12780 cat >>confdefs.h <<\_ACEOF
12781 #define USE_FCNTL 1
12786 mutt_cv_inodesort=no
12787 # Check whether --enable-inodesort or --disable-inodesort was given.
12788 if test "${enable_inodesort+set}" = set; then
12789 enableval="$enable_inodesort"
12790 if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
12793 if test $mutt_cv_inodesort = yes; then
12795 cat >>confdefs.h <<\_ACEOF
12796 #define USE_INODESORT 1
12801 mutt_cv_warnings=yes
12802 # Check whether --enable-warnings or --disable-warnings was given.
12803 if test "${enable_warnings+set}" = set; then
12804 enableval="$enable_warnings"
12805 if test $enableval = no; then
12806 mutt_cv_warnings=no
12810 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12811 CFLAGS="-Wall -pedantic $CFLAGS"
12814 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12815 if test "${enable_nfs_fix+set}" = set; then
12816 enableval="$enable_nfs_fix"
12817 if test x$enableval = xyes; then
12819 cat >>confdefs.h <<\_ACEOF
12820 #define NFS_ATTRIBUTE_HACK 1
12826 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12827 if test "${enable_buffy_size+set}" = set; then
12828 enableval="$enable_buffy_size"
12829 if test x$enableval = xyes; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define BUFFY_SIZE 1
12838 # Check whether --enable-mailtool or --disable-mailtool was given.
12839 if test "${enable_mailtool+set}" = set; then
12840 enableval="$enable_mailtool"
12841 if test x$enableval = xyes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define SUN_ATTACHMENT 1
12850 # Check whether --enable-compressed or --disable-compressed was given.
12851 if test "${enable_compressed+set}" = set; then
12852 enableval="$enable_compressed"
12853 if test x$enableval = xyes; then
12854 cat >>confdefs.h <<\_ACEOF
12855 #define USE_COMPRESSED 1
12861 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12862 if test "${enable_locales_fix+set}" = set; then
12863 enableval="$enable_locales_fix"
12864 if test x$enableval = xyes; then
12866 cat >>confdefs.h <<\_ACEOF
12867 #define LOCALES_HACK 1
12874 # Check whether --with-exec-shell or --without-exec-shell was given.
12875 if test "${with_exec_shell+set}" = set; then
12876 withval="$with_exec_shell"
12877 if test $withval != yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define EXECSHELL "$withval"
12884 cat >>confdefs.h <<_ACEOF
12885 #define EXECSHELL "/bin/sh"
12890 cat >>confdefs.h <<_ACEOF
12891 #define EXECSHELL "/bin/sh"
12896 # Check whether --enable-exact-address or --disable-exact-address was given.
12897 if test "${enable_exact_address+set}" = set; then
12898 enableval="$enable_exact_address"
12899 if test $enableval = yes; then
12901 cat >>confdefs.h <<\_ACEOF
12902 #define EXACT_ADDRESS 1
12909 # Check whether --enable-hcache or --disable-hcache was given.
12910 if test "${enable_hcache+set}" = set; then
12911 enableval="$enable_hcache"
12912 if test x$enableval = xyes; then
12914 cat >>confdefs.h <<\_ACEOF
12915 #define USE_HCACHE 1
12919 OLDCPPFLAGS="$CPPFLAGS"
12925 # Check whether --with-gdbm or --without-gdbm was given.
12926 if test "${with_gdbm+set}" = set; then
12927 withval="$with_gdbm"
12928 ac_prefer_gdbm=$withval
12930 if test x$ac_prefer_gdbm != xno; then
12931 CPPFLAGS="$OLDCPPFLAGS"
12932 LIBS="$OLDLIBS -lgdbm";
12933 echo "$as_me:$LINENO: checking for gdbm_open" >&5
12934 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12935 if test "${ac_cv_gdbmopen+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12951 gdbm_open(0,0,0,0,0);
12956 rm -f conftest.$ac_objext conftest$ac_exeext
12957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12958 (eval $ac_link) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12977 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12978 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12983 # Check whether --with-bdb or --without-bdb was given.
12984 if test "${with_bdb+set}" = set; then
12985 withval="$with_bdb"
12986 ac_bdb_prefix=$withval
12988 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12989 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12990 for d in $ac_bdb_prefix; do
12991 bdbpfx="$bdbpfx $d"
12992 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12993 bdbpfx="$bdbpfx $d/$v"
12996 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12997 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12998 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12999 for d in $bdbpfx; do
13002 for v in / $BDB_VERSIONS; do
13003 if test -r "$d/include/$v/db.h"; then
13004 BDB_INCLUDE_DIR="$d/include/$v"
13005 if test -d "$d/lib/$v"; then
13006 BDB_LIB_DIR="$d/lib/$v"
13007 for l in `echo $BDB_VERSIONS`; do
13008 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13009 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
13010 cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 #include <stdlib.h>
13026 db->open(db,NULL,NULL,NULL,0,0,0);
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13056 test x$ac_dbcreate = xyes && break
13060 test x$BDB_LIB != x && break
13062 if test x$ac_cv_dbcreate = xyes; then
13063 echo "$as_me:$LINENO: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6
13066 echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13071 if test x$ac_cv_gdbmopen = xyes; then
13072 CPPFLAGS="$OLDCPPFLAGS"
13073 LIBS="$OLDLIBS -lgdbm";
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_GDBM 1
13079 elif test x$ac_cv_dbcreate = xyes; then
13080 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13081 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
13083 cat >>confdefs.h <<\_ACEOF
13088 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
13089 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
13090 { (exit 1); exit 1; }; }
13101 # Check whether --enable-iconv or --disable-iconv was given.
13102 if test "${enable_iconv+set}" = set; then
13103 enableval="$enable_iconv"
13104 if test x$enableval = xno ; then
13105 am_cv_func_iconv=no
13110 echo "$as_me:$LINENO: checking for off_t" >&5
13111 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13112 if test "${ac_cv_type_off_t+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13128 if (sizeof (off_t))
13134 rm -f conftest.$ac_objext
13135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13136 (eval $ac_compile) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_cv_type_off_t=yes
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13151 ac_cv_type_off_t=no
13153 rm -f conftest.$ac_objext conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13156 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13157 if test $ac_cv_type_off_t = yes; then
13161 cat >>confdefs.h <<_ACEOF
13167 echo "$as_me:$LINENO: checking for size_t" >&5
13168 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13169 if test "${ac_cv_type_size_t+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 $ac_includes_default
13185 if (sizeof (size_t))
13191 rm -f conftest.$ac_objext
13192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13193 (eval $ac_compile) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_type_size_t=yes
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_cv_type_size_t=no
13210 rm -f conftest.$ac_objext conftest.$ac_ext
13212 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13213 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13214 if test $ac_cv_type_size_t = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219 #define size_t unsigned
13224 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13225 # for constant arguments. Useless!
13226 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13227 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13228 if test "${ac_cv_working_alloca_h+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 #include <alloca.h>
13242 char *p = (char *) alloca (2 * sizeof (int));
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13249 (eval $ac_link) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_working_alloca_h=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_working_alloca_h=no
13266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13269 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13270 if test $ac_cv_working_alloca_h = yes; then
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_ALLOCA_H 1
13278 echo "$as_me:$LINENO: checking for alloca" >&5
13279 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13280 if test "${ac_cv_func_alloca_works+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13291 # define alloca __builtin_alloca
13294 # include <malloc.h>
13295 # define alloca _alloca
13298 # include <alloca.h>
13303 # ifndef alloca /* predefined by HP cc +Olibcalls */
13314 char *p = (char *) alloca (1);
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_func_alloca_works=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_cv_func_alloca_works=no
13338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13341 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13343 if test $ac_cv_func_alloca_works = yes; then
13345 cat >>confdefs.h <<\_ACEOF
13346 #define HAVE_ALLOCA 1
13350 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13351 # that cause trouble. Some versions do not even contain alloca or
13352 # contain a buggy version. If you still want to use their alloca,
13353 # use ar to extract alloca.o from them instead of compiling alloca.c.
13355 ALLOCA=alloca.$ac_objext
13357 cat >>confdefs.h <<\_ACEOF
13362 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13363 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13364 if test "${ac_cv_os_cray+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #if defined(CRAY) && ! defined(CRAY2)
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382 $EGREP "webecray" >/dev/null 2>&1; then
13390 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13391 echo "${ECHO_T}$ac_cv_os_cray" >&6
13392 if test $ac_cv_os_cray = yes; then
13393 for ac_func in _getb67 GETB67 getb67; do
13394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 echo "$as_me:$LINENO: checking for $ac_func" >&5
13396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13397 if eval "test \"\${$as_ac_var+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 /* System header to define __stub macros and hopefully few prototypes,
13408 which can conflict with char $ac_func (); below.
13409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13410 <limits.h> exists even on freestanding compilers. */
13412 # include <limits.h>
13414 # include <assert.h>
13416 /* Override any gcc2 internal prototype to avoid an error. */
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13424 /* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13430 char (*f) () = $ac_func;
13439 return f != $ac_func;
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446 (eval $ac_link) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 eval "$as_ac_var=yes"
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 eval "$as_ac_var=no"
13463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13467 if test `eval echo '${'$as_ac_var'}'` = yes; then
13469 cat >>confdefs.h <<_ACEOF
13470 #define CRAY_STACKSEG_END $ac_func
13479 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13480 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13481 if test "${ac_cv_c_stack_direction+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 if test "$cross_compiling" = yes; then
13485 ac_cv_c_stack_direction=0
13487 cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13495 find_stack_direction ()
13497 static char *addr = 0;
13502 return find_stack_direction ();
13505 return (&dummy > addr) ? 1 : -1;
13511 exit (find_stack_direction () < 0);
13514 rm -f conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_c_stack_direction=1
13527 echo "$as_me: program exited with status $ac_status" >&5
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 ( exit $ac_status )
13532 ac_cv_c_stack_direction=-1
13534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13537 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13538 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13540 cat >>confdefs.h <<_ACEOF
13541 #define STACK_DIRECTION $ac_cv_c_stack_direction
13549 for ac_header in stdlib.h unistd.h
13551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13553 echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13561 # Is the header compilable?
13562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13564 cat >conftest.$ac_ext <<_ACEOF
13565 #line $LINENO "configure"
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 $ac_includes_default
13572 #include <$ac_header>
13574 rm -f conftest.$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_header_compiler=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_compiler=no
13593 rm -f conftest.$ac_objext conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13595 echo "${ECHO_T}$ac_header_compiler" >&6
13597 # Is the header present?
13598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13600 cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <$ac_header>
13609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
13625 if test -z "$ac_cpp_err"; then
13626 ac_header_preproc=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_header_preproc=no
13633 rm -f conftest.err conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6
13637 # So? What about this header?
13638 case $ac_header_compiler:$ac_header_preproc in
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13646 ## ------------------------------------ ##
13647 ## Report this to bug-autoconf@gnu.org. ##
13648 ## ------------------------------------ ##
13651 sed "s/^/$as_me: WARNING: /" >&2
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13662 ## ------------------------------------ ##
13663 ## Report this to bug-autoconf@gnu.org. ##
13664 ## ------------------------------------ ##
13667 sed "s/^/$as_me: WARNING: /" >&2
13670 echo "$as_me:$LINENO: checking for $ac_header" >&5
13671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 eval "$as_ac_Header=$ac_header_preproc"
13677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13691 for ac_func in getpagesize
13693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13694 echo "$as_me:$LINENO: checking for $ac_func" >&5
13695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13696 if eval "test \"\${$as_ac_var+set}\" = set"; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 cat >conftest.$ac_ext <<_ACEOF
13700 #line $LINENO "configure"
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func (); below.
13708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709 <limits.h> exists even on freestanding compilers. */
13711 # include <limits.h>
13713 # include <assert.h>
13715 /* Override any gcc2 internal prototype to avoid an error. */
13720 /* We use char because int might match the return type of a gcc2
13721 builtin and then its argument prototype would still apply. */
13723 /* The GNU C library defines this for functions which it implements
13724 to always fail with ENOSYS. Some functions are actually named
13725 something starting with __ and the normal name is an alias. */
13726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 char (*f) () = $ac_func;
13738 return f != $ac_func;
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -s conftest$ac_exeext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 eval "$as_ac_var=yes"
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 eval "$as_ac_var=no"
13762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13766 if test `eval echo '${'$as_ac_var'}'` = yes; then
13767 cat >>confdefs.h <<_ACEOF
13768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13774 echo "$as_me:$LINENO: checking for working mmap" >&5
13775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 if test "$cross_compiling" = yes; then
13780 ac_cv_func_mmap_fixed_mapped=no
13782 cat >conftest.$ac_ext <<_ACEOF
13783 #line $LINENO "configure"
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 /* malloc might have been renamed as rpl_malloc. */
13793 /* Thanks to Mike Haertel and Jim Avera for this test.
13794 Here is a matrix of mmap possibilities:
13795 mmap private not fixed
13796 mmap private fixed at somewhere currently unmapped
13797 mmap private fixed at somewhere already mapped
13798 mmap shared not fixed
13799 mmap shared fixed at somewhere currently unmapped
13800 mmap shared fixed at somewhere already mapped
13801 For private mappings, we should verify that changes cannot be read()
13802 back from the file, nor mmap's back from the file at a different
13803 address. (There have been systems where private was not correctly
13804 implemented like the infamous i386 svr4.0, and systems where the
13805 VM page cache was not coherent with the file system buffer cache
13806 like early versions of FreeBSD and possibly contemporary NetBSD.)
13807 For shared mappings, we should conversely verify that changes get
13808 propagated back to all the places they're supposed to be.
13810 Grep wants private fixed already mapped.
13811 The main things grep needs to know about mmap are:
13812 * does it exist and is it safe to write into the mmap'd area
13813 * how to use it (BSD variants) */
13816 #include <sys/mman.h>
13818 #if !STDC_HEADERS && !HAVE_STDLIB_H
13822 /* This mess was copied from the GNU getpagesize.h. */
13823 #if !HAVE_GETPAGESIZE
13824 /* Assume that all systems that can run configure have sys/param.h. */
13825 # if !HAVE_SYS_PARAM_H
13826 # define HAVE_SYS_PARAM_H 1
13829 # ifdef _SC_PAGESIZE
13830 # define getpagesize() sysconf(_SC_PAGESIZE)
13831 # else /* no _SC_PAGESIZE */
13832 # if HAVE_SYS_PARAM_H
13833 # include <sys/param.h>
13834 # ifdef EXEC_PAGESIZE
13835 # define getpagesize() EXEC_PAGESIZE
13836 # else /* no EXEC_PAGESIZE */
13838 # define getpagesize() NBPG * CLSIZE
13841 # endif /* no CLSIZE */
13842 # else /* no NBPG */
13844 # define getpagesize() NBPC
13845 # else /* no NBPC */
13847 # define getpagesize() PAGESIZE
13848 # endif /* PAGESIZE */
13849 # endif /* no NBPC */
13850 # endif /* no NBPG */
13851 # endif /* no EXEC_PAGESIZE */
13852 # else /* no HAVE_SYS_PARAM_H */
13853 # define getpagesize() 8192 /* punt totally */
13854 # endif /* no HAVE_SYS_PARAM_H */
13855 # endif /* no _SC_PAGESIZE */
13857 #endif /* no HAVE_GETPAGESIZE */
13862 char *data, *data2, *data3;
13866 pagesize = getpagesize ();
13868 /* First, make a file with some known garbage in it. */
13869 data = (char *) malloc (pagesize);
13872 for (i = 0; i < pagesize; ++i)
13873 *(data + i) = rand ();
13875 fd = creat ("conftest.mmap", 0600);
13878 if (write (fd, data, pagesize) != pagesize)
13882 /* Next, try to mmap the file at a fixed address which already has
13883 something else allocated at it. If we can, also make sure that
13884 we see the same garbage. */
13885 fd = open ("conftest.mmap", O_RDWR);
13888 data2 = (char *) malloc (2 * pagesize);
13891 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13895 for (i = 0; i < pagesize; ++i)
13896 if (*(data + i) != *(data2 + i))
13899 /* Finally, make sure that changes to the mapped area do not
13900 percolate back to the file as seen by read(). (This is a bug on
13901 some variants of i386 svr4.0.) */
13902 for (i = 0; i < pagesize; ++i)
13903 *(data2 + i) = *(data2 + i) + 1;
13904 data3 = (char *) malloc (pagesize);
13907 if (read (fd, data3, pagesize) != pagesize)
13909 for (i = 0; i < pagesize; ++i)
13910 if (*(data + i) != *(data3 + i))
13916 rm -f conftest$ac_exeext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13918 (eval $ac_link) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_func_mmap_fixed_mapped=yes
13929 echo "$as_me: program exited with status $ac_status" >&5
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ( exit $ac_status )
13934 ac_cv_func_mmap_fixed_mapped=no
13936 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13939 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13940 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13941 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define HAVE_MMAP 1
13948 rm -f conftest.mmap
13951 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13952 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13953 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 cat >conftest.$ac_ext <<_ACEOF
13957 #line $LINENO "configure"
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13964 #include <features.h>
13965 #ifdef __GNU_LIBRARY__
13966 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13973 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13974 ac_cv_gnu_library_2_1=yes
13976 ac_cv_gnu_library_2_1=no
13983 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13984 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13986 GLIBC21="$ac_cv_gnu_library_2_1"
14000 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14001 stdlib.h string.h unistd.h sys/param.h
14003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14013 # Is the header compilable?
14014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 #include <$ac_header>
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -s conftest.$ac_objext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_header_compiler=yes
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14043 ac_header_compiler=no
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6
14049 # Is the header present?
14050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <$ac_header>
14061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null; then
14069 if test -s conftest.err; then
14070 ac_cpp_err=$ac_c_preproc_warn_flag
14077 if test -z "$ac_cpp_err"; then
14078 ac_header_preproc=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_header_preproc=no
14085 rm -f conftest.err conftest.$ac_ext
14086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14087 echo "${ECHO_T}$ac_header_preproc" >&6
14089 # So? What about this header?
14090 case $ac_header_compiler:$ac_header_preproc in
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14098 ## ------------------------------------ ##
14099 ## Report this to bug-autoconf@gnu.org. ##
14100 ## ------------------------------------ ##
14103 sed "s/^/$as_me: WARNING: /" >&2
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14114 ## ------------------------------------ ##
14115 ## Report this to bug-autoconf@gnu.org. ##
14116 ## ------------------------------------ ##
14119 sed "s/^/$as_me: WARNING: /" >&2
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 eval "$as_ac_Header=$ac_header_preproc"
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14134 cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14163 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14164 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14165 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14168 echo "$as_me:$LINENO: checking for $ac_func" >&5
14169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14170 if eval "test \"\${$as_ac_var+set}\" = set"; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 /* System header to define __stub macros and hopefully few prototypes,
14181 which can conflict with char $ac_func (); below.
14182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14183 <limits.h> exists even on freestanding compilers. */
14185 # include <limits.h>
14187 # include <assert.h>
14189 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14197 /* The GNU C library defines this for functions which it implements
14198 to always fail with ENOSYS. Some functions are actually named
14199 something starting with __ and the normal name is an alias. */
14200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14203 char (*f) () = $ac_func;
14212 return f != $ac_func;
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14219 (eval $ac_link) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 eval "$as_ac_var=yes"
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 eval "$as_ac_var=no"
14236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14240 if test `eval echo '${'$as_ac_var'}'` = yes; then
14241 cat >>confdefs.h <<_ACEOF
14242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14252 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14253 if test "${with_libiconv_prefix+set}" = set; then
14254 withval="$with_libiconv_prefix"
14256 for dir in `echo "$withval" | tr : ' '`; do
14257 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14258 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14263 echo "$as_me:$LINENO: checking for iconv" >&5
14264 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14265 if test "${am_cv_func_iconv+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 am_cv_func_iconv="no, consider installing GNU libiconv"
14271 cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <stdlib.h>
14283 iconv_t cd = iconv_open("","");
14284 iconv(cd,NULL,NULL,NULL,NULL);
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292 (eval $ac_link) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -s conftest$ac_exeext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 am_cv_func_iconv=yes
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14309 if test "$am_cv_func_iconv" != yes; then
14310 am_save_LIBS="$LIBS"
14311 LIBS="$LIBS -liconv"
14312 cat >conftest.$ac_ext <<_ACEOF
14313 #line $LINENO "configure"
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <stdlib.h>
14324 iconv_t cd = iconv_open("","");
14325 iconv(cd,NULL,NULL,NULL,NULL);
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -s conftest$ac_exeext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 am_cv_lib_iconv=yes
14344 am_cv_func_iconv=yes
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14351 LIBS="$am_save_LIBS"
14355 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14356 echo "${ECHO_T}$am_cv_func_iconv" >&6
14357 if test "$am_cv_func_iconv" = yes; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_ICONV 1
14363 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14364 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14365 if test "${am_cv_proto_iconv+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14377 #include <stdlib.h>
14383 #if defined(__STDC__) || defined(__cplusplus)
14384 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 am_cv_proto_iconv_arg1=""
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 am_cv_proto_iconv_arg1="const"
14416 rm -f conftest.$ac_objext conftest.$ac_ext
14417 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);"
14420 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14421 echo "$as_me:$LINENO: result: ${ac_t:-
14422 }$am_cv_proto_iconv" >&5
14423 echo "${ECHO_T}${ac_t:-
14424 }$am_cv_proto_iconv" >&6
14426 cat >>confdefs.h <<_ACEOF
14427 #define ICONV_CONST $am_cv_proto_iconv_arg1
14432 if test "$am_cv_lib_iconv" = yes; then
14438 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14439 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14440 if test "${am_cv_langinfo_codeset+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14444 #line $LINENO "configure"
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 #include <langinfo.h>
14454 char* cs = nl_langinfo(CODESET);
14459 rm -f conftest.$ac_objext conftest$ac_exeext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14461 (eval $ac_link) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -s conftest$ac_exeext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 am_cv_langinfo_codeset=yes
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 am_cv_langinfo_codeset=no
14478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14481 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14482 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14483 if test $am_cv_langinfo_codeset = yes; then
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_LANGINFO_CODESET 1
14491 if test $ac_cv_header_locale_h = yes; then
14492 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14493 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14494 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 cat >conftest.$ac_ext <<_ACEOF
14498 #line $LINENO "configure"
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <locale.h>
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 am_cv_val_LC_MESSAGES=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 am_cv_val_LC_MESSAGES=no
14532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14534 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14535 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14536 if test $am_cv_val_LC_MESSAGES = yes; then
14538 cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_LC_MESSAGES 1
14544 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14545 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14546 # Check whether --enable-nls or --disable-nls was given.
14547 if test "${enable_nls+set}" = set; then
14548 enableval="$enable_nls"
14553 echo "$as_me:$LINENO: result: $USE_NLS" >&5
14554 echo "${ECHO_T}$USE_NLS" >&6
14557 BUILD_INCLUDED_LIBINTL=no
14558 USE_INCLUDED_LIBINTL=no
14561 if test "$USE_NLS" = "yes"; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define ENABLE_NLS 1
14567 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14568 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14570 # Check whether --with-included-gettext or --without-included-gettext was given.
14571 if test "${with_included_gettext+set}" = set; then
14572 withval="$with_included_gettext"
14573 nls_cv_force_use_gnu_gettext=$withval
14575 nls_cv_force_use_gnu_gettext=no
14577 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14578 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14580 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14581 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14587 if test "${ac_cv_header_libintl_h+set}" = set; then
14588 echo "$as_me:$LINENO: checking for libintl.h" >&5
14589 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14590 if test "${ac_cv_header_libintl_h+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14594 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14596 # Is the header compilable?
14597 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14598 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14599 cat >conftest.$ac_ext <<_ACEOF
14600 #line $LINENO "configure"
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <libintl.h>
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_header_compiler=yes
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_header_compiler=no
14628 rm -f conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6
14632 # Is the header present?
14633 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14634 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14635 cat >conftest.$ac_ext <<_ACEOF
14636 #line $LINENO "configure"
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 #include <libintl.h>
14644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } >/dev/null; then
14652 if test -s conftest.err; then
14653 ac_cpp_err=$ac_c_preproc_warn_flag
14660 if test -z "$ac_cpp_err"; then
14661 ac_header_preproc=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_header_preproc=no
14668 rm -f conftest.err conftest.$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14670 echo "${ECHO_T}$ac_header_preproc" >&6
14672 # So? What about this header?
14673 case $ac_header_compiler:$ac_header_preproc in
14675 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14676 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14678 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14681 ## ------------------------------------ ##
14682 ## Report this to bug-autoconf@gnu.org. ##
14683 ## ------------------------------------ ##
14686 sed "s/^/$as_me: WARNING: /" >&2
14689 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14690 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14692 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14694 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14697 ## ------------------------------------ ##
14698 ## Report this to bug-autoconf@gnu.org. ##
14699 ## ------------------------------------ ##
14702 sed "s/^/$as_me: WARNING: /" >&2
14705 echo "$as_me:$LINENO: checking for libintl.h" >&5
14706 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14707 if test "${ac_cv_header_libintl_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 ac_cv_header_libintl_h=$ac_header_preproc
14712 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14713 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14716 if test $ac_cv_header_libintl_h = yes; then
14717 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14718 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14719 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 #include <libintl.h>
14730 extern int _nl_msg_cat_cntr;
14734 bindtextdomain ("", "");
14735 return (int) gettext ("") + _nl_msg_cat_cntr
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 gt_cv_func_gnugettext1_libc=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 gt_cv_func_gnugettext1_libc=no
14759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14761 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14762 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14764 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14765 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14766 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14767 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 gt_save_LIBS="$LIBS"
14771 LIBS="$LIBS -lintl $LIBICONV"
14772 cat >conftest.$ac_ext <<_ACEOF
14773 #line $LINENO "configure"
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 #include <libintl.h>
14780 extern int _nl_msg_cat_cntr;
14784 bindtextdomain ("", "");
14785 return (int) gettext ("") + _nl_msg_cat_cntr
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14792 (eval $ac_link) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -s conftest$ac_exeext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 gt_cv_func_gnugettext1_libintl=yes
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 gt_cv_func_gnugettext1_libintl=no
14809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14810 LIBS="$gt_save_LIBS"
14812 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14813 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14816 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14817 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14818 && test "$PACKAGE" != gettext; }; then
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_GETTEXT 1
14825 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14826 INTLLIBS="-lintl $LIBICONV"
14829 gt_save_LIBS="$LIBS"
14830 LIBS="$LIBS $INTLLIBS"
14832 for ac_func in dcgettext
14834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14835 echo "$as_me:$LINENO: checking for $ac_func" >&5
14836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14837 if eval "test \"\${$as_ac_var+set}\" = set"; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 cat >conftest.$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
14852 # include <limits.h>
14854 # include <assert.h>
14856 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14864 /* The GNU C library defines this for functions which it implements
14865 to always fail with ENOSYS. Some functions are actually named
14866 something starting with __ and the normal name is an alias. */
14867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 char (*f) () = $ac_func;
14879 return f != $ac_func;
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886 (eval $ac_link) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -s conftest$ac_exeext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 eval "$as_ac_var=yes"
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 eval "$as_ac_var=no"
14903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14907 if test `eval echo '${'$as_ac_var'}'` = yes; then
14908 cat >>confdefs.h <<_ACEOF
14909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14915 LIBS="$gt_save_LIBS"
14917 # Extract the first word of "msgfmt", so it can be a program name with args.
14918 set dummy msgfmt; ac_word=$2
14919 echo "$as_me:$LINENO: checking for $ac_word" >&5
14920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14921 if test "${ac_cv_path_MSGFMT+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14930 for ac_dir in $PATH; do
14931 test -z "$ac_dir" && ac_dir=.
14932 if test -f $ac_dir/$ac_word; then
14933 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14934 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14940 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14944 MSGFMT="$ac_cv_path_MSGFMT"
14945 if test "$MSGFMT" != ":"; then
14946 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14947 echo "${ECHO_T}$MSGFMT" >&6
14949 echo "$as_me:$LINENO: result: no" >&5
14950 echo "${ECHO_T}no" >&6
14953 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14954 set dummy gmsgfmt; ac_word=$2
14955 echo "$as_me:$LINENO: checking for $ac_word" >&5
14956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14957 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $PATH
14969 test -z "$as_dir" && as_dir=.
14970 for ac_exec_ext in '' $ac_executable_extensions; do
14971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14979 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14983 GMSGFMT=$ac_cv_path_GMSGFMT
14985 if test -n "$GMSGFMT"; then
14986 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14987 echo "${ECHO_T}$GMSGFMT" >&6
14989 echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14994 # Extract the first word of "xgettext", so it can be a program name with args.
14995 set dummy xgettext; ac_word=$2
14996 echo "$as_me:$LINENO: checking for $ac_word" >&5
14997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14998 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 case "$XGETTEXT" in
15003 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15007 for ac_dir in $PATH; do
15008 test -z "$ac_dir" && ac_dir=.
15009 if test -f $ac_dir/$ac_word; then
15010 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15011 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15017 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15021 XGETTEXT="$ac_cv_path_XGETTEXT"
15022 if test "$XGETTEXT" != ":"; then
15023 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15024 echo "${ECHO_T}$XGETTEXT" >&6
15026 echo "$as_me:$LINENO: result: no" >&5
15027 echo "${ECHO_T}no" >&6
15038 if test "$CATOBJEXT" = "NONE"; then
15039 nls_cv_use_gnu_gettext=yes
15043 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15044 INTLOBJS="\$(GETTOBJS)"
15045 # Extract the first word of "msgfmt", so it can be a program name with args.
15046 set dummy msgfmt; ac_word=$2
15047 echo "$as_me:$LINENO: checking for $ac_word" >&5
15048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15049 if test "${ac_cv_path_MSGFMT+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15058 for ac_dir in $PATH; do
15059 test -z "$ac_dir" && ac_dir=.
15060 if test -f $ac_dir/$ac_word; then
15061 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15062 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15068 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15072 MSGFMT="$ac_cv_path_MSGFMT"
15073 if test "$MSGFMT" != ":"; then
15074 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15075 echo "${ECHO_T}$MSGFMT" >&6
15077 echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15081 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15082 set dummy gmsgfmt; ac_word=$2
15083 echo "$as_me:$LINENO: checking for $ac_word" >&5
15084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15085 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094 for as_dir in $PATH
15097 test -z "$as_dir" && as_dir=.
15098 for ac_exec_ext in '' $ac_executable_extensions; do
15099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15100 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15107 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15111 GMSGFMT=$ac_cv_path_GMSGFMT
15113 if test -n "$GMSGFMT"; then
15114 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15115 echo "${ECHO_T}$GMSGFMT" >&6
15117 echo "$as_me:$LINENO: result: no" >&5
15118 echo "${ECHO_T}no" >&6
15121 # Extract the first word of "xgettext", so it can be a program name with args.
15122 set dummy xgettext; ac_word=$2
15123 echo "$as_me:$LINENO: checking for $ac_word" >&5
15124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15125 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 case "$XGETTEXT" in
15130 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15134 for ac_dir in $PATH; do
15135 test -z "$ac_dir" && ac_dir=.
15136 if test -f $ac_dir/$ac_word; then
15137 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15138 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15144 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15148 XGETTEXT="$ac_cv_path_XGETTEXT"
15149 if test "$XGETTEXT" != ":"; then
15150 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15151 echo "${ECHO_T}$XGETTEXT" >&6
15153 echo "$as_me:$LINENO: result: no" >&5
15154 echo "${ECHO_T}no" >&6
15158 BUILD_INCLUDED_LIBINTL=yes
15159 USE_INCLUDED_LIBINTL=yes
15161 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
15162 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15165 if test "$GMSGFMT" != ":"; then
15166 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15169 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15170 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15175 if test "$XGETTEXT" != ":"; then
15176 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15179 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15180 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15187 ac_config_commands="$ac_config_commands default-1"
15191 if test "$PACKAGE" = gettext; then
15192 BUILD_INCLUDED_LIBINTL=yes
15195 for ac_prog in bison
15197 # Extract the first word of "$ac_prog", so it can be a program name with args.
15198 set dummy $ac_prog; ac_word=$2
15199 echo "$as_me:$LINENO: checking for $ac_word" >&5
15200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15201 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 if test -n "$INTLBISON"; then
15205 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15211 test -z "$as_dir" && as_dir=.
15212 for ac_exec_ext in '' $ac_executable_extensions; do
15213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214 ac_cv_prog_INTLBISON="$ac_prog"
15215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15223 INTLBISON=$ac_cv_prog_INTLBISON
15224 if test -n "$INTLBISON"; then
15225 echo "$as_me:$LINENO: result: $INTLBISON" >&5
15226 echo "${ECHO_T}$INTLBISON" >&6
15228 echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15232 test -n "$INTLBISON" && break
15235 if test -z "$INTLBISON"; then
15238 echo "$as_me:$LINENO: checking version of bison" >&5
15239 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15240 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15241 case $ac_prog_version in
15242 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15243 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15244 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15245 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15247 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15248 echo "${ECHO_T}$ac_prog_version" >&6
15250 if test $ac_verc_fail = yes; then
15254 for lang in $ALL_LINGUAS; do
15255 GMOFILES="$GMOFILES $lang.gmo"
15256 POFILES="$POFILES $lang.po"
15269 nls_cv_header_intl=
15270 nls_cv_header_libgt=
15282 if test "x$CATOBJEXT" != "x"; then
15283 if test "x$ALL_LINGUAS" = "x"; then
15286 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15287 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15289 for presentlang in $ALL_LINGUAS; do
15291 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15292 # Use the presentlang catalog if desiredlang is
15293 # a. equal to presentlang, or
15294 # b. a variant of presentlang (because in this case,
15295 # presentlang can be used as a fallback for messages
15296 # which are not translated in the desiredlang catalog).
15297 case "$desiredlang" in
15298 "$presentlang"*) useit=yes;;
15301 if test $useit = yes; then
15302 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15305 LINGUAS=$NEW_LINGUAS
15306 echo "$as_me:$LINENO: result: $LINGUAS" >&5
15307 echo "${ECHO_T}$LINGUAS" >&6
15310 if test -n "$LINGUAS"; then
15311 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15316 if test -n "$ac_aux_dir"; then
15317 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15319 if test -z "$MKINSTALLDIRS"; then
15320 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15324 INTL_LIBTOOL_SUFFIX_PREFIX=
15328 if test "$am_cv_func_iconv" != "yes"
15330 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15331 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15335 for ac_header in iconv.h
15337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339 echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15347 # Is the header compilable?
15348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line $LINENO "configure"
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 $ac_includes_default
15358 #include <$ac_header>
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -s conftest.$ac_objext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_header_compiler=yes
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_header_compiler=no
15379 rm -f conftest.$ac_objext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15381 echo "${ECHO_T}$ac_header_compiler" >&6
15383 # Is the header present?
15384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15387 #line $LINENO "configure"
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <$ac_header>
15395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } >/dev/null; then
15403 if test -s conftest.err; then
15404 ac_cpp_err=$ac_c_preproc_warn_flag
15411 if test -z "$ac_cpp_err"; then
15412 ac_header_preproc=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_header_preproc=no
15419 rm -f conftest.err conftest.$ac_ext
15420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15421 echo "${ECHO_T}$ac_header_preproc" >&6
15423 # So? What about this header?
15424 case $ac_header_compiler:$ac_header_preproc in
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15432 ## ------------------------------------ ##
15433 ## Report this to bug-autoconf@gnu.org. ##
15434 ## ------------------------------------ ##
15437 sed "s/^/$as_me: WARNING: /" >&2
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15448 ## ------------------------------------ ##
15449 ## Report this to bug-autoconf@gnu.org. ##
15450 ## ------------------------------------ ##
15453 sed "s/^/$as_me: WARNING: /" >&2
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 eval "$as_ac_Header=$ac_header_preproc"
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15471 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15472 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15484 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15485 echo "$as_me:$LINENO: result: yes" >&5
15486 echo "${ECHO_T}yes" >&6
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE_ICONV_T_DEF 1
15493 echo "$as_me:$LINENO: result: no" >&5
15494 echo "${ECHO_T}no" >&6
15503 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15504 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15505 if test "${mutt_cv_iconv_good+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 mutt_save_LIBS="$LIBS"
15509 LIBS="$LIBS $LIBICONV"
15510 if test "$cross_compiling" = yes; then
15511 mutt_cv_iconv_good=yes
15513 cat >conftest.$ac_ext <<_ACEOF
15514 #line $LINENO "configure"
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15528 ob = buf, obl = sizeof(buf);
15529 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15530 (iconv(cd, 0, 0, &ob, &obl) ||
15531 !(ob == buf && obl == sizeof(buf)) ||
15536 rm -f conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 mutt_cv_iconv_good=yes
15549 echo "$as_me: program exited with status $ac_status" >&5
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ( exit $ac_status )
15554 mutt_cv_iconv_good=no
15556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15558 LIBS="$mutt_save_LIBS"
15560 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15561 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15562 if test "$mutt_cv_iconv_good" = no; then
15563 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15564 echo "$as_me: error: Try using libiconv instead" >&2;}
15565 { (exit 1); exit 1; }; }
15568 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15569 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15570 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 mutt_save_LIBS="$LIBS"
15574 LIBS="$LIBS $LIBICONV"
15575 if test "$cross_compiling" = yes; then
15576 mutt_cv_iconv_nontrans=no
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15587 #include <string.h>
15594 const char *s = "\304\211";
15596 ib = s, ibl = 2, ob = t, obl = 3;
15597 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15598 iconv(cd, &ib, &ibl, &ob, &obl));
15602 rm -f conftest$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 mutt_cv_iconv_nontrans=no
15615 echo "$as_me: program exited with status $ac_status" >&5
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ( exit $ac_status )
15620 mutt_cv_iconv_nontrans=yes
15622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15624 LIBS="$mutt_save_LIBS"
15626 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15627 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15628 if test "$mutt_cv_iconv_nontrans" = yes; then
15629 cat >>confdefs.h <<\_ACEOF
15630 #define ICONV_NONTRANS 1
15634 cat >>confdefs.h <<\_ACEOF
15635 #define ICONV_NONTRANS 0
15640 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15642 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15644 cat >>confdefs.h <<\_ACEOF
15645 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15650 for ac_func in bind_textdomain_codeset
15652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 echo "$as_me:$LINENO: checking for $ac_func" >&5
15654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15655 if eval "test \"\${$as_ac_var+set}\" = set"; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 /* System header to define __stub macros and hopefully few prototypes,
15666 which can conflict with char $ac_func (); below.
15667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15668 <limits.h> exists even on freestanding compilers. */
15670 # include <limits.h>
15672 # include <assert.h>
15674 /* Override any gcc2 internal prototype to avoid an error. */
15679 /* We use char because int might match the return type of a gcc2
15680 builtin and then its argument prototype would still apply. */
15682 /* The GNU C library defines this for functions which it implements
15683 to always fail with ENOSYS. Some functions are actually named
15684 something starting with __ and the normal name is an alias. */
15685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15688 char (*f) () = $ac_func;
15697 return f != $ac_func;
15702 rm -f conftest.$ac_objext conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -s conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 eval "$as_ac_var=yes"
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 eval "$as_ac_var=no"
15721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15739 for ac_header in wchar.h
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15751 # Is the header compilable?
15752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 $ac_includes_default
15762 #include <$ac_header>
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15783 rm -f conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.$ac_ext <<_ACEOF
15791 #line $LINENO "configure"
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } >/dev/null; then
15807 if test -s conftest.err; then
15808 ac_cpp_err=$ac_c_preproc_warn_flag
15815 if test -z "$ac_cpp_err"; then
15816 ac_header_preproc=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc in
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15836 ## ------------------------------------ ##
15837 ## Report this to bug-autoconf@gnu.org. ##
15838 ## ------------------------------------ ##
15841 sed "s/^/$as_me: WARNING: /" >&2
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852 ## ------------------------------------ ##
15853 ## Report this to bug-autoconf@gnu.org. ##
15854 ## ------------------------------------ ##
15857 sed "s/^/$as_me: WARNING: /" >&2
15860 echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 eval "$as_ac_Header=$ac_header_preproc"
15867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15881 echo "$as_me:$LINENO: checking for wchar_t" >&5
15882 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15883 if test "${mutt_cv_wchar_t+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15887 #line $LINENO "configure"
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15894 #include <stddef.h>
15895 #include <stdlib.h>
15896 #ifdef HAVE_WCHAR_H
15903 wchar_t wc; return 0;
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910 (eval $ac_compile) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 mutt_cv_wchar_t=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15929 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15930 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15932 if test "$mutt_cv_wchar_t" = no; then
15934 cat >>confdefs.h <<\_ACEOF
15935 #define wchar_t int
15940 echo "$as_me:$LINENO: checking for wint_t" >&5
15941 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15942 if test "${mutt_cv_wint_t+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 cat >conftest.$ac_ext <<_ACEOF
15946 #line $LINENO "configure"
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15953 #include <stddef.h>
15954 #include <stdlib.h>
15955 #ifdef HAVE_WCHAR_H
15962 wint_t wc; return 0;
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15986 rm -f conftest.$ac_objext conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15989 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15991 if test "$mutt_cv_wint_t" = no; then
15993 cat >>confdefs.h <<\_ACEOF
16000 for ac_header in wctype.h
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16012 # Is the header compilable?
16013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16016 #line $LINENO "configure"
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 $ac_includes_default
16023 #include <$ac_header>
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_header_compiler=yes
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_compiler=no
16044 rm -f conftest.$ac_objext conftest.$ac_ext
16045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16046 echo "${ECHO_T}$ac_header_compiler" >&6
16048 # Is the header present?
16049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16051 cat >conftest.$ac_ext <<_ACEOF
16052 #line $LINENO "configure"
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <$ac_header>
16060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } >/dev/null; then
16068 if test -s conftest.err; then
16069 ac_cpp_err=$ac_c_preproc_warn_flag
16076 if test -z "$ac_cpp_err"; then
16077 ac_header_preproc=yes
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 ac_header_preproc=no
16084 rm -f conftest.err conftest.$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16086 echo "${ECHO_T}$ac_header_preproc" >&6
16088 # So? What about this header?
16089 case $ac_header_compiler:$ac_header_preproc in
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16097 ## ------------------------------------ ##
16098 ## Report this to bug-autoconf@gnu.org. ##
16099 ## ------------------------------------ ##
16102 sed "s/^/$as_me: WARNING: /" >&2
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 ## ------------------------------------ ##
16114 ## Report this to bug-autoconf@gnu.org. ##
16115 ## ------------------------------------ ##
16118 sed "s/^/$as_me: WARNING: /" >&2
16121 echo "$as_me:$LINENO: checking for $ac_header" >&5
16122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 eval "$as_ac_Header=$ac_header_preproc"
16128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 for ac_func in iswalnum iswalpha iswcntrl iswdigit
16147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 echo "$as_me:$LINENO: checking for $ac_func" >&5
16149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_var+set}\" = set"; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 cat >conftest.$ac_ext <<_ACEOF
16154 #line $LINENO "configure"
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 /* System header to define __stub macros and hopefully few prototypes,
16161 which can conflict with char $ac_func (); below.
16162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16163 <limits.h> exists even on freestanding compilers. */
16165 # include <limits.h>
16167 # include <assert.h>
16169 /* Override any gcc2 internal prototype to avoid an error. */
16174 /* We use char because int might match the return type of a gcc2
16175 builtin and then its argument prototype would still apply. */
16177 /* The GNU C library defines this for functions which it implements
16178 to always fail with ENOSYS. Some functions are actually named
16179 something starting with __ and the normal name is an alias. */
16180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16183 char (*f) () = $ac_func;
16192 return f != $ac_func;
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199 (eval $ac_link) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 eval "$as_ac_var=yes"
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 eval "$as_ac_var=no"
16216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16234 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 /* System header to define __stub macros and hopefully few prototypes,
16250 which can conflict with char $ac_func (); below.
16251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16252 <limits.h> exists even on freestanding compilers. */
16254 # include <limits.h>
16256 # include <assert.h>
16258 /* Override any gcc2 internal prototype to avoid an error. */
16263 /* We use char because int might match the return type of a gcc2
16264 builtin and then its argument prototype would still apply. */
16266 /* The GNU C library defines this for functions which it implements
16267 to always fail with ENOSYS. Some functions are actually named
16268 something starting with __ and the normal name is an alias. */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16272 char (*f) () = $ac_func;
16281 return f != $ac_func;
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288 (eval $ac_link) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 eval "$as_ac_var=yes"
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 eval "$as_ac_var=no"
16305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16309 if test `eval echo '${'$as_ac_var'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16320 for ac_func in iswxdigit towupper towlower
16322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16323 echo "$as_me:$LINENO: checking for $ac_func" >&5
16324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16325 if eval "test \"\${$as_ac_var+set}\" = set"; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 cat >conftest.$ac_ext <<_ACEOF
16329 #line $LINENO "configure"
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 /* System header to define __stub macros and hopefully few prototypes,
16336 which can conflict with char $ac_func (); below.
16337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16338 <limits.h> exists even on freestanding compilers. */
16340 # include <limits.h>
16342 # include <assert.h>
16344 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16352 /* The GNU C library defines this for functions which it implements
16353 to always fail with ENOSYS. Some functions are actually named
16354 something starting with __ and the normal name is an alias. */
16355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16358 char (*f) () = $ac_func;
16367 return f != $ac_func;
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16374 (eval $ac_link) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -s conftest$ac_exeext'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 eval "$as_ac_var=yes"
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 eval "$as_ac_var=no"
16391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16395 if test `eval echo '${'$as_ac_var'}'` = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16405 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16406 if test "${mutt_cv_mbstate_t+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 cat >conftest.$ac_ext <<_ACEOF
16410 #line $LINENO "configure"
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16417 #include <stddef.h>
16418 #include <stdlib.h>
16419 #ifdef HAVE_WCHAR_H
16426 mbstate_t s; return 0;
16431 rm -f conftest.$ac_objext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16433 (eval $ac_compile) 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 mutt_cv_mbstate_t=yes
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 mutt_cv_mbstate_t=no
16450 rm -f conftest.$ac_objext conftest.$ac_ext
16452 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16453 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16455 if test "$mutt_cv_mbstate_t" = no; then
16457 cat >>confdefs.h <<\_ACEOF
16458 #define mbstate_t int
16465 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16466 if test "${with_wc_funcs+set}" = set; then
16467 withval="$with_wc_funcs"
16471 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16472 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16473 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16474 if test "${mutt_cv_wc_funcs+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 mutt_cv_wc_funcs=no
16478 cat >conftest.$ac_ext <<_ACEOF
16479 #line $LINENO "configure"
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16486 #define _XOPEN_SOURCE 1
16487 #include <stddef.h>
16488 #include <stdlib.h>
16489 #ifdef HAVE_WCTYPE_H
16490 #include <wctype.h>
16492 #ifdef HAVE_WCHAR_H
16498 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16499 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16504 rm -f conftest.$ac_objext conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506 (eval $ac_link) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -s conftest$ac_exeext'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 mutt_cv_wc_funcs=yes
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16524 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16525 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16526 wc_funcs=$mutt_cv_wc_funcs
16529 if test $wc_funcs = yes; then
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_WC_FUNCS 1
16537 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16538 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16539 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16543 #line $LINENO "configure"
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include <langinfo.h>
16553 char* cs = nl_langinfo(CODESET);
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 mutt_cv_langinfo_codeset=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 mutt_cv_langinfo_codeset=no
16577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16579 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16580 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16581 if test $mutt_cv_langinfo_codeset = yes; then
16583 cat >>confdefs.h <<\_ACEOF
16584 #define HAVE_LANGINFO_CODESET 1
16589 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16590 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16591 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <langinfo.h>
16605 char* cs = nl_langinfo(YESEXPR);
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 mutt_cv_langinfo_yesexpr=yes
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 mutt_cv_langinfo_yesexpr=no
16629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16631 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16632 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16633 if test $mutt_cv_langinfo_yesexpr = yes; then
16635 cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_LANGINFO_YESEXPR 1
16643 # Check whether --with-libesmtp or --without-libesmtp was given.
16644 if test "${with_libesmtp+set}" = set; then
16645 withval="$with_libesmtp"
16646 if test "$with_libesmtp" != "no"
16648 mutt_libesmtp_check_path="$PATH"
16650 if test "$with_libesmtp" != "yes"
16652 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16655 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16656 set dummy libesmtp-config; ac_word=$2
16657 echo "$as_me:$LINENO: checking for $ac_word" >&5
16658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16659 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 case $mutt_libesmtp_config_path in
16664 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $mutt_libesmtp_check_path
16671 test -z "$as_dir" && as_dir=.
16672 for ac_exec_ext in '' $ac_executable_extensions; do
16673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16681 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16685 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16687 if test -n "$mutt_libesmtp_config_path"; then
16688 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16689 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16691 echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6
16696 if test "$mutt_libesmtp_config_path" = "no"
16698 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16699 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16700 { (exit 1); exit 1; }; }
16703 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16704 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16706 temp_CFLAGS="$CFLAGS"
16707 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16708 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16709 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16710 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16711 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16715 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16717 # Is the header compilable?
16718 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16719 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line $LINENO "configure"
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $ac_includes_default
16728 #include <libesmtp.h>
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_header_compiler=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_header_compiler=no
16749 rm -f conftest.$ac_objext conftest.$ac_ext
16750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16751 echo "${ECHO_T}$ac_header_compiler" >&6
16753 # Is the header present?
16754 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16755 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16757 #line $LINENO "configure"
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 #include <libesmtp.h>
16765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } >/dev/null; then
16773 if test -s conftest.err; then
16774 ac_cpp_err=$ac_c_preproc_warn_flag
16781 if test -z "$ac_cpp_err"; then
16782 ac_header_preproc=yes
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16787 ac_header_preproc=no
16789 rm -f conftest.err conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6
16793 # So? What about this header?
16794 case $ac_header_compiler:$ac_header_preproc in
16796 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16799 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16802 ## ------------------------------------ ##
16803 ## Report this to bug-autoconf@gnu.org. ##
16804 ## ------------------------------------ ##
16807 sed "s/^/$as_me: WARNING: /" >&2
16810 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16811 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
16813 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16818 ## ------------------------------------ ##
16819 ## Report this to bug-autoconf@gnu.org. ##
16820 ## ------------------------------------ ##
16823 sed "s/^/$as_me: WARNING: /" >&2
16826 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16827 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16828 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 ac_cv_header_libesmtp_h=$ac_header_preproc
16833 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16834 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16837 if test $ac_cv_header_libesmtp_h = yes; then
16840 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16841 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16842 { (exit 1); exit 1; }; }
16846 CFLAGS="$temp_CFLAGS"
16848 temp_CFLAGS="$CFLAGS"
16850 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16851 LIBS="$LIBS $mutt_libesmtp_libs"
16853 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16854 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16855 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 ac_check_lib_save_LIBS=$LIBS
16859 LIBS="-lesmtp $LIBS"
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16868 /* Override any gcc2 internal prototype to avoid an error. */
16872 /* We use char because int might match the return type of a gcc2
16873 builtin and then its argument prototype would still apply. */
16874 char smtp_create_session ();
16878 smtp_create_session ();
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16885 (eval $ac_link) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -s conftest$ac_exeext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_lib_esmtp_smtp_create_session=yes
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_esmtp_smtp_create_session=no
16902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16905 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16906 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16907 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16908 cat >>confdefs.h <<_ACEOF
16909 #define HAVE_LIBESMTP 1
16912 LIBS="-lesmtp $LIBS"
16915 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16916 echo "$as_me: error: Could not find libesmtp" >&2;}
16917 { (exit 1); exit 1; }; }
16920 CFLAGS="$temp_CFLAGS"
16929 if test x$use_libesmtp = xyes; then
16930 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16931 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16932 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16935 cat >>confdefs.h <<\_ACEOF
16936 #define USE_LIBESMTP 1
16941 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"
16942 cat >confcache <<\_ACEOF
16943 # This file is a shell script that caches the results of configure
16944 # tests run on this system so they can be shared between configure
16945 # scripts and configure runs, see configure's option --config-cache.
16946 # It is not useful on other systems. If it contains results you don't
16947 # want to keep, you may remove or edit it.
16949 # config.status only pays attention to the cache file if you give it
16950 # the --recheck option to rerun configure.
16952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16954 # following values.
16958 # The following way of writing the cache mishandles newlines in values,
16959 # but we know of no workaround that is simple, portable, and efficient.
16960 # So, don't put newlines in cache variables' values.
16961 # Ultrix sh set writes to stderr and can't be redirected directly,
16962 # and sets the high bit in the cache file unless we assign to the vars.
16965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16967 # `set' does not quote correctly, so add quotes (double-quote
16968 # substitution turns \\\\ into \\, and sed turns \\ into \).
16971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16974 # `set' quotes correctly as required by POSIX, so do not add quotes.
16976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16987 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16988 if test -w $cache_file; then
16989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16990 cat confcache >$cache_file
16992 echo "not updating unwritable cache $cache_file"
16997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16998 # Let make expand exec_prefix.
16999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17001 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17002 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17003 # trailing colons and then remove the whole line if VPATH becomes empty
17004 # (actually we leave an empty line to preserve line numbers).
17005 if test "x$srcdir" = x.; then
17006 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17007 s/:*\$(srcdir):*/:/;
17008 s/:*\${srcdir}:*/:/;
17010 s/^\([^=]*=[ ]*\):*/\1/;
17016 DEFS=-DHAVE_CONFIG_H
17020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17021 # 1. Remove the extension, and $U if already installed.
17022 ac_i=`echo "$ac_i" |
17023 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17025 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17026 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17028 LIBOBJS=$ac_libobjs
17030 LTLIBOBJS=$ac_ltlibobjs
17033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17034 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17035 Usually this means the macro was only invoked conditionally." >&5
17036 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&2;}
17038 { (exit 1); exit 1; }; }
17040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17041 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&5
17043 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&2;}
17045 { (exit 1); exit 1; }; }
17047 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
17048 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&5
17050 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&2;}
17052 { (exit 1); exit 1; }; }
17054 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
17055 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&5
17057 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
17058 Usually this means the macro was only invoked conditionally." >&2;}
17059 { (exit 1); exit 1; }; }
17061 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
17062 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&5
17064 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
17065 Usually this means the macro was only invoked conditionally." >&2;}
17066 { (exit 1); exit 1; }; }
17068 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
17069 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&5
17071 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
17072 Usually this means the macro was only invoked conditionally." >&2;}
17073 { (exit 1); exit 1; }; }
17075 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17076 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&5
17078 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17079 Usually this means the macro was only invoked conditionally." >&2;}
17080 { (exit 1); exit 1; }; }
17082 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17083 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&5
17085 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17086 Usually this means the macro was only invoked conditionally." >&2;}
17087 { (exit 1); exit 1; }; }
17090 : ${CONFIG_STATUS=./config.status}
17091 ac_clean_files_save=$ac_clean_files
17092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17093 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17094 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17095 cat >$CONFIG_STATUS <<_ACEOF
17097 # Generated by $as_me.
17098 # Run this file to recreate the current configuration.
17099 # Compiler output produced by configure, useful for debugging
17100 # configure, is in config.log if it exists.
17103 ac_cs_recheck=false
17105 SHELL=\${CONFIG_SHELL-$SHELL}
17108 cat >>$CONFIG_STATUS <<\_ACEOF
17109 ## --------------------- ##
17110 ## M4sh Initialization. ##
17111 ## --------------------- ##
17113 # Be Bourne compatible
17114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17117 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17118 # is contrary to our usage. Disable this feature.
17119 alias -g '${1+"$@"}'='"$@"'
17120 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17124 # Support unset when possible.
17125 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17132 # Work around bugs in pre-3.0 UWIN ksh.
17133 $as_unset ENV MAIL MAILPATH
17140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17142 LC_TELEPHONE LC_TIME
17144 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17145 eval $as_var=C; export $as_var
17151 # Required to use basename.
17152 if expr a : '\(a\)' >/dev/null 2>&1; then
17158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17159 as_basename=basename
17165 # Name of the executable.
17166 as_me=`$as_basename "$0" ||
17167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17168 X"$0" : 'X\(//\)$' \| \
17169 X"$0" : 'X\(/\)$' \| \
17170 . : '\(.\)' 2>/dev/null ||
17172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17173 /^X\/\(\/\/\)$/{ s//\1/; q; }
17174 /^X\/\(\/\).*/{ s//\1/; q; }
17178 # PATH needs CR, and LINENO needs CR and PATH.
17179 # Avoid depending upon Character Ranges.
17180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17183 as_cr_digits='0123456789'
17184 as_cr_alnum=$as_cr_Letters$as_cr_digits
17186 # The user is always right.
17187 if test "${PATH_SEPARATOR+set}" != set; then
17188 echo "#! /bin/sh" >conf$$.sh
17189 echo "exit 0" >>conf$$.sh
17191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17200 as_lineno_1=$LINENO
17201 as_lineno_2=$LINENO
17202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17203 test "x$as_lineno_1" != "x$as_lineno_2" &&
17204 test "x$as_lineno_3" = "x$as_lineno_2" || {
17205 # Find who we are. Look in the path if we contain no path at all
17208 *[\\/]* ) as_myself=$0 ;;
17209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17213 test -z "$as_dir" && as_dir=.
17214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17219 # We did not find ourselves, most probably we were run as `sh COMMAND'
17220 # in which case we are not to be found in the path.
17221 if test "x$as_myself" = x; then
17224 if test ! -f "$as_myself"; then
17225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17227 { (exit 1); exit 1; }; }
17229 case $CONFIG_SHELL in
17231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17235 test -z "$as_dir" && as_dir=.
17236 for as_base in sh bash ksh sh5; do
17239 if ("$as_dir/$as_base" -c '
17240 as_lineno_1=$LINENO
17241 as_lineno_2=$LINENO
17242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17243 test "x$as_lineno_1" != "x$as_lineno_2" &&
17244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17247 CONFIG_SHELL=$as_dir/$as_base
17248 export CONFIG_SHELL
17249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17258 # uniformly replaced by the line number. The first 'sed' inserts a
17259 # line-number line before each line; the second 'sed' does the real
17260 # work. The second script uses 'N' to pair each line-number line
17261 # with the numbered line, and appends trailing '-' during
17262 # substitution so that $LINENO is not a special case at line end.
17263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17265 sed '=' <$as_myself |
17270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17273 s,^['$as_cr_digits']*\n,,
17274 ' >$as_me.lineno &&
17275 chmod +x $as_me.lineno ||
17276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17278 { (exit 1); exit 1; }; }
17280 # Don't try to exec as it changes $[0], causing all sort of problems
17281 # (the dirname of $[0] is not the place where we might find the
17282 # original and so on. Autoconf is especially sensible to this).
17284 # Exit status is that of the last command.
17289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17290 *c*,-n*) ECHO_N= ECHO_C='
17292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17296 if expr a : '\(a\)' >/dev/null 2>&1; then
17302 rm -f conf$$ conf$$.exe conf$$.file
17304 if ln -s conf$$.file conf$$ 2>/dev/null; then
17305 # We could just check for DJGPP; but this test a) works b) is more generic
17306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17307 if test -f conf$$.exe; then
17308 # Don't use ln at all; we don't have any links
17313 elif ln conf$$.file conf$$ 2>/dev/null; then
17318 rm -f conf$$ conf$$.exe conf$$.file
17320 if mkdir -p . 2>/dev/null; then
17326 as_executable_p="test -f"
17328 # Sed expression to map a string onto a valid CPP name.
17329 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17331 # Sed expression to map a string onto a valid variable name.
17332 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17336 # We need space, tab and new line, in precisely that order.
17346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17347 # report actual input values of CONFIG_FILES etc. instead of their
17348 # values after options handling. Logging --version etc. is OK.
17352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17353 ## Running $as_me. ##
17358 This file was extended by $as_me, which was
17359 generated by GNU Autoconf 2.57. Invocation command line was
17361 CONFIG_FILES = $CONFIG_FILES
17362 CONFIG_HEADERS = $CONFIG_HEADERS
17363 CONFIG_LINKS = $CONFIG_LINKS
17364 CONFIG_COMMANDS = $CONFIG_COMMANDS
17368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17372 # Files that config.status was made for.
17373 if test -n "$ac_config_files"; then
17374 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17377 if test -n "$ac_config_headers"; then
17378 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17381 if test -n "$ac_config_links"; then
17382 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17385 if test -n "$ac_config_commands"; then
17386 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17392 \`$as_me' instantiates files from templates according to the
17393 current configuration.
17395 Usage: $0 [OPTIONS] [FILE]...
17397 -h, --help print this help, then exit
17398 -V, --version print version number, then exit
17399 -q, --quiet do not print progress messages
17400 -d, --debug don't remove temporary files
17401 --recheck update $as_me by reconfiguring in the same conditions
17402 --file=FILE[:TEMPLATE]
17403 instantiate the configuration file FILE
17404 --header=FILE[:TEMPLATE]
17405 instantiate the configuration header FILE
17407 Configuration files:
17410 Configuration headers:
17413 Configuration commands:
17416 Report bugs to <bug-autoconf@gnu.org>."
17419 cat >>$CONFIG_STATUS <<_ACEOF
17422 configured by $0, generated by GNU Autoconf 2.57,
17423 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17425 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17426 Free Software Foundation, Inc.
17427 This config.status script is free software; the Free Software Foundation
17428 gives unlimited permission to copy, distribute and modify it."
17433 cat >>$CONFIG_STATUS <<\_ACEOF
17434 # If no file are specified by the user, then we need to provide default
17435 # value. By we need to know if files were specified by the user.
17441 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17442 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17450 *) # This is not an option, so the user has probably given explicit
17453 ac_need_defaults=false;;
17457 # Handling of the options.
17459 cat >>$CONFIG_STATUS <<\_ACEOF
17460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17462 --version | --vers* | -V )
17463 echo "$ac_cs_version"; exit 0 ;;
17465 # Conflict between --help and --header
17466 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17467 Try \`$0 --help' for more information." >&5
17468 echo "$as_me: error: ambiguous option: $1
17469 Try \`$0 --help' for more information." >&2;}
17470 { (exit 1); exit 1; }; };;
17471 --help | --hel | -h )
17472 echo "$ac_cs_usage"; exit 0 ;;
17473 --debug | --d* | -d )
17475 --file | --fil | --fi | --f )
17477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17478 ac_need_defaults=false;;
17479 --header | --heade | --head | --hea )
17481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17482 ac_need_defaults=false;;
17483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17487 # This is an error.
17488 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17489 Try \`$0 --help' for more information." >&5
17490 echo "$as_me: error: unrecognized option: $1
17491 Try \`$0 --help' for more information." >&2;}
17492 { (exit 1); exit 1; }; } ;;
17494 *) ac_config_targets="$ac_config_targets $1" ;;
17500 ac_configure_extra_args=
17502 if $ac_cs_silent; then
17504 ac_configure_extra_args="$ac_configure_extra_args --silent"
17508 cat >>$CONFIG_STATUS <<_ACEOF
17509 if \$ac_cs_recheck; then
17510 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17511 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17516 cat >>$CONFIG_STATUS <<_ACEOF
17518 # INIT-COMMANDS section.
17521 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17528 cat >>$CONFIG_STATUS <<\_ACEOF
17529 for ac_config_target in $ac_config_targets
17531 case "$ac_config_target" in
17532 # Handling of arguments.
17533 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17534 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17535 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17536 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17537 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17538 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17539 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17540 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17541 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17542 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17543 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17544 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17545 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17548 { (exit 1); exit 1; }; };;
17552 # If the user did not use the arguments to specify the items to instantiate,
17553 # then the envvar interface is used. Set only those that are not.
17554 # We use the long form for the default assignment because of an extremely
17555 # bizarre bug on SunOS 4.1.3.
17556 if $ac_need_defaults; then
17557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17562 # Have a temporary directory for convenience. Make it in the build tree
17563 # simply because there is no reason to put it here, and in addition,
17564 # creating and moving files from /tmp can sometimes cause problems.
17565 # Create a temporary directory, and hook for its removal unless debugging.
17568 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17569 trap '{ (exit 1); exit 1; }' 1 2 13 15
17572 # Create a (secure) tmp directory for tmp files.
17575 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17576 test -n "$tmp" && test -d "$tmp"
17579 tmp=./confstat$$-$RANDOM
17580 (umask 077 && mkdir $tmp)
17583 echo "$me: cannot create a temporary directory in ." >&2
17584 { (exit 1); exit 1; }
17589 cat >>$CONFIG_STATUS <<_ACEOF
17592 # CONFIG_FILES section.
17595 # No need to generate the scripts if there are no CONFIG_FILES.
17596 # This happens for instance when ./config.status config.h
17597 if test -n "\$CONFIG_FILES"; then
17598 # Protect against being on the right side of a sed subst in config.status.
17599 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17600 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17601 s,@SHELL@,$SHELL,;t t
17602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17608 s,@exec_prefix@,$exec_prefix,;t t
17609 s,@prefix@,$prefix,;t t
17610 s,@program_transform_name@,$program_transform_name,;t t
17611 s,@bindir@,$bindir,;t t
17612 s,@sbindir@,$sbindir,;t t
17613 s,@libexecdir@,$libexecdir,;t t
17614 s,@datadir@,$datadir,;t t
17615 s,@sysconfdir@,$sysconfdir,;t t
17616 s,@sharedstatedir@,$sharedstatedir,;t t
17617 s,@localstatedir@,$localstatedir,;t t
17618 s,@libdir@,$libdir,;t t
17619 s,@includedir@,$includedir,;t t
17620 s,@oldincludedir@,$oldincludedir,;t t
17621 s,@infodir@,$infodir,;t t
17622 s,@mandir@,$mandir,;t t
17623 s,@build_alias@,$build_alias,;t t
17624 s,@host_alias@,$host_alias,;t t
17625 s,@target_alias@,$target_alias,;t t
17626 s,@DEFS@,$DEFS,;t t
17627 s,@ECHO_C@,$ECHO_C,;t t
17628 s,@ECHO_N@,$ECHO_N,;t t
17629 s,@ECHO_T@,$ECHO_T,;t t
17630 s,@LIBS@,$LIBS,;t t
17631 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17632 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17633 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17634 s,@CYGPATH_W@,$CYGPATH_W,;t t
17635 s,@PACKAGE@,$PACKAGE,;t t
17636 s,@VERSION@,$VERSION,;t t
17637 s,@ACLOCAL@,$ACLOCAL,;t t
17638 s,@AUTOCONF@,$AUTOCONF,;t t
17639 s,@AUTOMAKE@,$AUTOMAKE,;t t
17640 s,@AUTOHEADER@,$AUTOHEADER,;t t
17641 s,@MAKEINFO@,$MAKEINFO,;t t
17642 s,@AMTAR@,$AMTAR,;t t
17643 s,@install_sh@,$install_sh,;t t
17644 s,@STRIP@,$STRIP,;t t
17645 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17646 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17648 s,@SET_MAKE@,$SET_MAKE,;t t
17649 s,@am__leading_dot@,$am__leading_dot,;t t
17650 s,@build@,$build,;t t
17651 s,@build_cpu@,$build_cpu,;t t
17652 s,@build_vendor@,$build_vendor,;t t
17653 s,@build_os@,$build_os,;t t
17654 s,@host@,$host,;t t
17655 s,@host_cpu@,$host_cpu,;t t
17656 s,@host_vendor@,$host_vendor,;t t
17657 s,@host_os@,$host_os,;t t
17659 s,@CFLAGS@,$CFLAGS,;t t
17660 s,@LDFLAGS@,$LDFLAGS,;t t
17661 s,@CPPFLAGS@,$CPPFLAGS,;t t
17662 s,@ac_ct_CC@,$ac_ct_CC,;t t
17663 s,@EXEEXT@,$EXEEXT,;t t
17664 s,@OBJEXT@,$OBJEXT,;t t
17665 s,@DEPDIR@,$DEPDIR,;t t
17666 s,@am__include@,$am__include,;t t
17667 s,@am__quote@,$am__quote,;t t
17668 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17669 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17670 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17671 s,@CCDEPMODE@,$CCDEPMODE,;t t
17672 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17673 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17675 s,@EGREP@,$EGREP,;t t
17677 s,@ANSI2KNR@,$ANSI2KNR,;t t
17678 s,@RANLIB@,$RANLIB,;t t
17679 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17681 s,@ac_ct_AR@,$ac_ct_AR,;t t
17685 s,@DEBUGGER@,$DEBUGGER,;t t
17686 s,@SENDMAIL@,$SENDMAIL,;t t
17687 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
17688 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
17689 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
17691 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17692 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17693 s,@SUBVERSION@,$SUBVERSION,;t t
17694 s,@ISPELL@,$ISPELL,;t t
17695 s,@LIBOBJS@,$LIBOBJS,;t t
17696 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17697 s,@docdir@,$docdir,;t t
17698 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17699 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17700 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17701 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17702 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17703 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17704 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17705 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17706 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17707 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
17708 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
17709 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
17710 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
17711 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
17712 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17713 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17714 s,@MUTTLIBS@,$MUTTLIBS,;t t
17715 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17716 s,@LIBIMAP@,$LIBIMAP,;t t
17717 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17718 s,@ALLOCA@,$ALLOCA,;t t
17719 s,@GLIBC21@,$GLIBC21,;t t
17720 s,@LIBICONV@,$LIBICONV,;t t
17721 s,@USE_NLS@,$USE_NLS,;t t
17722 s,@MSGFMT@,$MSGFMT,;t t
17723 s,@GMSGFMT@,$GMSGFMT,;t t
17724 s,@XGETTEXT@,$XGETTEXT,;t t
17725 s,@INTLBISON@,$INTLBISON,;t t
17726 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17727 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17728 s,@CATALOGS@,$CATALOGS,;t t
17729 s,@CATOBJEXT@,$CATOBJEXT,;t t
17730 s,@GMOFILES@,$GMOFILES,;t t
17731 s,@INTLLIBS@,$INTLLIBS,;t t
17732 s,@INTLOBJS@,$INTLOBJS,;t t
17733 s,@POFILES@,$POFILES,;t t
17734 s,@POSUB@,$POSUB,;t t
17735 s,@DATADIRNAME@,$DATADIRNAME,;t t
17736 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17737 s,@GENCAT@,$GENCAT,;t t
17738 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17739 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17740 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17741 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17746 cat >>$CONFIG_STATUS <<\_ACEOF
17747 # Split the substitutions into bite-sized pieces for seds with
17748 # small command number limits, like on Digital OSF/1 and HP-UX.
17749 ac_max_sed_lines=48
17750 ac_sed_frag=1 # Number of current file.
17751 ac_beg=1 # First line for current file.
17752 ac_end=$ac_max_sed_lines # Line after last line for current file.
17755 while $ac_more_lines; do
17756 if test $ac_beg -gt 1; then
17757 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17759 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17761 if test ! -s $tmp/subs.frag; then
17762 ac_more_lines=false
17764 # The purpose of the label and of the branching condition is to
17765 # speed up the sed processing (if there are no `@' at all, there
17766 # is no need to browse any of the substitutions).
17767 # These are the two extra sed commands mentioned above.
17769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17770 if test -z "$ac_sed_cmds"; then
17771 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17773 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17775 ac_sed_frag=`expr $ac_sed_frag + 1`
17777 ac_end=`expr $ac_end + $ac_max_sed_lines`
17780 if test -z "$ac_sed_cmds"; then
17783 fi # test -n "$CONFIG_FILES"
17786 cat >>$CONFIG_STATUS <<\_ACEOF
17787 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17790 - | *:- | *:-:* ) # input from stdin
17792 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17793 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17794 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17796 * ) ac_file_in=$ac_file.in ;;
17799 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17800 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17802 X"$ac_file" : 'X\(//\)[^/]' \| \
17803 X"$ac_file" : 'X\(//\)$' \| \
17804 X"$ac_file" : 'X\(/\)' \| \
17805 . : '\(.\)' 2>/dev/null ||
17807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17809 /^X\(\/\/\)$/{ s//\1/; q; }
17810 /^X\(\/\).*/{ s//\1/; q; }
17812 { if $as_mkdir_p; then
17817 while test ! -d "$as_dir"; do
17818 as_dirs="$as_dir $as_dirs"
17819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X"$as_dir" : 'X\(//\)[^/]' \| \
17822 X"$as_dir" : 'X\(//\)$' \| \
17823 X"$as_dir" : 'X\(/\)' \| \
17824 . : '\(.\)' 2>/dev/null ||
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828 /^X\(\/\/\)$/{ s//\1/; q; }
17829 /^X\(\/\).*/{ s//\1/; q; }
17832 test ! -n "$as_dirs" || mkdir $as_dirs
17833 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17835 { (exit 1); exit 1; }; }; }
17839 if test "$ac_dir" != .; then
17840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17841 # A "../" for each directory in $ac_dir_suffix.
17842 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17844 ac_dir_suffix= ac_top_builddir=
17848 .) # No --srcdir option. We are building in place.
17850 if test -z "$ac_top_builddir"; then
17853 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17855 [\\/]* | ?:[\\/]* ) # Absolute path.
17856 ac_srcdir=$srcdir$ac_dir_suffix;
17857 ac_top_srcdir=$srcdir ;;
17858 *) # Relative path.
17859 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17860 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17862 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17864 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17865 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17866 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17867 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17872 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17875 if test x"$ac_file" != x-; then
17876 { echo "$as_me:$LINENO: creating $ac_file" >&5
17877 echo "$as_me: creating $ac_file" >&6;}
17880 # Let's still pretend it is `configure' which instantiates (i.e., don't
17881 # use $as_me), people would be surprised to read:
17882 # /* config.h. Generated by config.status. */
17883 if test x"$ac_file" = x-; then
17886 configure_input="$ac_file. "
17888 configure_input=$configure_input"Generated from `echo $ac_file_in |
17889 sed 's,.*/,,'` by configure."
17891 # First look for the input files in the build tree, otherwise in the
17893 ac_file_inputs=`IFS=:
17894 for f in $ac_file_in; do
17896 -) echo $tmp/stdin ;;
17898 # Absolute (can't be DOS-style, as IFS=:)
17899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17900 echo "$as_me: error: cannot find input file: $f" >&2;}
17901 { (exit 1); exit 1; }; }
17904 if test -f "$f"; then
17907 elif test -f "$srcdir/$f"; then
17912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17913 echo "$as_me: error: cannot find input file: $f" >&2;}
17914 { (exit 1); exit 1; }; }
17917 done` || { (exit 1); exit 1; }
17919 cat >>$CONFIG_STATUS <<_ACEOF
17923 cat >>$CONFIG_STATUS <<\_ACEOF
17925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17926 s,@configure_input@,$configure_input,;t t
17927 s,@srcdir@,$ac_srcdir,;t t
17928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17929 s,@top_srcdir@,$ac_top_srcdir,;t t
17930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17931 s,@builddir@,$ac_builddir,;t t
17932 s,@abs_builddir@,$ac_abs_builddir,;t t
17933 s,@top_builddir@,$ac_top_builddir,;t t
17934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17935 s,@INSTALL@,$ac_INSTALL,;t t
17936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17938 if test x"$ac_file" != x-; then
17939 mv $tmp/out $ac_file
17947 cat >>$CONFIG_STATUS <<\_ACEOF
17950 # CONFIG_HEADER section.
17953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17956 # ac_d sets the value in "#define NAME VALUE" lines.
17957 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17958 ac_dB='[ ].*$,\1#\2'
17961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17962 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17963 ac_uB='$,\1#\2define\3'
17967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17970 - | *:- | *:-:* ) # input from stdin
17972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17976 * ) ac_file_in=$ac_file.in ;;
17979 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17980 echo "$as_me: creating $ac_file" >&6;}
17982 # First look for the input files in the build tree, otherwise in the
17984 ac_file_inputs=`IFS=:
17985 for f in $ac_file_in; do
17987 -) echo $tmp/stdin ;;
17989 # Absolute (can't be DOS-style, as IFS=:)
17990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17991 echo "$as_me: error: cannot find input file: $f" >&2;}
17992 { (exit 1); exit 1; }; }
17995 if test -f "$f"; then
17998 elif test -f "$srcdir/$f"; then
18003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18004 echo "$as_me: error: cannot find input file: $f" >&2;}
18005 { (exit 1); exit 1; }; }
18008 done` || { (exit 1); exit 1; }
18009 # Remove the trailing spaces.
18010 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18014 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18015 # `conftest.undefs', that substitutes the proper values into
18016 # config.h.in to produce config.h. The first handles `#define'
18017 # templates, and the second `#undef' templates.
18018 # And first: Protect against being on the right side of a sed subst in
18019 # config.status. Protect against being in an unquoted here document
18020 # in config.status.
18021 rm -f conftest.defines conftest.undefs
18022 # Using a here document instead of a string reduces the quoting nightmare.
18023 # Putting comments in sed scripts is not portable.
18025 # `end' is used to avoid that the second main sed command (meant for
18026 # 0-ary CPP macros) applies to n-ary macro definitions.
18027 # See the Autoconf documentation for `clear'.
18028 cat >confdef2sed.sed <<\_ACEOF
18033 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18035 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18038 # If some macros were called several times there might be several times
18039 # the same #defines, which is useless. Nevertheless, we may not want to
18040 # sort them, since we want the *last* AC-DEFINE to be honored.
18041 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18042 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18043 rm -f confdef2sed.sed
18045 # This sed command replaces #undef with comments. This is necessary, for
18046 # example, in the case of _POSIX_SOURCE, which is predefined and required
18047 # on some systems where configure will not decide to define it.
18048 cat >>conftest.undefs <<\_ACEOF
18049 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18052 # Break up conftest.defines because some shells have a limit on the size
18053 # of here documents, and old seds have small limits too (100 cmds).
18054 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18055 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18056 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18057 echo ' :' >>$CONFIG_STATUS
18058 rm -f conftest.tail
18059 while grep . conftest.defines >/dev/null
18061 # Write a limited-size here document to $tmp/defines.sed.
18062 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18063 # Speed up: don't consider the non `#define' lines.
18064 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18065 # Work around the forget-to-reset-the-flag bug.
18066 echo 't clr' >>$CONFIG_STATUS
18067 echo ': clr' >>$CONFIG_STATUS
18068 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18070 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18072 mv $tmp/out $tmp/in
18074 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18075 rm -f conftest.defines
18076 mv conftest.tail conftest.defines
18078 rm -f conftest.defines
18079 echo ' fi # grep' >>$CONFIG_STATUS
18080 echo >>$CONFIG_STATUS
18082 # Break up conftest.undefs because some shells have a limit on the size
18083 # of here documents, and old seds have small limits too (100 cmds).
18084 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18085 rm -f conftest.tail
18086 while grep . conftest.undefs >/dev/null
18088 # Write a limited-size here document to $tmp/undefs.sed.
18089 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18090 # Speed up: don't consider the non `#undef'
18091 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18092 # Work around the forget-to-reset-the-flag bug.
18093 echo 't clr' >>$CONFIG_STATUS
18094 echo ': clr' >>$CONFIG_STATUS
18095 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18097 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18099 mv $tmp/out $tmp/in
18101 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18102 rm -f conftest.undefs
18103 mv conftest.tail conftest.undefs
18105 rm -f conftest.undefs
18107 cat >>$CONFIG_STATUS <<\_ACEOF
18108 # Let's still pretend it is `configure' which instantiates (i.e., don't
18109 # use $as_me), people would be surprised to read:
18110 # /* config.h. Generated by config.status. */
18111 if test x"$ac_file" = x-; then
18112 echo "/* Generated by configure. */" >$tmp/config.h
18114 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18116 cat $tmp/in >>$tmp/config.h
18118 if test x"$ac_file" != x-; then
18119 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18120 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18121 echo "$as_me: $ac_file is unchanged" >&6;}
18123 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18125 X"$ac_file" : 'X\(//\)[^/]' \| \
18126 X"$ac_file" : 'X\(//\)$' \| \
18127 X"$ac_file" : 'X\(/\)' \| \
18128 . : '\(.\)' 2>/dev/null ||
18130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18132 /^X\(\/\/\)$/{ s//\1/; q; }
18133 /^X\(\/\).*/{ s//\1/; q; }
18135 { if $as_mkdir_p; then
18140 while test ! -d "$as_dir"; do
18141 as_dirs="$as_dir $as_dirs"
18142 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18144 X"$as_dir" : 'X\(//\)[^/]' \| \
18145 X"$as_dir" : 'X\(//\)$' \| \
18146 X"$as_dir" : 'X\(/\)' \| \
18147 . : '\(.\)' 2>/dev/null ||
18149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18151 /^X\(\/\/\)$/{ s//\1/; q; }
18152 /^X\(\/\).*/{ s//\1/; q; }
18155 test ! -n "$as_dirs" || mkdir $as_dirs
18156 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18158 { (exit 1); exit 1; }; }; }
18161 mv $tmp/config.h $ac_file
18165 rm -f $tmp/config.h
18167 # Compute $ac_file's index in $config_headers.
18169 for _am_header in $config_headers :; do
18170 case $_am_header in
18171 $ac_file | $ac_file:* )
18174 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18177 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18178 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18179 X$ac_file : 'X\(//\)[^/]' \| \
18180 X$ac_file : 'X\(//\)$' \| \
18181 X$ac_file : 'X\(/\)' \| \
18182 . : '\(.\)' 2>/dev/null ||
18184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18186 /^X\(\/\/\)$/{ s//\1/; q; }
18187 /^X\(\/\).*/{ s//\1/; q; }
18188 s/.*/./; q'`/stamp-h$_am_stamp_count
18191 cat >>$CONFIG_STATUS <<\_ACEOF
18194 # CONFIG_COMMANDS section.
18196 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18197 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18198 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18199 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18200 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201 X"$ac_dest" : 'X\(//\)[^/]' \| \
18202 X"$ac_dest" : 'X\(//\)$' \| \
18203 X"$ac_dest" : 'X\(/\)' \| \
18204 . : '\(.\)' 2>/dev/null ||
18206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18208 /^X\(\/\/\)$/{ s//\1/; q; }
18209 /^X\(\/\).*/{ s//\1/; q; }
18213 if test "$ac_dir" != .; then
18214 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18215 # A "../" for each directory in $ac_dir_suffix.
18216 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18218 ac_dir_suffix= ac_top_builddir=
18222 .) # No --srcdir option. We are building in place.
18224 if test -z "$ac_top_builddir"; then
18227 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18229 [\\/]* | ?:[\\/]* ) # Absolute path.
18230 ac_srcdir=$srcdir$ac_dir_suffix;
18231 ac_top_srcdir=$srcdir ;;
18232 *) # Relative path.
18233 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18234 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18236 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18238 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18239 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18240 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18241 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18244 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18245 echo "$as_me: executing $ac_dest commands" >&6;}
18247 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18248 # Strip MF so we end up with the name of the file.
18249 mf=`echo "$mf" | sed -e 's/:.*$//'`
18250 # Check whether this is an Automake generated Makefile or not.
18251 # We used to match only the files named `Makefile.in', but
18252 # some people rename them; so instead we look at the file content.
18253 # Grep'ing the first line is not enough: some people post-process
18254 # each Makefile.in and add a new line on top of each file to say so.
18255 # So let's grep whole file.
18256 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18257 dirpart=`(dirname "$mf") 2>/dev/null ||
18258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259 X"$mf" : 'X\(//\)[^/]' \| \
18260 X"$mf" : 'X\(//\)$' \| \
18261 X"$mf" : 'X\(/\)' \| \
18262 . : '\(.\)' 2>/dev/null ||
18264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18266 /^X\(\/\/\)$/{ s//\1/; q; }
18267 /^X\(\/\).*/{ s//\1/; q; }
18272 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18273 # Extract the definition of DEP_FILES from the Makefile without
18275 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18276 test -z "$DEPDIR" && continue
18277 # When using ansi2knr, U may be empty or an underscore; expand it
18278 U=`sed -n -e '/^U = / s///p' < "$mf"`
18279 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18280 # We invoke sed twice because it is the simplest approach to
18281 # changing $(DEPDIR) to its actual value in the expansion.
18282 for file in `sed -n -e '
18283 /^DEP_FILES = .*\\\\$/ {
18292 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18293 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18294 # Make sure the directory exists.
18295 test -f "$dirpart/$file" && continue
18296 fdir=`(dirname "$file") 2>/dev/null ||
18297 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18298 X"$file" : 'X\(//\)[^/]' \| \
18299 X"$file" : 'X\(//\)$' \| \
18300 X"$file" : 'X\(/\)' \| \
18301 . : '\(.\)' 2>/dev/null ||
18303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18305 /^X\(\/\/\)$/{ s//\1/; q; }
18306 /^X\(\/\).*/{ s//\1/; q; }
18308 { if $as_mkdir_p; then
18309 mkdir -p $dirpart/$fdir
18311 as_dir=$dirpart/$fdir
18313 while test ! -d "$as_dir"; do
18314 as_dirs="$as_dir $as_dirs"
18315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317 X"$as_dir" : 'X\(//\)[^/]' \| \
18318 X"$as_dir" : 'X\(//\)$' \| \
18319 X"$as_dir" : 'X\(/\)' \| \
18320 . : '\(.\)' 2>/dev/null ||
18322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18324 /^X\(\/\/\)$/{ s//\1/; q; }
18325 /^X\(\/\).*/{ s//\1/; q; }
18328 test ! -n "$as_dirs" || mkdir $as_dirs
18329 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18330 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18331 { (exit 1); exit 1; }; }; }
18333 # echo "creating $dirpart/$file"
18334 echo '# dummy' > "$dirpart/$file"
18338 default-1 ) for ac_file in $CONFIG_FILES; do
18339 # Support "outfile[:infile[:infile...]]"
18341 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18343 # PO directories have a Makefile.in generated from Makefile.in.in.
18344 case "$ac_file" in */Makefile.in)
18345 # Adjust a relative srcdir.
18346 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18347 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18348 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18349 # In autoconf-2.13 it is called $ac_given_srcdir.
18350 # In autoconf-2.50 it is called $srcdir.
18351 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18352 case "$ac_given_srcdir" in
18353 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18354 /*) top_srcdir="$ac_given_srcdir" ;;
18355 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18357 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18358 rm -f "$ac_dir/POTFILES"
18359 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18360 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18361 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18362 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18371 cat >>$CONFIG_STATUS <<\_ACEOF
18373 { (exit 0); exit 0; }
18375 chmod +x $CONFIG_STATUS
18376 ac_clean_files=$ac_clean_files_save
18379 # configure is writing to config.log, and then calls config.status.
18380 # config.status does its own redirection, appending to config.log.
18381 # Unfortunately, on DOS this fails, as config.log is still kept open
18382 # by configure, so config.status won't be able to write to it; its
18383 # output is simply discarded. So we exec the FD to /dev/null,
18384 # effectively closing config.log, so it can be properly (re)opened and
18385 # appended to by config.status. When coming back to configure, we
18386 # need to make the FD available again.
18387 if test "$no_create" != yes; then
18389 ac_config_status_args=
18390 test "$silent" = yes &&
18391 ac_config_status_args="$ac_config_status_args --quiet"
18393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18396 # would make configure fail if this is the last instruction.
18397 $ac_cs_success || { (exit 1); exit 1; }