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 OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
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-pgp Disable PGP support
854 --disable-smime Disable SMIME support
855 --enable-external-dotlock Force use of an external dotlock program
856 --enable-pop Enable POP3 support
857 --enable-imap Enable IMAP support
858 --enable-nntp Enable NNTP support
859 --enable-debug Enable debugging support
860 --enable-flock Use flock() to lock files
861 --disable-fcntl Do NOT use fcntl() to lock files
862 --disable-inodesort Do NOT read files in maildir folders sorted by inode.
863 --disable-warnings Turn off compiler warnings (not recommended)
864 --enable-nfs-fix Work around an NFS with broken attributes caching
865 --enable-buffy-size Use file size attribute instead of access time
866 --enable-mailtool Enable Sun mailtool attachments support
867 --enable-compressed Enable compressed folders support
868 --enable-locales-fix The result of isprint() is unreliable
869 --enable-exact-address Enable regeneration of email addresses
870 --enable-hcache Enable header caching
871 --disable-iconv Disable iconv support
872 --disable-nls Do not use Native Language Support
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-mixmaster=PATH Include Mixmaster support
878 --with-slang=DIR Use S-Lang instead of ncurses
879 --with-curses=DIR Where ncurses is installed
880 --with-regex Use the GNU regex library
881 --with-homespool=FILE File in user's directory where new mail is spooled
882 --with-mailpath=DIR Directory where spool mailboxes are located
883 --with-docdir=PATH Specify where to put the documentation
884 --with-domain=DOMAIN Specify your DNS domain name
885 --with-gss=PFX Compile in GSSAPI authentication for IMAP
886 --with-ssl=PFX Compile in SSL support for POP/IMAP
887 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
888 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
889 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
890 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
891 --with-idn=PFX Use GNU libidn for domain names
892 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
893 --without-gdbm Get rid of gdbm even if it is available
894 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
895 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
896 --with-included-gettext Use the GNU gettext library included here
897 --without-wc-funcs Do not use the system's wchar_t functions
898 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
915 if test "$ac_init_help" = "recursive"; then
916 # If there are subdirs, report their specific --help.
918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919 test -d $ac_dir || continue
922 if test "$ac_dir" != .; then
923 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924 # A "../" for each directory in $ac_dir_suffix.
925 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 ac_dir_suffix= ac_top_builddir=
931 .) # No --srcdir option. We are building in place.
933 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938 [\\/]* | ?:[\\/]* ) # Absolute path.
939 ac_srcdir=$srcdir$ac_dir_suffix;
940 ac_top_srcdir=$srcdir ;;
942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
947 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
948 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
949 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
950 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.57. Invocation command line was
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_must_keep_next=false
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 -* ) ac_must_keep_next=true ;;
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1105 # The following way of writing the cache mishandles newlines in values,
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -n "$ac_subst_files"; then
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -s confdefs.h; then
1157 sed "/^$/d" confdefs.h | sort
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1164 rm -f core core.* *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1240 # Check that the precious variables saved in the cache have kept the same
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 ac_config_headers="$ac_config_headers config.h"
1318 mutt_cv_version=`cat $srcdir/VERSION`
1321 am__api_version="1.7"
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Find a good install program. We prefer a C program (faster),
1348 # so one script is as good as another. But avoid the broken or
1349 # incompatible versions:
1350 # SysV /etc/install, /usr/sbin/install
1351 # SunOS /usr/etc/install
1352 # IRIX /sbin/install
1354 # AmigaOS /C/install, which installs bootblocks on floppy discs
1355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358 # ./install, which can be erroneously created by make from ./install.sh.
1359 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1360 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1361 if test -z "$INSTALL"; then
1362 if test "${ac_cv_path_install+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 test -z "$as_dir" && as_dir=.
1370 # Account for people who put trailing slashes in PATH elements.
1372 ./ | .// | /cC/* | \
1373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1376 # OSF1 and SCO ODT 3.0 have their own names for install.
1377 # Don't use installbsd from OSF since it installs stuff as root
1379 for ac_prog in ginstall scoinst install; do
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1382 if test $ac_prog = install &&
1383 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 elif test $ac_prog = install &&
1387 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388 # program-specific install script used by HP pwplus--don't use.
1391 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1403 if test "${ac_cv_path_install+set}" = set; then
1404 INSTALL=$ac_cv_path_install
1406 # As a last resort, use the slow shell script. We don't cache a
1407 # path for INSTALL within a source directory, because that will
1408 # break other packages using the cache if that directory is
1409 # removed, or if the path is relative.
1410 INSTALL=$ac_install_sh
1413 echo "$as_me:$LINENO: result: $INSTALL" >&5
1414 echo "${ECHO_T}$INSTALL" >&6
1416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1417 # It thinks the first close brace ends the variable substitution.
1418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1424 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1425 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1428 echo timestamp > conftest.file
1429 # Do `set' in a subshell so we don't clobber the current shell's
1430 # arguments. Must try -L first in case configure is actually a
1431 # symlink; some systems play weird games with the mod time of symlinks
1432 # (eg FreeBSD returns the mod time of the symlink's containing
1435 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1436 if test "$*" = "X"; then
1438 set X `ls -t $srcdir/configure conftest.file`
1441 if test "$*" != "X $srcdir/configure conftest.file" \
1442 && test "$*" != "X conftest.file $srcdir/configure"; then
1444 # If neither matched, then we have a broken ls. This can happen
1445 # if, for instance, CONFIG_SHELL is bash and it inherits a
1446 # broken ls alias from the environment. This has actually
1447 # happened. Such a system could not be considered "sane".
1448 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&5
1450 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1451 alias in your environment" >&2;}
1452 { (exit 1); exit 1; }; }
1455 test "$2" = conftest.file
1461 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1462 Check your system clock" >&5
1463 echo "$as_me: error: newly created file is older than distributed files!
1464 Check your system clock" >&2;}
1465 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: yes" >&5
1468 echo "${ECHO_T}yes" >&6
1469 test "$program_prefix" != NONE &&
1470 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $. echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 # expand $ac_aux_dir to an absolute path
1484 am_aux_dir=`cd $ac_aux_dir && pwd`
1486 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1487 # Use eval to expand $SHELL
1488 if eval "$MISSING --run true"; then
1489 am_missing_run="$MISSING --run "
1492 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1493 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1496 for ac_prog in gawk mawk nawk awk
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_AWK+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 if test -n "$AWK"; then
1506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_AWK="$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test -n "$AWK"; then
1526 echo "$as_me:$LINENO: result: $AWK" >&5
1527 echo "${ECHO_T}$AWK" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$AWK" && break
1536 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1537 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1538 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1539 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 cat >conftest.make <<\_ACEOF
1544 @echo 'ac_maketemp="$(MAKE)"'
1546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1547 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1548 if test -n "$ac_maketemp"; then
1549 eval ac_cv_prog_make_${ac_make}_set=yes
1551 eval ac_cv_prog_make_${ac_make}_set=no
1555 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 SET_MAKE="MAKE=${MAKE-make}"
1565 rm -rf .tst 2>/dev/null
1566 mkdir .tst 2>/dev/null
1567 if test -d .tst; then
1572 rmdir .tst 2>/dev/null
1574 # test to see if srcdir already configured
1575 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1576 test -f $srcdir/config.status; then
1577 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1578 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1579 { (exit 1); exit 1; }; }
1582 # test whether we have cygpath
1583 if test -z "$CYGPATH_W"; then
1584 if (cygpath --version) >/dev/null 2>/dev/null; then
1585 CYGPATH_W='cygpath -w'
1592 # Define the identity of the package.
1594 VERSION=$mutt_cv_version
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE "$PACKAGE"
1602 cat >>confdefs.h <<_ACEOF
1603 #define VERSION "$VERSION"
1606 # Some tools Automake needs.
1608 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1611 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1614 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1617 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1620 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1623 AMTAR=${AMTAR-"${am_missing_run}tar"}
1625 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1627 # Installed binaries are usually stripped using `strip' when the user
1628 # run `make install-strip'. However `strip' might not be the right
1629 # tool to use in cross-compilation environments, therefore Automake
1630 # will honor the `STRIP' environment variable to overrule this program.
1631 if test "$cross_compiling" != no; then
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}strip; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_STRIP+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$STRIP"; then
1641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 STRIP=$ac_cv_prog_STRIP
1660 if test -n "$STRIP"; then
1661 echo "$as_me:$LINENO: result: $STRIP" >&5
1662 echo "${ECHO_T}$STRIP" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_STRIP"; then
1671 # Extract the first word of "strip", so it can be a program name with args.
1672 set dummy strip; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$ac_ct_STRIP"; then
1679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_STRIP="strip"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1699 if test -n "$ac_ct_STRIP"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1701 echo "${ECHO_T}$ac_ct_STRIP" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1709 STRIP="$ac_cv_prog_STRIP"
1713 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1715 # We need awk for the "check" target. The system "awk" is bad on
1723 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"
1725 # Make sure we can run config.sub.
1726 $ac_config_sub sun4 >/dev/null 2>&1 ||
1727 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1728 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1729 { (exit 1); exit 1; }; }
1731 echo "$as_me:$LINENO: checking build system type" >&5
1732 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1733 if test "${ac_cv_build+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 ac_cv_build_alias=$build_alias
1737 test -z "$ac_cv_build_alias" &&
1738 ac_cv_build_alias=`$ac_config_guess`
1739 test -z "$ac_cv_build_alias" &&
1740 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1741 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1742 { (exit 1); exit 1; }; }
1743 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1744 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1745 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1746 { (exit 1); exit 1; }; }
1749 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1750 echo "${ECHO_T}$ac_cv_build" >&6
1752 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1753 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1754 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757 echo "$as_me:$LINENO: checking host system type" >&5
1758 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1759 if test "${ac_cv_host+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 ac_cv_host_alias=$host_alias
1763 test -z "$ac_cv_host_alias" &&
1764 ac_cv_host_alias=$ac_cv_build_alias
1765 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1766 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1767 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1768 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1772 echo "${ECHO_T}$ac_cv_host" >&6
1774 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1775 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1776 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1780 echo "$as_me:$LINENO: checking for prefix" >&5
1781 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1782 if test x$prefix = xNONE; then
1783 mutt_cv_prefix=$ac_default_prefix
1785 mutt_cv_prefix=$prefix
1787 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1788 echo "${ECHO_T}$mutt_cv_prefix" >&6
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 if test -n "$ac_tool_prefix"; then
1796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 if test -n "$CC"; then
1824 echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1832 if test -z "$ac_cv_prog_CC"; then
1834 # Extract the first word of "gcc", so it can be a program name with args.
1835 set dummy gcc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_ac_ct_CC="gcc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861 if test -n "$ac_ct_CC"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863 echo "${ECHO_T}$ac_ct_CC" >&6
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1874 if test -z "$CC"; then
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="${ac_tool_prefix}cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1912 if test -z "$ac_cv_prog_CC"; then
1914 # Extract the first word of "cc", so it can be a program name with args.
1915 set dummy cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1955 if test -z "$CC"; then
1956 # Extract the first word of "cc", so it can be a program name with args.
1957 set dummy cc; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975 ac_prog_rejected=yes
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test $ac_prog_rejected = yes; then
1986 # We found a bogon in the path, so make sure we never use it.
1987 set dummy $ac_cv_prog_CC
1989 if test $# != 0; then
1990 # We chose a different compiler from the bogus one.
1991 # However, it has the same basename, so the bogon will be chosen
1992 # first if we set CC to just the basename; use the full file name.
1994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2000 if test -n "$CC"; then
2001 echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2090 test -n "$ac_ct_CC" && break
2099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&2;}
2103 { (exit 1); exit 1; }; }
2105 # Provide some information about the compiler.
2106 echo "$as_me:$LINENO:" \
2107 "checking for C compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110 (eval $ac_compiler --version </dev/null >&5) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115 (eval $ac_compiler -v </dev/null >&5) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120 (eval $ac_compiler -V </dev/null >&5) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2147 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 test -f "$ac_file" || continue
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2169 # This is the source file.
2172 # We found the default executable, but exeext='' is most
2176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 if test "$cross_compiling" = maybe; then
2219 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2252 for ac_file in conftest.exe conftest conftest.*; do
2253 test -f "$ac_file" || continue
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.o conftest.obj
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2315 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&2;}
2319 { (exit 1); exit 1; }; }
2322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2324 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325 echo "${ECHO_T}$ac_cv_objext" >&6
2326 OBJEXT=$ac_cv_objext
2328 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.$ac_objext conftest.$ac_ext
2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377 GCC=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CFLAGS=${CFLAGS+set}
2379 ac_save_CFLAGS=$CFLAGS
2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.$ac_objext conftest.$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2424 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2425 if test "$ac_test_CFLAGS" = set; then
2426 CFLAGS=$ac_save_CFLAGS
2427 elif test $ac_cv_prog_cc_g = yes; then
2428 if test "$GCC" = yes; then
2434 if test "$GCC" = yes; then
2440 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2441 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 ac_cv_prog_cc_stdc=no
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2456 #include <sys/types.h>
2457 #include <sys/stat.h>
2458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2459 struct buf { int x; };
2460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2461 static char *e (p, i)
2467 static char *f (char * (*g) (char **, int), char **p, ...)
2472 s = g (p, va_arg (v,int));
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX -qlanglvl=ansi
2493 # Ultrix and OSF/1 -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions -Aa -D_HPUX_SOURCE
2496 # SVR4 -Xc -D__EXTENSIONS__
2497 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499 CC="$ac_save_CC $ac_arg"
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 ac_cv_prog_cc_stdc=$ac_arg
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2519 rm -f conftest.$ac_objext
2521 rm -f conftest.$ac_ext conftest.$ac_objext
2526 case "x$ac_cv_prog_cc_stdc" in
2528 echo "$as_me:$LINENO: result: none needed" >&5
2529 echo "${ECHO_T}none needed" >&6 ;;
2531 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2532 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2533 CC="$CC $ac_cv_prog_cc_stdc" ;;
2536 # Some people use a C++ compiler to compile C. Since we use `exit',
2537 # in C++ we need to declare it. In case someone uses the same compiler
2538 # for both compiling C and C++ we need to have the C++ compiler decide
2539 # the declaration of exit, since it's the most demanding environment.
2540 cat >conftest.$ac_ext <<_ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 for ac_declaration in \
2559 '#include <stdlib.h>' \
2560 'extern "C" void std::exit (int) throw (); using std::exit;' \
2561 'extern "C" void std::exit (int); using std::exit;' \
2562 'extern "C" void exit (int) throw ();' \
2563 'extern "C" void exit (int);' \
2566 cat >conftest.$ac_ext <<_ACEOF
2567 #line $LINENO "configure"
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603 cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f conftest.$ac_objext conftest.$ac_ext
2640 if test -n "$ac_declaration"; then
2641 echo '#ifdef __cplusplus' >>confdefs.h
2642 echo $ac_declaration >>confdefs.h
2643 echo '#endif' >>confdefs.h
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.$ac_objext conftest.$ac_ext
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 DEPDIR="${am__leading_dot}deps"
2659 ac_config_commands="$ac_config_commands depfiles"
2662 am_make=${MAKE-make}
2663 cat > confinc << 'END'
2668 # If we don't find an include directive, just comment out the code.
2669 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2670 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2674 # First try GNU make style include.
2675 echo "include confinc" > confmf
2676 # We grep out `Entering directory' and `Leaving directory'
2677 # messages which can occur if `w' ends up in MAKEFLAGS.
2678 # In particular we don't look at `^make:' because GNU make might
2679 # be invoked under some other name (usually "gmake"), in which
2680 # case it prints its new name instead of `make'.
2681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2686 # Now try BSD make style include.
2687 if test "$am__include" = "#"; then
2688 echo '.include "confinc"' > confmf
2689 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2690 am__include=.include
2697 echo "$as_me:$LINENO: result: $_am_result" >&5
2698 echo "${ECHO_T}$_am_result" >&6
2699 rm -f confinc confmf
2701 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2702 if test "${enable_dependency_tracking+set}" = set; then
2703 enableval="$enable_dependency_tracking"
2706 if test "x$enable_dependency_tracking" != xno; then
2707 am_depcomp="$ac_aux_dir/depcomp"
2712 if test "x$enable_dependency_tracking" != xno; then
2723 depcc="$CC" am_compiler_list=
2725 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2726 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2731 # We make a subdir and do the tests there. Otherwise we can end up
2732 # making bogus files that we don't know about and never remove. For
2733 # instance it was reported that on HP-UX the gcc test will end up
2734 # making a dummy file named `D' -- because `-MD' means `put the output
2737 # Copy depcomp to subdir because otherwise we won't find it if we're
2738 # using a relative directory.
2739 cp "$am_depcomp" conftest.dir
2741 # We will build objects and dependencies in a subdirectory because
2742 # it helps to detect inapplicable dependency modes. For instance
2743 # both Tru64's cc and ICC support -MD to output dependencies as a
2744 # side effect of compilation, but ICC will put the dependencies in
2745 # the current directory while Tru64 will put them in the object
2749 am_cv_CC_dependencies_compiler_type=none
2750 if test "$am_compiler_list" = ""; then
2751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2753 for depmode in $am_compiler_list; do
2754 # Setup a source with many dependencies, because some compilers
2755 # like to wrap large dependency lists on column 80 (with \), and
2756 # we should not choose a depcomp mode which is confused by this.
2758 # We need to recreate these files for each test, as the compiler may
2759 # overwrite some of them when testing with obscure command lines.
2760 # This happens at least with the AIX C compiler.
2762 for i in 1 2 3 4 5 6; do
2763 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2770 # after this tag, mechanisms are not by side-effect, so they'll
2771 # only be used when explicitly requested
2772 if test "x$enable_dependency_tracking" = xyes; then
2780 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2781 # mode. It turns out that the SunPro C++ compiler does not properly
2782 # handle `-M -o', and we need to detect this.
2783 if depmode=$depmode \
2784 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2785 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2786 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2787 >/dev/null 2>conftest.err &&
2788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2789 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2791 # icc doesn't choke on unknown options, it will just issue warnings
2792 # (even with -Werror). So we grep stderr for any message
2793 # that says an option was ignored.
2794 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2795 am_cv_CC_dependencies_compiler_type=$depmode
2804 am_cv_CC_dependencies_compiler_type=none
2808 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2809 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2810 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2815 test "x$enable_dependency_tracking" != xno \
2816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2818 am__fastdepCC_FALSE='#'
2820 am__fastdepCC_TRUE='#'
2821 am__fastdepCC_FALSE=
2827 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_check_lib_save_LIBS=$LIBS
2833 LIBS="-lcposix $LIBS"
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 /* Override any gcc2 internal prototype to avoid an error. */
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2857 rm -f conftest.$ac_objext conftest$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest$ac_exeext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_lib_cposix_strerror=yes
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_cv_lib_cposix_strerror=no
2876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2877 LIBS=$ac_check_lib_save_LIBS
2879 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2880 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2881 if test $ac_cv_lib_cposix_strerror = yes; then
2882 LIBS="$LIBS -lcposix"
2890 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2891 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2892 if test "${am_cv_prog_cc_stdc+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 am_cv_prog_cc_stdc=no
2897 # Don't try gcc -ansi; that turns off useful extensions and
2898 # breaks some systems' header files.
2899 # AIX -qlanglvl=ansi
2900 # Ultrix and OSF/1 -std1
2901 # HP-UX 10.20 and later -Ae
2902 # HP-UX older versions -Aa -D_HPUX_SOURCE
2903 # SVR4 -Xc -D__EXTENSIONS__
2904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 CC="$ac_save_CC $ac_arg"
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 #include <sys/types.h>
2917 #include <sys/stat.h>
2918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2919 struct buf { int x; };
2920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2921 static char *e (p, i)
2927 static char *f (char * (*g) (char **, int), char **p, ...)
2932 s = g (p, va_arg (v,int));
2936 int test (int i, double x);
2937 struct s1 {int (*f) (int a);};
2938 struct s2 {int (*f) (double a);};
2939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955 (eval $ac_compile) 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 am_cv_prog_cc_stdc="$ac_arg"; break
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.$ac_objext conftest.$ac_ext
2977 if test -z "$am_cv_prog_cc_stdc"; then
2978 echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6
2981 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2984 case "x$am_cv_prog_cc_stdc" in
2986 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2995 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
3000 if test -z "$CPP"; then
3001 if test "${ac_cv_prog_CPP+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 # Double quotes because CPP needs to be expanded
3005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3008 for ac_c_preproc_warn_flag in '' yes
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
3014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3046 if test -z "$ac_cpp_err"; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 # Broken: fails on valid input.
3055 rm -f conftest.err conftest.$ac_ext
3057 # OK, works on sane cases. Now check whether non-existent headers
3058 # can be detected and how.
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3084 if test -z "$ac_cpp_err"; then
3085 # Broken: success on invalid input.
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 # Passes both tests.
3095 rm -f conftest.err conftest.$ac_ext
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then
3112 echo "$as_me:$LINENO: result: $CPP" >&5
3113 echo "${ECHO_T}$CPP" >&6
3115 for ac_c_preproc_warn_flag in '' yes
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3131 # include <limits.h>
3133 # include <assert.h>
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3153 if test -z "$ac_cpp_err"; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 # Broken: fails on valid input.
3162 rm -f conftest.err conftest.$ac_ext
3164 # OK, works on sane cases. Now check whether non-existent headers
3165 # can be detected and how.
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <ac_nonexistent.h>
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
3191 if test -z "$ac_cpp_err"; then
3192 # Broken: success on invalid input.
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 # Passes both tests.
3202 rm -f conftest.err conftest.$ac_ext
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then
3210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3211 See \`config.log' for more details." >&5
3212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3213 See \`config.log' for more details." >&2;}
3214 { (exit 1); exit 1; }; }
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 echo "$as_me:$LINENO: checking for egrep" >&5
3225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3226 if test "${ac_cv_prog_egrep+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3230 then ac_cv_prog_egrep='grep -E'
3231 else ac_cv_prog_egrep='egrep'
3234 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3235 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3236 EGREP=$ac_cv_prog_egrep
3239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3250 inttypes.h stdint.h unistd.h
3252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3253 echo "$as_me:$LINENO: checking for $ac_header" >&5
3254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 $ac_includes_default
3267 #include <$ac_header>
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 eval "$as_ac_Header=yes"
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 eval "$as_ac_Header=no"
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3293 cat >>confdefs.h <<_ACEOF
3294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3304 echo "$as_me:$LINENO: checking for function prototypes" >&5
3305 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3306 if test "$am_cv_prog_cc_stdc" != no; then
3307 echo "$as_me:$LINENO: result: yes" >&5
3308 echo "${ECHO_T}yes" >&6
3310 cat >>confdefs.h <<\_ACEOF
3311 #define PROTOTYPES 1
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3318 U=_ ANSI2KNR=./ansi2knr
3320 # Ensure some checks needed by ansi2knr itself.
3321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3323 if test "${ac_cv_header_stdc+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_header_stdc=yes
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_cv_header_stdc=no
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3367 if test $ac_cv_header_stdc = yes; then
3368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 $EGREP "memchr" >/dev/null 2>&1; then
3383 ac_cv_header_stdc=no
3389 if test $ac_cv_header_stdc = yes; then
3390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #line $LINENO "configure"
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "free" >/dev/null 2>&1; then
3405 ac_cv_header_stdc=no
3411 if test $ac_cv_header_stdc = yes; then
3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413 if test "$cross_compiling" = yes; then
3416 cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3424 #if ((' ' & 0x0FF) == 0x020)
3425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3428 # define ISLOWER(c) \
3429 (('a' <= (c) && (c) <= 'i') \
3430 || ('j' <= (c) && (c) <= 'r') \
3431 || ('s' <= (c) && (c) <= 'z'))
3432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3440 for (i = 0; i < 256; i++)
3441 if (XOR (islower (i), ISLOWER (i))
3442 || toupper (i) != TOUPPER (i))
3447 rm -f conftest$ac_exeext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449 (eval $ac_link) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3460 echo "$as_me: program exited with status $ac_status" >&5
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3465 ac_cv_header_stdc=no
3467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3471 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3472 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3473 if test $ac_cv_header_stdc = yes; then
3475 cat >>confdefs.h <<\_ACEOF
3476 #define STDC_HEADERS 1
3482 for ac_header in string.h
3484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo "$as_me:$LINENO: checking for $ac_header" >&5
3487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494 # Is the header compilable?
3495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3505 #include <$ac_header>
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_header_compiler=yes
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_header_compiler=no
3526 rm -f conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3528 echo "${ECHO_T}$ac_header_compiler" >&6
3530 # Is the header present?
3531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 #include <$ac_header>
3542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3558 if test -z "$ac_cpp_err"; then
3559 ac_header_preproc=yes
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_header_preproc=no
3566 rm -f conftest.err conftest.$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3568 echo "${ECHO_T}$ac_header_preproc" >&6
3570 # So? What about this header?
3571 case $ac_header_compiler:$ac_header_preproc in
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3579 ## ------------------------------------ ##
3580 ## Report this to bug-autoconf@gnu.org. ##
3581 ## ------------------------------------ ##
3584 sed "s/^/$as_me: WARNING: /" >&2
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3595 ## ------------------------------------ ##
3596 ## Report this to bug-autoconf@gnu.org. ##
3597 ## ------------------------------------ ##
3600 sed "s/^/$as_me: WARNING: /" >&2
3603 echo "$as_me:$LINENO: checking for $ac_header" >&5
3604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 eval "$as_ac_Header=$ac_header_preproc"
3610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3615 cat >>confdefs.h <<_ACEOF
3616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624 if test "x$U" != "x"; then
3625 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3626 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3627 { (exit 1); exit 1; }; }
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3635 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3636 # On Suns, sometimes $CPP names a directory.
3637 if test -n "$CPP" && test -d "$CPP"; then
3640 if test -z "$CPP"; then
3641 if test "${ac_cv_prog_CPP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 # Double quotes because CPP needs to be expanded
3645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3648 for ac_c_preproc_warn_flag in '' yes
3650 # Use a header file that comes with gcc, so configuring glibc
3651 # with a fresh cross-compiler works.
3652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653 # <limits.h> exists even on freestanding compilers.
3654 # On the NeXT, cc -E runs the code through the compiler's parser,
3655 # not just through cpp. "Syntax error" is here to catch this case.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null; then
3678 if test -s conftest.err; then
3679 ac_cpp_err=$ac_c_preproc_warn_flag
3686 if test -z "$ac_cpp_err"; then
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 # Broken: fails on valid input.
3695 rm -f conftest.err conftest.$ac_ext
3697 # OK, works on sane cases. Now check whether non-existent headers
3698 # can be detected and how.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <ac_nonexistent.h>
3708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null; then
3716 if test -s conftest.err; then
3717 ac_cpp_err=$ac_c_preproc_warn_flag
3724 if test -z "$ac_cpp_err"; then
3725 # Broken: success on invalid input.
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 # Passes both tests.
3735 rm -f conftest.err conftest.$ac_ext
3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3739 rm -f conftest.err conftest.$ac_ext
3740 if $ac_preproc_ok; then
3752 echo "$as_me:$LINENO: result: $CPP" >&5
3753 echo "${ECHO_T}$CPP" >&6
3755 for ac_c_preproc_warn_flag in '' yes
3757 # Use a header file that comes with gcc, so configuring glibc
3758 # with a fresh cross-compiler works.
3759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 # <limits.h> exists even on freestanding compilers.
3761 # On the NeXT, cc -E runs the code through the compiler's parser,
3762 # not just through cpp. "Syntax error" is here to catch this case.
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3771 # include <limits.h>
3773 # include <assert.h>
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } >/dev/null; then
3785 if test -s conftest.err; then
3786 ac_cpp_err=$ac_c_preproc_warn_flag
3793 if test -z "$ac_cpp_err"; then
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 # Broken: fails on valid input.
3802 rm -f conftest.err conftest.$ac_ext
3804 # OK, works on sane cases. Now check whether non-existent headers
3805 # can be detected and how.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 #line $LINENO "configure"
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 #include <ac_nonexistent.h>
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null; then
3823 if test -s conftest.err; then
3824 ac_cpp_err=$ac_c_preproc_warn_flag
3831 if test -z "$ac_cpp_err"; then
3832 # Broken: success on invalid input.
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 # Passes both tests.
3842 rm -f conftest.err conftest.$ac_ext
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3850 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3851 See \`config.log' for more details." >&5
3852 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3853 See \`config.log' for more details." >&2;}
3854 { (exit 1); exit 1; }; }
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 cat >conftest.make <<\_ACEOF
3871 @echo 'ac_maketemp="$(MAKE)"'
3873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3875 if test -n "$ac_maketemp"; then
3876 eval ac_cv_prog_make_${ac_make}_set=yes
3878 eval ac_cv_prog_make_${ac_make}_set=no
3882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6
3887 echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3889 SET_MAKE="MAKE=${MAKE-make}"
3892 # Find a good install program. We prefer a C program (faster),
3893 # so one script is as good as another. But avoid the broken or
3894 # incompatible versions:
3895 # SysV /etc/install, /usr/sbin/install
3896 # SunOS /usr/etc/install
3897 # IRIX /sbin/install
3899 # AmigaOS /C/install, which installs bootblocks on floppy discs
3900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3905 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3906 if test -z "$INSTALL"; then
3907 if test "${ac_cv_path_install+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 # Account for people who put trailing slashes in PATH elements.
3917 ./ | .// | /cC/* | \
3918 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root
3924 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention.
3931 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use.
3936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948 if test "${ac_cv_path_install+set}" = set; then
3949 INSTALL=$ac_cv_path_install
3951 # As a last resort, use the slow shell script. We don't cache a
3952 # path for INSTALL within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the path is relative.
3955 INSTALL=$ac_install_sh
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 RANLIB=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998 echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007 ac_ct_RANLIB=$RANLIB
4008 # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$ac_ct_RANLIB"; then
4016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_RANLIB="ranlib"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 RANLIB=$ac_ct_RANLIB
4046 RANLIB="$ac_cv_prog_RANLIB"
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}ar; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_AR+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 if test -n "$AR"; then
4058 ac_cv_prog_AR="$AR" # Let the user override the test.
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_AR="${ac_tool_prefix}ar"
4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 if test -n "$AR"; then
4078 echo "$as_me:$LINENO: result: $AR" >&5
4079 echo "${ECHO_T}$AR" >&6
4081 echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4086 if test -z "$ac_cv_prog_AR"; then
4088 # Extract the first word of "ar", so it can be a program name with args.
4089 set dummy ar; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -n "$ac_ct_AR"; then
4096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_AR="ar"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4116 if test -n "$ac_ct_AR"; then
4117 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4118 echo "${ECHO_T}$ac_ct_AR" >&6
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4130 echo "$as_me:$LINENO: checking for inline" >&5
4131 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4132 if test "${ac_cv_c_inline+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 for ac_kw in inline __inline__ __inline; do
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4146 static $ac_kw foo_t static_foo () {return 0; }
4147 $ac_kw foo_t foo () {return 0; }
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_cv_c_inline=$ac_kw; break
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4169 rm -f conftest.$ac_objext conftest.$ac_ext
4173 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4174 echo "${ECHO_T}$ac_cv_c_inline" >&6
4175 case $ac_cv_c_inline in
4178 cat >>confdefs.h <<\_ACEOF
4182 *) cat >>confdefs.h <<_ACEOF
4183 #define inline $ac_cv_c_inline
4188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4190 if test "${ac_cv_c_const+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4204 /* FIXME: Include the comments suggested by Paul. */
4206 /* Ultrix mips cc rejects this. */
4207 typedef int charset[2];
4209 /* SunOS 4.1.1 cc rejects this. */
4210 char const *const *ccp;
4212 /* NEC SVR4.0.2 mips cc rejects this. */
4213 struct point {int x, y;};
4214 static struct point const zero = {0,0};
4215 /* AIX XL C 1.02.0.0 rejects this.
4216 It does not let you subtract one const X* pointer from another in
4217 an arm of an if-expression whose if-part is not a constant
4219 const char *g = "string";
4220 ccp = &g + (g ? g-g : 0);
4221 /* HPUX 7.0 cc rejects these. */
4224 ccp = (char const *const *) p;
4225 { /* SCO 3.2v4 cc rejects this. */
4227 char const *s = 0 ? (char *) 0 : (char const *) 0;
4231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4233 const int *foo = &x[0];
4236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4237 typedef const int *iptr;
4241 { /* AIX XL C 1.02.0.0 rejects this saying
4242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4243 struct s { int j; const int *ap[3]; };
4244 struct s *b; b->j = 5;
4246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4274 rm -f conftest.$ac_objext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4277 echo "${ECHO_T}$ac_cv_c_const" >&6
4278 if test $ac_cv_c_const = no; then
4280 cat >>confdefs.h <<\_ACEOF
4287 # Extract the first word of "dbx", so it can be a program name with args.
4288 set dummy dbx; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_path_DBX+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4319 if test -n "$DBX"; then
4320 echo "$as_me:$LINENO: result: $DBX" >&5
4321 echo "${ECHO_T}$DBX" >&6
4323 echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4327 # Extract the first word of "gdb", so it can be a program name with args.
4328 set dummy gdb; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_path_GDB+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4359 if test -n "$GDB"; then
4360 echo "$as_me:$LINENO: result: $GDB" >&5
4361 echo "${ECHO_T}$GDB" >&6
4363 echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4367 # Extract the first word of "sdb", so it can be a program name with args.
4368 set dummy sdb; ac_word=$2
4369 echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_path_SDB+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4399 if test -n "$SDB"; then
4400 echo "$as_me:$LINENO: result: $SDB" >&5
4401 echo "${ECHO_T}$SDB" >&6
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4408 if test $GDB != no ; then
4410 elif test $DBX != no ; then
4412 elif test $SDB != no ; then
4420 # The following templates should be used with newer automakes
4421 # instead of acconfig.h
4423 #AH_TEMPLATE([sig_atomic_t],
4424 # [/* Define to `int' if <signal.h> doesn't define.])
4425 #AH_TEMPLATE([HAVE_START_COLOR],
4426 # [Define if you have start_color, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4428 # [Define if you have typeahead, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_BKGDSET],
4430 # [Define if you have bkgdset, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_CURS_SET],
4432 # [Define if you have curs_set, as a function or macro.])
4433 #AH_TEMPLATE([HAVE_META],
4434 # [Define if you have meta, as a function or macro.])
4435 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4436 # [Define if you have use_default_colors, as a function or macro.])
4437 #AH_TEMPLATE([HAVE_RESIZETERM],
4438 # [Define if you have resizeterm, as a function or macro.])
4439 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4440 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4441 # This define will have value `sig_atomic_t' or
4442 # `volatile sig_atomic_t' accordingly.])
4443 #AH_TEMPLATE([ICONV_NONTRANS],
4444 # [Define as 1 if iconv() only converts exactly and we should treat
4445 # all return values other than (size_t)(-1) as equivalent.])
4448 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4449 # Extract the first word of "sendmail", so it can be a program name with args.
4450 set dummy sendmail; ac_word=$2
4451 echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 as_dummy="$PATH:$ac_aux_path_sendmail"
4463 for as_dir in $as_dummy
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4480 SENDMAIL=$ac_cv_path_SENDMAIL
4482 if test -n "$SENDMAIL"; then
4483 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4484 echo "${ECHO_T}$SENDMAIL" >&6
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4491 cat >>confdefs.h <<_ACEOF
4492 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4497 if test -f $srcdir/EXPORTABLE ; then
4502 # Check whether --enable-pgp or --disable-pgp was given.
4503 if test "${enable_pgp+set}" = set; then
4504 enableval="$enable_pgp"
4505 if test x$enableval = xno ; then
4511 if test x$have_pgp != xno ; then
4513 cat >>confdefs.h <<\_ACEOF
4514 #define CRYPT_BACKEND_CLASSIC_PGP 1
4517 PGPAUX_TARGET="pgpring pgpewrap"
4518 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"
4521 # Check whether --enable-smime or --disable-smime was given.
4522 if test "${enable_smime+set}" = set; then
4523 enableval="$enable_smime"
4524 if test x$enableval = xno ; then
4530 if test x$have_smime != xno ; then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4536 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
4537 SMIMEAUX_TARGET="smime_keys"
4541 # Check whether --with-mixmaster or --without-mixmaster was given.
4542 if test "${with_mixmaster+set}" = set; then
4543 withval="$with_mixmaster"
4544 if test -x "$withval" ; then
4545 MIXMASTER="$withval"
4547 MIXMASTER="mixmaster"
4549 OPS="$OPS \$(srcdir)/OPS.MIX"
4550 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4552 cat >>confdefs.h <<_ACEOF
4553 #define MIXMASTER "$MIXMASTER"
4560 # We now require all OPS
4561 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4569 cat >>confdefs.h <<_ACEOF
4570 #define SUBVERSION "$SUBVERSION"
4575 # Extract the first word of "ispell", so it can be a program name with args.
4576 set dummy ispell; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_path_ISPELL+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4605 ISPELL=$ac_cv_path_ISPELL
4607 if test -n "$ISPELL"; then
4608 echo "$as_me:$LINENO: result: $ISPELL" >&5
4609 echo "${ECHO_T}$ISPELL" >&6
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4615 if test $ISPELL != no; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define ISPELL "$ISPELL"
4624 # Check whether --with-slang or --without-slang was given.
4625 if test "${with_slang+set}" = set; then
4626 withval="$with_slang"
4627 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4628 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4629 if test "${mutt_cv_bsdish+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test "$cross_compiling" = yes; then
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <sys/param.h>
4653 rm -f conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4666 echo "$as_me: program exited with status $ac_status" >&5
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4673 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4677 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4679 echo "$as_me:$LINENO: checking for S-Lang" >&5
4680 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4681 if test $withval = yes; then
4682 if test -d $srcdir/../slang; then
4683 mutt_cv_slang=$srcdir/../slang/src
4684 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4685 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4687 if test -d $mutt_cv_prefix/include/slang; then
4688 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4689 elif test -d /usr/include/slang; then
4690 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4695 if test -f $withval/src/slang.h; then
4696 mutt_cv_slang=$withval/src
4697 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4698 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4700 mutt_cv_slang=$withval
4701 if test -d $withval/include/slang; then
4702 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4703 elif test -d $withval/include; then
4704 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4706 LDFLAGS="$LDFLAGS -L${withval}/lib"
4709 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4710 echo "${ECHO_T}$mutt_cv_slang" >&6
4711 if test $mutt_cv_bsdish = yes; then
4713 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4714 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4715 if test "${ac_cv_lib_termlib_main+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 ac_check_lib_save_LIBS=$LIBS
4719 LIBS="-ltermlib $LIBS"
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4737 rm -f conftest.$ac_objext conftest$ac_exeext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -s conftest$ac_exeext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_cv_lib_termlib_main=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_lib_termlib_main=no
4756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4759 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4760 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4761 if test $ac_cv_lib_termlib_main = yes; then
4762 cat >>confdefs.h <<_ACEOF
4763 #define HAVE_LIBTERMLIB 1
4766 LIBS="-ltermlib $LIBS"
4772 cat >>confdefs.h <<\_ACEOF
4773 #define USE_SLANG_CURSES 1
4777 cat >>confdefs.h <<\_ACEOF
4778 #define HAVE_COLOR 1
4781 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4784 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4785 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4786 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_check_lib_save_LIBS=$LIBS
4790 LIBS="-lslang -lm $LIBS"
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4799 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4805 char SLtt_get_terminfo ();
4809 SLtt_get_terminfo ();
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_lib_slang_SLtt_get_terminfo=yes
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 ac_cv_lib_slang_SLtt_get_terminfo=no
4833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4834 LIBS=$ac_check_lib_save_LIBS
4836 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4837 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4838 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4839 MUTTLIBS="$MUTTLIBS -lslang -lm"
4841 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4842 echo "$as_me: error: unable to compile. check config.log" >&2;}
4843 { (exit 1); exit 1; }; }
4851 # Check whether --with-curses or --without-curses was given.
4852 if test "${with_curses+set}" = set; then
4853 withval="$with_curses"
4854 if test $withval != yes; then
4855 mutt_cv_curses=$withval
4857 if test x$mutt_cv_curses != x/usr; then
4858 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4859 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4863 echo "$as_me:$LINENO: checking for initscr" >&5
4864 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4865 if test "${ac_cv_func_initscr+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 cat >conftest.$ac_ext <<_ACEOF
4869 #line $LINENO "configure"
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 /* System header to define __stub macros and hopefully few prototypes,
4876 which can conflict with char initscr (); below.
4877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 <limits.h> exists even on freestanding compilers. */
4880 # include <limits.h>
4882 # include <assert.h>
4884 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4892 /* The GNU C library defines this for functions which it implements
4893 to always fail with ENOSYS. Some functions are actually named
4894 something starting with __ and the normal name is an alias. */
4895 #if defined (__stub_initscr) || defined (__stub___initscr)
4898 char (*f) () = initscr;
4907 return f != initscr;
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914 (eval $ac_link) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -s conftest$ac_exeext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_func_initscr=yes
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_cv_func_initscr=no
4931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4933 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4934 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4935 if test $ac_cv_func_initscr = yes; then
4939 cf_ncurses="ncurses"
4940 for lib in ncurses ncursesw
4942 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4943 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4944 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4945 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 ac_check_lib_save_LIBS=$LIBS
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4958 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -s conftest$ac_exeext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 eval "$as_ac_Lib=yes"
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 eval "$as_ac_Lib=no"
4992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_check_lib_save_LIBS
4995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4996 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4997 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4998 cf_ncurses="$lib"; break
5002 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5003 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5004 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5005 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 ac_check_lib_save_LIBS=$LIBS
5009 LIBS="-l$cf_ncurses $LIBS"
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5033 rm -f conftest.$ac_objext conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035 (eval $ac_link) 2>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 eval "$as_ac_Lib=yes"
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 eval "$as_ac_Lib=no"
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5053 LIBS=$ac_check_lib_save_LIBS
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5058 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5059 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5060 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5063 if test "$cf_ncurses" = ncursesw; then
5065 for ac_header in ncursesw/ncurses.h
5067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069 echo "$as_me:$LINENO: checking for $ac_header" >&5
5070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5077 # Is the header compilable?
5078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5088 #include <$ac_header>
5090 rm -f conftest.$ac_objext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest.$ac_objext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_header_compiler=yes
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ac_header_compiler=no
5109 rm -f conftest.$ac_objext conftest.$ac_ext
5110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5111 echo "${ECHO_T}$ac_header_compiler" >&6
5113 # Is the header present?
5114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <$ac_header>
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_c_preproc_warn_flag
5141 if test -z "$ac_cpp_err"; then
5142 ac_header_preproc=yes
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_header_preproc=no
5149 rm -f conftest.err conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5151 echo "${ECHO_T}$ac_header_preproc" >&6
5153 # So? What about this header?
5154 case $ac_header_compiler:$ac_header_preproc in
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 ## ------------------------------------ ##
5163 ## Report this to bug-autoconf@gnu.org. ##
5164 ## ------------------------------------ ##
5167 sed "s/^/$as_me: WARNING: /" >&2
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5178 ## ------------------------------------ ##
5179 ## Report this to bug-autoconf@gnu.org. ##
5180 ## ------------------------------------ ##
5183 sed "s/^/$as_me: WARNING: /" >&2
5186 echo "$as_me:$LINENO: checking for $ac_header" >&5
5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 eval "$as_ac_Header=$ac_header_preproc"
5193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5201 cf_cv_ncurses_header="ncursesw/ncurses.h"
5208 for ac_header in ncurses.h
5210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5212 echo "$as_me:$LINENO: checking for $ac_header" >&5
5213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5220 # Is the header compilable?
5221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5231 #include <$ac_header>
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -s conftest.$ac_objext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_header_compiler=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_header_compiler=no
5252 rm -f conftest.$ac_objext conftest.$ac_ext
5253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5254 echo "${ECHO_T}$ac_header_compiler" >&6
5256 # Is the header present?
5257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <$ac_header>
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5284 if test -z "$ac_cpp_err"; then
5285 ac_header_preproc=yes
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_header_preproc=no
5292 rm -f conftest.err conftest.$ac_ext
5293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6
5296 # So? What about this header?
5297 case $ac_header_compiler:$ac_header_preproc in
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5321 ## ------------------------------------ ##
5322 ## Report this to bug-autoconf@gnu.org. ##
5323 ## ------------------------------------ ##
5326 sed "s/^/$as_me: WARNING: /" >&2
5329 echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 eval "$as_ac_Header=$ac_header_preproc"
5336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5341 cat >>confdefs.h <<_ACEOF
5342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5344 cf_cv_ncurses_header="ncurses.h"
5352 echo "$as_me:$LINENO: checking for initscr" >&5
5353 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5354 if test "${ac_cv_func_initscr+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 /* System header to define __stub macros and hopefully few prototypes,
5365 which can conflict with char initscr (); below.
5366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367 <limits.h> exists even on freestanding compilers. */
5369 # include <limits.h>
5371 # include <assert.h>
5373 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub_initscr) || defined (__stub___initscr)
5387 char (*f) () = initscr;
5396 return f != initscr;
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_func_initscr=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_cv_func_initscr=no
5420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5422 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5423 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5424 if test $ac_cv_func_initscr = yes; then
5428 case $host_os in #(vi
5430 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5431 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5432 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_check_lib_save_LIBS=$LIBS
5436 LIBS="-lmytinfo $LIBS"
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_lib_mytinfo_tgoto=yes
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_cv_lib_mytinfo_tgoto=no
5479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5480 LIBS=$ac_check_lib_save_LIBS
5482 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5483 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5484 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5485 LIBS="-lmytinfo $LIBS"
5490 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5491 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5492 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lcur_colr $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_lib_cur_colr_initscr=yes
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_cv_lib_cur_colr_initscr=no
5539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5540 LIBS=$ac_check_lib_save_LIBS
5542 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5543 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5544 if test $ac_cv_lib_cur_colr_initscr = yes; then
5546 LIBS="-lcur_colr $LIBS"
5547 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5548 ac_cv_func_initscr=yes
5552 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5553 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5554 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_check_lib_save_LIBS=$LIBS
5558 LIBS="-lHcurses $LIBS"
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_lib_Hcurses_initscr=yes
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 ac_cv_lib_Hcurses_initscr=no
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5604 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5605 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5606 if test $ac_cv_lib_Hcurses_initscr = yes; then
5608 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5609 LIBS="-lHcurses $LIBS"
5610 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5611 ac_cv_func_initscr=yes
5618 linux*) # Suse Linux does not follow /usr/lib convention
5623 if test ".$With5lib" != ".no" ; then
5624 if test -d /usr/5lib ; then
5626 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5627 LIBS="$LIBS -L/usr/5lib"
5631 if test ".$ac_cv_func_initscr" != .yes ; then
5632 cf_save_LIBS="$LIBS"
5636 # Check for library containing tgoto. Do this before curses library
5637 # because it may be needed to link the test-case for initscr.
5638 echo "$as_me:$LINENO: checking for tgoto" >&5
5639 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5640 if test "${ac_cv_func_tgoto+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char tgoto (); below.
5652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653 <limits.h> exists even on freestanding compilers. */
5655 # include <limits.h>
5657 # include <assert.h>
5659 /* Override any gcc2 internal prototype to avoid an error. */
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5667 /* The GNU C library defines this for functions which it implements
5668 to always fail with ENOSYS. Some functions are actually named
5669 something starting with __ and the normal name is an alias. */
5670 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5673 char (*f) () = tgoto;
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -s conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_func_tgoto=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5709 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5710 if test $ac_cv_func_tgoto = yes; then
5711 cf_term_lib=predefined
5714 for cf_term_lib in termcap termlib unknown
5716 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5717 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5718 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 ac_check_lib_save_LIBS=$LIBS
5723 LIBS="-l$cf_term_lib $LIBS"
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5732 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749 (eval $ac_link) 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 eval "$as_ac_Lib=yes"
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 eval "$as_ac_Lib=no"
5766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5771 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5780 # Check for library containing initscr
5781 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5782 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5784 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5785 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5786 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5787 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 ac_check_lib_save_LIBS=$LIBS
5791 LIBS="-l$cf_curs_lib $LIBS"
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5800 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 eval "$as_ac_Lib=yes"
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 eval "$as_ac_Lib=no"
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5839 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5844 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5845 echo "$as_me: error: no curses library found" >&2;}
5846 { (exit 1); exit 1; }; }
5848 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5849 if test "$cf_term_lib" = unknown ; then
5850 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5851 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line $LINENO "configure"
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <${cf_cv_ncurses_header-curses.h}>
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5888 echo "$as_me:$LINENO: result: $cf_result" >&5
5889 echo "${ECHO_T}$cf_result" >&6
5890 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5891 echo "$as_me: error: Cannot link curses library" >&2;}
5892 { (exit 1); exit 1; }; }
5893 elif test "$cf_term_lib" != predefined ; then
5894 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5895 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5896 cat >conftest.$ac_ext <<_ACEOF
5897 #line $LINENO "configure"
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 #include <${cf_cv_ncurses_header-curses.h}>
5907 initscr(); tgoto((char *)0, 0, 0);
5912 rm -f conftest.$ac_objext conftest$ac_exeext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5914 (eval $ac_link) 2>&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5930 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #include <${cf_cv_ncurses_header-curses.h}>
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5970 echo "$as_me:$LINENO: result: $cf_result" >&5
5971 echo "${ECHO_T}$cf_result" >&6
5985 LIBS="$LIBS $MUTTLIBS"
5986 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5989 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5990 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5991 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <${cf_cv_ncurses_header-curses.h}>
6006 extern int ${ac_func}();
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <${cf_cv_ncurses_header-curses.h}>
6037 int (*p)() = ${ac_func};
6043 rm -f conftest.$ac_objext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045 (eval $ac_compile) 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6056 eval "ac_cv_func_decl_$ac_func=yes"
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6062 eval "ac_cv_func_decl_$ac_func=no"
6064 rm -f conftest.$ac_objext conftest.$ac_ext
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6070 eval "ac_cv_func_decl_$ac_func=yes"
6072 rm -f conftest.$ac_objext conftest.$ac_ext
6075 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6076 echo "$as_me:$LINENO: result: yes" >&5
6077 echo "${ECHO_T}yes" >&6
6080 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6082 cat >>confdefs.h <<_ACEOF
6083 #define $ac_tr_func 1
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6092 if test "$ac_cv_func_decl_start_color" = yes; then
6094 cat >>confdefs.h <<\_ACEOF
6095 #define HAVE_COLOR 1
6099 if test "$ac_cv_func_decl_resizeterm" = yes; then
6100 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6106 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6108 if test "${ac_cv_header_stdc+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_cv_header_stdc=yes
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 ac_cv_header_stdc=no
6150 rm -f conftest.$ac_objext conftest.$ac_ext
6152 if test $ac_cv_header_stdc = yes; then
6153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 $EGREP "memchr" >/dev/null 2>&1; then
6168 ac_cv_header_stdc=no
6174 if test $ac_cv_header_stdc = yes; then
6175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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. */
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 $EGREP "free" >/dev/null 2>&1; then
6190 ac_cv_header_stdc=no
6196 if test $ac_cv_header_stdc = yes; then
6197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6198 if test "$cross_compiling" = yes; then
6201 cat >conftest.$ac_ext <<_ACEOF
6202 #line $LINENO "configure"
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6209 #if ((' ' & 0x0FF) == 0x020)
6210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6213 # define ISLOWER(c) \
6214 (('a' <= (c) && (c) <= 'i') \
6215 || ('j' <= (c) && (c) <= 'r') \
6216 || ('s' <= (c) && (c) <= 'z'))
6217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6225 for (i = 0; i < 256; i++)
6226 if (XOR (islower (i), ISLOWER (i))
6227 || toupper (i) != TOUPPER (i))
6232 rm -f conftest$ac_exeext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234 (eval $ac_link) 2>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6245 echo "$as_me: program exited with status $ac_status" >&5
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_cv_header_stdc=no
6252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6257 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6258 if test $ac_cv_header_stdc = yes; then
6260 cat >>confdefs.h <<\_ACEOF
6261 #define STDC_HEADERS 1
6271 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275 echo "$as_me:$LINENO: checking for $ac_header" >&5
6276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283 # Is the header compilable?
6284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6294 #include <$ac_header>
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_header_compiler=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_compiler=no
6315 rm -f conftest.$ac_objext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6317 echo "${ECHO_T}$ac_header_compiler" >&6
6319 # Is the header present?
6320 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <$ac_header>
6331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null; then
6339 if test -s conftest.err; then
6340 ac_cpp_err=$ac_c_preproc_warn_flag
6347 if test -z "$ac_cpp_err"; then
6348 ac_header_preproc=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_header_preproc=no
6355 rm -f conftest.err conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6357 echo "${ECHO_T}$ac_header_preproc" >&6
6359 # So? What about this header?
6360 case $ac_header_compiler:$ac_header_preproc in
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368 ## ------------------------------------ ##
6369 ## Report this to bug-autoconf@gnu.org. ##
6370 ## ------------------------------------ ##
6373 sed "s/^/$as_me: WARNING: /" >&2
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6384 ## ------------------------------------ ##
6385 ## Report this to bug-autoconf@gnu.org. ##
6386 ## ------------------------------------ ##
6389 sed "s/^/$as_me: WARNING: /" >&2
6392 echo "$as_me:$LINENO: checking for $ac_header" >&5
6393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 eval "$as_ac_Header=$ac_header_preproc"
6399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 for ac_header in sys/time.h sys/resource.h
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 # Is the header compilable?
6427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6430 #line $LINENO "configure"
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 #include <$ac_header>
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_header_compiler=yes
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_header_compiler=no
6458 rm -f conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6460 echo "${ECHO_T}$ac_header_compiler" >&6
6462 # Is the header present?
6463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6465 cat >conftest.$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 #include <$ac_header>
6474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477 grep -v '^ *+' conftest.er1 >conftest.err
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } >/dev/null; then
6482 if test -s conftest.err; then
6483 ac_cpp_err=$ac_c_preproc_warn_flag
6490 if test -z "$ac_cpp_err"; then
6491 ac_header_preproc=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_header_preproc=no
6498 rm -f conftest.err conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6500 echo "${ECHO_T}$ac_header_preproc" >&6
6502 # So? What about this header?
6503 case $ac_header_compiler:$ac_header_preproc in
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511 ## ------------------------------------ ##
6512 ## Report this to bug-autoconf@gnu.org. ##
6513 ## ------------------------------------ ##
6516 sed "s/^/$as_me: WARNING: /" >&2
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6527 ## ------------------------------------ ##
6528 ## Report this to bug-autoconf@gnu.org. ##
6529 ## ------------------------------------ ##
6532 sed "s/^/$as_me: WARNING: /" >&2
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 eval "$as_ac_Header=$ac_header_preproc"
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556 for ac_header in unix.h
6558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560 echo "$as_me:$LINENO: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6568 # Is the header compilable?
6569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6579 #include <$ac_header>
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583 (eval $ac_compile) 2>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -s conftest.$ac_objext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_header_compiler=yes
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 ac_header_compiler=no
6600 rm -f conftest.$ac_objext conftest.$ac_ext
6601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6
6604 # Is the header present?
6605 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <$ac_header>
6616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } >/dev/null; then
6624 if test -s conftest.err; then
6625 ac_cpp_err=$ac_c_preproc_warn_flag
6632 if test -z "$ac_cpp_err"; then
6633 ac_header_preproc=yes
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_header_preproc=no
6640 rm -f conftest.err conftest.$ac_ext
6641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6642 echo "${ECHO_T}$ac_header_preproc" >&6
6644 # So? What about this header?
6645 case $ac_header_compiler:$ac_header_preproc in
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6653 ## ------------------------------------ ##
6654 ## Report this to bug-autoconf@gnu.org. ##
6655 ## ------------------------------------ ##
6658 sed "s/^/$as_me: WARNING: /" >&2
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6669 ## ------------------------------------ ##
6670 ## Report this to bug-autoconf@gnu.org. ##
6671 ## ------------------------------------ ##
6674 sed "s/^/$as_me: WARNING: /" >&2
6677 echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 eval "$as_ac_Header=$ac_header_preproc"
6684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689 cat >>confdefs.h <<_ACEOF
6690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 for ac_func in setrlimit getsid isctype
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func (); below.
6718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719 <limits.h> exists even on freestanding compilers. */
6721 # include <limits.h>
6723 # include <assert.h>
6725 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6739 char (*f) () = $ac_func;
6748 return f != $ac_func;
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 eval "$as_ac_var=yes"
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 eval "$as_ac_var=no"
6772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6776 if test `eval echo '${'$as_ac_var'}'` = yes; then
6777 cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6785 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6786 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6787 if test "${ac_cv_type_signal+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6803 extern "C" void (*signal (int, void (*)(int)))(int);
6805 void (*signal ()) ();
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_type_signal=void
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_type_signal=int
6835 rm -f conftest.$ac_objext conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6838 echo "${ECHO_T}$ac_cv_type_signal" >&6
6840 cat >>confdefs.h <<_ACEOF
6841 #define RETSIGTYPE $ac_cv_type_signal
6846 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6847 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6861 ac_cv_type_sig_atomic_t=yes;
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6875 is_sig_atomic_t_volatile=yes;
6876 echo "$as_me:$LINENO: result: yes, volatile" >&5
6877 echo "${ECHO_T}yes, volatile" >&6
6881 is_sig_atomic_t_volatile=no;
6882 echo "$as_me:$LINENO: result: yes, non volatile" >&5
6883 echo "${ECHO_T}yes, non volatile" >&6
6891 echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6
6893 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6894 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6895 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6909 if ((sig_atomic_t *) 0)
6911 if (sizeof (sig_atomic_t))
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_type_sig_atomic_t=yes
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 ac_cv_type_sig_atomic_t=no
6936 rm -f conftest.$ac_objext conftest.$ac_ext
6938 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6939 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6940 if test $ac_cv_type_sig_atomic_t = yes; then
6944 cat >>confdefs.h <<_ACEOF
6945 #define sig_atomic_t int
6950 is_sig_atomic_t_volatile=no
6955 if test $is_sig_atomic_t_volatile = 'yes'
6957 cat >>confdefs.h <<\_ACEOF
6958 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6962 cat >>confdefs.h <<\_ACEOF
6963 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6968 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6969 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6970 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6985 char *p = (char *) sys_siglist;
6992 rm -f conftest.$ac_objext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6994 (eval $ac_compile) 2>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_have_decl_sys_siglist=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_have_decl_sys_siglist=no
7011 rm -f conftest.$ac_objext conftest.$ac_ext
7013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7014 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7015 if test $ac_cv_have_decl_sys_siglist = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 1
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE_DECL_SYS_SIGLIST 0
7033 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7035 if test "${ac_cv_c_bigendian+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 # See if sys/param.h defines the BYTE_ORDER macro.
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/param.h>
7052 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7060 rm -f conftest.$ac_objext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 # It does; now see whether it defined to BIG_ENDIAN or not.
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 #include <sys/types.h>
7081 #include <sys/param.h>
7086 #if BYTE_ORDER != BIG_ENDIAN
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096 (eval $ac_compile) 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_c_bigendian=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_cv_c_bigendian=no
7113 rm -f conftest.$ac_objext conftest.$ac_ext
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 # It does not; compile a test program.
7119 if test "$cross_compiling" = yes; then
7120 # try to guess the endianness by grepping values into an object file
7121 ac_cv_c_bigendian=unknown
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7130 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7131 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7132 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7133 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7134 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7138 _ascii (); _ebcdic ();
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -s conftest.$ac_objext'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7156 ac_cv_c_bigendian=yes
7158 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7159 if test "$ac_cv_c_bigendian" = unknown; then
7160 ac_cv_c_bigendian=no
7162 # finding both strings is unlikely to happen, but who knows?
7163 ac_cv_c_bigendian=unknown
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7183 /* Are we little or big endian? From Harbison&Steele. */
7187 char c[sizeof (long)];
7190 exit (u.c[sizeof (long) - 1] == 1);
7193 rm -f conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_c_bigendian=no
7206 echo "$as_me: program exited with status $ac_status" >&5
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_c_bigendian=yes
7213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7219 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7220 case $ac_cv_c_bigendian in
7223 cat >>confdefs.h <<\_ACEOF
7224 #define WORDS_BIGENDIAN 1
7230 { { echo "$as_me:$LINENO: error: unknown endianness
7231 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7232 echo "$as_me: error: unknown endianness
7233 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7234 { (exit 1); exit 1; }; } ;;
7239 for ac_header in inttypes.h stdint.h
7241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251 # Is the header compilable?
7252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7262 #include <$ac_header>
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -s conftest.$ac_objext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 ac_header_compiler=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 ac_header_compiler=no
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6
7287 # Is the header present?
7288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 #include <$ac_header>
7299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } >/dev/null; then
7307 if test -s conftest.err; then
7308 ac_cpp_err=$ac_c_preproc_warn_flag
7315 if test -z "$ac_cpp_err"; then
7316 ac_header_preproc=yes
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 ac_header_preproc=no
7323 rm -f conftest.err conftest.$ac_ext
7324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7325 echo "${ECHO_T}$ac_header_preproc" >&6
7327 # So? What about this header?
7328 case $ac_header_compiler:$ac_header_preproc in
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7336 ## ------------------------------------ ##
7337 ## Report this to bug-autoconf@gnu.org. ##
7338 ## ------------------------------------ ##
7341 sed "s/^/$as_me: WARNING: /" >&2
7344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352 ## ------------------------------------ ##
7353 ## Report this to bug-autoconf@gnu.org. ##
7354 ## ------------------------------------ ##
7357 sed "s/^/$as_me: WARNING: /" >&2
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 eval "$as_ac_Header=$ac_header_preproc"
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7372 cat >>confdefs.h <<_ACEOF
7373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7380 echo "$as_me:$LINENO: checking for uint32_t" >&5
7381 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7382 cat >conftest.$ac_ext <<_ACEOF
7383 #line $LINENO "configure"
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7390 #include <sys/types.h>
7392 #include <inttypes.h>
7403 if (sizeof (uint32_t))
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_UINT32_T 1
7428 echo "$as_me:$LINENO: result: yes" >&5
7429 echo "${ECHO_T}yes" >&6
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: checking for int" >&5
7441 echo $ECHO_N "checking for int... $ECHO_C" >&6
7442 if test "${ac_cv_type_int+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 $ac_includes_default
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -f conftest.$ac_objext conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7486 echo "${ECHO_T}$ac_cv_type_int" >&6
7488 echo "$as_me:$LINENO: checking size of int" >&5
7489 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7490 if test "${ac_cv_sizeof_int+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 if test "$ac_cv_type_int" = yes; then
7494 # The cast to unsigned long works around a bug in the HP C Compiler
7495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7497 # This bug is HP SR number 8606223364.
7498 if test "$cross_compiling" = yes; then
7499 # Depending upon the size, compute the lo and hi bounds.
7500 cat >conftest.$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7511 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7518 rm -f conftest.$ac_objext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7520 (eval $ac_compile) 2>&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
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. */
7539 $ac_includes_default
7543 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7550 rm -f conftest.$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_hi=$ac_mid; break
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_lo=`expr $ac_mid + 1`
7568 if test $ac_lo -le $ac_mid; then
7572 ac_mid=`expr 2 '*' $ac_mid + 1`
7574 rm -f conftest.$ac_objext conftest.$ac_ext
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 cat >conftest.$ac_ext <<_ACEOF
7581 #line $LINENO "configure"
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7591 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7598 rm -f conftest.$ac_objext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7600 (eval $ac_compile) 2>&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7623 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7630 rm -f conftest.$ac_objext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_lo=$ac_mid; break
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_hi=`expr '(' $ac_mid ')' - 1`
7648 if test $ac_mid -le $ac_hi; then
7652 ac_mid=`expr 2 '*' $ac_mid`
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f conftest.$ac_objext conftest.$ac_ext
7664 rm -f conftest.$ac_objext conftest.$ac_ext
7665 # Binary search between lo and hi bounds.
7666 while test "x$ac_lo" != "x$ac_hi"; do
7667 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7679 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -s conftest.$ac_objext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 ac_lo=`expr '(' $ac_mid ')' + 1`
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7708 ?*) ac_cv_sizeof_int=$ac_lo;;
7709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7710 See \`config.log' for more details." >&5
7711 echo "$as_me: error: cannot compute sizeof (int), 77
7712 See \`config.log' for more details." >&2;}
7713 { (exit 1); exit 1; }; } ;;
7716 if test "$cross_compiling" = yes; then
7717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7718 See \`config.log' for more details." >&5
7719 echo "$as_me: error: cannot run test program while cross compiling
7720 See \`config.log' for more details." >&2;}
7721 { (exit 1); exit 1; }; }
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 long longval () { return (long) (sizeof (int)); }
7732 unsigned long ulongval () { return (long) (sizeof (int)); }
7739 FILE *f = fopen ("conftest.val", "w");
7742 if (((long) (sizeof (int))) < 0)
7744 long i = longval ();
7745 if (i != ((long) (sizeof (int))))
7747 fprintf (f, "%ld\n", i);
7751 unsigned long i = ulongval ();
7752 if (i != ((long) (sizeof (int))))
7754 fprintf (f, "%lu\n", i);
7756 exit (ferror (f) || fclose (f) != 0);
7762 rm -f conftest$ac_exeext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764 (eval $ac_link) 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_sizeof_int=`cat conftest.val`
7775 echo "$as_me: program exited with status $ac_status" >&5
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7781 See \`config.log' for more details." >&5
7782 echo "$as_me: error: cannot compute sizeof (int), 77
7783 See \`config.log' for more details." >&2;}
7784 { (exit 1); exit 1; }; }
7786 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7795 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7796 cat >>confdefs.h <<_ACEOF
7797 #define SIZEOF_INT $ac_cv_sizeof_int
7801 echo "$as_me:$LINENO: checking for long" >&5
7802 echo $ECHO_N "checking for long... $ECHO_C" >&6
7803 if test "${ac_cv_type_long+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7807 #line $LINENO "configure"
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 $ac_includes_default
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7844 rm -f conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7847 echo "${ECHO_T}$ac_cv_type_long" >&6
7849 echo "$as_me:$LINENO: checking size of long" >&5
7850 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7851 if test "${ac_cv_sizeof_long+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 if test "$ac_cv_type_long" = yes; then
7855 # The cast to unsigned long works around a bug in the HP C Compiler
7856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7858 # This bug is HP SR number 8606223364.
7859 if test "$cross_compiling" = yes; then
7860 # Depending upon the size, compute the lo and hi bounds.
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 $ac_includes_default
7872 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -s conftest.$ac_objext'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 $ac_includes_default
7904 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_hi=$ac_mid; break
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_lo=`expr $ac_mid + 1`
7929 if test $ac_lo -le $ac_mid; then
7933 ac_mid=`expr 2 '*' $ac_mid + 1`
7935 rm -f conftest.$ac_objext conftest.$ac_ext
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest.$ac_objext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7973 cat >conftest.$ac_ext <<_ACEOF
7974 #line $LINENO "configure"
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7984 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7991 rm -f conftest.$ac_objext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_lo=$ac_mid; break
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_hi=`expr '(' $ac_mid ')' - 1`
8009 if test $ac_mid -le $ac_hi; then
8013 ac_mid=`expr 2 '*' $ac_mid`
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8023 rm -f conftest.$ac_objext conftest.$ac_ext
8025 rm -f conftest.$ac_objext conftest.$ac_ext
8026 # Binary search between lo and hi bounds.
8027 while test "x$ac_lo" != "x$ac_hi"; do
8028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
8040 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
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
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_lo=`expr '(' $ac_mid ')' + 1`
8066 rm -f conftest.$ac_objext conftest.$ac_ext
8069 ?*) ac_cv_sizeof_long=$ac_lo;;
8070 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8071 See \`config.log' for more details." >&5
8072 echo "$as_me: error: cannot compute sizeof (long), 77
8073 See \`config.log' for more details." >&2;}
8074 { (exit 1); exit 1; }; } ;;
8077 if test "$cross_compiling" = yes; then
8078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8079 See \`config.log' for more details." >&5
8080 echo "$as_me: error: cannot run test program while cross compiling
8081 See \`config.log' for more details." >&2;}
8082 { (exit 1); exit 1; }; }
8084 cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 $ac_includes_default
8092 long longval () { return (long) (sizeof (long)); }
8093 unsigned long ulongval () { return (long) (sizeof (long)); }
8100 FILE *f = fopen ("conftest.val", "w");
8103 if (((long) (sizeof (long))) < 0)
8105 long i = longval ();
8106 if (i != ((long) (sizeof (long))))
8108 fprintf (f, "%ld\n", i);
8112 unsigned long i = ulongval ();
8113 if (i != ((long) (sizeof (long))))
8115 fprintf (f, "%lu\n", i);
8117 exit (ferror (f) || fclose (f) != 0);
8123 rm -f conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_sizeof_long=`cat conftest.val`
8136 echo "$as_me: program exited with status $ac_status" >&5
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot compute sizeof (long), 77
8144 See \`config.log' for more details." >&2;}
8145 { (exit 1); exit 1; }; }
8147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8156 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8157 cat >>confdefs.h <<_ACEOF
8158 #define SIZEOF_LONG $ac_cv_sizeof_long
8163 echo "$as_me:$LINENO: checking for pid_t" >&5
8164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8165 if test "${ac_cv_type_pid_t+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_cv_type_pid_t=yes
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8206 rm -f conftest.$ac_objext conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8209 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8210 if test $ac_cv_type_pid_t = yes; then
8214 cat >>confdefs.h <<_ACEOF
8226 for ac_func in fgetpos memmove setegid srand48 strerror
8228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* System header to define __stub macros and hopefully few prototypes,
8242 which can conflict with char $ac_func (); below.
8243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8244 <limits.h> exists even on freestanding compilers. */
8246 # include <limits.h>
8248 # include <assert.h>
8250 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8258 /* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8264 char (*f) () = $ac_func;
8273 return f != $ac_func;
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 eval "$as_ac_var=yes"
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 eval "$as_ac_var=no"
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8301 if test `eval echo '${'$as_ac_var'}'` = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8312 for ac_func in strcasecmp strdup
8314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315 echo "$as_me:$LINENO: checking for $ac_func" >&5
8316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8317 if eval "test \"\${$as_ac_var+set}\" = set"; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 /* System header to define __stub macros and hopefully few prototypes,
8328 which can conflict with char $ac_func (); below.
8329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8330 <limits.h> exists even on freestanding compilers. */
8332 # include <limits.h>
8334 # include <assert.h>
8336 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8344 /* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
8347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8350 char (*f) () = $ac_func;
8359 return f != $ac_func;
8364 rm -f conftest.$ac_objext conftest$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 eval "$as_ac_var=yes"
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 eval "$as_ac_var=no"
8383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8387 if test `eval echo '${'$as_ac_var'}'` = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8393 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8399 echo "$as_me:$LINENO: checking for getopt" >&5
8400 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8401 if test "${ac_cv_func_getopt+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line $LINENO "configure"
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char getopt (); below.
8413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414 <limits.h> exists even on freestanding compilers. */
8416 # include <limits.h>
8418 # include <assert.h>
8420 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_getopt) || defined (__stub___getopt)
8434 char (*f) () = getopt;
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_func_getopt=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_func_getopt=no
8467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8470 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8472 if test $ac_cv_func_getopt = yes; then
8474 for ac_header in getopt.h
8476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8478 echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8486 # Is the header compilable?
8487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8490 #line $LINENO "configure"
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 #include <$ac_header>
8499 rm -f conftest.$ac_objext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_header_compiler=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_header_compiler=no
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6
8522 # Is the header present?
8523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <$ac_header>
8534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } >/dev/null; then
8542 if test -s conftest.err; then
8543 ac_cpp_err=$ac_c_preproc_warn_flag
8550 if test -z "$ac_cpp_err"; then
8551 ac_header_preproc=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_header_preproc=no
8558 rm -f conftest.err conftest.$ac_ext
8559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560 echo "${ECHO_T}$ac_header_preproc" >&6
8562 # So? What about this header?
8563 case $ac_header_compiler:$ac_header_preproc in
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8571 ## ------------------------------------ ##
8572 ## Report this to bug-autoconf@gnu.org. ##
8573 ## ------------------------------------ ##
8576 sed "s/^/$as_me: WARNING: /" >&2
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587 ## ------------------------------------ ##
8588 ## Report this to bug-autoconf@gnu.org. ##
8589 ## ------------------------------------ ##
8592 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=$ac_header_preproc"
8602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8607 cat >>confdefs.h <<_ACEOF
8608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 for ac_func in snprintf
8622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623 echo "$as_me:$LINENO: checking for $ac_func" >&5
8624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_var+set}\" = set"; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func (); below.
8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 <limits.h> exists even on freestanding compilers. */
8640 # include <limits.h>
8642 # include <assert.h>
8644 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8652 /* The GNU C library defines this for functions which it implements
8653 to always fail with ENOSYS. Some functions are actually named
8654 something starting with __ and the normal name is an alias. */
8655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8658 char (*f) () = $ac_func;
8667 return f != $ac_func;
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 eval "$as_ac_var=yes"
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 eval "$as_ac_var=no"
8691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8701 mutt_cv_snprintf=yes
8706 for ac_func in vsnprintf
8708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8709 echo "$as_me:$LINENO: checking for $ac_func" >&5
8710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8711 if eval "test \"\${$as_ac_var+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 /* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char $ac_func (); below.
8723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 <limits.h> exists even on freestanding compilers. */
8726 # include <limits.h>
8728 # include <assert.h>
8730 /* Override any gcc2 internal prototype to avoid an error. */
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8738 /* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
8741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8744 char (*f) () = $ac_func;
8753 return f != $ac_func;
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 eval "$as_ac_var=yes"
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 eval "$as_ac_var=no"
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8781 if test `eval echo '${'$as_ac_var'}'` = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8787 mutt_cv_snprintf=yes
8791 if test $mutt_cv_snprintf = yes; then
8792 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8796 for ac_func in ftruncate
8798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8816 # include <limits.h>
8818 # include <assert.h>
8820 /* Override any gcc2 internal prototype to avoid an error. */
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8828 /* The GNU C library defines this for functions which it implements
8829 to always fail with ENOSYS. Some functions are actually named
8830 something starting with __ and the normal name is an alias. */
8831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8834 char (*f) () = $ac_func;
8843 return f != $ac_func;
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 eval "$as_ac_var=yes"
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 eval "$as_ac_var=no"
8867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8871 if test `eval echo '${'$as_ac_var'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8878 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8879 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8880 if test "${ac_cv_lib_x_chsize+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 ac_check_lib_save_LIBS=$LIBS
8885 cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910 (eval $ac_link) 2>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_cv_lib_x_chsize=yes
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_lib_x_chsize=no
8927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8928 LIBS=$ac_check_lib_save_LIBS
8930 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8931 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8932 if test $ac_cv_lib_x_chsize = yes; then
8933 cat >>confdefs.h <<_ACEOF
8946 for ac_func in strftime
8948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8949 echo "$as_me:$LINENO: checking for $ac_func" >&5
8950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8951 if eval "test \"\${$as_ac_var+set}\" = set"; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 /* System header to define __stub macros and hopefully few prototypes,
8962 which can conflict with char $ac_func (); below.
8963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8964 <limits.h> exists even on freestanding compilers. */
8966 # include <limits.h>
8968 # include <assert.h>
8970 /* Override any gcc2 internal prototype to avoid an error. */
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8978 /* The GNU C library defines this for functions which it implements
8979 to always fail with ENOSYS. Some functions are actually named
8980 something starting with __ and the normal name is an alias. */
8981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8984 char (*f) () = $ac_func;
8993 return f != $ac_func;
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 eval "$as_ac_var=yes"
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 eval "$as_ac_var=no"
9017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9021 if test `eval echo '${'$as_ac_var'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9028 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9029 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9030 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 ac_check_lib_save_LIBS=$LIBS
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9043 /* Override any gcc2 internal prototype to avoid an error. */
9047 /* We use char because int might match the return type of a gcc2
9048 builtin and then its argument prototype would still apply. */
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9060 (eval $ac_link) 2>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_lib_intl_strftime=yes
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_lib_intl_strftime=no
9077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9078 LIBS=$ac_check_lib_save_LIBS
9080 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9081 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9082 if test $ac_cv_lib_intl_strftime = yes; then
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_LIBINTL 1
9096 for ac_func in fchdir
9098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099 echo "$as_me:$LINENO: checking for $ac_func" >&5
9100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_var+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 /* System header to define __stub macros and hopefully few prototypes,
9112 which can conflict with char $ac_func (); below.
9113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 <limits.h> exists even on freestanding compilers. */
9116 # include <limits.h>
9118 # include <assert.h>
9120 /* Override any gcc2 internal prototype to avoid an error. */
9125 /* We use char because int might match the return type of a gcc2
9126 builtin and then its argument prototype would still apply. */
9128 /* The GNU C library defines this for functions which it implements
9129 to always fail with ENOSYS. Some functions are actually named
9130 something starting with __ and the normal name is an alias. */
9131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9134 char (*f) () = $ac_func;
9143 return f != $ac_func;
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 eval "$as_ac_var=yes"
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 eval "$as_ac_var=no"
9167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9171 if test `eval echo '${'$as_ac_var'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9183 # Check whether --with-regex or --without-regex was given.
9184 if test "${with_regex+set}" = set; then
9185 withval="$with_regex"
9189 for ac_func in regcomp
9191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9198 #line $LINENO "configure"
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 /* System header to define __stub macros and hopefully few prototypes,
9205 which can conflict with char $ac_func (); below.
9206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207 <limits.h> exists even on freestanding compilers. */
9209 # include <limits.h>
9211 # include <assert.h>
9213 /* Override any gcc2 internal prototype to avoid an error. */
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9227 char (*f) () = $ac_func;
9236 return f != $ac_func;
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243 (eval $ac_link) 2>&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 eval "$as_ac_var=yes"
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 eval "$as_ac_var=no"
9260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9264 if test `eval echo '${'$as_ac_var'}'` = yes; then
9265 cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9276 if test $mutt_cv_regex = no ; then
9277 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9278 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9279 if test "${mutt_cv_regex_broken+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 if test "$cross_compiling" = yes; then
9283 mutt_cv_regex_broken=yes
9285 cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9295 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); }
9297 rm -f conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 mutt_cv_regex_broken=no
9310 echo "$as_me: program exited with status $ac_status" >&5
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9315 mutt_cv_regex_broken=yes
9317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9321 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9322 if test $mutt_cv_regex_broken = yes ; then
9323 echo "Using the included GNU regex instead." >&6
9328 if test $mutt_cv_regex = yes; then
9330 cat >>confdefs.h <<\_ACEOF
9331 #define USE_GNU_REGEX 1
9334 LIBOBJS="$LIBOBJS regex.$ac_objext"
9339 # Check whether --with-homespool or --without-homespool was given.
9340 if test "${with_homespool+set}" = set; then
9341 withval="$with_homespool"
9342 with_homespool=${withval}
9344 if test x$with_homespool != x; then
9345 if test $with_homespool = yes; then
9346 with_homespool=mailbox
9349 cat >>confdefs.h <<_ACEOF
9350 #define MAILPATH "$with_homespool"
9354 cat >>confdefs.h <<\_ACEOF
9359 cat >>confdefs.h <<\_ACEOF
9360 #define USE_DOTLOCK 1
9366 # Check whether --with-mailpath or --without-mailpath was given.
9367 if test "${with_mailpath+set}" = set; then
9368 withval="$with_mailpath"
9369 mutt_cv_mailpath=$withval
9371 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9372 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9373 if test "${mutt_cv_mailpath+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 if test -d /var/mail; then
9378 mutt_cv_mailpath=/var/mail
9379 elif test -d /var/spool/mail; then
9380 mutt_cv_mailpath=/var/spool/mail
9381 elif test -d /usr/spool/mail; then
9382 mutt_cv_mailpath=/usr/spool/mail
9383 elif test -d /usr/mail; then
9384 mutt_cv_mailpath=/usr/mail
9387 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9388 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9391 if test "$mutt_cv_mailpath" = no; then
9392 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9393 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9394 { (exit 1); exit 1; }; }
9397 cat >>confdefs.h <<_ACEOF
9398 #define MAILPATH "$mutt_cv_mailpath"
9402 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9403 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9404 if test "${mutt_cv_worldwrite+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 if test "$cross_compiling" = yes; then
9408 mutt_cv_worldwrite=no
9410 cat >conftest.$ac_ext <<_ACEOF
9411 #line $LINENO "configure"
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 #include <sys/types.h>
9418 #include <sys/stat.h>
9420 int main (int argc, char **argv)
9424 stat ("$mutt_cv_mailpath", &s);
9425 if (s.st_mode & S_IWOTH) exit (0);
9429 rm -f conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440 mutt_cv_worldwrite=yes
9442 echo "$as_me: program exited with status $ac_status" >&5
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9447 mutt_cv_worldwrite=no
9449 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9453 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9456 if test $mutt_cv_worldwrite = yes; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define USE_DOTLOCK 1
9464 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9465 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9466 if test "${mutt_cv_groupwrite+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 if test "$cross_compiling" = yes; then
9470 mutt_cv_groupwrite=no
9472 cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <sys/stat.h>
9482 int main (int argc, char **argv)
9486 stat ("$mutt_cv_mailpath", &s);
9487 if (s.st_mode & S_IWGRP) exit (0);
9491 rm -f conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 mutt_cv_groupwrite=yes
9504 echo "$as_me: program exited with status $ac_status" >&5
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9509 mutt_cv_groupwrite=no
9511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9515 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9517 if test $mutt_cv_groupwrite = yes; then
9519 cat >>confdefs.h <<\_ACEOF
9520 #define USE_DOTLOCK 1
9524 cat >>confdefs.h <<\_ACEOF
9525 #define USE_SETGID 1
9533 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9534 if test "${enable_external_dotlock+set}" = set; then
9535 enableval="$enable_external_dotlock"
9536 mutt_cv_external_dotlock="$enableval"
9539 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9540 || test "x$mutt_cv_external_dotlock" = "xyes"
9543 cat >>confdefs.h <<\_ACEOF
9544 #define DL_STANDALONE 1
9547 DOTLOCK_TARGET="muttng_dotlock"
9549 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9555 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9556 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9558 # Check whether --with-docdir or --without-docdir was given.
9559 if test "${with_docdir+set}" = set; then
9560 withval="$with_docdir"
9561 mutt_cv_docdir=$withval
9563 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
9565 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9566 echo "${ECHO_T}$mutt_cv_docdir" >&6
9568 docdir=$mutt_cv_docdir
9571 if test x$mutt_cv_setgid = xyes; then
9572 DOTLOCK_GROUP='mail'
9573 DOTLOCK_PERMISSION=2755
9576 DOTLOCK_PERMISSION=755
9582 # Check whether --with-domain or --without-domain was given.
9583 if test "${with_domain+set}" = set; then
9584 withval="$with_domain"
9585 if test $withval != yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define DOMAIN "$withval"
9597 # Check whether --enable-pop or --disable-pop was given.
9598 if test "${enable_pop+set}" = set; then
9599 enableval="$enable_pop"
9600 if test x$enableval = xyes ; then
9602 cat >>confdefs.h <<\_ACEOF
9606 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9614 # Check whether --enable-imap or --disable-imap was given.
9615 if test "${enable_imap+set}" = set; then
9616 enableval="$enable_imap"
9617 if test x$enableval = xyes ; then
9619 cat >>confdefs.h <<\_ACEOF
9623 LIBIMAP="-Limap -limap"
9624 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9633 if test x$need_imap = xyes; then
9635 BUILD_IMAP_FALSE='#'
9642 # Check whether --enable-nntp or --disable-nntp was given.
9643 if test "${enable_nntp+set}" = set; then
9644 enableval="$enable_nntp"
9645 if test x$enableval = xyes ; then
9646 cat >>confdefs.h <<\_ACEOF
9650 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9657 if test "$need_socket" = "yes"
9659 echo "$as_me:$LINENO: checking for socklen_t" >&5
9660 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9661 cat >conftest.$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 #include <sys/socket.h>
9671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9672 $EGREP "socklen_t" >/dev/null 2>&1; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6
9679 cat >>confdefs.h <<\_ACEOF
9680 #define socklen_t int
9686 echo "$as_me:$LINENO: checking for gethostent" >&5
9687 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9688 if test "${ac_cv_func_gethostent+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char gethostent (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9703 # include <limits.h>
9705 # include <assert.h>
9707 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9715 /* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9721 char (*f) () = gethostent;
9730 return f != gethostent;
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_func_gethostent=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_func_gethostent=no
9754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9757 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9758 if test $ac_cv_func_gethostent = yes; then
9762 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9763 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9764 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 ac_check_lib_save_LIBS=$LIBS
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line $LINENO "configure"
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_lib_nsl_gethostent=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_lib_nsl_gethostent=no
9811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9814 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9816 if test $ac_cv_lib_nsl_gethostent = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818 #define HAVE_LIBNSL 1
9827 echo "$as_me:$LINENO: checking for setsockopt" >&5
9828 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9829 if test "${ac_cv_func_setsockopt+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 /* System header to define __stub macros and hopefully few prototypes,
9840 which can conflict with char setsockopt (); below.
9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842 <limits.h> exists even on freestanding compilers. */
9844 # include <limits.h>
9846 # include <assert.h>
9848 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9862 char (*f) () = setsockopt;
9871 return f != setsockopt;
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_func_setsockopt=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_func_setsockopt=no
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9897 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9898 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9899 if test $ac_cv_func_setsockopt = yes; then
9903 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9904 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9905 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lsocket $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 #line $LINENO "configure"
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935 (eval $ac_link) 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_lib_socket_setsockopt=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_lib_socket_setsockopt=no
9952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9956 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9957 if test $ac_cv_lib_socket_setsockopt = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_LIBSOCKET 1
9962 LIBS="-lsocket $LIBS"
9969 for ac_func in getaddrinfo
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func (); below.
9986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987 <limits.h> exists even on freestanding compilers. */
9989 # include <limits.h>
9991 # include <assert.h>
9993 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10007 char (*f) () = $ac_func;
10016 return f != $ac_func;
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 eval "$as_ac_var=yes"
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 eval "$as_ac_var=no"
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044 if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h <<_ACEOF
10046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10053 cat >>confdefs.h <<\_ACEOF
10054 #define USE_SOCKET 1
10057 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10062 # Check whether --with-gss or --without-gss was given.
10063 if test "${with_gss+set}" = set; then
10064 withval="$with_gss"
10065 gss_prefix="$withval"
10069 if test "$gss_prefix" != "no"
10071 if test "$need_imap" = "yes"
10074 GSSAPI_PREFIX=$gss_prefix
10076 saved_CPPFLAGS="$CPPFLAGS"
10077 saved_LDFLAGS="$LDFLAGS"
10079 if test "$GSSAPI_PREFIX" != "yes"
10081 krb5_path="$GSSAPI_PREFIX/bin"
10085 # Extract the first word of "krb5-config", so it can be a program name with args.
10086 set dummy krb5-config; ac_word=$2
10087 echo "$as_me:$LINENO: checking for $ac_word" >&5
10088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10089 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 case $KRB5CFGPATH in
10094 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $krb5_path
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10115 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10117 if test -n "$KRB5CFGPATH"; then
10118 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10119 echo "${ECHO_T}$KRB5CFGPATH" >&6
10121 echo "$as_me:$LINENO: result: no" >&5
10122 echo "${ECHO_T}no" >&6
10125 if test "$KRB5CFGPATH" != "none"
10127 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10128 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10129 case "`$KRB5CFGPATH --version`" in
10130 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10131 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10132 *) GSSAPI_IMPL="Unknown";;
10135 if test "$GSSAPI_PREFIX" != "yes"
10137 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10138 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10139 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10140 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10143 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10144 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10145 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164 char gss_init_sec_context ();
10168 gss_init_sec_context ();
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10195 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10196 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10197 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10200 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10205 if test "$GSSAPI_IMPL" = "none"
10207 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10208 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10209 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10222 /* Override any gcc2 internal prototype to avoid an error. */
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char gss_init_sec_context ();
10232 gss_init_sec_context ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_gssapi_gss_init_sec_context=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_gssapi_gss_init_sec_context=no
10256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10259 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10260 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10261 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10263 GSSAPI_IMPL="Heimdal"
10264 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10265 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10271 if test "$GSSAPI_IMPL" = "none"
10273 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10274 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10275 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10281 #line $LINENO "configure"
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10288 /* Override any gcc2 internal prototype to avoid an error. */
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294 char g_order_init ();
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_lib_gssapi_krb5_g_order_init=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_cv_lib_gssapi_krb5_g_order_init=no
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10325 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10326 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10327 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10329 GSSAPI_IMPL="OldMIT",
10330 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10337 CPPFLAGS="$saved_CPPFLAGS"
10338 LDFLAGS="$saved_LDFLAGS"
10341 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10342 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10343 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10344 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10345 if test "$GSSAPI_IMPL" = "none"
10347 cat >confcache <<\_ACEOF
10348 # This file is a shell script that caches the results of configure
10349 # tests run on this system so they can be shared between configure
10350 # scripts and configure runs, see configure's option --config-cache.
10351 # It is not useful on other systems. If it contains results you don't
10352 # want to keep, you may remove or edit it.
10354 # config.status only pays attention to the cache file if you give it
10355 # the --recheck option to rerun configure.
10357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10359 # following values.
10363 # The following way of writing the cache mishandles newlines in values,
10364 # but we know of no workaround that is simple, portable, and efficient.
10365 # So, don't put newlines in cache variables' values.
10366 # Ultrix sh set writes to stderr and can't be redirected directly,
10367 # and sets the high bit in the cache file unless we assign to the vars.
10370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10372 # `set' does not quote correctly, so add quotes (double-quote
10373 # substitution turns \\\\ into \\, and sed turns \\ into \).
10376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10379 # `set' quotes correctly as required by POSIX, so do not add quotes.
10381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10392 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10393 if test -w $cache_file; then
10394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10395 cat confcache >$cache_file
10397 echo "not updating unwritable cache $cache_file"
10401 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10402 echo "${ECHO_T}GSSAPI libraries not found" >&6
10404 if test "$GSSAPI_IMPL" = "Heimdal"
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_HEIMDAL 1
10412 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10413 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10415 cat >>confdefs.h <<\_ACEOF
10421 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10422 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10427 if test x$need_gss = xyes; then
10438 # Check whether --with-ssl or --without-ssl was given.
10439 if test "${with_ssl+set}" = set; then
10440 withval="$with_ssl"
10441 if test "$with_ssl" != "no"
10443 if test "$need_socket" != "yes"; then
10444 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10445 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10446 { (exit 1); exit 1; }; }
10449 if test "$with_ssl" != "yes"
10451 LDFLAGS="$LDFLAGS -L$withval/lib"
10452 CPPFLAGS="$CPPFLAGS -I$withval/include"
10457 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10458 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10459 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 ac_check_lib_save_LIBS=$LIBS
10463 LIBS="-lcrypto $LIBS"
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line $LINENO "configure"
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10472 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_lib_crypto_X509_new=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_cv_lib_crypto_X509_new=no
10506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10507 LIBS=$ac_check_lib_save_LIBS
10509 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10510 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10511 if test $ac_cv_lib_crypto_X509_new = yes; then
10512 cat >>confdefs.h <<_ACEOF
10513 #define HAVE_LIBCRYPTO 1
10516 LIBS="-lcrypto $LIBS"
10519 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10520 echo "$as_me: error: Unable to find SSL library" >&2;}
10521 { (exit 1); exit 1; }; }
10525 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10526 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10527 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lssl -lcrypto $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any gcc2 internal prototype to avoid an error. */
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_lib_ssl_SSL_new=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_cv_lib_ssl_SSL_new=no
10574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10578 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10579 if test $ac_cv_lib_ssl_SSL_new = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define HAVE_LIBSSL 1
10587 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10588 echo "$as_me: error: Unable to find SSL library" >&2;}
10589 { (exit 1); exit 1; }; }
10595 for ac_func in RAND_status RAND_egd
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char $ac_func (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10615 # include <limits.h>
10617 # include <assert.h>
10619 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10633 char (*f) () = $ac_func;
10642 return f != $ac_func;
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 eval "$as_ac_var=yes"
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 eval "$as_ac_var=no"
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10670 if test `eval echo '${'$as_ac_var'}'` = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10680 cat >>confdefs.h <<\_ACEOF
10685 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10686 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10694 if test x$need_ssl = xyes; then
10704 # Check whether --with-gnutls or --without-gnutls was given.
10705 if test "${with_gnutls+set}" = set; then
10706 withval="$with_gnutls"
10707 if test "$need_ssl" = "yes"
10709 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10710 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10711 { (exit 1); exit 1; }; }
10713 if test "$with_gnutls" != "no"
10715 if test "$need_socket" != "yes"; then
10716 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10717 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10718 { (exit 1); exit 1; }; }
10720 if test "$with_gnutls" != "yes"
10722 LDFLAGS="$LDFLAGS -L$withval/lib"
10723 CPPFLAGS="$CPPFLAGS -I$withval/include"
10725 #saved_LIBS="$LIBS"
10728 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10729 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10730 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-lgnutls $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10743 /* Override any gcc2 internal prototype to avoid an error. */
10747 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */
10749 char gnutls_init ();
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760 (eval $ac_link) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_lib_gnutls_gnutls_init=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_gnutls_gnutls_init=no
10777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10781 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10782 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10783 cat >>confdefs.h <<_ACEOF
10784 #define HAVE_LIBGNUTLS 1
10787 LIBS="-lgnutls $LIBS"
10790 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10791 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10792 { (exit 1); exit 1; }; }
10797 cat >>confdefs.h <<\_ACEOF
10798 #define USE_GNUTLS 1
10801 #LIBS="$saved_LIBS"
10802 #MUTTLIBS="$MUTTLIBS -lgnutls"
10803 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10810 if test x$need_gnutls = xyes; then
10812 USE_GNUTLS_FALSE='#'
10814 USE_GNUTLS_TRUE='#'
10820 # Check whether --with-nss or --without-nss was given.
10821 if test "${with_nss+set}" = set; then
10822 withval="$with_nss"
10823 if test "$with_nss" != no
10825 if test "$need_socket" != "yes"; then
10826 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10827 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10828 { (exit 1); exit 1; }; }
10831 if test "$with_nss" != "yes"
10833 LDFLAGS="$LDFLAGS -L$withval/lib"
10834 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10838 cat >>confdefs.h <<\_ACEOF
10842 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10843 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10844 MUTTLIBS="$MUTTLIBS -lnspr4"
10846 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10853 # Check whether --with-sasl or --without-sasl was given.
10854 if test "${with_sasl+set}" = set; then
10855 withval="$with_sasl"
10857 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
10859 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10860 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10861 { (exit 1); exit 1; }; }
10864 if test "$with_sasl" != "no"
10866 if test "$with_sasl" != "yes"
10868 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10869 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10875 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10876 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10877 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lsasl $LIBS"
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. */
10890 /* Override any gcc2 internal prototype to avoid an error. */
10894 /* We use char because int might match the return type of a gcc2
10895 builtin and then its argument prototype would still apply. */
10896 char sasl_client_init ();
10900 sasl_client_init ();
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_lib_sasl_sasl_client_init=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_cv_lib_sasl_sasl_client_init=no
10924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10928 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10929 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10930 cat >>confdefs.h <<_ACEOF
10931 #define HAVE_LIBSASL 1
10934 LIBS="-lsasl $LIBS"
10937 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10938 echo "$as_me: error: could not find libsasl" >&2;}
10939 { (exit 1); exit 1; }; }
10943 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10944 MUTTLIBS="$MUTTLIBS -lsasl"
10947 cat >>confdefs.h <<\_ACEOF
10957 if test x$need_sasl = xyes; then
10967 # Check whether --with-sasl2 or --without-sasl2 was given.
10968 if test "${with_sasl2+set}" = set; then
10969 withval="$with_sasl2"
10971 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
10973 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
10974 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
10975 { (exit 1); exit 1; }; }
10978 if test "$with_sasl2" != "no"
10980 if test "$with_sasl2" != "yes"
10982 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10983 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10989 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10990 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10991 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsasl2 $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11004 /* Override any gcc2 internal prototype to avoid an error. */
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010 char sasl_client_init ();
11014 sasl_client_init ();
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_lib_sasl2_sasl_client_init=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_lib_sasl2_sasl_client_init=no
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11042 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11043 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_LIBSASL2 1
11048 LIBS="-lsasl2 $LIBS"
11051 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11052 echo "$as_me: error: could not find libsasl2" >&2;}
11053 { (exit 1); exit 1; }; }
11057 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11058 MUTTLIBS="$MUTTLIBS -lsasl2"
11061 cat >>confdefs.h <<\_ACEOF
11066 cat >>confdefs.h <<\_ACEOF
11067 #define USE_SASL2 1
11076 if test x$need_sasl = xyes; then
11086 # Check whether --with-idn or --without-idn was given.
11087 if test "${with_idn+set}" = set; then
11088 withval="$with_idn"
11090 if test "$with_idn" != "no" ; then
11091 if test "$with_idn" != "yes" ; then
11092 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11093 LDFLAGS="$LDFLAGS -L$with_idn/lib"
11100 if test "x$with_idn" != "xno"; then
11102 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11103 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11104 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 ac_check_lib_save_LIBS=$LIBS
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11117 /* Override any gcc2 internal prototype to avoid an error. */
11121 /* We use char because int might match the return type of a gcc2
11122 builtin and then its argument prototype would still apply. */
11123 char stringprep_check_version ();
11127 stringprep_check_version ();
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134 (eval $ac_link) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_idn_stringprep_check_version=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_lib_idn_stringprep_check_version=no
11151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11155 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11156 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_LIBIDN 1
11167 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170 echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11172 if eval "test \"\${$as_ac_var+set}\" = set"; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 /* System header to define __stub macros and hopefully few prototypes,
11183 which can conflict with char $ac_func (); below.
11184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185 <limits.h> exists even on freestanding compilers. */
11187 # include <limits.h>
11189 # include <assert.h>
11191 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11199 /* The GNU C library defines this for functions which it implements
11200 to always fail with ENOSYS. Some functions are actually named
11201 something starting with __ and the normal name is an alias. */
11202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11205 char (*f) () = $ac_func;
11214 return f != $ac_func;
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 eval "$as_ac_var=yes"
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 eval "$as_ac_var=no"
11238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11242 if test `eval echo '${'$as_ac_var'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11252 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below.
11269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270 <limits.h> exists even on freestanding compilers. */
11272 # include <limits.h>
11274 # include <assert.h>
11276 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11284 /* The GNU C library defines this for functions which it implements
11285 to always fail with ENOSYS. Some functions are actually named
11286 something starting with __ and the normal name is an alias. */
11287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11290 char (*f) () = $ac_func;
11299 return f != $ac_func;
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -s conftest$ac_exeext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 eval "$as_ac_var=yes"
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 eval "$as_ac_var=no"
11323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11327 if test `eval echo '${'$as_ac_var'}'` = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11340 echo "$as_me:$LINENO: checking for $ac_func" >&5
11341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11342 if eval "test \"\${$as_ac_var+set}\" = set"; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 cat >conftest.$ac_ext <<_ACEOF
11346 #line $LINENO "configure"
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func (); below.
11354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355 <limits.h> exists even on freestanding compilers. */
11357 # include <limits.h>
11359 # include <assert.h>
11361 /* Override any gcc2 internal prototype to avoid an error. */
11366 /* We use char because int might match the return type of a gcc2
11367 builtin and then its argument prototype would still apply. */
11369 /* The GNU C library defines this for functions which it implements
11370 to always fail with ENOSYS. Some functions are actually named
11371 something starting with __ and the normal name is an alias. */
11372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11375 char (*f) () = $ac_func;
11384 return f != $ac_func;
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391 (eval $ac_link) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 eval "$as_ac_var=yes"
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 eval "$as_ac_var=no"
11408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423 # Check whether --enable-debug or --disable-debug was given.
11424 if test "${enable_debug+set}" = set; then
11425 enableval="$enable_debug"
11426 if test x$enableval = xyes ; then
11428 cat >>confdefs.h <<\_ACEOF
11436 # Check whether --enable-flock or --disable-flock was given.
11437 if test "${enable_flock+set}" = set; then
11438 enableval="$enable_flock"
11439 if test $enableval = yes; then
11441 cat >>confdefs.h <<\_ACEOF
11442 #define USE_FLOCK 1
11449 # Check whether --enable-fcntl or --disable-fcntl was given.
11450 if test "${enable_fcntl+set}" = set; then
11451 enableval="$enable_fcntl"
11452 if test $enableval = no; then mutt_cv_fcntl=no; fi
11455 if test $mutt_cv_fcntl = yes; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define USE_FCNTL 1
11463 mutt_cv_inodesort=yes
11464 # Check whether --enable-inodesort or --disable-inodesort was given.
11465 if test "${enable_inodesort+set}" = set; then
11466 enableval="$enable_inodesort"
11467 if test $enableval = no ; then mutt_cv_inodesort=no; fi
11470 if test $mutt_cv_inodesort = yes; then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define USE_INODESORT 1
11478 mutt_cv_warnings=yes
11479 # Check whether --enable-warnings or --disable-warnings was given.
11480 if test "${enable_warnings+set}" = set; then
11481 enableval="$enable_warnings"
11482 if test $enableval = no; then
11483 mutt_cv_warnings=no
11487 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11488 CFLAGS="-Wall -pedantic $CFLAGS"
11491 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11492 if test "${enable_nfs_fix+set}" = set; then
11493 enableval="$enable_nfs_fix"
11494 if test x$enableval = xyes; then
11496 cat >>confdefs.h <<\_ACEOF
11497 #define NFS_ATTRIBUTE_HACK 1
11503 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11504 if test "${enable_buffy_size+set}" = set; then
11505 enableval="$enable_buffy_size"
11506 if test x$enableval = xyes; then
11508 cat >>confdefs.h <<\_ACEOF
11509 #define BUFFY_SIZE 1
11515 # Check whether --enable-mailtool or --disable-mailtool was given.
11516 if test "${enable_mailtool+set}" = set; then
11517 enableval="$enable_mailtool"
11518 if test x$enableval = xyes; then
11520 cat >>confdefs.h <<\_ACEOF
11521 #define SUN_ATTACHMENT 1
11527 # Check whether --enable-compressed or --disable-compressed was given.
11528 if test "${enable_compressed+set}" = set; then
11529 enableval="$enable_compressed"
11530 if test x$enableval = xyes; then
11531 cat >>confdefs.h <<\_ACEOF
11532 #define USE_COMPRESSED 1
11538 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11539 if test "${enable_locales_fix+set}" = set; then
11540 enableval="$enable_locales_fix"
11541 if test x$enableval = xyes; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define LOCALES_HACK 1
11551 # Check whether --with-exec-shell or --without-exec-shell was given.
11552 if test "${with_exec_shell+set}" = set; then
11553 withval="$with_exec_shell"
11554 if test $withval != yes; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define EXECSHELL "$withval"
11561 cat >>confdefs.h <<_ACEOF
11562 #define EXECSHELL "/bin/sh"
11567 cat >>confdefs.h <<_ACEOF
11568 #define EXECSHELL "/bin/sh"
11573 # Check whether --enable-exact-address or --disable-exact-address was given.
11574 if test "${enable_exact_address+set}" = set; then
11575 enableval="$enable_exact_address"
11576 if test $enableval = yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define EXACT_ADDRESS 1
11586 # Check whether --enable-hcache or --disable-hcache was given.
11587 if test "${enable_hcache+set}" = set; then
11588 enableval="$enable_hcache"
11589 if test x$enableval = xyes; then
11591 cat >>confdefs.h <<\_ACEOF
11592 #define USE_HCACHE 1
11596 OLDCPPFLAGS="$CPPFLAGS"
11602 # Check whether --with-gdbm or --without-gdbm was given.
11603 if test "${with_gdbm+set}" = set; then
11604 withval="$with_gdbm"
11605 ac_prefer_gdbm=$withval
11607 if test x$ac_prefer_gdbm != xno; then
11608 CPPFLAGS="$OLDCPPFLAGS"
11609 LIBS="$OLDLIBS -lgdbm";
11610 echo "$as_me:$LINENO: checking for gdbm_open" >&5
11611 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
11612 if test "${ac_cv_gdbmopen+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11628 gdbm_open(0,0,0,0,0);
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11654 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
11655 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
11660 # Check whether --with-bdb or --without-bdb was given.
11661 if test "${with_bdb+set}" = set; then
11662 withval="$with_bdb"
11663 ac_bdb_prefix=$withval
11665 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
11666 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
11667 for d in $ac_bdb_prefix; do
11668 bdbpfx="$bdbpfx $d"
11669 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
11670 bdbpfx="$bdbpfx $d/$v"
11673 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
11674 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
11675 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
11676 for d in $bdbpfx; do
11679 for v in / $BDB_VERSIONS; do
11680 if test -r "$d/include/$v/db.h"; then
11681 BDB_INCLUDE_DIR="$d/include/$v"
11682 if test -d "$d/lib/$v"; then
11683 BDB_LIB_DIR="$d/lib/$v"
11684 for l in `echo $BDB_VERSIONS`; do
11685 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11686 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
11687 cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 #include <stdlib.h>
11703 db->open(db,NULL,NULL,NULL,0,0,0);
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711 (eval $ac_link) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733 test x$ac_dbcreate = xyes && break
11737 test x$BDB_LIB != x && break
11739 if test x$ac_cv_dbcreate = xyes; then
11740 echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6
11743 echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6
11748 if test x$ac_cv_gdbmopen = xyes; then
11749 CPPFLAGS="$OLDCPPFLAGS"
11750 LIBS="$OLDLIBS -lgdbm";
11752 cat >>confdefs.h <<\_ACEOF
11753 #define HAVE_GDBM 1
11756 elif test x$ac_cv_dbcreate = xyes; then
11757 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11758 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
11760 cat >>confdefs.h <<\_ACEOF
11765 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
11766 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
11767 { (exit 1); exit 1; }; }
11778 # Check whether --enable-iconv or --disable-iconv was given.
11779 if test "${enable_iconv+set}" = set; then
11780 enableval="$enable_iconv"
11781 if test x$enableval = xno ; then
11782 am_cv_func_iconv=no
11787 echo "$as_me:$LINENO: checking for off_t" >&5
11788 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11789 if test "${ac_cv_type_off_t+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11805 if (sizeof (off_t))
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_cv_type_off_t=yes
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 ac_cv_type_off_t=no
11830 rm -f conftest.$ac_objext conftest.$ac_ext
11832 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11833 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11834 if test $ac_cv_type_off_t = yes; then
11838 cat >>confdefs.h <<_ACEOF
11844 echo "$as_me:$LINENO: checking for size_t" >&5
11845 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11846 if test "${ac_cv_type_size_t+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11862 if (sizeof (size_t))
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_type_size_t=yes
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_type_size_t=no
11887 rm -f conftest.$ac_objext conftest.$ac_ext
11889 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11890 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11891 if test $ac_cv_type_size_t = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define size_t unsigned
11901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11902 # for constant arguments. Useless!
11903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11905 if test "${ac_cv_working_alloca_h+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 #include <alloca.h>
11919 char *p = (char *) alloca (2 * sizeof (int));
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_working_alloca_h=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_cv_working_alloca_h=no
11943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11946 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11947 if test $ac_cv_working_alloca_h = yes; then
11949 cat >>confdefs.h <<\_ACEOF
11950 #define HAVE_ALLOCA_H 1
11955 echo "$as_me:$LINENO: checking for alloca" >&5
11956 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11957 if test "${ac_cv_func_alloca_works+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11961 #line $LINENO "configure"
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11968 # define alloca __builtin_alloca
11971 # include <malloc.h>
11972 # define alloca _alloca
11975 # include <alloca.h>
11980 # ifndef alloca /* predefined by HP cc +Olibcalls */
11991 char *p = (char *) alloca (1);
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_func_alloca_works=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_cv_func_alloca_works=no
12015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12018 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12020 if test $ac_cv_func_alloca_works = yes; then
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_ALLOCA 1
12027 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12028 # that cause trouble. Some versions do not even contain alloca or
12029 # contain a buggy version. If you still want to use their alloca,
12030 # use ar to extract alloca.o from them instead of compiling alloca.c.
12032 ALLOCA=alloca.$ac_objext
12034 cat >>confdefs.h <<\_ACEOF
12039 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12040 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12041 if test "${ac_cv_os_cray+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #if defined(CRAY) && ! defined(CRAY2)
12058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12059 $EGREP "webecray" >/dev/null 2>&1; then
12067 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12068 echo "${ECHO_T}$ac_cv_os_cray" >&6
12069 if test $ac_cv_os_cray = yes; then
12070 for ac_func in _getb67 GETB67 getb67; do
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12074 if eval "test \"\${$as_ac_var+set}\" = set"; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 /* System header to define __stub macros and hopefully few prototypes,
12085 which can conflict with char $ac_func (); below.
12086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12087 <limits.h> exists even on freestanding compilers. */
12089 # include <limits.h>
12091 # include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12098 /* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12101 /* The GNU C library defines this for functions which it implements
12102 to always fail with ENOSYS. Some functions are actually named
12103 something starting with __ and the normal name is an alias. */
12104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12107 char (*f) () = $ac_func;
12116 return f != $ac_func;
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 eval "$as_ac_var=yes"
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 eval "$as_ac_var=no"
12140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12144 if test `eval echo '${'$as_ac_var'}'` = yes; then
12146 cat >>confdefs.h <<_ACEOF
12147 #define CRAY_STACKSEG_END $ac_func
12156 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12157 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12158 if test "${ac_cv_c_stack_direction+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 if test "$cross_compiling" = yes; then
12162 ac_cv_c_stack_direction=0
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #line $LINENO "configure"
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12172 find_stack_direction ()
12174 static char *addr = 0;
12179 return find_stack_direction ();
12182 return (&dummy > addr) ? 1 : -1;
12188 exit (find_stack_direction () < 0);
12191 rm -f conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_cv_c_stack_direction=1
12204 echo "$as_me: program exited with status $ac_status" >&5
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ( exit $ac_status )
12209 ac_cv_c_stack_direction=-1
12211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12215 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12217 cat >>confdefs.h <<_ACEOF
12218 #define STACK_DIRECTION $ac_cv_c_stack_direction
12226 for ac_header in stdlib.h unistd.h
12228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12230 echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238 # Is the header compilable?
12239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 $ac_includes_default
12249 #include <$ac_header>
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -s conftest.$ac_objext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_header_compiler=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_header_compiler=no
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12272 echo "${ECHO_T}$ac_header_compiler" >&6
12274 # Is the header present?
12275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } >/dev/null; then
12294 if test -s conftest.err; then
12295 ac_cpp_err=$ac_c_preproc_warn_flag
12302 if test -z "$ac_cpp_err"; then
12303 ac_header_preproc=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_header_preproc=no
12310 rm -f conftest.err conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12312 echo "${ECHO_T}$ac_header_preproc" >&6
12314 # So? What about this header?
12315 case $ac_header_compiler:$ac_header_preproc in
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323 ## ------------------------------------ ##
12324 ## Report this to bug-autoconf@gnu.org. ##
12325 ## ------------------------------------ ##
12328 sed "s/^/$as_me: WARNING: /" >&2
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12339 ## ------------------------------------ ##
12340 ## Report this to bug-autoconf@gnu.org. ##
12341 ## ------------------------------------ ##
12344 sed "s/^/$as_me: WARNING: /" >&2
12347 echo "$as_me:$LINENO: checking for $ac_header" >&5
12348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 eval "$as_ac_Header=$ac_header_preproc"
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359 cat >>confdefs.h <<_ACEOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368 for ac_func in getpagesize
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char $ac_func (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12388 # include <limits.h>
12390 # include <assert.h>
12392 /* Override any gcc2 internal prototype to avoid an error. */
12397 /* We use char because int might match the return type of a gcc2
12398 builtin and then its argument prototype would still apply. */
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12406 char (*f) () = $ac_func;
12415 return f != $ac_func;
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -s conftest$ac_exeext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 eval "$as_ac_var=yes"
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 eval "$as_ac_var=no"
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451 echo "$as_me:$LINENO: checking for working mmap" >&5
12452 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12453 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 if test "$cross_compiling" = yes; then
12457 ac_cv_func_mmap_fixed_mapped=no
12459 cat >conftest.$ac_ext <<_ACEOF
12460 #line $LINENO "configure"
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 $ac_includes_default
12467 /* malloc might have been renamed as rpl_malloc. */
12470 /* Thanks to Mike Haertel and Jim Avera for this test.
12471 Here is a matrix of mmap possibilities:
12472 mmap private not fixed
12473 mmap private fixed at somewhere currently unmapped
12474 mmap private fixed at somewhere already mapped
12475 mmap shared not fixed
12476 mmap shared fixed at somewhere currently unmapped
12477 mmap shared fixed at somewhere already mapped
12478 For private mappings, we should verify that changes cannot be read()
12479 back from the file, nor mmap's back from the file at a different
12480 address. (There have been systems where private was not correctly
12481 implemented like the infamous i386 svr4.0, and systems where the
12482 VM page cache was not coherent with the file system buffer cache
12483 like early versions of FreeBSD and possibly contemporary NetBSD.)
12484 For shared mappings, we should conversely verify that changes get
12485 propagated back to all the places they're supposed to be.
12487 Grep wants private fixed already mapped.
12488 The main things grep needs to know about mmap are:
12489 * does it exist and is it safe to write into the mmap'd area
12490 * how to use it (BSD variants) */
12493 #include <sys/mman.h>
12495 #if !STDC_HEADERS && !HAVE_STDLIB_H
12499 /* This mess was copied from the GNU getpagesize.h. */
12500 #if !HAVE_GETPAGESIZE
12501 /* Assume that all systems that can run configure have sys/param.h. */
12502 # if !HAVE_SYS_PARAM_H
12503 # define HAVE_SYS_PARAM_H 1
12506 # ifdef _SC_PAGESIZE
12507 # define getpagesize() sysconf(_SC_PAGESIZE)
12508 # else /* no _SC_PAGESIZE */
12509 # if HAVE_SYS_PARAM_H
12510 # include <sys/param.h>
12511 # ifdef EXEC_PAGESIZE
12512 # define getpagesize() EXEC_PAGESIZE
12513 # else /* no EXEC_PAGESIZE */
12515 # define getpagesize() NBPG * CLSIZE
12518 # endif /* no CLSIZE */
12519 # else /* no NBPG */
12521 # define getpagesize() NBPC
12522 # else /* no NBPC */
12524 # define getpagesize() PAGESIZE
12525 # endif /* PAGESIZE */
12526 # endif /* no NBPC */
12527 # endif /* no NBPG */
12528 # endif /* no EXEC_PAGESIZE */
12529 # else /* no HAVE_SYS_PARAM_H */
12530 # define getpagesize() 8192 /* punt totally */
12531 # endif /* no HAVE_SYS_PARAM_H */
12532 # endif /* no _SC_PAGESIZE */
12534 #endif /* no HAVE_GETPAGESIZE */
12539 char *data, *data2, *data3;
12543 pagesize = getpagesize ();
12545 /* First, make a file with some known garbage in it. */
12546 data = (char *) malloc (pagesize);
12549 for (i = 0; i < pagesize; ++i)
12550 *(data + i) = rand ();
12552 fd = creat ("conftest.mmap", 0600);
12555 if (write (fd, data, pagesize) != pagesize)
12559 /* Next, try to mmap the file at a fixed address which already has
12560 something else allocated at it. If we can, also make sure that
12561 we see the same garbage. */
12562 fd = open ("conftest.mmap", O_RDWR);
12565 data2 = (char *) malloc (2 * pagesize);
12568 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12569 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12570 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12572 for (i = 0; i < pagesize; ++i)
12573 if (*(data + i) != *(data2 + i))
12576 /* Finally, make sure that changes to the mapped area do not
12577 percolate back to the file as seen by read(). (This is a bug on
12578 some variants of i386 svr4.0.) */
12579 for (i = 0; i < pagesize; ++i)
12580 *(data2 + i) = *(data2 + i) + 1;
12581 data3 = (char *) malloc (pagesize);
12584 if (read (fd, data3, pagesize) != pagesize)
12586 for (i = 0; i < pagesize; ++i)
12587 if (*(data + i) != *(data3 + i))
12593 rm -f conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_func_mmap_fixed_mapped=yes
12606 echo "$as_me: program exited with status $ac_status" >&5
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ( exit $ac_status )
12611 ac_cv_func_mmap_fixed_mapped=no
12613 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12617 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12618 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_MMAP 1
12625 rm -f conftest.mmap
12628 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12629 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12630 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 #include <features.h>
12642 #ifdef __GNU_LIBRARY__
12643 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12650 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12651 ac_cv_gnu_library_2_1=yes
12653 ac_cv_gnu_library_2_1=no
12660 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12661 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12663 GLIBC21="$ac_cv_gnu_library_2_1"
12677 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12678 stdlib.h string.h unistd.h sys/param.h
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682 echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12690 # Is the header compilable?
12691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 $ac_includes_default
12701 #include <$ac_header>
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_header_compiler=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_header_compiler=no
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12724 echo "${ECHO_T}$ac_header_compiler" >&6
12726 # Is the header present?
12727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12729 cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 #include <$ac_header>
12738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } >/dev/null; then
12746 if test -s conftest.err; then
12747 ac_cpp_err=$ac_c_preproc_warn_flag
12754 if test -z "$ac_cpp_err"; then
12755 ac_header_preproc=yes
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_header_preproc=no
12762 rm -f conftest.err conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12764 echo "${ECHO_T}$ac_header_preproc" >&6
12766 # So? What about this header?
12767 case $ac_header_compiler:$ac_header_preproc in
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12775 ## ------------------------------------ ##
12776 ## Report this to bug-autoconf@gnu.org. ##
12777 ## ------------------------------------ ##
12780 sed "s/^/$as_me: WARNING: /" >&2
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12791 ## ------------------------------------ ##
12792 ## Report this to bug-autoconf@gnu.org. ##
12793 ## ------------------------------------ ##
12796 sed "s/^/$as_me: WARNING: /" >&2
12799 echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 eval "$as_ac_Header=$ac_header_preproc"
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12811 cat >>confdefs.h <<_ACEOF
12812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12840 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12841 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12842 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12845 echo "$as_me:$LINENO: checking for $ac_func" >&5
12846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12847 if eval "test \"\${$as_ac_var+set}\" = set"; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below.
12859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 <limits.h> exists even on freestanding compilers. */
12862 # include <limits.h>
12864 # include <assert.h>
12866 /* Override any gcc2 internal prototype to avoid an error. */
12871 /* We use char because int might match the return type of a gcc2
12872 builtin and then its argument prototype would still apply. */
12874 /* The GNU C library defines this for functions which it implements
12875 to always fail with ENOSYS. Some functions are actually named
12876 something starting with __ and the normal name is an alias. */
12877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12880 char (*f) () = $ac_func;
12889 return f != $ac_func;
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 eval "$as_ac_var=yes"
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 eval "$as_ac_var=no"
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12917 if test `eval echo '${'$as_ac_var'}'` = yes; then
12918 cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12930 if test "${with_libiconv_prefix+set}" = set; then
12931 withval="$with_libiconv_prefix"
12933 for dir in `echo "$withval" | tr : ' '`; do
12934 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12935 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12940 echo "$as_me:$LINENO: checking for iconv" >&5
12941 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12942 if test "${am_cv_func_iconv+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 am_cv_func_iconv="no, consider installing GNU libiconv"
12948 cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 #include <stdlib.h>
12960 iconv_t cd = iconv_open("","");
12961 iconv(cd,NULL,NULL,NULL,NULL);
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969 (eval $ac_link) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 am_cv_func_iconv=yes
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12986 if test "$am_cv_func_iconv" != yes; then
12987 am_save_LIBS="$LIBS"
12988 LIBS="$LIBS -liconv"
12989 cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 #include <stdlib.h>
13001 iconv_t cd = iconv_open("","");
13002 iconv(cd,NULL,NULL,NULL,NULL);
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010 (eval $ac_link) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -s conftest$ac_exeext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 am_cv_lib_iconv=yes
13021 am_cv_func_iconv=yes
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13028 LIBS="$am_save_LIBS"
13032 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13033 echo "${ECHO_T}$am_cv_func_iconv" >&6
13034 if test "$am_cv_func_iconv" = yes; then
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_ICONV 1
13040 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13041 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13042 if test "${am_cv_proto_iconv+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 #include <stdlib.h>
13060 #if defined(__STDC__) || defined(__cplusplus)
13061 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -s conftest.$ac_objext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 am_cv_proto_iconv_arg1=""
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 am_cv_proto_iconv_arg1="const"
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13094 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);"
13097 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13098 echo "$as_me:$LINENO: result: ${ac_t:-
13099 }$am_cv_proto_iconv" >&5
13100 echo "${ECHO_T}${ac_t:-
13101 }$am_cv_proto_iconv" >&6
13103 cat >>confdefs.h <<_ACEOF
13104 #define ICONV_CONST $am_cv_proto_iconv_arg1
13109 if test "$am_cv_lib_iconv" = yes; then
13115 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13116 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13117 if test "${am_cv_langinfo_codeset+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 #include <langinfo.h>
13131 char* cs = nl_langinfo(CODESET);
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 am_cv_langinfo_codeset=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 am_cv_langinfo_codeset=no
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13159 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13160 if test $am_cv_langinfo_codeset = yes; then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_LANGINFO_CODESET 1
13168 if test $ac_cv_header_locale_h = yes; then
13169 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13170 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13171 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 #include <locale.h>
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 am_cv_val_LC_MESSAGES=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 am_cv_val_LC_MESSAGES=no
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13211 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13212 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13213 if test $am_cv_val_LC_MESSAGES = yes; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LC_MESSAGES 1
13221 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13222 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13223 # Check whether --enable-nls or --disable-nls was given.
13224 if test "${enable_nls+set}" = set; then
13225 enableval="$enable_nls"
13230 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13231 echo "${ECHO_T}$USE_NLS" >&6
13234 BUILD_INCLUDED_LIBINTL=no
13235 USE_INCLUDED_LIBINTL=no
13238 if test "$USE_NLS" = "yes"; then
13240 cat >>confdefs.h <<\_ACEOF
13241 #define ENABLE_NLS 1
13244 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13245 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13247 # Check whether --with-included-gettext or --without-included-gettext was given.
13248 if test "${with_included_gettext+set}" = set; then
13249 withval="$with_included_gettext"
13250 nls_cv_force_use_gnu_gettext=$withval
13252 nls_cv_force_use_gnu_gettext=no
13254 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13255 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13257 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13258 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13264 if test "${ac_cv_header_libintl_h+set}" = set; then
13265 echo "$as_me:$LINENO: checking for libintl.h" >&5
13266 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13267 if test "${ac_cv_header_libintl_h+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13271 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13273 # Is the header compilable?
13274 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13275 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13284 #include <libintl.h>
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -s conftest.$ac_objext'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_header_compiler=yes
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13303 ac_header_compiler=no
13305 rm -f conftest.$ac_objext conftest.$ac_ext
13306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13307 echo "${ECHO_T}$ac_header_compiler" >&6
13309 # Is the header present?
13310 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13311 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13313 #line $LINENO "configure"
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <libintl.h>
13321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } >/dev/null; then
13329 if test -s conftest.err; then
13330 ac_cpp_err=$ac_c_preproc_warn_flag
13337 if test -z "$ac_cpp_err"; then
13338 ac_header_preproc=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_header_preproc=no
13345 rm -f conftest.err conftest.$ac_ext
13346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13347 echo "${ECHO_T}$ac_header_preproc" >&6
13349 # So? What about this header?
13350 case $ac_header_compiler:$ac_header_preproc in
13352 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13353 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13355 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13358 ## ------------------------------------ ##
13359 ## Report this to bug-autoconf@gnu.org. ##
13360 ## ------------------------------------ ##
13363 sed "s/^/$as_me: WARNING: /" >&2
13366 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13367 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13369 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13374 ## ------------------------------------ ##
13375 ## Report this to bug-autoconf@gnu.org. ##
13376 ## ------------------------------------ ##
13379 sed "s/^/$as_me: WARNING: /" >&2
13382 echo "$as_me:$LINENO: checking for libintl.h" >&5
13383 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13384 if test "${ac_cv_header_libintl_h+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 ac_cv_header_libintl_h=$ac_header_preproc
13389 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13390 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13393 if test $ac_cv_header_libintl_h = yes; then
13394 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13395 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13396 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 #include <libintl.h>
13407 extern int _nl_msg_cat_cntr;
13411 bindtextdomain ("", "");
13412 return (int) gettext ("") + _nl_msg_cat_cntr
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -s conftest$ac_exeext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 gt_cv_func_gnugettext1_libc=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 gt_cv_func_gnugettext1_libc=no
13436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13439 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13441 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13442 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13443 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13444 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 gt_save_LIBS="$LIBS"
13448 LIBS="$LIBS -lintl $LIBICONV"
13449 cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 #include <libintl.h>
13457 extern int _nl_msg_cat_cntr;
13461 bindtextdomain ("", "");
13462 return (int) gettext ("") + _nl_msg_cat_cntr
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469 (eval $ac_link) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -s conftest$ac_exeext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 gt_cv_func_gnugettext1_libintl=yes
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 gt_cv_func_gnugettext1_libintl=no
13486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13487 LIBS="$gt_save_LIBS"
13489 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13493 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13494 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13495 && test "$PACKAGE" != gettext; }; then
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_GETTEXT 1
13502 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13503 INTLLIBS="-lintl $LIBICONV"
13506 gt_save_LIBS="$LIBS"
13507 LIBS="$LIBS $INTLLIBS"
13509 for ac_func in dcgettext
13511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13512 echo "$as_me:$LINENO: checking for $ac_func" >&5
13513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13514 if eval "test \"\${$as_ac_var+set}\" = set"; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13518 #line $LINENO "configure"
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 /* System header to define __stub macros and hopefully few prototypes,
13525 which can conflict with char $ac_func (); below.
13526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527 <limits.h> exists even on freestanding compilers. */
13529 # include <limits.h>
13531 # include <assert.h>
13533 /* Override any gcc2 internal prototype to avoid an error. */
13538 /* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13541 /* The GNU C library defines this for functions which it implements
13542 to always fail with ENOSYS. Some functions are actually named
13543 something starting with __ and the normal name is an alias. */
13544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13547 char (*f) () = $ac_func;
13556 return f != $ac_func;
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563 (eval $ac_link) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 eval "$as_ac_var=yes"
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 eval "$as_ac_var=no"
13580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13584 if test `eval echo '${'$as_ac_var'}'` = yes; then
13585 cat >>confdefs.h <<_ACEOF
13586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13592 LIBS="$gt_save_LIBS"
13594 # Extract the first word of "msgfmt", so it can be a program name with args.
13595 set dummy msgfmt; ac_word=$2
13596 echo "$as_me:$LINENO: checking for $ac_word" >&5
13597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13598 if test "${ac_cv_path_MSGFMT+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13607 for ac_dir in $PATH; do
13608 test -z "$ac_dir" && ac_dir=.
13609 if test -f $ac_dir/$ac_word; then
13610 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13611 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13617 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13621 MSGFMT="$ac_cv_path_MSGFMT"
13622 if test "$MSGFMT" != ":"; then
13623 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13624 echo "${ECHO_T}$MSGFMT" >&6
13626 echo "$as_me:$LINENO: result: no" >&5
13627 echo "${ECHO_T}no" >&6
13630 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13631 set dummy gmsgfmt; ac_word=$2
13632 echo "$as_me:$LINENO: checking for $ac_word" >&5
13633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13634 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13646 test -z "$as_dir" && as_dir=.
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13649 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13660 GMSGFMT=$ac_cv_path_GMSGFMT
13662 if test -n "$GMSGFMT"; then
13663 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13664 echo "${ECHO_T}$GMSGFMT" >&6
13666 echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6
13671 # Extract the first word of "xgettext", so it can be a program name with args.
13672 set dummy xgettext; ac_word=$2
13673 echo "$as_me:$LINENO: checking for $ac_word" >&5
13674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13675 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 case "$XGETTEXT" in
13680 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13684 for ac_dir in $PATH; do
13685 test -z "$ac_dir" && ac_dir=.
13686 if test -f $ac_dir/$ac_word; then
13687 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13688 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13694 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13698 XGETTEXT="$ac_cv_path_XGETTEXT"
13699 if test "$XGETTEXT" != ":"; then
13700 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13701 echo "${ECHO_T}$XGETTEXT" >&6
13703 echo "$as_me:$LINENO: result: no" >&5
13704 echo "${ECHO_T}no" >&6
13715 if test "$CATOBJEXT" = "NONE"; then
13716 nls_cv_use_gnu_gettext=yes
13720 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13721 INTLOBJS="\$(GETTOBJS)"
13722 # Extract the first word of "msgfmt", so it can be a program name with args.
13723 set dummy msgfmt; ac_word=$2
13724 echo "$as_me:$LINENO: checking for $ac_word" >&5
13725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13726 if test "${ac_cv_path_MSGFMT+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13735 for ac_dir in $PATH; do
13736 test -z "$ac_dir" && ac_dir=.
13737 if test -f $ac_dir/$ac_word; then
13738 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13739 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13745 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13749 MSGFMT="$ac_cv_path_MSGFMT"
13750 if test "$MSGFMT" != ":"; then
13751 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13752 echo "${ECHO_T}$MSGFMT" >&6
13754 echo "$as_me:$LINENO: result: no" >&5
13755 echo "${ECHO_T}no" >&6
13758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13759 set dummy gmsgfmt; ac_word=$2
13760 echo "$as_me:$LINENO: checking for $ac_word" >&5
13761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13774 test -z "$as_dir" && as_dir=.
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13788 GMSGFMT=$ac_cv_path_GMSGFMT
13790 if test -n "$GMSGFMT"; then
13791 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13792 echo "${ECHO_T}$GMSGFMT" >&6
13794 echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6
13798 # Extract the first word of "xgettext", so it can be a program name with args.
13799 set dummy xgettext; ac_word=$2
13800 echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13802 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 case "$XGETTEXT" in
13807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13811 for ac_dir in $PATH; do
13812 test -z "$ac_dir" && ac_dir=.
13813 if test -f $ac_dir/$ac_word; then
13814 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13815 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13825 XGETTEXT="$ac_cv_path_XGETTEXT"
13826 if test "$XGETTEXT" != ":"; then
13827 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13828 echo "${ECHO_T}$XGETTEXT" >&6
13830 echo "$as_me:$LINENO: result: no" >&5
13831 echo "${ECHO_T}no" >&6
13835 BUILD_INCLUDED_LIBINTL=yes
13836 USE_INCLUDED_LIBINTL=yes
13838 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13839 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13842 if test "$GMSGFMT" != ":"; then
13843 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13846 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13847 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13852 if test "$XGETTEXT" != ":"; then
13853 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13856 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13857 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13864 ac_config_commands="$ac_config_commands default-1"
13868 if test "$PACKAGE" = gettext; then
13869 BUILD_INCLUDED_LIBINTL=yes
13872 for ac_prog in bison
13874 # Extract the first word of "$ac_prog", so it can be a program name with args.
13875 set dummy $ac_prog; ac_word=$2
13876 echo "$as_me:$LINENO: checking for $ac_word" >&5
13877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13878 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 if test -n "$INTLBISON"; then
13882 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_prog_INTLBISON="$ac_prog"
13892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 INTLBISON=$ac_cv_prog_INTLBISON
13901 if test -n "$INTLBISON"; then
13902 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13903 echo "${ECHO_T}$INTLBISON" >&6
13905 echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6
13909 test -n "$INTLBISON" && break
13912 if test -z "$INTLBISON"; then
13915 echo "$as_me:$LINENO: checking version of bison" >&5
13916 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13917 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13918 case $ac_prog_version in
13919 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13920 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13921 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13922 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13924 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13925 echo "${ECHO_T}$ac_prog_version" >&6
13927 if test $ac_verc_fail = yes; then
13931 for lang in $ALL_LINGUAS; do
13932 GMOFILES="$GMOFILES $lang.gmo"
13933 POFILES="$POFILES $lang.po"
13946 nls_cv_header_intl=
13947 nls_cv_header_libgt=
13959 if test "x$CATOBJEXT" != "x"; then
13960 if test "x$ALL_LINGUAS" = "x"; then
13963 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13964 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13966 for presentlang in $ALL_LINGUAS; do
13968 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13969 # Use the presentlang catalog if desiredlang is
13970 # a. equal to presentlang, or
13971 # b. a variant of presentlang (because in this case,
13972 # presentlang can be used as a fallback for messages
13973 # which are not translated in the desiredlang catalog).
13974 case "$desiredlang" in
13975 "$presentlang"*) useit=yes;;
13978 if test $useit = yes; then
13979 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13982 LINGUAS=$NEW_LINGUAS
13983 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13984 echo "${ECHO_T}$LINGUAS" >&6
13987 if test -n "$LINGUAS"; then
13988 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13993 if test -n "$ac_aux_dir"; then
13994 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13996 if test -z "$MKINSTALLDIRS"; then
13997 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14001 INTL_LIBTOOL_SUFFIX_PREFIX=
14005 if test "$am_cv_func_iconv" != "yes"
14007 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
14008 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
14012 for ac_header in iconv.h
14014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016 echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14024 # Is the header compilable?
14025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14027 cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 #include <$ac_header>
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_header_compiler=no
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <$ac_header>
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } >/dev/null; then
14080 if test -s conftest.err; then
14081 ac_cpp_err=$ac_c_preproc_warn_flag
14088 if test -z "$ac_cpp_err"; then
14089 ac_header_preproc=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_header_preproc=no
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc in
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14109 ## ------------------------------------ ##
14110 ## Report this to bug-autoconf@gnu.org. ##
14111 ## ------------------------------------ ##
14114 sed "s/^/$as_me: WARNING: /" >&2
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14125 ## ------------------------------------ ##
14126 ## Report this to bug-autoconf@gnu.org. ##
14127 ## ------------------------------------ ##
14130 sed "s/^/$as_me: WARNING: /" >&2
14133 echo "$as_me:$LINENO: checking for $ac_header" >&5
14134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 eval "$as_ac_Header=$ac_header_preproc"
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145 cat >>confdefs.h <<_ACEOF
14146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14148 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14149 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14150 cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14161 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
14162 echo "$as_me:$LINENO: result: yes" >&5
14163 echo "${ECHO_T}yes" >&6
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_ICONV_T_DEF 1
14170 echo "$as_me:$LINENO: result: no" >&5
14171 echo "${ECHO_T}no" >&6
14180 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14181 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14182 if test "${mutt_cv_iconv_good+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 mutt_save_LIBS="$LIBS"
14186 LIBS="$LIBS $LIBICONV"
14187 if test "$cross_compiling" = yes; then
14188 mutt_cv_iconv_good=yes
14190 cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14205 ob = buf, obl = sizeof(buf);
14206 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14207 (iconv(cd, 0, 0, &ob, &obl) ||
14208 !(ob == buf && obl == sizeof(buf)) ||
14213 rm -f conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 mutt_cv_iconv_good=yes
14226 echo "$as_me: program exited with status $ac_status" >&5
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ( exit $ac_status )
14231 mutt_cv_iconv_good=no
14233 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14235 LIBS="$mutt_save_LIBS"
14237 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14238 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14239 if test "$mutt_cv_iconv_good" = no; then
14240 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14241 echo "$as_me: error: Try using libiconv instead" >&2;}
14242 { (exit 1); exit 1; }; }
14245 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14246 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14247 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 mutt_save_LIBS="$LIBS"
14251 LIBS="$LIBS $LIBICONV"
14252 if test "$cross_compiling" = yes; then
14253 mutt_cv_iconv_nontrans=no
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14264 #include <string.h>
14271 const char *s = "\304\211";
14273 ib = s, ibl = 2, ob = t, obl = 3;
14274 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14275 iconv(cd, &ib, &ibl, &ob, &obl));
14279 rm -f conftest$ac_exeext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14281 (eval $ac_link) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 mutt_cv_iconv_nontrans=no
14292 echo "$as_me: program exited with status $ac_status" >&5
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ( exit $ac_status )
14297 mutt_cv_iconv_nontrans=yes
14299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14301 LIBS="$mutt_save_LIBS"
14303 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14304 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14305 if test "$mutt_cv_iconv_nontrans" = yes; then
14306 cat >>confdefs.h <<\_ACEOF
14307 #define ICONV_NONTRANS 1
14311 cat >>confdefs.h <<\_ACEOF
14312 #define ICONV_NONTRANS 0
14317 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14319 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14327 for ac_func in bind_textdomain_codeset
14329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14330 echo "$as_me:$LINENO: checking for $ac_func" >&5
14331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14332 if eval "test \"\${$as_ac_var+set}\" = set"; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 /* System header to define __stub macros and hopefully few prototypes,
14343 which can conflict with char $ac_func (); below.
14344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14345 <limits.h> exists even on freestanding compilers. */
14347 # include <limits.h>
14349 # include <assert.h>
14351 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14359 /* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14365 char (*f) () = $ac_func;
14374 return f != $ac_func;
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -s conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 eval "$as_ac_var=yes"
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 eval "$as_ac_var=no"
14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403 cat >>confdefs.h <<_ACEOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14416 for ac_header in wchar.h
14418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14428 # Is the header compilable?
14429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14431 cat >conftest.$ac_ext <<_ACEOF
14432 #line $LINENO "configure"
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 $ac_includes_default
14439 #include <$ac_header>
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_header_compiler=yes
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ac_header_compiler=no
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14462 echo "${ECHO_T}$ac_header_compiler" >&6
14464 # Is the header present?
14465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #include <$ac_header>
14476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } >/dev/null; then
14484 if test -s conftest.err; then
14485 ac_cpp_err=$ac_c_preproc_warn_flag
14492 if test -z "$ac_cpp_err"; then
14493 ac_header_preproc=yes
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ac_header_preproc=no
14500 rm -f conftest.err conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 echo "${ECHO_T}$ac_header_preproc" >&6
14504 # So? What about this header?
14505 case $ac_header_compiler:$ac_header_preproc in
14507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14513 ## ------------------------------------ ##
14514 ## Report this to bug-autoconf@gnu.org. ##
14515 ## ------------------------------------ ##
14518 sed "s/^/$as_me: WARNING: /" >&2
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14529 ## ------------------------------------ ##
14530 ## Report this to bug-autoconf@gnu.org. ##
14531 ## ------------------------------------ ##
14534 sed "s/^/$as_me: WARNING: /" >&2
14537 echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 eval "$as_ac_Header=$ac_header_preproc"
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14558 echo "$as_me:$LINENO: checking for wchar_t" >&5
14559 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14560 if test "${mutt_cv_wchar_t+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 cat >conftest.$ac_ext <<_ACEOF
14564 #line $LINENO "configure"
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 #include <stddef.h>
14572 #include <stdlib.h>
14573 #ifdef HAVE_WCHAR_H
14580 wchar_t wc; return 0;
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587 (eval $ac_compile) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 mutt_cv_wchar_t=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14604 rm -f conftest.$ac_objext conftest.$ac_ext
14606 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14607 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14609 if test "$mutt_cv_wchar_t" = no; then
14611 cat >>confdefs.h <<\_ACEOF
14612 #define wchar_t int
14617 echo "$as_me:$LINENO: checking for wint_t" >&5
14618 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14619 if test "${mutt_cv_wint_t+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 cat >conftest.$ac_ext <<_ACEOF
14623 #line $LINENO "configure"
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 #include <stddef.h>
14631 #include <stdlib.h>
14632 #ifdef HAVE_WCHAR_H
14639 wint_t wc; return 0;
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14665 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14666 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14668 if test "$mutt_cv_wint_t" = no; then
14670 cat >>confdefs.h <<\_ACEOF
14677 for ac_header in wctype.h
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14689 # Is the header compilable?
14690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 #include <$ac_header>
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704 (eval $ac_compile) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_header_compiler=yes
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_header_compiler=no
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14723 echo "${ECHO_T}$ac_header_compiler" >&6
14725 # Is the header present?
14726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include <$ac_header>
14737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14740 grep -v '^ *+' conftest.er1 >conftest.err
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } >/dev/null; then
14745 if test -s conftest.err; then
14746 ac_cpp_err=$ac_c_preproc_warn_flag
14753 if test -z "$ac_cpp_err"; then
14754 ac_header_preproc=yes
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14759 ac_header_preproc=no
14761 rm -f conftest.err conftest.$ac_ext
14762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14763 echo "${ECHO_T}$ac_header_preproc" >&6
14765 # So? What about this header?
14766 case $ac_header_compiler:$ac_header_preproc in
14768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14774 ## ------------------------------------ ##
14775 ## Report this to bug-autoconf@gnu.org. ##
14776 ## ------------------------------------ ##
14779 sed "s/^/$as_me: WARNING: /" >&2
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14790 ## ------------------------------------ ##
14791 ## Report this to bug-autoconf@gnu.org. ##
14792 ## ------------------------------------ ##
14795 sed "s/^/$as_me: WARNING: /" >&2
14798 echo "$as_me:$LINENO: checking for $ac_header" >&5
14799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 eval "$as_ac_Header=$ac_header_preproc"
14805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14810 cat >>confdefs.h <<_ACEOF
14811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14822 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 echo "$as_me:$LINENO: checking for $ac_func" >&5
14826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14827 if eval "test \"\${$as_ac_var+set}\" = set"; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 cat >conftest.$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 /* System header to define __stub macros and hopefully few prototypes,
14838 which can conflict with char $ac_func (); below.
14839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14840 <limits.h> exists even on freestanding compilers. */
14842 # include <limits.h>
14844 # include <assert.h>
14846 /* Override any gcc2 internal prototype to avoid an error. */
14851 /* We use char because int might match the return type of a gcc2
14852 builtin and then its argument prototype would still apply. */
14854 /* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14860 char (*f) () = $ac_func;
14869 return f != $ac_func;
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 eval "$as_ac_var=yes"
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 eval "$as_ac_var=no"
14893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14897 if test `eval echo '${'$as_ac_var'}'` = yes; then
14898 cat >>confdefs.h <<_ACEOF
14899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14911 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14914 echo "$as_me:$LINENO: checking for $ac_func" >&5
14915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14916 if eval "test \"\${$as_ac_var+set}\" = set"; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 cat >conftest.$ac_ext <<_ACEOF
14920 #line $LINENO "configure"
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 /* System header to define __stub macros and hopefully few prototypes,
14927 which can conflict with char $ac_func (); below.
14928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929 <limits.h> exists even on freestanding compilers. */
14931 # include <limits.h>
14933 # include <assert.h>
14935 /* Override any gcc2 internal prototype to avoid an error. */
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14943 /* The GNU C library defines this for functions which it implements
14944 to always fail with ENOSYS. Some functions are actually named
14945 something starting with __ and the normal name is an alias. */
14946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14949 char (*f) () = $ac_func;
14958 return f != $ac_func;
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -s conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 eval "$as_ac_var=yes"
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 eval "$as_ac_var=no"
14982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14986 if test `eval echo '${'$as_ac_var'}'` = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14997 for ac_func in iswxdigit towupper towlower
14999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 echo "$as_me:$LINENO: checking for $ac_func" >&5
15001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_var+set}\" = set"; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func (); below.
15014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15015 <limits.h> exists even on freestanding compilers. */
15017 # include <limits.h>
15019 # include <assert.h>
15021 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15035 char (*f) () = $ac_func;
15044 return f != $ac_func;
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15051 (eval $ac_link) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 eval "$as_ac_var=no"
15068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15072 if test `eval echo '${'$as_ac_var'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15082 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15083 if test "${mutt_cv_mbstate_t+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 cat >conftest.$ac_ext <<_ACEOF
15087 #line $LINENO "configure"
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15094 #include <stddef.h>
15095 #include <stdlib.h>
15096 #ifdef HAVE_WCHAR_H
15103 mbstate_t s; return 0;
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110 (eval $ac_compile) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 mutt_cv_mbstate_t=yes
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 mutt_cv_mbstate_t=no
15127 rm -f conftest.$ac_objext conftest.$ac_ext
15129 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15130 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15132 if test "$mutt_cv_mbstate_t" = no; then
15134 cat >>confdefs.h <<\_ACEOF
15135 #define mbstate_t int
15142 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15143 if test "${with_wc_funcs+set}" = set; then
15144 withval="$with_wc_funcs"
15148 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15149 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15150 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15151 if test "${mutt_cv_wc_funcs+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 mutt_cv_wc_funcs=no
15155 cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15163 #define _XOPEN_SOURCE 1
15164 #include <stddef.h>
15165 #include <stdlib.h>
15166 #ifdef HAVE_WCTYPE_H
15167 #include <wctype.h>
15169 #ifdef HAVE_WCHAR_H
15175 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15176 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 mutt_cv_wc_funcs=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15201 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15202 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15203 wc_funcs=$mutt_cv_wc_funcs
15206 if test $wc_funcs = yes; then
15208 cat >>confdefs.h <<\_ACEOF
15209 #define HAVE_WC_FUNCS 1
15214 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15215 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15216 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <langinfo.h>
15230 char* cs = nl_langinfo(CODESET);
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 mutt_cv_langinfo_codeset=yes
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 mutt_cv_langinfo_codeset=no
15254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15256 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15257 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15258 if test $mutt_cv_langinfo_codeset = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_LANGINFO_CODESET 1
15266 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15267 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15268 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15272 #line $LINENO "configure"
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 #include <langinfo.h>
15282 char* cs = nl_langinfo(YESEXPR);
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15289 (eval $ac_link) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -s conftest$ac_exeext'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 mutt_cv_langinfo_yesexpr=yes
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 mutt_cv_langinfo_yesexpr=no
15306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15308 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15309 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15310 if test $mutt_cv_langinfo_yesexpr = yes; then
15312 cat >>confdefs.h <<\_ACEOF
15313 #define HAVE_LANGINFO_YESEXPR 1
15320 # Check whether --with-libesmtp or --without-libesmtp was given.
15321 if test "${with_libesmtp+set}" = set; then
15322 withval="$with_libesmtp"
15323 if test "$with_libesmtp" != "no"
15325 mutt_libesmtp_check_path="$PATH"
15327 if test "$with_libesmtp" != "yes"
15329 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15332 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15333 set dummy libesmtp-config; ac_word=$2
15334 echo "$as_me:$LINENO: checking for $ac_word" >&5
15335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15336 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 case $mutt_libesmtp_config_path in
15341 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $mutt_libesmtp_check_path
15348 test -z "$as_dir" && as_dir=.
15349 for ac_exec_ext in '' $ac_executable_extensions; do
15350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15351 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15358 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15362 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15364 if test -n "$mutt_libesmtp_config_path"; then
15365 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15366 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15368 echo "$as_me:$LINENO: result: no" >&5
15369 echo "${ECHO_T}no" >&6
15373 if test "$mutt_libesmtp_config_path" = "no"
15375 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15376 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15377 { (exit 1); exit 1; }; }
15380 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15381 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15383 temp_CFLAGS="$CFLAGS"
15384 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15385 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15386 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15387 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15388 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15392 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15394 # Is the header compilable?
15395 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15396 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line $LINENO "configure"
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 $ac_includes_default
15405 #include <libesmtp.h>
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409 (eval $ac_compile) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -s conftest.$ac_objext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_header_compiler=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_header_compiler=no
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15428 echo "${ECHO_T}$ac_header_compiler" >&6
15430 # Is the header present?
15431 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15432 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 #include <libesmtp.h>
15442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } >/dev/null; then
15450 if test -s conftest.err; then
15451 ac_cpp_err=$ac_c_preproc_warn_flag
15458 if test -z "$ac_cpp_err"; then
15459 ac_header_preproc=yes
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 ac_header_preproc=no
15466 rm -f conftest.err conftest.$ac_ext
15467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468 echo "${ECHO_T}$ac_header_preproc" >&6
15470 # So? What about this header?
15471 case $ac_header_compiler:$ac_header_preproc in
15473 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15474 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15476 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15479 ## ------------------------------------ ##
15480 ## Report this to bug-autoconf@gnu.org. ##
15481 ## ------------------------------------ ##
15484 sed "s/^/$as_me: WARNING: /" >&2
15487 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15492 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15495 ## ------------------------------------ ##
15496 ## Report this to bug-autoconf@gnu.org. ##
15497 ## ------------------------------------ ##
15500 sed "s/^/$as_me: WARNING: /" >&2
15503 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15504 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15505 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 ac_cv_header_libesmtp_h=$ac_header_preproc
15510 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15511 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15514 if test $ac_cv_header_libesmtp_h = yes; then
15517 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15518 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15519 { (exit 1); exit 1; }; }
15523 CFLAGS="$temp_CFLAGS"
15525 temp_CFLAGS="$CFLAGS"
15527 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15528 LIBS="$LIBS $mutt_libesmtp_libs"
15530 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15531 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15532 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lesmtp $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 #line $LINENO "configure"
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15545 /* Override any gcc2 internal prototype to avoid an error. */
15549 /* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15551 char smtp_create_session ();
15555 smtp_create_session ();
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -s conftest$ac_exeext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_cv_lib_esmtp_smtp_create_session=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_cv_lib_esmtp_smtp_create_session=no
15579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15583 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15584 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBESMTP 1
15589 LIBS="-lesmtp $LIBS"
15592 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15593 echo "$as_me: error: Could not find libesmtp" >&2;}
15594 { (exit 1); exit 1; }; }
15597 CFLAGS="$temp_CFLAGS"
15606 if test x$use_libesmtp = xyes; then
15607 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15608 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15609 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15612 cat >>confdefs.h <<\_ACEOF
15613 #define USE_LIBESMTP 1
15618 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"
15619 cat >confcache <<\_ACEOF
15620 # This file is a shell script that caches the results of configure
15621 # tests run on this system so they can be shared between configure
15622 # scripts and configure runs, see configure's option --config-cache.
15623 # It is not useful on other systems. If it contains results you don't
15624 # want to keep, you may remove or edit it.
15626 # config.status only pays attention to the cache file if you give it
15627 # the --recheck option to rerun configure.
15629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15631 # following values.
15635 # The following way of writing the cache mishandles newlines in values,
15636 # but we know of no workaround that is simple, portable, and efficient.
15637 # So, don't put newlines in cache variables' values.
15638 # Ultrix sh set writes to stderr and can't be redirected directly,
15639 # and sets the high bit in the cache file unless we assign to the vars.
15642 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15644 # `set' does not quote correctly, so add quotes (double-quote
15645 # substitution turns \\\\ into \\, and sed turns \\ into \).
15648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15651 # `set' quotes correctly as required by POSIX, so do not add quotes.
15653 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15662 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15664 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15665 if test -w $cache_file; then
15666 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15667 cat confcache >$cache_file
15669 echo "not updating unwritable cache $cache_file"
15674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15675 # Let make expand exec_prefix.
15676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15680 # trailing colons and then remove the whole line if VPATH becomes empty
15681 # (actually we leave an empty line to preserve line numbers).
15682 if test "x$srcdir" = x.; then
15683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15684 s/:*\$(srcdir):*/:/;
15685 s/:*\${srcdir}:*/:/;
15687 s/^\([^=]*=[ ]*\):*/\1/;
15693 DEFS=-DHAVE_CONFIG_H
15697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15698 # 1. Remove the extension, and $U if already installed.
15699 ac_i=`echo "$ac_i" |
15700 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15702 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15703 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15705 LIBOBJS=$ac_libobjs
15707 LTLIBOBJS=$ac_ltlibobjs
15710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15711 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15712 Usually this means the macro was only invoked conditionally." >&5
15713 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&2;}
15715 { (exit 1); exit 1; }; }
15717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15718 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15719 Usually this means the macro was only invoked conditionally." >&5
15720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&2;}
15722 { (exit 1); exit 1; }; }
15724 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15725 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15726 Usually this means the macro was only invoked conditionally." >&5
15727 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15728 Usually this means the macro was only invoked conditionally." >&2;}
15729 { (exit 1); exit 1; }; }
15731 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15732 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15733 Usually this means the macro was only invoked conditionally." >&5
15734 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." >&2;}
15736 { (exit 1); exit 1; }; }
15738 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15739 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15740 Usually this means the macro was only invoked conditionally." >&5
15741 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15742 Usually this means the macro was only invoked conditionally." >&2;}
15743 { (exit 1); exit 1; }; }
15745 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15746 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15747 Usually this means the macro was only invoked conditionally." >&5
15748 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15749 Usually this means the macro was only invoked conditionally." >&2;}
15750 { (exit 1); exit 1; }; }
15752 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15753 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15754 Usually this means the macro was only invoked conditionally." >&5
15755 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15756 Usually this means the macro was only invoked conditionally." >&2;}
15757 { (exit 1); exit 1; }; }
15759 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15760 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15761 Usually this means the macro was only invoked conditionally." >&5
15762 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15763 Usually this means the macro was only invoked conditionally." >&2;}
15764 { (exit 1); exit 1; }; }
15767 : ${CONFIG_STATUS=./config.status}
15768 ac_clean_files_save=$ac_clean_files
15769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15772 cat >$CONFIG_STATUS <<_ACEOF
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15780 ac_cs_recheck=false
15782 SHELL=\${CONFIG_SHELL-$SHELL}
15785 cat >>$CONFIG_STATUS <<\_ACEOF
15786 ## --------------------- ##
15787 ## M4sh Initialization. ##
15788 ## --------------------- ##
15790 # Be Bourne compatible
15791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15795 # is contrary to our usage. Disable this feature.
15796 alias -g '${1+"$@"}'='"$@"'
15797 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15801 # Support unset when possible.
15802 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15809 # Work around bugs in pre-3.0 UWIN ksh.
15810 $as_unset ENV MAIL MAILPATH
15817 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15818 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15819 LC_TELEPHONE LC_TIME
15821 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15822 eval $as_var=C; export $as_var
15828 # Required to use basename.
15829 if expr a : '\(a\)' >/dev/null 2>&1; then
15835 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15836 as_basename=basename
15842 # Name of the executable.
15843 as_me=`$as_basename "$0" ||
15844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15845 X"$0" : 'X\(//\)$' \| \
15846 X"$0" : 'X\(/\)$' \| \
15847 . : '\(.\)' 2>/dev/null ||
15849 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15850 /^X\/\(\/\/\)$/{ s//\1/; q; }
15851 /^X\/\(\/\).*/{ s//\1/; q; }
15855 # PATH needs CR, and LINENO needs CR and PATH.
15856 # Avoid depending upon Character Ranges.
15857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15860 as_cr_digits='0123456789'
15861 as_cr_alnum=$as_cr_Letters$as_cr_digits
15863 # The user is always right.
15864 if test "${PATH_SEPARATOR+set}" != set; then
15865 echo "#! /bin/sh" >conf$$.sh
15866 echo "exit 0" >>conf$$.sh
15868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15877 as_lineno_1=$LINENO
15878 as_lineno_2=$LINENO
15879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15880 test "x$as_lineno_1" != "x$as_lineno_2" &&
15881 test "x$as_lineno_3" = "x$as_lineno_2" || {
15882 # Find who we are. Look in the path if we contain no path at all
15885 *[\\/]* ) as_myself=$0 ;;
15886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887 for as_dir in $PATH
15890 test -z "$as_dir" && as_dir=.
15891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15896 # We did not find ourselves, most probably we were run as `sh COMMAND'
15897 # in which case we are not to be found in the path.
15898 if test "x$as_myself" = x; then
15901 if test ! -f "$as_myself"; then
15902 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15903 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15904 { (exit 1); exit 1; }; }
15906 case $CONFIG_SHELL in
15908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15912 test -z "$as_dir" && as_dir=.
15913 for as_base in sh bash ksh sh5; do
15916 if ("$as_dir/$as_base" -c '
15917 as_lineno_1=$LINENO
15918 as_lineno_2=$LINENO
15919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15920 test "x$as_lineno_1" != "x$as_lineno_2" &&
15921 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15922 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15923 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15924 CONFIG_SHELL=$as_dir/$as_base
15925 export CONFIG_SHELL
15926 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15935 # uniformly replaced by the line number. The first 'sed' inserts a
15936 # line-number line before each line; the second 'sed' does the real
15937 # work. The second script uses 'N' to pair each line-number line
15938 # with the numbered line, and appends trailing '-' during
15939 # substitution so that $LINENO is not a special case at line end.
15940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15941 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15942 sed '=' <$as_myself |
15947 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15950 s,^['$as_cr_digits']*\n,,
15951 ' >$as_me.lineno &&
15952 chmod +x $as_me.lineno ||
15953 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15954 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15955 { (exit 1); exit 1; }; }
15957 # Don't try to exec as it changes $[0], causing all sort of problems
15958 # (the dirname of $[0] is not the place where we might find the
15959 # original and so on. Autoconf is especially sensible to this).
15961 # Exit status is that of the last command.
15966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15967 *c*,-n*) ECHO_N= ECHO_C='
15969 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15970 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15973 if expr a : '\(a\)' >/dev/null 2>&1; then
15979 rm -f conf$$ conf$$.exe conf$$.file
15981 if ln -s conf$$.file conf$$ 2>/dev/null; then
15982 # We could just check for DJGPP; but this test a) works b) is more generic
15983 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15984 if test -f conf$$.exe; then
15985 # Don't use ln at all; we don't have any links
15990 elif ln conf$$.file conf$$ 2>/dev/null; then
15995 rm -f conf$$ conf$$.exe conf$$.file
15997 if mkdir -p . 2>/dev/null; then
16003 as_executable_p="test -f"
16005 # Sed expression to map a string onto a valid CPP name.
16006 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16008 # Sed expression to map a string onto a valid variable name.
16009 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16013 # We need space, tab and new line, in precisely that order.
16023 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16024 # report actual input values of CONFIG_FILES etc. instead of their
16025 # values after options handling. Logging --version etc. is OK.
16029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16030 ## Running $as_me. ##
16035 This file was extended by $as_me, which was
16036 generated by GNU Autoconf 2.57. Invocation command line was
16038 CONFIG_FILES = $CONFIG_FILES
16039 CONFIG_HEADERS = $CONFIG_HEADERS
16040 CONFIG_LINKS = $CONFIG_LINKS
16041 CONFIG_COMMANDS = $CONFIG_COMMANDS
16045 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16049 # Files that config.status was made for.
16050 if test -n "$ac_config_files"; then
16051 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16054 if test -n "$ac_config_headers"; then
16055 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16058 if test -n "$ac_config_links"; then
16059 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16062 if test -n "$ac_config_commands"; then
16063 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16066 cat >>$CONFIG_STATUS <<\_ACEOF
16069 \`$as_me' instantiates files from templates according to the
16070 current configuration.
16072 Usage: $0 [OPTIONS] [FILE]...
16074 -h, --help print this help, then exit
16075 -V, --version print version number, then exit
16076 -q, --quiet do not print progress messages
16077 -d, --debug don't remove temporary files
16078 --recheck update $as_me by reconfiguring in the same conditions
16079 --file=FILE[:TEMPLATE]
16080 instantiate the configuration file FILE
16081 --header=FILE[:TEMPLATE]
16082 instantiate the configuration header FILE
16084 Configuration files:
16087 Configuration headers:
16090 Configuration commands:
16093 Report bugs to <bug-autoconf@gnu.org>."
16096 cat >>$CONFIG_STATUS <<_ACEOF
16099 configured by $0, generated by GNU Autoconf 2.57,
16100 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16102 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16103 Free Software Foundation, Inc.
16104 This config.status script is free software; the Free Software Foundation
16105 gives unlimited permission to copy, distribute and modify it."
16110 cat >>$CONFIG_STATUS <<\_ACEOF
16111 # If no file are specified by the user, then we need to provide default
16112 # value. By we need to know if files were specified by the user.
16118 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16119 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16127 *) # This is not an option, so the user has probably given explicit
16130 ac_need_defaults=false;;
16134 # Handling of the options.
16136 cat >>$CONFIG_STATUS <<\_ACEOF
16137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16139 --version | --vers* | -V )
16140 echo "$ac_cs_version"; exit 0 ;;
16142 # Conflict between --help and --header
16143 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16144 Try \`$0 --help' for more information." >&5
16145 echo "$as_me: error: ambiguous option: $1
16146 Try \`$0 --help' for more information." >&2;}
16147 { (exit 1); exit 1; }; };;
16148 --help | --hel | -h )
16149 echo "$ac_cs_usage"; exit 0 ;;
16150 --debug | --d* | -d )
16152 --file | --fil | --fi | --f )
16154 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16155 ac_need_defaults=false;;
16156 --header | --heade | --head | --hea )
16158 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16159 ac_need_defaults=false;;
16160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16164 # This is an error.
16165 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16166 Try \`$0 --help' for more information." >&5
16167 echo "$as_me: error: unrecognized option: $1
16168 Try \`$0 --help' for more information." >&2;}
16169 { (exit 1); exit 1; }; } ;;
16171 *) ac_config_targets="$ac_config_targets $1" ;;
16177 ac_configure_extra_args=
16179 if $ac_cs_silent; then
16181 ac_configure_extra_args="$ac_configure_extra_args --silent"
16185 cat >>$CONFIG_STATUS <<_ACEOF
16186 if \$ac_cs_recheck; then
16187 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16188 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16193 cat >>$CONFIG_STATUS <<_ACEOF
16195 # INIT-COMMANDS section.
16198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16205 cat >>$CONFIG_STATUS <<\_ACEOF
16206 for ac_config_target in $ac_config_targets
16208 case "$ac_config_target" in
16209 # Handling of arguments.
16210 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16211 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16212 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16213 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16214 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16215 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16216 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16217 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16218 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16219 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16220 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16221 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16222 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16223 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16224 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16225 { (exit 1); exit 1; }; };;
16229 # If the user did not use the arguments to specify the items to instantiate,
16230 # then the envvar interface is used. Set only those that are not.
16231 # We use the long form for the default assignment because of an extremely
16232 # bizarre bug on SunOS 4.1.3.
16233 if $ac_need_defaults; then
16234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16239 # Have a temporary directory for convenience. Make it in the build tree
16240 # simply because there is no reason to put it here, and in addition,
16241 # creating and moving files from /tmp can sometimes cause problems.
16242 # Create a temporary directory, and hook for its removal unless debugging.
16245 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16246 trap '{ (exit 1); exit 1; }' 1 2 13 15
16249 # Create a (secure) tmp directory for tmp files.
16252 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16253 test -n "$tmp" && test -d "$tmp"
16256 tmp=./confstat$$-$RANDOM
16257 (umask 077 && mkdir $tmp)
16260 echo "$me: cannot create a temporary directory in ." >&2
16261 { (exit 1); exit 1; }
16266 cat >>$CONFIG_STATUS <<_ACEOF
16269 # CONFIG_FILES section.
16272 # No need to generate the scripts if there are no CONFIG_FILES.
16273 # This happens for instance when ./config.status config.h
16274 if test -n "\$CONFIG_FILES"; then
16275 # Protect against being on the right side of a sed subst in config.status.
16276 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16277 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16278 s,@SHELL@,$SHELL,;t t
16279 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16280 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16281 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16282 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16283 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16284 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16285 s,@exec_prefix@,$exec_prefix,;t t
16286 s,@prefix@,$prefix,;t t
16287 s,@program_transform_name@,$program_transform_name,;t t
16288 s,@bindir@,$bindir,;t t
16289 s,@sbindir@,$sbindir,;t t
16290 s,@libexecdir@,$libexecdir,;t t
16291 s,@datadir@,$datadir,;t t
16292 s,@sysconfdir@,$sysconfdir,;t t
16293 s,@sharedstatedir@,$sharedstatedir,;t t
16294 s,@localstatedir@,$localstatedir,;t t
16295 s,@libdir@,$libdir,;t t
16296 s,@includedir@,$includedir,;t t
16297 s,@oldincludedir@,$oldincludedir,;t t
16298 s,@infodir@,$infodir,;t t
16299 s,@mandir@,$mandir,;t t
16300 s,@build_alias@,$build_alias,;t t
16301 s,@host_alias@,$host_alias,;t t
16302 s,@target_alias@,$target_alias,;t t
16303 s,@DEFS@,$DEFS,;t t
16304 s,@ECHO_C@,$ECHO_C,;t t
16305 s,@ECHO_N@,$ECHO_N,;t t
16306 s,@ECHO_T@,$ECHO_T,;t t
16307 s,@LIBS@,$LIBS,;t t
16308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16311 s,@CYGPATH_W@,$CYGPATH_W,;t t
16312 s,@PACKAGE@,$PACKAGE,;t t
16313 s,@VERSION@,$VERSION,;t t
16314 s,@ACLOCAL@,$ACLOCAL,;t t
16315 s,@AUTOCONF@,$AUTOCONF,;t t
16316 s,@AUTOMAKE@,$AUTOMAKE,;t t
16317 s,@AUTOHEADER@,$AUTOHEADER,;t t
16318 s,@MAKEINFO@,$MAKEINFO,;t t
16319 s,@AMTAR@,$AMTAR,;t t
16320 s,@install_sh@,$install_sh,;t t
16321 s,@STRIP@,$STRIP,;t t
16322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16323 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16325 s,@SET_MAKE@,$SET_MAKE,;t t
16326 s,@am__leading_dot@,$am__leading_dot,;t t
16327 s,@build@,$build,;t t
16328 s,@build_cpu@,$build_cpu,;t t
16329 s,@build_vendor@,$build_vendor,;t t
16330 s,@build_os@,$build_os,;t t
16331 s,@host@,$host,;t t
16332 s,@host_cpu@,$host_cpu,;t t
16333 s,@host_vendor@,$host_vendor,;t t
16334 s,@host_os@,$host_os,;t t
16336 s,@CFLAGS@,$CFLAGS,;t t
16337 s,@LDFLAGS@,$LDFLAGS,;t t
16338 s,@CPPFLAGS@,$CPPFLAGS,;t t
16339 s,@ac_ct_CC@,$ac_ct_CC,;t t
16340 s,@EXEEXT@,$EXEEXT,;t t
16341 s,@OBJEXT@,$OBJEXT,;t t
16342 s,@DEPDIR@,$DEPDIR,;t t
16343 s,@am__include@,$am__include,;t t
16344 s,@am__quote@,$am__quote,;t t
16345 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16346 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16347 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16348 s,@CCDEPMODE@,$CCDEPMODE,;t t
16349 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16350 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16352 s,@EGREP@,$EGREP,;t t
16354 s,@ANSI2KNR@,$ANSI2KNR,;t t
16355 s,@RANLIB@,$RANLIB,;t t
16356 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16358 s,@ac_ct_AR@,$ac_ct_AR,;t t
16362 s,@DEBUGGER@,$DEBUGGER,;t t
16363 s,@SENDMAIL@,$SENDMAIL,;t t
16365 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16366 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16367 s,@SUBVERSION@,$SUBVERSION,;t t
16368 s,@ISPELL@,$ISPELL,;t t
16369 s,@LIBOBJS@,$LIBOBJS,;t t
16370 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16371 s,@docdir@,$docdir,;t t
16372 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16373 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16374 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16375 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16376 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16377 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16378 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16379 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16380 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16381 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16382 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16383 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16384 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16385 s,@MUTTLIBS@,$MUTTLIBS,;t t
16386 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16387 s,@LIBIMAP@,$LIBIMAP,;t t
16388 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16389 s,@ALLOCA@,$ALLOCA,;t t
16390 s,@GLIBC21@,$GLIBC21,;t t
16391 s,@LIBICONV@,$LIBICONV,;t t
16392 s,@USE_NLS@,$USE_NLS,;t t
16393 s,@MSGFMT@,$MSGFMT,;t t
16394 s,@GMSGFMT@,$GMSGFMT,;t t
16395 s,@XGETTEXT@,$XGETTEXT,;t t
16396 s,@INTLBISON@,$INTLBISON,;t t
16397 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16398 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16399 s,@CATALOGS@,$CATALOGS,;t t
16400 s,@CATOBJEXT@,$CATOBJEXT,;t t
16401 s,@GMOFILES@,$GMOFILES,;t t
16402 s,@INTLLIBS@,$INTLLIBS,;t t
16403 s,@INTLOBJS@,$INTLOBJS,;t t
16404 s,@POFILES@,$POFILES,;t t
16405 s,@POSUB@,$POSUB,;t t
16406 s,@DATADIRNAME@,$DATADIRNAME,;t t
16407 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16408 s,@GENCAT@,$GENCAT,;t t
16409 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16410 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16411 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16412 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16417 cat >>$CONFIG_STATUS <<\_ACEOF
16418 # Split the substitutions into bite-sized pieces for seds with
16419 # small command number limits, like on Digital OSF/1 and HP-UX.
16420 ac_max_sed_lines=48
16421 ac_sed_frag=1 # Number of current file.
16422 ac_beg=1 # First line for current file.
16423 ac_end=$ac_max_sed_lines # Line after last line for current file.
16426 while $ac_more_lines; do
16427 if test $ac_beg -gt 1; then
16428 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16430 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16432 if test ! -s $tmp/subs.frag; then
16433 ac_more_lines=false
16435 # The purpose of the label and of the branching condition is to
16436 # speed up the sed processing (if there are no `@' at all, there
16437 # is no need to browse any of the substitutions).
16438 # These are the two extra sed commands mentioned above.
16440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16441 if test -z "$ac_sed_cmds"; then
16442 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16444 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16446 ac_sed_frag=`expr $ac_sed_frag + 1`
16448 ac_end=`expr $ac_end + $ac_max_sed_lines`
16451 if test -z "$ac_sed_cmds"; then
16454 fi # test -n "$CONFIG_FILES"
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16461 - | *:- | *:-:* ) # input from stdin
16463 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16465 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16467 * ) ac_file_in=$ac_file.in ;;
16470 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16471 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16473 X"$ac_file" : 'X\(//\)[^/]' \| \
16474 X"$ac_file" : 'X\(//\)$' \| \
16475 X"$ac_file" : 'X\(/\)' \| \
16476 . : '\(.\)' 2>/dev/null ||
16478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16480 /^X\(\/\/\)$/{ s//\1/; q; }
16481 /^X\(\/\).*/{ s//\1/; q; }
16483 { if $as_mkdir_p; then
16488 while test ! -d "$as_dir"; do
16489 as_dirs="$as_dir $as_dirs"
16490 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492 X"$as_dir" : 'X\(//\)[^/]' \| \
16493 X"$as_dir" : 'X\(//\)$' \| \
16494 X"$as_dir" : 'X\(/\)' \| \
16495 . : '\(.\)' 2>/dev/null ||
16497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16499 /^X\(\/\/\)$/{ s//\1/; q; }
16500 /^X\(\/\).*/{ s//\1/; q; }
16503 test ! -n "$as_dirs" || mkdir $as_dirs
16504 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16506 { (exit 1); exit 1; }; }; }
16510 if test "$ac_dir" != .; then
16511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16512 # A "../" for each directory in $ac_dir_suffix.
16513 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16515 ac_dir_suffix= ac_top_builddir=
16519 .) # No --srcdir option. We are building in place.
16521 if test -z "$ac_top_builddir"; then
16524 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16526 [\\/]* | ?:[\\/]* ) # Absolute path.
16527 ac_srcdir=$srcdir$ac_dir_suffix;
16528 ac_top_srcdir=$srcdir ;;
16529 *) # Relative path.
16530 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16531 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16533 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16535 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16536 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16537 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16538 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16543 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16546 if test x"$ac_file" != x-; then
16547 { echo "$as_me:$LINENO: creating $ac_file" >&5
16548 echo "$as_me: creating $ac_file" >&6;}
16551 # Let's still pretend it is `configure' which instantiates (i.e., don't
16552 # use $as_me), people would be surprised to read:
16553 # /* config.h. Generated by config.status. */
16554 if test x"$ac_file" = x-; then
16557 configure_input="$ac_file. "
16559 configure_input=$configure_input"Generated from `echo $ac_file_in |
16560 sed 's,.*/,,'` by configure."
16562 # First look for the input files in the build tree, otherwise in the
16564 ac_file_inputs=`IFS=:
16565 for f in $ac_file_in; do
16567 -) echo $tmp/stdin ;;
16569 # Absolute (can't be DOS-style, as IFS=:)
16570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16571 echo "$as_me: error: cannot find input file: $f" >&2;}
16572 { (exit 1); exit 1; }; }
16575 if test -f "$f"; then
16578 elif test -f "$srcdir/$f"; then
16583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16584 echo "$as_me: error: cannot find input file: $f" >&2;}
16585 { (exit 1); exit 1; }; }
16588 done` || { (exit 1); exit 1; }
16590 cat >>$CONFIG_STATUS <<_ACEOF
16594 cat >>$CONFIG_STATUS <<\_ACEOF
16596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16597 s,@configure_input@,$configure_input,;t t
16598 s,@srcdir@,$ac_srcdir,;t t
16599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16600 s,@top_srcdir@,$ac_top_srcdir,;t t
16601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16602 s,@builddir@,$ac_builddir,;t t
16603 s,@abs_builddir@,$ac_abs_builddir,;t t
16604 s,@top_builddir@,$ac_top_builddir,;t t
16605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16606 s,@INSTALL@,$ac_INSTALL,;t t
16607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16609 if test x"$ac_file" != x-; then
16610 mv $tmp/out $ac_file
16618 cat >>$CONFIG_STATUS <<\_ACEOF
16621 # CONFIG_HEADER section.
16624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16627 # ac_d sets the value in "#define NAME VALUE" lines.
16628 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16629 ac_dB='[ ].*$,\1#\2'
16632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16633 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16634 ac_uB='$,\1#\2define\3'
16638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16641 - | *:- | *:-:* ) # input from stdin
16643 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16645 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16647 * ) ac_file_in=$ac_file.in ;;
16650 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16651 echo "$as_me: creating $ac_file" >&6;}
16653 # First look for the input files in the build tree, otherwise in the
16655 ac_file_inputs=`IFS=:
16656 for f in $ac_file_in; do
16658 -) echo $tmp/stdin ;;
16660 # Absolute (can't be DOS-style, as IFS=:)
16661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16662 echo "$as_me: error: cannot find input file: $f" >&2;}
16663 { (exit 1); exit 1; }; }
16666 if test -f "$f"; then
16669 elif test -f "$srcdir/$f"; then
16674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16675 echo "$as_me: error: cannot find input file: $f" >&2;}
16676 { (exit 1); exit 1; }; }
16679 done` || { (exit 1); exit 1; }
16680 # Remove the trailing spaces.
16681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16686 # `conftest.undefs', that substitutes the proper values into
16687 # config.h.in to produce config.h. The first handles `#define'
16688 # templates, and the second `#undef' templates.
16689 # And first: Protect against being on the right side of a sed subst in
16690 # config.status. Protect against being in an unquoted here document
16691 # in config.status.
16692 rm -f conftest.defines conftest.undefs
16693 # Using a here document instead of a string reduces the quoting nightmare.
16694 # Putting comments in sed scripts is not portable.
16696 # `end' is used to avoid that the second main sed command (meant for
16697 # 0-ary CPP macros) applies to n-ary macro definitions.
16698 # See the Autoconf documentation for `clear'.
16699 cat >confdef2sed.sed <<\_ACEOF
16704 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16706 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16709 # If some macros were called several times there might be several times
16710 # the same #defines, which is useless. Nevertheless, we may not want to
16711 # sort them, since we want the *last* AC-DEFINE to be honored.
16712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16714 rm -f confdef2sed.sed
16716 # This sed command replaces #undef with comments. This is necessary, for
16717 # example, in the case of _POSIX_SOURCE, which is predefined and required
16718 # on some systems where configure will not decide to define it.
16719 cat >>conftest.undefs <<\_ACEOF
16720 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16723 # Break up conftest.defines because some shells have a limit on the size
16724 # of here documents, and old seds have small limits too (100 cmds).
16725 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16726 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16727 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16728 echo ' :' >>$CONFIG_STATUS
16729 rm -f conftest.tail
16730 while grep . conftest.defines >/dev/null
16732 # Write a limited-size here document to $tmp/defines.sed.
16733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16734 # Speed up: don't consider the non `#define' lines.
16735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16736 # Work around the forget-to-reset-the-flag bug.
16737 echo 't clr' >>$CONFIG_STATUS
16738 echo ': clr' >>$CONFIG_STATUS
16739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16743 mv $tmp/out $tmp/in
16745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16746 rm -f conftest.defines
16747 mv conftest.tail conftest.defines
16749 rm -f conftest.defines
16750 echo ' fi # grep' >>$CONFIG_STATUS
16751 echo >>$CONFIG_STATUS
16753 # Break up conftest.undefs because some shells have a limit on the size
16754 # of here documents, and old seds have small limits too (100 cmds).
16755 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16756 rm -f conftest.tail
16757 while grep . conftest.undefs >/dev/null
16759 # Write a limited-size here document to $tmp/undefs.sed.
16760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16761 # Speed up: don't consider the non `#undef'
16762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16763 # Work around the forget-to-reset-the-flag bug.
16764 echo 't clr' >>$CONFIG_STATUS
16765 echo ': clr' >>$CONFIG_STATUS
16766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16770 mv $tmp/out $tmp/in
16772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16773 rm -f conftest.undefs
16774 mv conftest.tail conftest.undefs
16776 rm -f conftest.undefs
16778 cat >>$CONFIG_STATUS <<\_ACEOF
16779 # Let's still pretend it is `configure' which instantiates (i.e., don't
16780 # use $as_me), people would be surprised to read:
16781 # /* config.h. Generated by config.status. */
16782 if test x"$ac_file" = x-; then
16783 echo "/* Generated by configure. */" >$tmp/config.h
16785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16787 cat $tmp/in >>$tmp/config.h
16789 if test x"$ac_file" != x-; then
16790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16792 echo "$as_me: $ac_file is unchanged" >&6;}
16794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796 X"$ac_file" : 'X\(//\)[^/]' \| \
16797 X"$ac_file" : 'X\(//\)$' \| \
16798 X"$ac_file" : 'X\(/\)' \| \
16799 . : '\(.\)' 2>/dev/null ||
16801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16803 /^X\(\/\/\)$/{ s//\1/; q; }
16804 /^X\(\/\).*/{ s//\1/; q; }
16806 { if $as_mkdir_p; then
16811 while test ! -d "$as_dir"; do
16812 as_dirs="$as_dir $as_dirs"
16813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16815 X"$as_dir" : 'X\(//\)[^/]' \| \
16816 X"$as_dir" : 'X\(//\)$' \| \
16817 X"$as_dir" : 'X\(/\)' \| \
16818 . : '\(.\)' 2>/dev/null ||
16820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16822 /^X\(\/\/\)$/{ s//\1/; q; }
16823 /^X\(\/\).*/{ s//\1/; q; }
16826 test ! -n "$as_dirs" || mkdir $as_dirs
16827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16829 { (exit 1); exit 1; }; }; }
16832 mv $tmp/config.h $ac_file
16836 rm -f $tmp/config.h
16838 # Compute $ac_file's index in $config_headers.
16840 for _am_header in $config_headers :; do
16841 case $_am_header in
16842 $ac_file | $ac_file:* )
16845 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16848 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16849 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16850 X$ac_file : 'X\(//\)[^/]' \| \
16851 X$ac_file : 'X\(//\)$' \| \
16852 X$ac_file : 'X\(/\)' \| \
16853 . : '\(.\)' 2>/dev/null ||
16855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16857 /^X\(\/\/\)$/{ s//\1/; q; }
16858 /^X\(\/\).*/{ s//\1/; q; }
16859 s/.*/./; q'`/stamp-h$_am_stamp_count
16862 cat >>$CONFIG_STATUS <<\_ACEOF
16865 # CONFIG_COMMANDS section.
16867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16868 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16869 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16870 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16872 X"$ac_dest" : 'X\(//\)[^/]' \| \
16873 X"$ac_dest" : 'X\(//\)$' \| \
16874 X"$ac_dest" : 'X\(/\)' \| \
16875 . : '\(.\)' 2>/dev/null ||
16877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16879 /^X\(\/\/\)$/{ s//\1/; q; }
16880 /^X\(\/\).*/{ s//\1/; q; }
16884 if test "$ac_dir" != .; then
16885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16886 # A "../" for each directory in $ac_dir_suffix.
16887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16889 ac_dir_suffix= ac_top_builddir=
16893 .) # No --srcdir option. We are building in place.
16895 if test -z "$ac_top_builddir"; then
16898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16900 [\\/]* | ?:[\\/]* ) # Absolute path.
16901 ac_srcdir=$srcdir$ac_dir_suffix;
16902 ac_top_srcdir=$srcdir ;;
16903 *) # Relative path.
16904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16915 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16916 echo "$as_me: executing $ac_dest commands" >&6;}
16918 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16919 # Strip MF so we end up with the name of the file.
16920 mf=`echo "$mf" | sed -e 's/:.*$//'`
16921 # Check whether this is an Automake generated Makefile or not.
16922 # We used to match only the files named `Makefile.in', but
16923 # some people rename them; so instead we look at the file content.
16924 # Grep'ing the first line is not enough: some people post-process
16925 # each Makefile.in and add a new line on top of each file to say so.
16926 # So let's grep whole file.
16927 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16928 dirpart=`(dirname "$mf") 2>/dev/null ||
16929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16930 X"$mf" : 'X\(//\)[^/]' \| \
16931 X"$mf" : 'X\(//\)$' \| \
16932 X"$mf" : 'X\(/\)' \| \
16933 . : '\(.\)' 2>/dev/null ||
16935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16937 /^X\(\/\/\)$/{ s//\1/; q; }
16938 /^X\(\/\).*/{ s//\1/; q; }
16943 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16944 # Extract the definition of DEP_FILES from the Makefile without
16946 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16947 test -z "$DEPDIR" && continue
16948 # When using ansi2knr, U may be empty or an underscore; expand it
16949 U=`sed -n -e '/^U = / s///p' < "$mf"`
16950 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16951 # We invoke sed twice because it is the simplest approach to
16952 # changing $(DEPDIR) to its actual value in the expansion.
16953 for file in `sed -n -e '
16954 /^DEP_FILES = .*\\\\$/ {
16963 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16964 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16965 # Make sure the directory exists.
16966 test -f "$dirpart/$file" && continue
16967 fdir=`(dirname "$file") 2>/dev/null ||
16968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$file" : 'X\(//\)[^/]' \| \
16970 X"$file" : 'X\(//\)$' \| \
16971 X"$file" : 'X\(/\)' \| \
16972 . : '\(.\)' 2>/dev/null ||
16974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16976 /^X\(\/\/\)$/{ s//\1/; q; }
16977 /^X\(\/\).*/{ s//\1/; q; }
16979 { if $as_mkdir_p; then
16980 mkdir -p $dirpart/$fdir
16982 as_dir=$dirpart/$fdir
16984 while test ! -d "$as_dir"; do
16985 as_dirs="$as_dir $as_dirs"
16986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988 X"$as_dir" : 'X\(//\)[^/]' \| \
16989 X"$as_dir" : 'X\(//\)$' \| \
16990 X"$as_dir" : 'X\(/\)' \| \
16991 . : '\(.\)' 2>/dev/null ||
16993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16995 /^X\(\/\/\)$/{ s//\1/; q; }
16996 /^X\(\/\).*/{ s//\1/; q; }
16999 test ! -n "$as_dirs" || mkdir $as_dirs
17000 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17001 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17002 { (exit 1); exit 1; }; }; }
17004 # echo "creating $dirpart/$file"
17005 echo '# dummy' > "$dirpart/$file"
17009 default-1 ) for ac_file in $CONFIG_FILES; do
17010 # Support "outfile[:infile[:infile...]]"
17012 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17014 # PO directories have a Makefile.in generated from Makefile.in.in.
17015 case "$ac_file" in */Makefile.in)
17016 # Adjust a relative srcdir.
17017 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17018 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17019 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17020 # In autoconf-2.13 it is called $ac_given_srcdir.
17021 # In autoconf-2.50 it is called $srcdir.
17022 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17023 case "$ac_given_srcdir" in
17024 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17025 /*) top_srcdir="$ac_given_srcdir" ;;
17026 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17028 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17029 rm -f "$ac_dir/POTFILES"
17030 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17031 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
17032 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17033 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17044 { (exit 0); exit 0; }
17046 chmod +x $CONFIG_STATUS
17047 ac_clean_files=$ac_clean_files_save
17050 # configure is writing to config.log, and then calls config.status.
17051 # config.status does its own redirection, appending to config.log.
17052 # Unfortunately, on DOS this fails, as config.log is still kept open
17053 # by configure, so config.status won't be able to write to it; its
17054 # output is simply discarded. So we exec the FD to /dev/null,
17055 # effectively closing config.log, so it can be properly (re)opened and
17056 # appended to by config.status. When coming back to configure, we
17057 # need to make the FD available again.
17058 if test "$no_create" != yes; then
17060 ac_config_status_args=
17061 test "$silent" = yes &&
17062 ac_config_status_args="$ac_config_status_args --quiet"
17064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17067 # would make configure fail if this is the last instruction.
17068 $ac_cs_success || { (exit 1); exit 1; }