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_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-warnings Turn off compiler warnings (not recommended)
863 --enable-nfs-fix Work around an NFS with broken attributes caching
864 --enable-buffy-size Use file size attribute instead of access time
865 --enable-mailtool Enable Sun mailtool attachments support
866 --enable-locales-fix The result of isprint() is unreliable
867 --enable-exact-address Enable regeneration of email addresses
868 --disable-iconv Disable iconv support
869 --disable-nls Do not use Native Language Support
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-mixmaster=PATH Include Mixmaster support
875 --with-slang=DIR Use S-Lang instead of ncurses
876 --with-curses=DIR Where ncurses is installed
877 --with-regex Use the GNU regex library
878 --with-homespool=FILE File in user's directory where new mail is spooled
879 --with-mailpath=DIR Directory where spool mailboxes are located
880 --with-docdir=PATH Specify where to put the documentation
881 --with-domain=DOMAIN Specify your DNS domain name
882 --with-gss=PFX Compile in GSSAPI authentication for IMAP
883 --with-ssl=PFX Compile in SSL support for POP/IMAP
884 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
885 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
886 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
887 --with-idn=PFX Use GNU libidn for domain names
888 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
889 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
890 --with-included-gettext Use the GNU gettext library included here
891 --without-wc-funcs Do not use the system's wchar_t functions
892 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
943 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.57. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core core.* *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 ac_config_headers="$ac_config_headers config.h"
1312 mutt_cv_version=`cat $srcdir/VERSION`
1315 am__api_version="1.7"
1317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1318 if test -f $ac_dir/install-sh; then
1320 ac_install_sh="$ac_aux_dir/install-sh -c"
1322 elif test -f $ac_dir/install.sh; then
1324 ac_install_sh="$ac_aux_dir/install.sh -c"
1326 elif test -f $ac_dir/shtool; then
1328 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 if test -z "$ac_aux_dir"; then
1333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1335 { (exit 1); exit 1; }; }
1337 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1338 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1339 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # ./install, which can be erroneously created by make from ./install.sh.
1353 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1355 if test -z "$INSTALL"; then
1356 if test "${ac_cv_path_install+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 # Account for people who put trailing slashes in PATH elements.
1366 ./ | .// | /cC/* | \
1367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1370 # OSF1 and SCO ODT 3.0 have their own names for install.
1371 # Don't use installbsd from OSF since it installs stuff as root
1373 for ac_prog in ginstall scoinst install; do
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1376 if test $ac_prog = install &&
1377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # AIX install. It has an incompatible calling convention.
1380 elif test $ac_prog = install &&
1381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # program-specific install script used by HP pwplus--don't use.
1385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL=$ac_cv_path_install
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL=$ac_install_sh
1407 echo "$as_me:$LINENO: result: $INSTALL" >&5
1408 echo "${ECHO_T}$INSTALL" >&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 echo timestamp > conftest.file
1423 # Do `set' in a subshell so we don't clobber the current shell's
1424 # arguments. Must try -L first in case configure is actually a
1425 # symlink; some systems play weird games with the mod time of symlinks
1426 # (eg FreeBSD returns the mod time of the symlink's containing
1429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1430 if test "$*" = "X"; then
1432 set X `ls -t $srcdir/configure conftest.file`
1435 if test "$*" != "X $srcdir/configure conftest.file" \
1436 && test "$*" != "X conftest.file $srcdir/configure"; then
1438 # If neither matched, then we have a broken ls. This can happen
1439 # if, for instance, CONFIG_SHELL is bash and it inherits a
1440 # broken ls alias from the environment. This has actually
1441 # happened. Such a system could not be considered "sane".
1442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1443 alias in your environment" >&5
1444 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&2;}
1446 { (exit 1); exit 1; }; }
1449 test "$2" = conftest.file
1455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1456 Check your system clock" >&5
1457 echo "$as_me: error: newly created file is older than distributed files!
1458 Check your system clock" >&2;}
1459 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: yes" >&5
1462 echo "${ECHO_T}yes" >&6
1463 test "$program_prefix" != NONE &&
1464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1465 # Use a double $ so make ignores it.
1466 test "$program_suffix" != NONE &&
1467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1468 # Double any \ or $. echo might interpret backslashes.
1469 # By default was `s,x,x', remove it if useless.
1470 cat <<\_ACEOF >conftest.sed
1471 s/[\\$]/&&/g;s/;s,x,x,$//
1473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1477 # expand $ac_aux_dir to an absolute path
1478 am_aux_dir=`cd $ac_aux_dir && pwd`
1480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1481 # Use eval to expand $SHELL
1482 if eval "$MISSING --run true"; then
1483 am_missing_run="$MISSING --run "
1486 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1490 for ac_prog in gawk mawk nawk awk
1492 # Extract the first word of "$ac_prog", so it can be a program name with args.
1493 set dummy $ac_prog; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_AWK+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$AWK"; then
1500 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_AWK="$ac_prog"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 if test -n "$AWK"; then
1520 echo "$as_me:$LINENO: result: $AWK" >&5
1521 echo "${ECHO_T}$AWK" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1527 test -n "$AWK" && break
1530 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1531 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1532 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1533 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 cat >conftest.make <<\_ACEOF
1538 @echo 'ac_maketemp="$(MAKE)"'
1540 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1541 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1542 if test -n "$ac_maketemp"; then
1543 eval ac_cv_prog_make_${ac_make}_set=yes
1545 eval ac_cv_prog_make_${ac_make}_set=no
1549 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1550 echo "$as_me:$LINENO: result: yes" >&5
1551 echo "${ECHO_T}yes" >&6
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1556 SET_MAKE="MAKE=${MAKE-make}"
1559 rm -rf .tst 2>/dev/null
1560 mkdir .tst 2>/dev/null
1561 if test -d .tst; then
1566 rmdir .tst 2>/dev/null
1568 # test to see if srcdir already configured
1569 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1570 test -f $srcdir/config.status; then
1571 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1572 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1573 { (exit 1); exit 1; }; }
1576 # test whether we have cygpath
1577 if test -z "$CYGPATH_W"; then
1578 if (cygpath --version) >/dev/null 2>/dev/null; then
1579 CYGPATH_W='cygpath -w'
1586 # Define the identity of the package.
1588 VERSION=$mutt_cv_version
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE "$PACKAGE"
1596 cat >>confdefs.h <<_ACEOF
1597 #define VERSION "$VERSION"
1600 # Some tools Automake needs.
1602 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617 AMTAR=${AMTAR-"${am_missing_run}tar"}
1619 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1621 # Installed binaries are usually stripped using `strip' when the user
1622 # run `make install-strip'. However `strip' might not be the right
1623 # tool to use in cross-compilation environments, therefore Automake
1624 # will honor the `STRIP' environment variable to overrule this program.
1625 if test "$cross_compiling" != no; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}strip; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_STRIP+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$STRIP"; then
1635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 STRIP=$ac_cv_prog_STRIP
1654 if test -n "$STRIP"; then
1655 echo "$as_me:$LINENO: result: $STRIP" >&5
1656 echo "${ECHO_T}$STRIP" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$ac_cv_prog_STRIP"; then
1665 # Extract the first word of "strip", so it can be a program name with args.
1666 set dummy strip; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_STRIP"; then
1673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_STRIP="strip"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1693 if test -n "$ac_ct_STRIP"; then
1694 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1695 echo "${ECHO_T}$ac_ct_STRIP" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1703 STRIP="$ac_cv_prog_STRIP"
1707 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1709 # We need awk for the "check" target. The system "awk" is bad on
1717 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"
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723 { (exit 1); exit 1; }; }
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732 ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736 { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758 ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774 echo "$as_me:$LINENO: checking for prefix" >&5
1775 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1776 if test x$prefix = xNONE; then
1777 mutt_cv_prefix=$ac_default_prefix
1779 mutt_cv_prefix=$prefix
1781 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1782 echo "${ECHO_T}$mutt_cv_prefix" >&6
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC="$CC" # Let the user override the test.
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test -n "$CC"; then
1818 echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1826 if test -z "$ac_cv_prog_CC"; then
1828 # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_CC="gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1868 if test -z "$CC"; then
1869 if test -n "$ac_tool_prefix"; then
1870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_CC="${ac_tool_prefix}cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 if test -n "$CC"; then
1898 echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1906 if test -z "$ac_cv_prog_CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$ac_ct_CC"; then
1916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_ac_ct_CC="cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935 if test -n "$ac_ct_CC"; then
1936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937 echo "${ECHO_T}$ac_ct_CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1949 if test -z "$CC"; then
1950 # Extract the first word of "cc", so it can be a program name with args.
1951 set dummy cc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1969 ac_prog_rejected=yes
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test $ac_prog_rejected = yes; then
1980 # We found a bogon in the path, so make sure we never use it.
1981 set dummy $ac_cv_prog_CC
1983 if test $# != 0; then
1984 # We chose a different compiler from the bogus one.
1985 # However, it has the same basename, so the bogon will be chosen
1986 # first if we set CC to just the basename; use the full file name.
1988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2003 if test -z "$CC"; then
2004 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CC"; then
2035 echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$CC" && break
2045 if test -z "$CC"; then
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_ac_ct_CC="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076 if test -n "$ac_ct_CC"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078 echo "${ECHO_T}$ac_ct_CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2084 test -n "$ac_ct_CC" && break
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO:" \
2101 "checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2104 (eval $ac_compiler --version </dev/null >&5) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2109 (eval $ac_compiler -v </dev/null >&5) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2114 (eval $ac_compiler -V </dev/null >&5) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2141 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144 (eval $ac_link_default) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # Find the output, starting from the most likely. This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 # b.out is created by i960 compilers.
2156 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 test -f "$ac_file" || continue
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2163 # This is the source file.
2166 # We found the default executable, but exeext='' is most
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 # FIXME: I believe we export ac_cv_exeext for Libtool,
2172 # but it would be cool to find out if it's true. Does anybody
2173 # maintain Libtool? --akim.
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&2;}
2188 { (exit 77); exit 77; }; }
2191 ac_exeext=$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_file" >&5
2193 echo "${ECHO_T}$ac_file" >&6
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 # If not cross compiling, check that we can run a simple program.
2201 if test "$cross_compiling" != yes; then
2202 if { ac_try='./$ac_file'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2210 if test "$cross_compiling" = maybe; then
2213 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2223 echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6
2235 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238 (eval $ac_link) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266 echo "${ECHO_T}$ac_cv_exeext" >&6
2268 rm -f conftest.$ac_ext
2269 EXEEXT=$ac_cv_exeext
2271 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273 if test "${ac_cv_objext+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2371 GCC=`test $ac_compiler_gnu = yes && echo yes`
2372 ac_test_CFLAGS=${CFLAGS+set}
2373 ac_save_CFLAGS=$CFLAGS
2375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cc_g+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2418 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2419 if test "$ac_test_CFLAGS" = set; then
2420 CFLAGS=$ac_save_CFLAGS
2421 elif test $ac_cv_prog_cc_g = yes; then
2422 if test "$GCC" = yes; then
2428 if test "$GCC" = yes; then
2434 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2435 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 ac_cv_prog_cc_stdc=no
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #line $LINENO "configure"
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2450 #include <sys/types.h>
2451 #include <sys/stat.h>
2452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2453 struct buf { int x; };
2454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2455 static char *e (p, i)
2461 static char *f (char * (*g) (char **, int), char **p, ...)
2466 s = g (p, va_arg (v,int));
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX -qlanglvl=ansi
2487 # Ultrix and OSF/1 -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions -Aa -D_HPUX_SOURCE
2490 # SVR4 -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 CC="$ac_save_CC $ac_arg"
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cc_stdc=$ac_arg
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f conftest.$ac_objext
2515 rm -f conftest.$ac_ext conftest.$ac_objext
2520 case "x$ac_cv_prog_cc_stdc" in
2522 echo "$as_me:$LINENO: result: none needed" >&5
2523 echo "${ECHO_T}none needed" >&6 ;;
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2527 CC="$CC $ac_cv_prog_cc_stdc" ;;
2530 # Some people use a C++ compiler to compile C. Since we use `exit',
2531 # in C++ we need to declare it. In case someone uses the same compiler
2532 # for both compiling C and C++ we need to have the C++ compiler decide
2533 # the declaration of exit, since it's the most demanding environment.
2534 cat >conftest.$ac_ext <<_ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 for ac_declaration in \
2553 '#include <stdlib.h>' \
2554 'extern "C" void std::exit (int) throw (); using std::exit;' \
2555 'extern "C" void std::exit (int); using std::exit;' \
2556 'extern "C" void exit (int) throw ();' \
2557 'extern "C" void exit (int);' \
2560 cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2634 if test -n "$ac_declaration"; then
2635 echo '#ifdef __cplusplus' >>confdefs.h
2636 echo $ac_declaration >>confdefs.h
2637 echo '#endif' >>confdefs.h
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 DEPDIR="${am__leading_dot}deps"
2653 ac_config_commands="$ac_config_commands depfiles"
2656 am_make=${MAKE-make}
2657 cat > confinc << 'END'
2662 # If we don't find an include directive, just comment out the code.
2663 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2664 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2668 # First try GNU make style include.
2669 echo "include confinc" > confmf
2670 # We grep out `Entering directory' and `Leaving directory'
2671 # messages which can occur if `w' ends up in MAKEFLAGS.
2672 # In particular we don't look at `^make:' because GNU make might
2673 # be invoked under some other name (usually "gmake"), in which
2674 # case it prints its new name instead of `make'.
2675 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2680 # Now try BSD make style include.
2681 if test "$am__include" = "#"; then
2682 echo '.include "confinc"' > confmf
2683 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2684 am__include=.include
2691 echo "$as_me:$LINENO: result: $_am_result" >&5
2692 echo "${ECHO_T}$_am_result" >&6
2693 rm -f confinc confmf
2695 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2696 if test "${enable_dependency_tracking+set}" = set; then
2697 enableval="$enable_dependency_tracking"
2700 if test "x$enable_dependency_tracking" != xno; then
2701 am_depcomp="$ac_aux_dir/depcomp"
2706 if test "x$enable_dependency_tracking" != xno; then
2717 depcc="$CC" am_compiler_list=
2719 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2720 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2721 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2725 # We make a subdir and do the tests there. Otherwise we can end up
2726 # making bogus files that we don't know about and never remove. For
2727 # instance it was reported that on HP-UX the gcc test will end up
2728 # making a dummy file named `D' -- because `-MD' means `put the output
2731 # Copy depcomp to subdir because otherwise we won't find it if we're
2732 # using a relative directory.
2733 cp "$am_depcomp" conftest.dir
2735 # We will build objects and dependencies in a subdirectory because
2736 # it helps to detect inapplicable dependency modes. For instance
2737 # both Tru64's cc and ICC support -MD to output dependencies as a
2738 # side effect of compilation, but ICC will put the dependencies in
2739 # the current directory while Tru64 will put them in the object
2743 am_cv_CC_dependencies_compiler_type=none
2744 if test "$am_compiler_list" = ""; then
2745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747 for depmode in $am_compiler_list; do
2748 # Setup a source with many dependencies, because some compilers
2749 # like to wrap large dependency lists on column 80 (with \), and
2750 # we should not choose a depcomp mode which is confused by this.
2752 # We need to recreate these files for each test, as the compiler may
2753 # overwrite some of them when testing with obscure command lines.
2754 # This happens at least with the AIX C compiler.
2756 for i in 1 2 3 4 5 6; do
2757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2764 # after this tag, mechanisms are not by side-effect, so they'll
2765 # only be used when explicitly requested
2766 if test "x$enable_dependency_tracking" = xyes; then
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 if depmode=$depmode \
2778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2781 >/dev/null 2>conftest.err &&
2782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2783 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2785 # icc doesn't choke on unknown options, it will just issue warnings
2786 # (even with -Werror). So we grep stderr for any message
2787 # that says an option was ignored.
2788 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2789 am_cv_CC_dependencies_compiler_type=$depmode
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812 am__fastdepCC_FALSE='#'
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2821 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2822 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2823 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_check_lib_save_LIBS=$LIBS
2827 LIBS="-lcposix $LIBS"
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 /* Override any gcc2 internal prototype to avoid an error. */
2840 /* We use char because int might match the return type of a gcc2
2841 builtin and then its argument prototype would still apply. */
2851 rm -f conftest.$ac_objext conftest$ac_exeext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853 (eval $ac_link) 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -s conftest$ac_exeext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_lib_cposix_strerror=yes
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_cv_lib_cposix_strerror=no
2870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2871 LIBS=$ac_check_lib_save_LIBS
2873 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2874 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2875 if test $ac_cv_lib_cposix_strerror = yes; then
2876 LIBS="$LIBS -lcposix"
2884 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2885 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2886 if test "${am_cv_prog_cc_stdc+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 am_cv_prog_cc_stdc=no
2891 # Don't try gcc -ansi; that turns off useful extensions and
2892 # breaks some systems' header files.
2893 # AIX -qlanglvl=ansi
2894 # Ultrix and OSF/1 -std1
2895 # HP-UX 10.20 and later -Ae
2896 # HP-UX older versions -Aa -D_HPUX_SOURCE
2897 # SVR4 -Xc -D__EXTENSIONS__
2898 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 CC="$ac_save_CC $ac_arg"
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2926 s = g (p, va_arg (v,int));
2930 int test (int i, double x);
2931 struct s1 {int (*f) (int a);};
2932 struct s2 {int (*f) (double a);};
2933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 am_cv_prog_cc_stdc="$ac_arg"; break
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2971 if test -z "$am_cv_prog_cc_stdc"; then
2972 echo "$as_me:$LINENO: result: none needed" >&5
2973 echo "${ECHO_T}none needed" >&6
2975 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2976 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2978 case "x$am_cv_prog_cc_stdc" in
2980 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2989 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2990 # On Suns, sometimes $CPP names a directory.
2991 if test -n "$CPP" && test -d "$CPP"; then
2994 if test -z "$CPP"; then
2995 if test "${ac_cv_prog_CPP+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 # Double quotes because CPP needs to be expanded
2999 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3106 echo "$as_me:$LINENO: result: $CPP" >&5
3107 echo "${ECHO_T}$CPP" >&6
3109 for ac_c_preproc_warn_flag in '' yes
3111 # Use a header file that comes with gcc, so configuring glibc
3112 # with a fresh cross-compiler works.
3113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3114 # <limits.h> exists even on freestanding compilers.
3115 # On the NeXT, cc -E runs the code through the compiler's parser,
3116 # not just through cpp. "Syntax error" is here to catch this case.
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3125 # include <limits.h>
3127 # include <assert.h>
3131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3147 if test -z "$ac_cpp_err"; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Broken: fails on valid input.
3156 rm -f conftest.err conftest.$ac_ext
3158 # OK, works on sane cases. Now check whether non-existent headers
3159 # can be detected and how.
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 #include <ac_nonexistent.h>
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null; then
3177 if test -s conftest.err; then
3178 ac_cpp_err=$ac_c_preproc_warn_flag
3185 if test -z "$ac_cpp_err"; then
3186 # Broken: success on invalid input.
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 # Passes both tests.
3196 rm -f conftest.err conftest.$ac_ext
3199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3200 rm -f conftest.err conftest.$ac_ext
3201 if $ac_preproc_ok; then
3204 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3205 See \`config.log' for more details." >&5
3206 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&2;}
3208 { (exit 1); exit 1; }; }
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 echo "$as_me:$LINENO: checking for egrep" >&5
3219 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3220 if test "${ac_cv_prog_egrep+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3224 then ac_cv_prog_egrep='grep -E'
3225 else ac_cv_prog_egrep='egrep'
3228 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3229 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3230 EGREP=$ac_cv_prog_egrep
3233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3244 inttypes.h stdint.h unistd.h
3246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 $ac_includes_default
3261 #include <$ac_header>
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 eval "$as_ac_Header=yes"
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3298 echo "$as_me:$LINENO: checking for function prototypes" >&5
3299 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3300 if test "$am_cv_prog_cc_stdc" != no; then
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3304 cat >>confdefs.h <<\_ACEOF
3305 #define PROTOTYPES 1
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 U=_ ANSI2KNR=./ansi2knr
3314 # Ensure some checks needed by ansi2knr itself.
3315 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3317 if test "${ac_cv_header_stdc+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_header_stdc=yes
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_header_stdc=no
3359 rm -f conftest.$ac_objext conftest.$ac_ext
3361 if test $ac_cv_header_stdc = yes; then
3362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3363 cat >conftest.$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "memchr" >/dev/null 2>&1; then
3377 ac_cv_header_stdc=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line $LINENO "configure"
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 $EGREP "free" >/dev/null 2>&1; then
3399 ac_cv_header_stdc=no
3405 if test $ac_cv_header_stdc = yes; then
3406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3407 if test "$cross_compiling" = yes; then
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 #if ((' ' & 0x0FF) == 0x020)
3419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3422 # define ISLOWER(c) \
3423 (('a' <= (c) && (c) <= 'i') \
3424 || ('j' <= (c) && (c) <= 'r') \
3425 || ('s' <= (c) && (c) <= 'z'))
3426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3434 for (i = 0; i < 256; i++)
3435 if (XOR (islower (i), ISLOWER (i))
3436 || toupper (i) != TOUPPER (i))
3441 rm -f conftest$ac_exeext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3454 echo "$as_me: program exited with status $ac_status" >&5
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3459 ac_cv_header_stdc=no
3461 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3467 if test $ac_cv_header_stdc = yes; then
3469 cat >>confdefs.h <<\_ACEOF
3470 #define STDC_HEADERS 1
3476 for ac_header in string.h
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3488 # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 $ac_includes_default
3499 #include <$ac_header>
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_header_compiler=yes
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_header_compiler=no
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3522 echo "${ECHO_T}$ac_header_compiler" >&6
3524 # Is the header present?
3525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <$ac_header>
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3552 if test -z "$ac_cpp_err"; then
3553 ac_header_preproc=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_header_preproc=no
3560 rm -f conftest.err conftest.$ac_ext
3561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3562 echo "${ECHO_T}$ac_header_preproc" >&6
3564 # So? What about this header?
3565 case $ac_header_compiler:$ac_header_preproc in
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573 ## ------------------------------------ ##
3574 ## Report this to bug-autoconf@gnu.org. ##
3575 ## ------------------------------------ ##
3578 sed "s/^/$as_me: WARNING: /" >&2
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3589 ## ------------------------------------ ##
3590 ## Report this to bug-autoconf@gnu.org. ##
3591 ## ------------------------------------ ##
3594 sed "s/^/$as_me: WARNING: /" >&2
3597 echo "$as_me:$LINENO: checking for $ac_header" >&5
3598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 eval "$as_ac_Header=$ac_header_preproc"
3604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3618 if test "x$U" != "x"; then
3619 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3620 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3621 { (exit 1); exit 1; }; }
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3634 if test -z "$CPP"; then
3635 if test "${ac_cv_prog_CPP+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 # Double quotes because CPP needs to be expanded
3639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null; then
3672 if test -s conftest.err; then
3673 ac_cpp_err=$ac_c_preproc_warn_flag
3680 if test -z "$ac_cpp_err"; then
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 # Broken: fails on valid input.
3689 rm -f conftest.err conftest.$ac_ext
3691 # OK, works on sane cases. Now check whether non-existent headers
3692 # can be detected and how.
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null; then
3710 if test -s conftest.err; then
3711 ac_cpp_err=$ac_c_preproc_warn_flag
3718 if test -z "$ac_cpp_err"; then
3719 # Broken: success on invalid input.
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Passes both tests.
3729 rm -f conftest.err conftest.$ac_ext
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then
3746 echo "$as_me:$LINENO: result: $CPP" >&5
3747 echo "${ECHO_T}$CPP" >&6
3749 for ac_c_preproc_warn_flag in '' yes
3751 # Use a header file that comes with gcc, so configuring glibc
3752 # with a fresh cross-compiler works.
3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754 # <limits.h> exists even on freestanding compilers.
3755 # On the NeXT, cc -E runs the code through the compiler's parser,
3756 # not just through cpp. "Syntax error" is here to catch this case.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null; then
3779 if test -s conftest.err; then
3780 ac_cpp_err=$ac_c_preproc_warn_flag
3787 if test -z "$ac_cpp_err"; then
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 # Broken: fails on valid input.
3796 rm -f conftest.err conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether non-existent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line $LINENO "configure"
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null; then
3817 if test -s conftest.err; then
3818 ac_cpp_err=$ac_c_preproc_warn_flag
3825 if test -z "$ac_cpp_err"; then
3826 # Broken: success on invalid input.
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 # Passes both tests.
3836 rm -f conftest.err conftest.$ac_ext
3839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3840 rm -f conftest.err conftest.$ac_ext
3841 if $ac_preproc_ok; then
3844 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3845 See \`config.log' for more details." >&5
3846 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3847 See \`config.log' for more details." >&2;}
3848 { (exit 1); exit 1; }; }
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3858 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.make <<\_ACEOF
3865 @echo 'ac_maketemp="$(MAKE)"'
3867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3869 if test -n "$ac_maketemp"; then
3870 eval ac_cv_prog_make_${ac_make}_set=yes
3872 eval ac_cv_prog_make_${ac_make}_set=no
3876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3877 echo "$as_me:$LINENO: result: yes" >&5
3878 echo "${ECHO_T}yes" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 SET_MAKE="MAKE=${MAKE-make}"
3886 # Find a good install program. We prefer a C program (faster),
3887 # so one script is as good as another. But avoid the broken or
3888 # incompatible versions:
3889 # SysV /etc/install, /usr/sbin/install
3890 # SunOS /usr/etc/install
3891 # IRIX /sbin/install
3893 # AmigaOS /C/install, which installs bootblocks on floppy discs
3894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3897 # ./install, which can be erroneously created by make from ./install.sh.
3898 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3900 if test -z "$INSTALL"; then
3901 if test "${ac_cv_path_install+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 # Account for people who put trailing slashes in PATH elements.
3911 ./ | .// | /cC/* | \
3912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 # OSF1 and SCO ODT 3.0 have their own names for install.
3916 # Don't use installbsd from OSF since it installs stuff as root
3918 for ac_prog in ginstall scoinst install; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3921 if test $ac_prog = install &&
3922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923 # AIX install. It has an incompatible calling convention.
3925 elif test $ac_prog = install &&
3926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # program-specific install script used by HP pwplus--don't use.
3930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 if test "${ac_cv_path_install+set}" = set; then
3943 INSTALL=$ac_cv_path_install
3945 # As a last resort, use the slow shell script. We don't cache a
3946 # path for INSTALL within a source directory, because that will
3947 # break other packages using the cache if that directory is
3948 # removed, or if the path is relative.
3949 INSTALL=$ac_install_sh
3952 echo "$as_me:$LINENO: result: $INSTALL" >&5
3953 echo "${ECHO_T}$INSTALL" >&6
3955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3956 # It thinks the first close brace ends the variable substitution.
3957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_RANLIB+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test -n "$RANLIB"; then
3972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 RANLIB=$ac_cv_prog_RANLIB
3991 if test -n "$RANLIB"; then
3992 echo "$as_me:$LINENO: result: $RANLIB" >&5
3993 echo "${ECHO_T}$RANLIB" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
4000 if test -z "$ac_cv_prog_RANLIB"; then
4001 ac_ct_RANLIB=$RANLIB
4002 # Extract the first word of "ranlib", so it can be a program name with args.
4003 set dummy ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$ac_ct_RANLIB"; then
4010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_RANLIB="ranlib"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4030 if test -n "$ac_ct_RANLIB"; then
4031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 RANLIB=$ac_ct_RANLIB
4040 RANLIB="$ac_cv_prog_RANLIB"
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ar; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_AR+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -n "$AR"; then
4052 ac_cv_prog_AR="$AR" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_AR="${ac_tool_prefix}ar"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test -n "$AR"; then
4072 echo "$as_me:$LINENO: result: $AR" >&5
4073 echo "${ECHO_T}$AR" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4080 if test -z "$ac_cv_prog_AR"; then
4082 # Extract the first word of "ar", so it can be a program name with args.
4083 set dummy ar; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$ac_ct_AR"; then
4090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_AR="ar"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4110 if test -n "$ac_ct_AR"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4112 echo "${ECHO_T}$ac_ct_AR" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4124 echo "$as_me:$LINENO: checking for inline" >&5
4125 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4126 if test "${ac_cv_c_inline+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 for ac_kw in inline __inline__ __inline; do
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4140 static $ac_kw foo_t static_foo () {return 0; }
4141 $ac_kw foo_t foo () {return 0; }
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_c_inline=$ac_kw; break
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4168 echo "${ECHO_T}$ac_cv_c_inline" >&6
4169 case $ac_cv_c_inline in
4172 cat >>confdefs.h <<\_ACEOF
4176 *) cat >>confdefs.h <<_ACEOF
4177 #define inline $ac_cv_c_inline
4182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4184 if test "${ac_cv_c_const+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4198 /* FIXME: Include the comments suggested by Paul. */
4200 /* Ultrix mips cc rejects this. */
4201 typedef int charset[2];
4203 /* SunOS 4.1.1 cc rejects this. */
4204 char const *const *ccp;
4206 /* NEC SVR4.0.2 mips cc rejects this. */
4207 struct point {int x, y;};
4208 static struct point const zero = {0,0};
4209 /* AIX XL C 1.02.0.0 rejects this.
4210 It does not let you subtract one const X* pointer from another in
4211 an arm of an if-expression whose if-part is not a constant
4213 const char *g = "string";
4214 ccp = &g + (g ? g-g : 0);
4215 /* HPUX 7.0 cc rejects these. */
4218 ccp = (char const *const *) p;
4219 { /* SCO 3.2v4 cc rejects this. */
4221 char const *s = 0 ? (char *) 0 : (char const *) 0;
4225 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4227 const int *foo = &x[0];
4230 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4231 typedef const int *iptr;
4235 { /* AIX XL C 1.02.0.0 rejects this saying
4236 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4237 struct s { int j; const int *ap[3]; };
4238 struct s *b; b->j = 5;
4240 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4268 rm -f conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4271 echo "${ECHO_T}$ac_cv_c_const" >&6
4272 if test $ac_cv_c_const = no; then
4274 cat >>confdefs.h <<\_ACEOF
4281 # Extract the first word of "dbx", so it can be a program name with args.
4282 set dummy dbx; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_DBX+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4313 if test -n "$DBX"; then
4314 echo "$as_me:$LINENO: result: $DBX" >&5
4315 echo "${ECHO_T}$DBX" >&6
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4321 # Extract the first word of "gdb", so it can be a program name with args.
4322 set dummy gdb; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_path_GDB+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4353 if test -n "$GDB"; then
4354 echo "$as_me:$LINENO: result: $GDB" >&5
4355 echo "${ECHO_T}$GDB" >&6
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4361 # Extract the first word of "sdb", so it can be a program name with args.
4362 set dummy sdb; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_path_SDB+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4393 if test -n "$SDB"; then
4394 echo "$as_me:$LINENO: result: $SDB" >&5
4395 echo "${ECHO_T}$SDB" >&6
4397 echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4402 if test $GDB != no ; then
4404 elif test $DBX != no ; then
4406 elif test $SDB != no ; then
4414 # The following templates should be used with newer automakes
4415 # instead of acconfig.h
4417 #AH_TEMPLATE([sig_atomic_t],
4418 # [/* Define to `int' if <signal.h> doesn't define.])
4419 #AH_TEMPLATE([HAVE_START_COLOR],
4420 # [Define if you have start_color, as a function or macro.])
4421 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4422 # [Define if you have typeahead, as a function or macro.])
4423 #AH_TEMPLATE([HAVE_BKGDSET],
4424 # [Define if you have bkgdset, as a function or macro.])
4425 #AH_TEMPLATE([HAVE_CURS_SET],
4426 # [Define if you have curs_set, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_META],
4428 # [Define if you have meta, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4430 # [Define if you have use_default_colors, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_RESIZETERM],
4432 # [Define if you have resizeterm, as a function or macro.])
4433 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4434 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4435 # This define will have value `sig_atomic_t' or
4436 # `volatile sig_atomic_t' accordingly.])
4437 #AH_TEMPLATE([ICONV_NONTRANS],
4438 # [Define as 1 if iconv() only converts exactly and we should treat
4439 # all return values other than (size_t)(-1) as equivalent.])
4442 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4443 # Extract the first word of "sendmail", so it can be a program name with args.
4444 set dummy sendmail; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 as_dummy="$PATH:$ac_aux_path_sendmail"
4457 for as_dir in $as_dummy
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4474 SENDMAIL=$ac_cv_path_SENDMAIL
4476 if test -n "$SENDMAIL"; then
4477 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4478 echo "${ECHO_T}$SENDMAIL" >&6
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4485 cat >>confdefs.h <<_ACEOF
4486 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4491 if test -f $srcdir/EXPORTABLE ; then
4496 # Check whether --enable-pgp or --disable-pgp was given.
4497 if test "${enable_pgp+set}" = set; then
4498 enableval="$enable_pgp"
4499 if test x$enableval = xno ; then
4505 if test x$have_pgp != xno ; then
4507 cat >>confdefs.h <<\_ACEOF
4508 #define CRYPT_BACKEND_CLASSIC_PGP 1
4511 PGPAUX_TARGET="pgpring pgpewrap"
4512 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4515 # Check whether --enable-smime or --disable-smime was given.
4516 if test "${enable_smime+set}" = set; then
4517 enableval="$enable_smime"
4518 if test x$enableval = xno ; then
4524 if test x$have_smime != xno ; then
4526 cat >>confdefs.h <<\_ACEOF
4527 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4530 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4531 SMIMEAUX_TARGET="smime_keys"
4535 # Check whether --with-mixmaster or --without-mixmaster was given.
4536 if test "${with_mixmaster+set}" = set; then
4537 withval="$with_mixmaster"
4538 if test -x "$withval" ; then
4539 MIXMASTER="$withval"
4541 MIXMASTER="mixmaster"
4543 OPS="$OPS \$(srcdir)/OPS.MIX"
4544 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4546 cat >>confdefs.h <<_ACEOF
4547 #define MIXMASTER "$MIXMASTER"
4554 # We now require all OPS
4555 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4563 cat >>confdefs.h <<_ACEOF
4564 #define SUBVERSION "$SUBVERSION"
4569 # Extract the first word of "ispell", so it can be a program name with args.
4570 set dummy ispell; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_path_ISPELL+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4599 ISPELL=$ac_cv_path_ISPELL
4601 if test -n "$ISPELL"; then
4602 echo "$as_me:$LINENO: result: $ISPELL" >&5
4603 echo "${ECHO_T}$ISPELL" >&6
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4609 if test $ISPELL != no; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define ISPELL "$ISPELL"
4618 # Check whether --with-slang or --without-slang was given.
4619 if test "${with_slang+set}" = set; then
4620 withval="$with_slang"
4621 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4622 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4623 if test "${mutt_cv_bsdish+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test "$cross_compiling" = yes; then
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <sys/param.h>
4647 rm -f conftest$ac_exeext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649 (eval $ac_link) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4660 echo "$as_me: program exited with status $ac_status" >&5
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4671 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4673 echo "$as_me:$LINENO: checking for S-Lang" >&5
4674 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4675 if test $withval = yes; then
4676 if test -d $srcdir/../slang; then
4677 mutt_cv_slang=$srcdir/../slang/src
4678 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4679 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4681 if test -d $mutt_cv_prefix/include/slang; then
4682 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4683 elif test -d /usr/include/slang; then
4684 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4689 if test -f $withval/src/slang.h; then
4690 mutt_cv_slang=$withval/src
4691 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4692 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4694 mutt_cv_slang=$withval
4695 if test -d $withval/include/slang; then
4696 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4697 elif test -d $withval/include; then
4698 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4700 LDFLAGS="$LDFLAGS -L${withval}/lib"
4703 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4704 echo "${ECHO_T}$mutt_cv_slang" >&6
4705 if test $mutt_cv_bsdish = yes; then
4707 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4708 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4709 if test "${ac_cv_lib_termlib_main+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_check_lib_save_LIBS=$LIBS
4713 LIBS="-ltermlib $LIBS"
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_termlib_main=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_termlib_main=no
4750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4751 LIBS=$ac_check_lib_save_LIBS
4753 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4754 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4755 if test $ac_cv_lib_termlib_main = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define HAVE_LIBTERMLIB 1
4760 LIBS="-ltermlib $LIBS"
4766 cat >>confdefs.h <<\_ACEOF
4767 #define USE_SLANG_CURSES 1
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_COLOR 1
4775 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4778 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4779 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4780 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 ac_check_lib_save_LIBS=$LIBS
4784 LIBS="-lslang -lm $LIBS"
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4793 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4799 char SLtt_get_terminfo ();
4803 SLtt_get_terminfo ();
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810 (eval $ac_link) 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest$ac_exeext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_lib_slang_SLtt_get_terminfo=yes
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_lib_slang_SLtt_get_terminfo=no
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4830 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4831 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4832 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4833 MUTTLIBS="$MUTTLIBS -lslang -lm"
4835 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4836 echo "$as_me: error: unable to compile. check config.log" >&2;}
4837 { (exit 1); exit 1; }; }
4845 # Check whether --with-curses or --without-curses was given.
4846 if test "${with_curses+set}" = set; then
4847 withval="$with_curses"
4848 if test $withval != yes; then
4849 mutt_cv_curses=$withval
4851 if test x$mutt_cv_curses != x/usr; then
4852 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4853 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4857 echo "$as_me:$LINENO: checking for initscr" >&5
4858 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4859 if test "${ac_cv_func_initscr+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 cat >conftest.$ac_ext <<_ACEOF
4863 #line $LINENO "configure"
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 /* System header to define __stub macros and hopefully few prototypes,
4870 which can conflict with char initscr (); below.
4871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4872 <limits.h> exists even on freestanding compilers. */
4874 # include <limits.h>
4876 # include <assert.h>
4878 /* Override any gcc2 internal prototype to avoid an error. */
4883 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined (__stub_initscr) || defined (__stub___initscr)
4892 char (*f) () = initscr;
4901 return f != initscr;
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } &&
4912 { ac_try='test -s conftest$ac_exeext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_cv_func_initscr=yes
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 ac_cv_func_initscr=no
4925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4927 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4928 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4929 if test $ac_cv_func_initscr = yes; then
4933 cf_ncurses="ncurses"
4934 for lib in ncurses ncursesw
4936 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4938 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_check_lib_save_LIBS=$LIBS
4944 cat >conftest.$ac_ext <<_ACEOF
4945 #line $LINENO "configure"
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4952 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -s conftest$ac_exeext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 eval "$as_ac_Lib=yes"
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 eval "$as_ac_Lib=no"
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4990 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4992 cf_ncurses="$lib"; break
4996 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4997 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
4998 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
4999 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 ac_check_lib_save_LIBS=$LIBS
5003 LIBS="-l$cf_ncurses $LIBS"
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 eval "$as_ac_Lib=yes"
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 eval "$as_ac_Lib=no"
5046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 LIBS=$ac_check_lib_save_LIBS
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5051 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5052 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5053 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5054 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5057 if test "$cf_ncurses" = ncursesw; then
5059 for ac_header in ncursesw/ncurses.h
5061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063 echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5071 # Is the header compilable?
5072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 $ac_includes_default
5082 #include <$ac_header>
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_header_compiler=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 ac_header_compiler=no
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5105 echo "${ECHO_T}$ac_header_compiler" >&6
5107 # Is the header present?
5108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5111 #line $LINENO "configure"
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <$ac_header>
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5135 if test -z "$ac_cpp_err"; then
5136 ac_header_preproc=yes
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_header_preproc=no
5143 rm -f conftest.err conftest.$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5145 echo "${ECHO_T}$ac_header_preproc" >&6
5147 # So? What about this header?
5148 case $ac_header_compiler:$ac_header_preproc in
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156 ## ------------------------------------ ##
5157 ## Report this to bug-autoconf@gnu.org. ##
5158 ## ------------------------------------ ##
5161 sed "s/^/$as_me: WARNING: /" >&2
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172 ## ------------------------------------ ##
5173 ## Report this to bug-autoconf@gnu.org. ##
5174 ## ------------------------------------ ##
5177 sed "s/^/$as_me: WARNING: /" >&2
5180 echo "$as_me:$LINENO: checking for $ac_header" >&5
5181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 eval "$as_ac_Header=$ac_header_preproc"
5187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5192 cat >>confdefs.h <<_ACEOF
5193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 cf_cv_ncurses_header="ncursesw/ncurses.h"
5202 for ac_header in ncurses.h
5204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5206 echo "$as_me:$LINENO: checking for $ac_header" >&5
5207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5214 # Is the header compilable?
5215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5225 #include <$ac_header>
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_header_compiler=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_header_compiler=no
5246 rm -f conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248 echo "${ECHO_T}$ac_header_compiler" >&6
5250 # Is the header present?
5251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5254 #line $LINENO "configure"
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 #include <$ac_header>
5262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5278 if test -z "$ac_cpp_err"; then
5279 ac_header_preproc=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_header_preproc=no
5286 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6
5290 # So? What about this header?
5291 case $ac_header_compiler:$ac_header_preproc in
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 ## ------------------------------------ ##
5300 ## Report this to bug-autoconf@gnu.org. ##
5301 ## ------------------------------------ ##
5304 sed "s/^/$as_me: WARNING: /" >&2
5307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315 ## ------------------------------------ ##
5316 ## Report this to bug-autoconf@gnu.org. ##
5317 ## ------------------------------------ ##
5320 sed "s/^/$as_me: WARNING: /" >&2
5323 echo "$as_me:$LINENO: checking for $ac_header" >&5
5324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 eval "$as_ac_Header=$ac_header_preproc"
5330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 cf_cv_ncurses_header="ncurses.h"
5346 echo "$as_me:$LINENO: checking for initscr" >&5
5347 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5348 if test "${ac_cv_func_initscr+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 /* System header to define __stub macros and hopefully few prototypes,
5359 which can conflict with char initscr (); below.
5360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 <limits.h> exists even on freestanding compilers. */
5363 # include <limits.h>
5365 # include <assert.h>
5367 /* Override any gcc2 internal prototype to avoid an error. */
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5375 /* The GNU C library defines this for functions which it implements
5376 to always fail with ENOSYS. Some functions are actually named
5377 something starting with __ and the normal name is an alias. */
5378 #if defined (__stub_initscr) || defined (__stub___initscr)
5381 char (*f) () = initscr;
5390 return f != initscr;
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_func_initscr=yes
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_func_initscr=no
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5417 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5418 if test $ac_cv_func_initscr = yes; then
5422 case $host_os in #(vi
5424 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5425 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5426 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lmytinfo $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5439 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5454 rm -f conftest.$ac_objext conftest$ac_exeext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456 (eval $ac_link) 2>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -s conftest$ac_exeext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_cv_lib_mytinfo_tgoto=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_cv_lib_mytinfo_tgoto=no
5473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5474 LIBS=$ac_check_lib_save_LIBS
5476 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5477 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5478 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5479 LIBS="-lmytinfo $LIBS"
5484 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5485 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5486 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lcur_colr $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5499 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5514 rm -f conftest.$ac_objext conftest$ac_exeext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516 (eval $ac_link) 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_lib_cur_colr_initscr=yes
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 ac_cv_lib_cur_colr_initscr=no
5533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5537 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5538 if test $ac_cv_lib_cur_colr_initscr = yes; then
5540 LIBS="-lcur_colr $LIBS"
5541 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5542 ac_cv_func_initscr=yes
5546 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5547 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5548 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-lHcurses $LIBS"
5553 cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5561 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_lib_Hcurses_initscr=yes
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_cv_lib_Hcurses_initscr=no
5595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS
5598 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5599 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5600 if test $ac_cv_lib_Hcurses_initscr = yes; then
5602 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5603 LIBS="-lHcurses $LIBS"
5604 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5605 ac_cv_func_initscr=yes
5612 linux*) # Suse Linux does not follow /usr/lib convention
5617 if test ".$With5lib" != ".no" ; then
5618 if test -d /usr/5lib ; then
5620 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5621 LIBS="$LIBS -L/usr/5lib"
5625 if test ".$ac_cv_func_initscr" != .yes ; then
5626 cf_save_LIBS="$LIBS"
5630 # Check for library containing tgoto. Do this before curses library
5631 # because it may be needed to link the test-case for initscr.
5632 echo "$as_me:$LINENO: checking for tgoto" >&5
5633 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5634 if test "${ac_cv_func_tgoto+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 /* System header to define __stub macros and hopefully few prototypes,
5645 which can conflict with char tgoto (); below.
5646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647 <limits.h> exists even on freestanding compilers. */
5649 # include <limits.h>
5651 # include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5667 char (*f) () = tgoto;
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_func_tgoto=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5702 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5703 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5704 if test $ac_cv_func_tgoto = yes; then
5705 cf_term_lib=predefined
5708 for cf_term_lib in termcap termlib unknown
5710 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5711 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5712 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5713 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-l$cf_term_lib $LIBS"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5726 /* Override any gcc2 internal prototype to avoid an error. */
5730 /* We use char because int might match the return type of a gcc2
5731 builtin and then its argument prototype would still apply. */
5741 rm -f conftest.$ac_objext conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 eval "$as_ac_Lib=yes"
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 eval "$as_ac_Lib=no"
5760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5764 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5774 # Check for library containing initscr
5775 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5776 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5778 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5779 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5780 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5781 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 ac_check_lib_save_LIBS=$LIBS
5785 LIBS="-l$cf_curs_lib $LIBS"
5786 cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5794 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 eval "$as_ac_Lib=yes"
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 eval "$as_ac_Lib=no"
5828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5832 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5833 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5838 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5839 echo "$as_me: error: no curses library found" >&2;}
5840 { (exit 1); exit 1; }; }
5842 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5843 if test "$cf_term_lib" = unknown ; then
5844 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5845 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <${cf_cv_ncurses_header-curses.h}>
5862 rm -f conftest.$ac_objext conftest$ac_exeext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864 (eval $ac_link) 2>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $cf_result" >&5
5883 echo "${ECHO_T}$cf_result" >&6
5884 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5885 echo "$as_me: error: Cannot link curses library" >&2;}
5886 { (exit 1); exit 1; }; }
5887 elif test "$cf_term_lib" != predefined ; then
5888 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5889 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #include <${cf_cv_ncurses_header-curses.h}>
5901 initscr(); tgoto((char *)0, 0, 0);
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908 (eval $ac_link) 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5924 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5925 cat >conftest.$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #include <${cf_cv_ncurses_header-curses.h}>
5941 rm -f conftest.$ac_objext conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest$ac_exeext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $cf_result" >&5
5965 echo "${ECHO_T}$cf_result" >&6
5979 LIBS="$LIBS $MUTTLIBS"
5980 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5983 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5984 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5985 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 cat >conftest.$ac_ext <<_ACEOF
5989 #line $LINENO "configure"
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <${cf_cv_ncurses_header-curses.h}>
6000 extern int ${ac_func}();
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6019 cat >conftest.$ac_ext <<_ACEOF
6020 #line $LINENO "configure"
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <${cf_cv_ncurses_header-curses.h}>
6031 int (*p)() = ${ac_func};
6037 rm -f conftest.$ac_objext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6050 eval "ac_cv_func_decl_$ac_func=yes"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 eval "ac_cv_func_decl_$ac_func=no"
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6064 eval "ac_cv_func_decl_$ac_func=yes"
6066 rm -f conftest.$ac_objext conftest.$ac_ext
6069 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6070 echo "$as_me:$LINENO: result: yes" >&5
6071 echo "${ECHO_T}yes" >&6
6074 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6076 cat >>confdefs.h <<_ACEOF
6077 #define $ac_tr_func 1
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6086 if test "$ac_cv_func_decl_start_color" = yes; then
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_COLOR 1
6093 if test "$ac_cv_func_decl_resizeterm" = yes; then
6094 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6100 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6102 if test "${ac_cv_header_stdc+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_header_stdc=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ac_cv_header_stdc=no
6144 rm -f conftest.$ac_objext conftest.$ac_ext
6146 if test $ac_cv_header_stdc = yes; then
6147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "memchr" >/dev/null 2>&1; then
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170 cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "free" >/dev/null 2>&1; then
6184 ac_cv_header_stdc=no
6190 if test $ac_cv_header_stdc = yes; then
6191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6192 if test "$cross_compiling" = yes; then
6195 cat >conftest.$ac_ext <<_ACEOF
6196 #line $LINENO "configure"
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6203 #if ((' ' & 0x0FF) == 0x020)
6204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6207 # define ISLOWER(c) \
6208 (('a' <= (c) && (c) <= 'i') \
6209 || ('j' <= (c) && (c) <= 'r') \
6210 || ('s' <= (c) && (c) <= 'z'))
6211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6219 for (i = 0; i < 256; i++)
6220 if (XOR (islower (i), ISLOWER (i))
6221 || toupper (i) != TOUPPER (i))
6226 rm -f conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6239 echo "$as_me: program exited with status $ac_status" >&5
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6244 ac_cv_header_stdc=no
6246 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6251 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6252 if test $ac_cv_header_stdc = yes; then
6254 cat >>confdefs.h <<\_ACEOF
6255 #define STDC_HEADERS 1
6265 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6269 echo "$as_me:$LINENO: checking for $ac_header" >&5
6270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6277 # Is the header compilable?
6278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 $ac_includes_default
6288 #include <$ac_header>
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_header_compiler=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_compiler=no
6309 rm -f conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6311 echo "${ECHO_T}$ac_header_compiler" >&6
6313 # Is the header present?
6314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <$ac_header>
6325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328 grep -v '^ *+' conftest.er1 >conftest.err
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } >/dev/null; then
6333 if test -s conftest.err; then
6334 ac_cpp_err=$ac_c_preproc_warn_flag
6341 if test -z "$ac_cpp_err"; then
6342 ac_header_preproc=yes
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 ac_header_preproc=no
6349 rm -f conftest.err conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6351 echo "${ECHO_T}$ac_header_preproc" >&6
6353 # So? What about this header?
6354 case $ac_header_compiler:$ac_header_preproc in
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362 ## ------------------------------------ ##
6363 ## Report this to bug-autoconf@gnu.org. ##
6364 ## ------------------------------------ ##
6367 sed "s/^/$as_me: WARNING: /" >&2
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6378 ## ------------------------------------ ##
6379 ## Report this to bug-autoconf@gnu.org. ##
6380 ## ------------------------------------ ##
6383 sed "s/^/$as_me: WARNING: /" >&2
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 eval "$as_ac_Header=$ac_header_preproc"
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6398 cat >>confdefs.h <<_ACEOF
6399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6408 for ac_header in sys/time.h sys/resource.h
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo "$as_me:$LINENO: checking for $ac_header" >&5
6413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6420 # Is the header compilable?
6421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 #line $LINENO "configure"
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 $ac_includes_default
6431 #include <$ac_header>
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_header_compiler=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_header_compiler=no
6452 rm -f conftest.$ac_objext conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6454 echo "${ECHO_T}$ac_header_compiler" >&6
6456 # Is the header present?
6457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6460 #line $LINENO "configure"
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <$ac_header>
6468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev/null; then
6476 if test -s conftest.err; then
6477 ac_cpp_err=$ac_c_preproc_warn_flag
6484 if test -z "$ac_cpp_err"; then
6485 ac_header_preproc=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_header_preproc=no
6492 rm -f conftest.err conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6494 echo "${ECHO_T}$ac_header_preproc" >&6
6496 # So? What about this header?
6497 case $ac_header_compiler:$ac_header_preproc in
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6505 ## ------------------------------------ ##
6506 ## Report this to bug-autoconf@gnu.org. ##
6507 ## ------------------------------------ ##
6510 sed "s/^/$as_me: WARNING: /" >&2
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 ## ------------------------------------ ##
6522 ## Report this to bug-autoconf@gnu.org. ##
6523 ## ------------------------------------ ##
6526 sed "s/^/$as_me: WARNING: /" >&2
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 eval "$as_ac_Header=$ac_header_preproc"
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6541 cat >>confdefs.h <<_ACEOF
6542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 for ac_header in unix.h
6552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 # Is the header compilable?
6563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 #line $LINENO "configure"
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 #include <$ac_header>
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_header_compiler=yes
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 ac_header_compiler=no
6594 rm -f conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 echo "${ECHO_T}$ac_header_compiler" >&6
6598 # Is the header present?
6599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <$ac_header>
6610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6613 grep -v '^ *+' conftest.er1 >conftest.err
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } >/dev/null; then
6618 if test -s conftest.err; then
6619 ac_cpp_err=$ac_c_preproc_warn_flag
6626 if test -z "$ac_cpp_err"; then
6627 ac_header_preproc=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_header_preproc=no
6634 rm -f conftest.err conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 echo "${ECHO_T}$ac_header_preproc" >&6
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc in
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647 ## ------------------------------------ ##
6648 ## Report this to bug-autoconf@gnu.org. ##
6649 ## ------------------------------------ ##
6652 sed "s/^/$as_me: WARNING: /" >&2
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663 ## ------------------------------------ ##
6664 ## Report this to bug-autoconf@gnu.org. ##
6665 ## ------------------------------------ ##
6668 sed "s/^/$as_me: WARNING: /" >&2
6671 echo "$as_me:$LINENO: checking for $ac_header" >&5
6672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 eval "$as_ac_Header=$ac_header_preproc"
6678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694 for ac_func in setrlimit getsid
6696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697 echo "$as_me:$LINENO: checking for $ac_func" >&5
6698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_var+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char $ac_func (); below.
6711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6712 <limits.h> exists even on freestanding compilers. */
6714 # include <limits.h>
6716 # include <assert.h>
6718 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6732 char (*f) () = $ac_func;
6741 return f != $ac_func;
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -s conftest$ac_exeext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 eval "$as_ac_var=yes"
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 eval "$as_ac_var=no"
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6769 if test `eval echo '${'$as_ac_var'}'` = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6778 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6780 if test "${ac_cv_type_signal+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 #line $LINENO "configure"
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <sys/types.h>
6796 extern "C" void (*signal (int, void (*)(int)))(int);
6798 void (*signal ()) ();
6809 rm -f conftest.$ac_objext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_type_signal=void
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_type_signal=int
6828 rm -f conftest.$ac_objext conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6831 echo "${ECHO_T}$ac_cv_type_signal" >&6
6833 cat >>confdefs.h <<_ACEOF
6834 #define RETSIGTYPE $ac_cv_type_signal
6839 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6840 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6854 ac_cv_type_sig_atomic_t=yes;
6855 cat >conftest.$ac_ext <<_ACEOF
6856 #line $LINENO "configure"
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6866 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6868 is_sig_atomic_t_volatile=yes;
6869 echo "$as_me:$LINENO: result: yes, volatile" >&5
6870 echo "${ECHO_T}yes, volatile" >&6
6874 is_sig_atomic_t_volatile=no;
6875 echo "$as_me:$LINENO: result: yes, non volatile" >&5
6876 echo "${ECHO_T}yes, non volatile" >&6
6884 echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6
6886 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6887 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6888 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 $ac_includes_default
6902 if ((sig_atomic_t *) 0)
6904 if (sizeof (sig_atomic_t))
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_type_sig_atomic_t=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_type_sig_atomic_t=no
6929 rm -f conftest.$ac_objext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6932 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6933 if test $ac_cv_type_sig_atomic_t = yes; then
6937 cat >>confdefs.h <<_ACEOF
6938 #define sig_atomic_t int
6943 is_sig_atomic_t_volatile=no
6948 if test $is_sig_atomic_t_volatile = 'yes'
6950 cat >>confdefs.h <<\_ACEOF
6951 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6955 cat >>confdefs.h <<\_ACEOF
6956 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6961 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6962 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6963 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6978 char *p = (char *) sys_siglist;
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_have_decl_sys_siglist=yes
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_have_decl_sys_siglist=no
7004 rm -f conftest.$ac_objext conftest.$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7007 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7008 if test $ac_cv_have_decl_sys_siglist = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_DECL_SYS_SIGLIST 1
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 0
7026 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7027 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7028 if test "${ac_cv_c_bigendian+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 # See if sys/param.h defines the BYTE_ORDER macro.
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <sys/types.h>
7040 #include <sys/param.h>
7045 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest.$ac_objext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 # It does; now see whether it defined to BIG_ENDIAN or not.
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 #include <sys/types.h>
7074 #include <sys/param.h>
7079 #if BYTE_ORDER != BIG_ENDIAN
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 ac_cv_c_bigendian=yes
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_cv_c_bigendian=no
7106 rm -f conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 # It does not; compile a test program.
7112 if test "$cross_compiling" = yes; then
7113 # try to guess the endianness by grepping values into an object file
7114 ac_cv_c_bigendian=unknown
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7123 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7124 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7125 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7126 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7127 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7131 _ascii (); _ebcdic ();
7136 rm -f conftest.$ac_objext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138 (eval $ac_compile) 2>&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -s conftest.$ac_objext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7149 ac_cv_c_bigendian=yes
7151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7152 if test "$ac_cv_c_bigendian" = unknown; then
7153 ac_cv_c_bigendian=no
7155 # finding both strings is unlikely to happen, but who knows?
7156 ac_cv_c_bigendian=unknown
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7166 cat >conftest.$ac_ext <<_ACEOF
7167 #line $LINENO "configure"
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7176 /* Are we little or big endian? From Harbison&Steele. */
7180 char c[sizeof (long)];
7183 exit (u.c[sizeof (long) - 1] == 1);
7186 rm -f conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_c_bigendian=no
7199 echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_c_bigendian=yes
7206 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7209 rm -f conftest.$ac_objext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7213 case $ac_cv_c_bigendian in
7216 cat >>confdefs.h <<\_ACEOF
7217 #define WORDS_BIGENDIAN 1
7223 { { echo "$as_me:$LINENO: error: unknown endianness
7224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7225 echo "$as_me: error: unknown endianness
7226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7227 { (exit 1); exit 1; }; } ;;
7232 for ac_header in inttypes.h stdint.h
7234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 # Is the header compilable?
7245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 #include <$ac_header>
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -s conftest.$ac_objext'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 ac_header_compiler=yes
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_header_compiler=no
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <$ac_header>
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } >/dev/null; then
7300 if test -s conftest.err; then
7301 ac_cpp_err=$ac_c_preproc_warn_flag
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_header_preproc=no
7316 rm -f conftest.err conftest.$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7329 ## ------------------------------------ ##
7330 ## Report this to bug-autoconf@gnu.org. ##
7331 ## ------------------------------------ ##
7334 sed "s/^/$as_me: WARNING: /" >&2
7337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7345 ## ------------------------------------ ##
7346 ## Report this to bug-autoconf@gnu.org. ##
7347 ## ------------------------------------ ##
7350 sed "s/^/$as_me: WARNING: /" >&2
7353 echo "$as_me:$LINENO: checking for $ac_header" >&5
7354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 eval "$as_ac_Header=$ac_header_preproc"
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7365 cat >>confdefs.h <<_ACEOF
7366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7373 echo "$as_me:$LINENO: checking for uint32_t" >&5
7374 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7383 #include <sys/types.h>
7385 #include <inttypes.h>
7396 if (sizeof (uint32_t))
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_UINT32_T 1
7421 echo "$as_me:$LINENO: result: yes" >&5
7422 echo "${ECHO_T}yes" >&6
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7432 rm -f conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me:$LINENO: checking for int" >&5
7434 echo $ECHO_N "checking for int... $ECHO_C" >&6
7435 if test "${ac_cv_type_int+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 $ac_includes_default
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7476 rm -f conftest.$ac_objext conftest.$ac_ext
7478 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7479 echo "${ECHO_T}$ac_cv_type_int" >&6
7481 echo "$as_me:$LINENO: checking size of int" >&5
7482 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7483 if test "${ac_cv_sizeof_int+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 if test "$ac_cv_type_int" = yes; then
7487 # The cast to unsigned long works around a bug in the HP C Compiler
7488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7490 # This bug is HP SR number 8606223364.
7491 if test "$cross_compiling" = yes; then
7492 # Depending upon the size, compute the lo and hi bounds.
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line $LINENO "configure"
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7504 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7536 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7543 rm -f conftest.$ac_objext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7545 (eval $ac_compile) 2>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_hi=$ac_mid; break
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_lo=`expr $ac_mid + 1`
7561 if test $ac_lo -le $ac_mid; then
7565 ac_mid=`expr 2 '*' $ac_mid + 1`
7567 rm -f conftest.$ac_objext conftest.$ac_ext
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7584 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7616 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_lo=$ac_mid; break
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_hi=`expr '(' $ac_mid ')' - 1`
7641 if test $ac_mid -le $ac_hi; then
7645 ac_mid=`expr 2 '*' $ac_mid`
7647 rm -f conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7655 rm -f conftest.$ac_objext conftest.$ac_ext
7657 rm -f conftest.$ac_objext conftest.$ac_ext
7658 # Binary search between lo and hi bounds.
7659 while test "x$ac_lo" != "x$ac_hi"; do
7660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7661 cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 $ac_includes_default
7672 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_lo=`expr '(' $ac_mid ')' + 1`
7698 rm -f conftest.$ac_objext conftest.$ac_ext
7701 ?*) ac_cv_sizeof_int=$ac_lo;;
7702 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7703 See \`config.log' for more details." >&5
7704 echo "$as_me: error: cannot compute sizeof (int), 77
7705 See \`config.log' for more details." >&2;}
7706 { (exit 1); exit 1; }; } ;;
7709 if test "$cross_compiling" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7711 See \`config.log' for more details." >&5
7712 echo "$as_me: error: cannot run test program while cross compiling
7713 See \`config.log' for more details." >&2;}
7714 { (exit 1); exit 1; }; }
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 long longval () { return (long) (sizeof (int)); }
7725 unsigned long ulongval () { return (long) (sizeof (int)); }
7732 FILE *f = fopen ("conftest.val", "w");
7735 if (((long) (sizeof (int))) < 0)
7737 long i = longval ();
7738 if (i != ((long) (sizeof (int))))
7740 fprintf (f, "%ld\n", i);
7744 unsigned long i = ulongval ();
7745 if (i != ((long) (sizeof (int))))
7747 fprintf (f, "%lu\n", i);
7749 exit (ferror (f) || fclose (f) != 0);
7755 rm -f conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_sizeof_int=`cat conftest.val`
7768 echo "$as_me: program exited with status $ac_status" >&5
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7774 See \`config.log' for more details." >&5
7775 echo "$as_me: error: cannot compute sizeof (int), 77
7776 See \`config.log' for more details." >&2;}
7777 { (exit 1); exit 1; }; }
7779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7788 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7789 cat >>confdefs.h <<_ACEOF
7790 #define SIZEOF_INT $ac_cv_sizeof_int
7794 echo "$as_me:$LINENO: checking for long" >&5
7795 echo $ECHO_N "checking for long... $ECHO_C" >&6
7796 if test "${ac_cv_type_long+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 $ac_includes_default
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7837 rm -f conftest.$ac_objext conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7840 echo "${ECHO_T}$ac_cv_type_long" >&6
7842 echo "$as_me:$LINENO: checking size of long" >&5
7843 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7844 if test "${ac_cv_sizeof_long+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 if test "$ac_cv_type_long" = yes; then
7848 # The cast to unsigned long works around a bug in the HP C Compiler
7849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7851 # This bug is HP SR number 8606223364.
7852 if test "$cross_compiling" = yes; then
7853 # Depending upon the size, compute the lo and hi bounds.
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7865 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874 (eval $ac_compile) 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 $ac_includes_default
7897 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_hi=$ac_mid; break
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 ac_lo=`expr $ac_mid + 1`
7922 if test $ac_lo -le $ac_mid; then
7926 ac_mid=`expr 2 '*' $ac_mid + 1`
7928 rm -f conftest.$ac_objext conftest.$ac_ext
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 cat >conftest.$ac_ext <<_ACEOF
7935 #line $LINENO "configure"
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7941 $ac_includes_default
7945 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7977 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7984 rm -f conftest.$ac_objext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7986 (eval $ac_compile) 2>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7996 ac_lo=$ac_mid; break
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8001 ac_hi=`expr '(' $ac_mid ')' - 1`
8002 if test $ac_mid -le $ac_hi; then
8006 ac_mid=`expr 2 '*' $ac_mid`
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8016 rm -f conftest.$ac_objext conftest.$ac_ext
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8019 # Binary search between lo and hi bounds.
8020 while test "x$ac_lo" != "x$ac_hi"; do
8021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 $ac_includes_default
8033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_lo=`expr '(' $ac_mid ')' + 1`
8059 rm -f conftest.$ac_objext conftest.$ac_ext
8062 ?*) ac_cv_sizeof_long=$ac_lo;;
8063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8064 See \`config.log' for more details." >&5
8065 echo "$as_me: error: cannot compute sizeof (long), 77
8066 See \`config.log' for more details." >&2;}
8067 { (exit 1); exit 1; }; } ;;
8070 if test "$cross_compiling" = yes; then
8071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8072 See \`config.log' for more details." >&5
8073 echo "$as_me: error: cannot run test program while cross compiling
8074 See \`config.log' for more details." >&2;}
8075 { (exit 1); exit 1; }; }
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 $ac_includes_default
8085 long longval () { return (long) (sizeof (long)); }
8086 unsigned long ulongval () { return (long) (sizeof (long)); }
8093 FILE *f = fopen ("conftest.val", "w");
8096 if (((long) (sizeof (long))) < 0)
8098 long i = longval ();
8099 if (i != ((long) (sizeof (long))))
8101 fprintf (f, "%ld\n", i);
8105 unsigned long i = ulongval ();
8106 if (i != ((long) (sizeof (long))))
8108 fprintf (f, "%lu\n", i);
8110 exit (ferror (f) || fclose (f) != 0);
8116 rm -f conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118 (eval $ac_link) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_sizeof_long=`cat conftest.val`
8129 echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8135 See \`config.log' for more details." >&5
8136 echo "$as_me: error: cannot compute sizeof (long), 77
8137 See \`config.log' for more details." >&2;}
8138 { (exit 1); exit 1; }; }
8140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8149 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8150 cat >>confdefs.h <<_ACEOF
8151 #define SIZEOF_LONG $ac_cv_sizeof_long
8156 echo "$as_me:$LINENO: checking for pid_t" >&5
8157 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8158 if test "${ac_cv_type_pid_t+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8180 rm -f conftest.$ac_objext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8182 (eval $ac_compile) 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -s conftest.$ac_objext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_cv_type_pid_t=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8199 rm -f conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8202 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8203 if test $ac_cv_type_pid_t = yes; then
8207 cat >>confdefs.h <<_ACEOF
8219 for ac_func in fgetpos memmove setegid srand48 strerror
8221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222 echo "$as_me:$LINENO: checking for $ac_func" >&5
8223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8224 if eval "test \"\${$as_ac_var+set}\" = set"; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func (); below.
8236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237 <limits.h> exists even on freestanding compilers. */
8239 # include <limits.h>
8241 # include <assert.h>
8243 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8257 char (*f) () = $ac_func;
8266 return f != $ac_func;
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273 (eval $ac_link) 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 eval "$as_ac_var=yes"
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 eval "$as_ac_var=no"
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8294 if test `eval echo '${'$as_ac_var'}'` = yes; then
8295 cat >>confdefs.h <<_ACEOF
8296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8305 for ac_func in strcasecmp strdup
8307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8308 echo "$as_me:$LINENO: checking for $ac_func" >&5
8309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_var+set}\" = set"; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 /* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char $ac_func (); below.
8322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8323 <limits.h> exists even on freestanding compilers. */
8325 # include <limits.h>
8327 # include <assert.h>
8329 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */
8337 /* The GNU C library defines this for functions which it implements
8338 to always fail with ENOSYS. Some functions are actually named
8339 something starting with __ and the normal name is an alias. */
8340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8343 char (*f) () = $ac_func;
8352 return f != $ac_func;
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -s conftest$ac_exeext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 eval "$as_ac_var=yes"
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 eval "$as_ac_var=no"
8376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8380 if test `eval echo '${'$as_ac_var'}'` = yes; then
8381 cat >>confdefs.h <<_ACEOF
8382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8386 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8392 echo "$as_me:$LINENO: checking for getopt" >&5
8393 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8394 if test "${ac_cv_func_getopt+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 /* System header to define __stub macros and hopefully few prototypes,
8405 which can conflict with char getopt (); below.
8406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8407 <limits.h> exists even on freestanding compilers. */
8409 # include <limits.h>
8411 # include <assert.h>
8413 /* Override any gcc2 internal prototype to avoid an error. */
8418 /* We use char because int might match the return type of a gcc2
8419 builtin and then its argument prototype would still apply. */
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_getopt) || defined (__stub___getopt)
8427 char (*f) () = getopt;
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_func_getopt=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_func_getopt=no
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8463 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8465 if test $ac_cv_func_getopt = yes; then
8467 for ac_header in getopt.h
8469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 #include <$ac_header>
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_compiler=no
8511 rm -f conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 #include <$ac_header>
8527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } >/dev/null; then
8535 if test -s conftest.err; then
8536 ac_cpp_err=$ac_c_preproc_warn_flag
8543 if test -z "$ac_cpp_err"; then
8544 ac_header_preproc=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_header_preproc=no
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8555 # So? What about this header?
8556 case $ac_header_compiler:$ac_header_preproc in
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8564 ## ------------------------------------ ##
8565 ## Report this to bug-autoconf@gnu.org. ##
8566 ## ------------------------------------ ##
8569 sed "s/^/$as_me: WARNING: /" >&2
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8580 ## ------------------------------------ ##
8581 ## Report this to bug-autoconf@gnu.org. ##
8582 ## ------------------------------------ ##
8585 sed "s/^/$as_me: WARNING: /" >&2
8588 echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 eval "$as_ac_Header=$ac_header_preproc"
8595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8600 cat >>confdefs.h <<_ACEOF
8601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 for ac_func in snprintf
8615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8616 echo "$as_me:$LINENO: checking for $ac_func" >&5
8617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_var+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 /* System header to define __stub macros and hopefully few prototypes,
8629 which can conflict with char $ac_func (); below.
8630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 <limits.h> exists even on freestanding compilers. */
8633 # include <limits.h>
8635 # include <assert.h>
8637 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8651 char (*f) () = $ac_func;
8660 return f != $ac_func;
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 eval "$as_ac_var=yes"
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 eval "$as_ac_var=no"
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8688 if test `eval echo '${'$as_ac_var'}'` = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8694 mutt_cv_snprintf=yes
8699 for ac_func in vsnprintf
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 /* System header to define __stub macros and hopefully few prototypes,
8715 which can conflict with char $ac_func (); below.
8716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 <limits.h> exists even on freestanding compilers. */
8719 # include <limits.h>
8721 # include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 char (*f) () = $ac_func;
8746 return f != $ac_func;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 eval "$as_ac_var=yes"
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 eval "$as_ac_var=no"
8770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8774 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8780 mutt_cv_snprintf=yes
8784 if test $mutt_cv_snprintf = yes; then
8785 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8789 for ac_func in ftruncate
8791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8792 echo "$as_me:$LINENO: checking for $ac_func" >&5
8793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_var+set}\" = set"; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char $ac_func (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8809 # include <limits.h>
8811 # include <assert.h>
8813 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8821 /* The GNU C library defines this for functions which it implements
8822 to always fail with ENOSYS. Some functions are actually named
8823 something starting with __ and the normal name is an alias. */
8824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8827 char (*f) () = $ac_func;
8836 return f != $ac_func;
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 eval "$as_ac_var=yes"
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 eval "$as_ac_var=no"
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8864 if test `eval echo '${'$as_ac_var'}'` = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8871 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8872 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8873 if test "${ac_cv_lib_x_chsize+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 ac_check_lib_save_LIBS=$LIBS
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_x_chsize=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_cv_lib_x_chsize=no
8920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_lib_save_LIBS
8923 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8924 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8925 if test $ac_cv_lib_x_chsize = yes; then
8926 cat >>confdefs.h <<_ACEOF
8939 for ac_func in strftime
8941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8942 echo "$as_me:$LINENO: checking for $ac_func" >&5
8943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8944 if eval "test \"\${$as_ac_var+set}\" = set"; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8959 # include <limits.h>
8961 # include <assert.h>
8963 /* Override any gcc2 internal prototype to avoid an error. */
8968 /* We use char because int might match the return type of a gcc2
8969 builtin and then its argument prototype would still apply. */
8971 /* The GNU C library defines this for functions which it implements
8972 to always fail with ENOSYS. Some functions are actually named
8973 something starting with __ and the normal name is an alias. */
8974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8977 char (*f) () = $ac_func;
8986 return f != $ac_func;
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 eval "$as_ac_var=yes"
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 eval "$as_ac_var=no"
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9014 if test `eval echo '${'$as_ac_var'}'` = yes; then
9015 cat >>confdefs.h <<_ACEOF
9016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9021 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9022 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9023 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 ac_check_lib_save_LIBS=$LIBS
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9036 /* Override any gcc2 internal prototype to avoid an error. */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_lib_intl_strftime=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_cv_lib_intl_strftime=no
9070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9073 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9074 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9075 if test $ac_cv_lib_intl_strftime = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_LIBINTL 1
9089 for ac_func in fchdir
9091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 echo "$as_me:$LINENO: checking for $ac_func" >&5
9093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_var+set}\" = set"; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 /* System header to define __stub macros and hopefully few prototypes,
9105 which can conflict with char $ac_func (); below.
9106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9107 <limits.h> exists even on freestanding compilers. */
9109 # include <limits.h>
9111 # include <assert.h>
9113 /* Override any gcc2 internal prototype to avoid an error. */
9118 /* We use char because int might match the return type of a gcc2
9119 builtin and then its argument prototype would still apply. */
9121 /* The GNU C library defines this for functions which it implements
9122 to always fail with ENOSYS. Some functions are actually named
9123 something starting with __ and the normal name is an alias. */
9124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9127 char (*f) () = $ac_func;
9136 return f != $ac_func;
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143 (eval $ac_link) 2>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 eval "$as_ac_var=yes"
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 eval "$as_ac_var=no"
9160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9164 if test `eval echo '${'$as_ac_var'}'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9176 # Check whether --with-regex or --without-regex was given.
9177 if test "${with_regex+set}" = set; then
9178 withval="$with_regex"
9182 for ac_func in regcomp
9184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185 echo "$as_me:$LINENO: checking for $ac_func" >&5
9186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9187 if eval "test \"\${$as_ac_var+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 /* System header to define __stub macros and hopefully few prototypes,
9198 which can conflict with char $ac_func (); below.
9199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9200 <limits.h> exists even on freestanding compilers. */
9202 # include <limits.h>
9204 # include <assert.h>
9206 /* Override any gcc2 internal prototype to avoid an error. */
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9214 /* The GNU C library defines this for functions which it implements
9215 to always fail with ENOSYS. Some functions are actually named
9216 something starting with __ and the normal name is an alias. */
9217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9220 char (*f) () = $ac_func;
9229 return f != $ac_func;
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_var=yes"
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 eval "$as_ac_var=no"
9253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9257 if test `eval echo '${'$as_ac_var'}'` = yes; then
9258 cat >>confdefs.h <<_ACEOF
9259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9269 if test $mutt_cv_regex = no ; then
9270 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9271 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9272 if test "${mutt_cv_regex_broken+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 if test "$cross_compiling" = yes; then
9276 mutt_cv_regex_broken=yes
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9288 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); }
9290 rm -f conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 mutt_cv_regex_broken=no
9303 echo "$as_me: program exited with status $ac_status" >&5
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9308 mutt_cv_regex_broken=yes
9310 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9314 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9315 if test $mutt_cv_regex_broken = yes ; then
9316 echo "Using the included GNU regex instead." >&6
9321 if test $mutt_cv_regex = yes; then
9323 cat >>confdefs.h <<\_ACEOF
9324 #define USE_GNU_REGEX 1
9327 LIBOBJS="$LIBOBJS regex.$ac_objext"
9332 # Check whether --with-homespool or --without-homespool was given.
9333 if test "${with_homespool+set}" = set; then
9334 withval="$with_homespool"
9335 with_homespool=${withval}
9337 if test x$with_homespool != x; then
9338 if test $with_homespool = yes; then
9339 with_homespool=mailbox
9342 cat >>confdefs.h <<_ACEOF
9343 #define MAILPATH "$with_homespool"
9347 cat >>confdefs.h <<\_ACEOF
9352 cat >>confdefs.h <<\_ACEOF
9353 #define USE_DOTLOCK 1
9359 # Check whether --with-mailpath or --without-mailpath was given.
9360 if test "${with_mailpath+set}" = set; then
9361 withval="$with_mailpath"
9362 mutt_cv_mailpath=$withval
9364 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9365 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9366 if test "${mutt_cv_mailpath+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 if test -d /var/mail; then
9371 mutt_cv_mailpath=/var/mail
9372 elif test -d /var/spool/mail; then
9373 mutt_cv_mailpath=/var/spool/mail
9374 elif test -d /usr/spool/mail; then
9375 mutt_cv_mailpath=/usr/spool/mail
9376 elif test -d /usr/mail; then
9377 mutt_cv_mailpath=/usr/mail
9380 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9381 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9384 if test "$mutt_cv_mailpath" = no; then
9385 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9386 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9387 { (exit 1); exit 1; }; }
9390 cat >>confdefs.h <<_ACEOF
9391 #define MAILPATH "$mutt_cv_mailpath"
9395 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9396 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9397 if test "${mutt_cv_worldwrite+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 if test "$cross_compiling" = yes; then
9401 mutt_cv_worldwrite=no
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 #include <sys/types.h>
9411 #include <sys/stat.h>
9413 int main (int argc, char **argv)
9417 stat ("$mutt_cv_mailpath", &s);
9418 if (s.st_mode & S_IWOTH) exit (0);
9422 rm -f conftest$ac_exeext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424 (eval $ac_link) 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 mutt_cv_worldwrite=yes
9435 echo "$as_me: program exited with status $ac_status" >&5
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9440 mutt_cv_worldwrite=no
9442 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9446 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9449 if test $mutt_cv_worldwrite = yes; then
9451 cat >>confdefs.h <<\_ACEOF
9452 #define USE_DOTLOCK 1
9457 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9458 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9459 if test "${mutt_cv_groupwrite+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 if test "$cross_compiling" = yes; then
9463 mutt_cv_groupwrite=no
9465 cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 #include <sys/types.h>
9473 #include <sys/stat.h>
9475 int main (int argc, char **argv)
9479 stat ("$mutt_cv_mailpath", &s);
9480 if (s.st_mode & S_IWGRP) exit (0);
9484 rm -f conftest$ac_exeext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486 (eval $ac_link) 2>&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 mutt_cv_groupwrite=yes
9497 echo "$as_me: program exited with status $ac_status" >&5
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9502 mutt_cv_groupwrite=no
9504 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9507 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9508 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9510 if test $mutt_cv_groupwrite = yes; then
9512 cat >>confdefs.h <<\_ACEOF
9513 #define USE_DOTLOCK 1
9517 cat >>confdefs.h <<\_ACEOF
9518 #define USE_SETGID 1
9526 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9527 if test "${enable_external_dotlock+set}" = set; then
9528 enableval="$enable_external_dotlock"
9529 mutt_cv_external_dotlock="$enableval"
9532 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9533 || test "x$mutt_cv_external_dotlock" = "xyes"
9536 cat >>confdefs.h <<\_ACEOF
9537 #define DL_STANDALONE 1
9540 DOTLOCK_TARGET="mutt_dotlock"
9542 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9548 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9549 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9551 # Check whether --with-docdir or --without-docdir was given.
9552 if test "${with_docdir+set}" = set; then
9553 withval="$with_docdir"
9554 mutt_cv_docdir=$withval
9556 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9558 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9559 echo "${ECHO_T}$mutt_cv_docdir" >&6
9561 docdir=$mutt_cv_docdir
9564 if test x$mutt_cv_setgid = xyes; then
9565 DOTLOCK_GROUP='mail'
9566 DOTLOCK_PERMISSION=2755
9569 DOTLOCK_PERMISSION=755
9575 # Check whether --with-domain or --without-domain was given.
9576 if test "${with_domain+set}" = set; then
9577 withval="$with_domain"
9578 if test $withval != yes; then
9580 cat >>confdefs.h <<_ACEOF
9581 #define DOMAIN "$withval"
9590 # Check whether --enable-pop or --disable-pop was given.
9591 if test "${enable_pop+set}" = set; then
9592 enableval="$enable_pop"
9593 if test x$enableval = xyes ; then
9595 cat >>confdefs.h <<\_ACEOF
9599 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9606 # Check whether --enable-imap or --disable-imap was given.
9607 if test "${enable_imap+set}" = set; then
9608 enableval="$enable_imap"
9609 if test x$enableval = xyes ; then
9611 cat >>confdefs.h <<\_ACEOF
9615 LIBIMAP="-Limap -limap"
9616 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9625 if test x$need_imap = xyes; then
9627 BUILD_IMAP_FALSE='#'
9634 # Check whether --enable-nntp or --disable-nntp was given.
9635 if test "${enable_nntp+set}" = set; then
9636 enableval="$enable_nntp"
9637 if test x$enableval = xyes ; then
9638 cat >>confdefs.h <<\_ACEOF
9642 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9649 if test "$need_socket" = "yes"
9651 echo "$as_me:$LINENO: checking for socklen_t" >&5
9652 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <sys/socket.h>
9663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9664 $EGREP "socklen_t" >/dev/null 2>&1; then
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9671 cat >>confdefs.h <<\_ACEOF
9672 #define socklen_t int
9678 echo "$as_me:$LINENO: checking for gethostent" >&5
9679 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9680 if test "${ac_cv_func_gethostent+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char gethostent (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9695 # include <limits.h>
9697 # include <assert.h>
9699 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9707 /* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9713 char (*f) () = gethostent;
9722 return f != gethostent;
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 ac_cv_func_gethostent=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func_gethostent=no
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9749 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9750 if test $ac_cv_func_gethostent = yes; then
9754 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9755 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9756 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_check_lib_save_LIBS=$LIBS
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_lib_nsl_gethostent=yes
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_cv_lib_nsl_gethostent=no
9803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9807 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9808 if test $ac_cv_lib_nsl_gethostent = yes; then
9809 cat >>confdefs.h <<_ACEOF
9810 #define HAVE_LIBNSL 1
9819 echo "$as_me:$LINENO: checking for setsockopt" >&5
9820 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9821 if test "${ac_cv_func_setsockopt+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char setsockopt (); below.
9833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 <limits.h> exists even on freestanding compilers. */
9836 # include <limits.h>
9838 # include <assert.h>
9840 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9854 char (*f) () = setsockopt;
9863 return f != setsockopt;
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_func_setsockopt=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_func_setsockopt=no
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9890 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9891 if test $ac_cv_func_setsockopt = yes; then
9895 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9896 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9897 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-lsocket $LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_socket_setsockopt=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_socket_setsockopt=no
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9948 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9949 if test $ac_cv_lib_socket_setsockopt = yes; then
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE_LIBSOCKET 1
9954 LIBS="-lsocket $LIBS"
9961 for ac_func in getaddrinfo
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9966 if eval "test \"\${$as_ac_var+set}\" = set"; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9970 #line $LINENO "configure"
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* System header to define __stub macros and hopefully few prototypes,
9977 which can conflict with char $ac_func (); below.
9978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979 <limits.h> exists even on freestanding compilers. */
9981 # include <limits.h>
9983 # include <assert.h>
9985 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9993 /* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
9996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999 char (*f) () = $ac_func;
10008 return f != $ac_func;
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 eval "$as_ac_var=yes"
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 eval "$as_ac_var=no"
10032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10036 if test `eval echo '${'$as_ac_var'}'` = yes; then
10037 cat >>confdefs.h <<_ACEOF
10038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 cat >>confdefs.h <<\_ACEOF
10046 #define USE_SOCKET 1
10049 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10054 # Check whether --with-gss or --without-gss was given.
10055 if test "${with_gss+set}" = set; then
10056 withval="$with_gss"
10057 gss_prefix="$withval"
10061 if test "$gss_prefix" != "no"
10063 if test "$need_imap" = "yes"
10066 GSSAPI_PREFIX=$gss_prefix
10068 saved_CPPFLAGS="$CPPFLAGS"
10069 saved_LDFLAGS="$LDFLAGS"
10071 if test "$GSSAPI_PREFIX" != "yes"
10073 krb5_path="$GSSAPI_PREFIX/bin"
10077 # Extract the first word of "krb5-config", so it can be a program name with args.
10078 set dummy krb5-config; ac_word=$2
10079 echo "$as_me:$LINENO: checking for $ac_word" >&5
10080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10081 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 case $KRB5CFGPATH in
10086 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $krb5_path
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10107 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10109 if test -n "$KRB5CFGPATH"; then
10110 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10111 echo "${ECHO_T}$KRB5CFGPATH" >&6
10113 echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6
10117 if test "$KRB5CFGPATH" != "none"
10119 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10120 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10121 case "`$KRB5CFGPATH --version`" in
10122 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10123 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10124 *) GSSAPI_IMPL="Unknown";;
10127 if test "$GSSAPI_PREFIX" != "yes"
10129 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10130 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10131 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10132 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10135 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10136 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10137 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 #line $LINENO "configure"
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10150 /* Override any gcc2 internal prototype to avoid an error. */
10154 /* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156 char gss_init_sec_context ();
10160 gss_init_sec_context ();
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167 (eval $ac_link) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10187 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10188 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10189 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10192 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10197 if test "$GSSAPI_IMPL" = "none"
10199 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10200 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10201 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10214 /* Override any gcc2 internal prototype to avoid an error. */
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char gss_init_sec_context ();
10224 gss_init_sec_context ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_lib_gssapi_gss_init_sec_context=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_lib_gssapi_gss_init_sec_context=no
10248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10251 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10252 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10253 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10255 GSSAPI_IMPL="Heimdal"
10256 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10257 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10263 if test "$GSSAPI_IMPL" = "none"
10265 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10266 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10267 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 #line $LINENO "configure"
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10280 /* Override any gcc2 internal prototype to avoid an error. */
10284 /* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */
10286 char g_order_init ();
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_lib_gssapi_krb5_g_order_init=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_gssapi_krb5_g_order_init=no
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10318 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10319 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10321 GSSAPI_IMPL="OldMIT",
10322 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10329 CPPFLAGS="$saved_CPPFLAGS"
10330 LDFLAGS="$saved_LDFLAGS"
10333 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10334 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10335 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10336 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10337 if test "$GSSAPI_IMPL" = "none"
10339 cat >confcache <<\_ACEOF
10340 # This file is a shell script that caches the results of configure
10341 # tests run on this system so they can be shared between configure
10342 # scripts and configure runs, see configure's option --config-cache.
10343 # It is not useful on other systems. If it contains results you don't
10344 # want to keep, you may remove or edit it.
10346 # config.status only pays attention to the cache file if you give it
10347 # the --recheck option to rerun configure.
10349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10351 # following values.
10355 # The following way of writing the cache mishandles newlines in values,
10356 # but we know of no workaround that is simple, portable, and efficient.
10357 # So, don't put newlines in cache variables' values.
10358 # Ultrix sh set writes to stderr and can't be redirected directly,
10359 # and sets the high bit in the cache file unless we assign to the vars.
10362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10364 # `set' does not quote correctly, so add quotes (double-quote
10365 # substitution turns \\\\ into \\, and sed turns \\ into \).
10368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10371 # `set' quotes correctly as required by POSIX, so do not add quotes.
10373 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10382 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10385 if test -w $cache_file; then
10386 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10387 cat confcache >$cache_file
10389 echo "not updating unwritable cache $cache_file"
10393 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10394 echo "${ECHO_T}GSSAPI libraries not found" >&6
10396 if test "$GSSAPI_IMPL" = "Heimdal"
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_HEIMDAL 1
10404 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10405 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10407 cat >>confdefs.h <<\_ACEOF
10413 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10414 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10419 if test x$need_gss = xyes; then
10430 # Check whether --with-ssl or --without-ssl was given.
10431 if test "${with_ssl+set}" = set; then
10432 withval="$with_ssl"
10433 if test "$with_ssl" != "no"
10435 if test "$need_socket" != "yes"; then
10436 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10437 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10438 { (exit 1); exit 1; }; }
10441 if test "$with_ssl" != "yes"
10443 LDFLAGS="$LDFLAGS -L$withval/lib"
10444 CPPFLAGS="$CPPFLAGS -I$withval/include"
10449 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10450 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10451 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lcrypto $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10464 /* Override any gcc2 internal prototype to avoid an error. */
10468 /* We use char because int might match the return type of a gcc2
10469 builtin and then its argument prototype would still apply. */
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481 (eval $ac_link) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -s conftest$ac_exeext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_lib_crypto_X509_new=yes
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_cv_lib_crypto_X509_new=no
10498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10502 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10503 if test $ac_cv_lib_crypto_X509_new = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define HAVE_LIBCRYPTO 1
10508 LIBS="-lcrypto $LIBS"
10511 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10512 echo "$as_me: error: Unable to find SSL library" >&2;}
10513 { (exit 1); exit 1; }; }
10517 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10518 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10519 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-lssl -lcrypto $LIBS"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10532 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_ssl_SSL_new=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_lib_ssl_SSL_new=no
10566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10570 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10571 if test $ac_cv_lib_ssl_SSL_new = yes; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define HAVE_LIBSSL 1
10579 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10580 echo "$as_me: error: Unable to find SSL library" >&2;}
10581 { (exit 1); exit 1; }; }
10587 for ac_func in RAND_status RAND_egd
10589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10590 echo "$as_me:$LINENO: checking for $ac_func" >&5
10591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10592 if eval "test \"\${$as_ac_var+set}\" = set"; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char $ac_func (); below.
10604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605 <limits.h> exists even on freestanding compilers. */
10607 # include <limits.h>
10609 # include <assert.h>
10611 /* Override any gcc2 internal prototype to avoid an error. */
10616 /* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10625 char (*f) () = $ac_func;
10634 return f != $ac_func;
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 eval "$as_ac_var=yes"
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 eval "$as_ac_var=no"
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10662 if test `eval echo '${'$as_ac_var'}'` = yes; then
10663 cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672 cat >>confdefs.h <<\_ACEOF
10677 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10678 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10686 if test x$need_ssl = xyes; then
10696 # Check whether --with-nss or --without-nss was given.
10697 if test "${with_nss+set}" = set; then
10698 withval="$with_nss"
10699 if test "$with_nss" != no
10701 if test "$need_socket" != "yes"; then
10702 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10703 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10704 { (exit 1); exit 1; }; }
10707 if test "$with_nss" != "yes"
10709 LDFLAGS="$LDFLAGS -L$withval/lib"
10710 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10714 cat >>confdefs.h <<\_ACEOF
10718 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10719 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10720 MUTTLIBS="$MUTTLIBS -lnspr4"
10722 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10729 # Check whether --with-sasl or --without-sasl was given.
10730 if test "${with_sasl+set}" = set; then
10731 withval="$with_sasl"
10733 if test "$need_socket" != "yes"
10735 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10736 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10737 { (exit 1); exit 1; }; }
10740 if test "$with_sasl" != "no"
10742 if test "$with_sasl" != "yes"
10744 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10745 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10751 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10752 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10753 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-lsasl $LIBS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 #line $LINENO "configure"
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10766 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772 char sasl_client_init ();
10776 sasl_client_init ();
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_lib_sasl_sasl_client_init=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_lib_sasl_sasl_client_init=no
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10804 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10805 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10806 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LIBSASL 1
10810 LIBS="-lsasl $LIBS"
10813 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10814 echo "$as_me: error: could not find libsasl" >&2;}
10815 { (exit 1); exit 1; }; }
10819 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10820 MUTTLIBS="$MUTTLIBS -lsasl"
10823 cat >>confdefs.h <<\_ACEOF
10833 if test x$need_sasl = xyes; then
10843 # Check whether --with-sasl2 or --without-sasl2 was given.
10844 if test "${with_sasl2+set}" = set; then
10845 withval="$with_sasl2"
10847 if test "$need_socket" != "yes"
10849 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10850 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10851 { (exit 1); exit 1; }; }
10854 if test "$with_sasl2" != "no"
10856 if test "$with_sasl2" != "yes"
10858 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10859 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10865 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10866 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10867 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lsasl2 $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10880 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char sasl_client_init ();
10890 sasl_client_init ();
10895 rm -f conftest.$ac_objext conftest$ac_exeext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest$ac_exeext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_lib_sasl2_sasl_client_init=yes
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_cv_lib_sasl2_sasl_client_init=no
10914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
10918 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
10919 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_LIBSASL2 1
10924 LIBS="-lsasl2 $LIBS"
10927 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10928 echo "$as_me: error: could not find libsasl" >&2;}
10929 { (exit 1); exit 1; }; }
10933 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10934 MUTTLIBS="$MUTTLIBS -lsasl2"
10937 cat >>confdefs.h <<\_ACEOF
10942 cat >>confdefs.h <<\_ACEOF
10943 #define USE_SASL2 1
10952 if test x$need_sasl = xyes; then
10962 # Check whether --with-idn or --without-idn was given.
10963 if test "${with_idn+set}" = set; then
10964 withval="$with_idn"
10966 if test "$with_idn" != "no" ; then
10967 if test "$with_idn" != "yes" ; then
10968 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
10969 LDFLAGS="$LDFLAGS -L$with_idn/lib"
10976 if test "x$with_idn" != "xno"; then
10978 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
10979 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
10980 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 ac_check_lib_save_LIBS=$LIBS
10985 cat >conftest.$ac_ext <<_ACEOF
10986 #line $LINENO "configure"
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char stringprep_check_version ();
11003 stringprep_check_version ();
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_lib_idn_stringprep_check_version=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_lib_idn_stringprep_check_version=no
11027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11031 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11032 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11033 cat >>confdefs.h <<_ACEOF
11034 #define HAVE_LIBIDN 1
11043 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11048 if eval "test \"\${$as_ac_var+set}\" = set"; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11052 #line $LINENO "configure"
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11063 # include <limits.h>
11065 # include <assert.h>
11067 /* Override any gcc2 internal prototype to avoid an error. */
11072 /* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11075 /* The GNU C library defines this for functions which it implements
11076 to always fail with ENOSYS. Some functions are actually named
11077 something starting with __ and the normal name is an alias. */
11078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11081 char (*f) () = $ac_func;
11090 return f != $ac_func;
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 eval "$as_ac_var=yes"
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 eval "$as_ac_var=no"
11114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_var+set}\" = set"; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11148 # include <limits.h>
11150 # include <assert.h>
11152 /* Override any gcc2 internal prototype to avoid an error. */
11157 /* We use char because int might match the return type of a gcc2
11158 builtin and then its argument prototype would still apply. */
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11166 char (*f) () = $ac_func;
11175 return f != $ac_func;
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 eval "$as_ac_var=yes"
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 eval "$as_ac_var=no"
11199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11203 if test `eval echo '${'$as_ac_var'}'` = yes; then
11204 cat >>confdefs.h <<_ACEOF
11205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11218 if eval "test \"\${$as_ac_var+set}\" = set"; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 /* System header to define __stub macros and hopefully few prototypes,
11229 which can conflict with char $ac_func (); below.
11230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231 <limits.h> exists even on freestanding compilers. */
11233 # include <limits.h>
11235 # include <assert.h>
11237 /* Override any gcc2 internal prototype to avoid an error. */
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11251 char (*f) () = $ac_func;
11260 return f != $ac_func;
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 eval "$as_ac_var=yes"
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 eval "$as_ac_var=no"
11284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11288 if test `eval echo '${'$as_ac_var'}'` = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11298 if test "$need_md5" = "yes"
11300 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11304 # Check whether --enable-debug or --disable-debug was given.
11305 if test "${enable_debug+set}" = set; then
11306 enableval="$enable_debug"
11307 if test x$enableval = xyes ; then
11309 cat >>confdefs.h <<\_ACEOF
11317 # Check whether --enable-flock or --disable-flock was given.
11318 if test "${enable_flock+set}" = set; then
11319 enableval="$enable_flock"
11320 if test $enableval = yes; then
11322 cat >>confdefs.h <<\_ACEOF
11323 #define USE_FLOCK 1
11330 # Check whether --enable-fcntl or --disable-fcntl was given.
11331 if test "${enable_fcntl+set}" = set; then
11332 enableval="$enable_fcntl"
11333 if test $enableval = no; then mutt_cv_fcntl=no; fi
11336 if test $mutt_cv_fcntl = yes; then
11338 cat >>confdefs.h <<\_ACEOF
11339 #define USE_FCNTL 1
11344 mutt_cv_warnings=yes
11345 # Check whether --enable-warnings or --disable-warnings was given.
11346 if test "${enable_warnings+set}" = set; then
11347 enableval="$enable_warnings"
11348 if test $enableval = no; then
11349 mutt_cv_warnings=no
11353 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11354 CFLAGS="-Wall -pedantic $CFLAGS"
11357 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11358 if test "${enable_nfs_fix+set}" = set; then
11359 enableval="$enable_nfs_fix"
11360 if test x$enableval = xyes; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define NFS_ATTRIBUTE_HACK 1
11369 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11370 if test "${enable_buffy_size+set}" = set; then
11371 enableval="$enable_buffy_size"
11372 if test x$enableval = xyes; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define BUFFY_SIZE 1
11381 # Check whether --enable-mailtool or --disable-mailtool was given.
11382 if test "${enable_mailtool+set}" = set; then
11383 enableval="$enable_mailtool"
11384 if test x$enableval = xyes; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define SUN_ATTACHMENT 1
11393 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11394 if test "${enable_locales_fix+set}" = set; then
11395 enableval="$enable_locales_fix"
11396 if test x$enableval = xyes; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define LOCALES_HACK 1
11406 # Check whether --with-exec-shell or --without-exec-shell was given.
11407 if test "${with_exec_shell+set}" = set; then
11408 withval="$with_exec_shell"
11409 if test $withval != yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define EXECSHELL "$withval"
11416 cat >>confdefs.h <<_ACEOF
11417 #define EXECSHELL "/bin/sh"
11422 cat >>confdefs.h <<_ACEOF
11423 #define EXECSHELL "/bin/sh"
11428 # Check whether --enable-exact-address or --disable-exact-address was given.
11429 if test "${enable_exact_address+set}" = set; then
11430 enableval="$enable_exact_address"
11431 if test $enableval = yes; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define EXACT_ADDRESS 1
11447 # Check whether --enable-iconv or --disable-iconv was given.
11448 if test "${enable_iconv+set}" = set; then
11449 enableval="$enable_iconv"
11450 if test x$enableval = xno ; then
11451 am_cv_func_iconv=no
11456 echo "$as_me:$LINENO: checking for off_t" >&5
11457 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_off_t+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11474 if (sizeof (off_t))
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_type_off_t=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_cv_type_off_t=no
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11501 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11503 if test $ac_cv_type_off_t = yes; then
11507 cat >>confdefs.h <<_ACEOF
11513 echo "$as_me:$LINENO: checking for size_t" >&5
11514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_size_t+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 $ac_includes_default
11531 if (sizeof (size_t))
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_size_t=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_type_size_t=no
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11560 if test $ac_cv_type_size_t = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define size_t unsigned
11570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11571 # for constant arguments. Useless!
11572 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11573 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11574 if test "${ac_cv_working_alloca_h+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11578 #line $LINENO "configure"
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 #include <alloca.h>
11588 char *p = (char *) alloca (2 * sizeof (int));
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_working_alloca_h=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_working_alloca_h=no
11612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11615 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11616 if test $ac_cv_working_alloca_h = yes; then
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_ALLOCA_H 1
11624 echo "$as_me:$LINENO: checking for alloca" >&5
11625 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11626 if test "${ac_cv_func_alloca_works+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 # define alloca __builtin_alloca
11640 # include <malloc.h>
11641 # define alloca _alloca
11644 # include <alloca.h>
11649 # ifndef alloca /* predefined by HP cc +Olibcalls */
11660 char *p = (char *) alloca (1);
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667 (eval $ac_link) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 ac_cv_func_alloca_works=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 ac_cv_func_alloca_works=no
11684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11687 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11689 if test $ac_cv_func_alloca_works = yes; then
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_ALLOCA 1
11696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11697 # that cause trouble. Some versions do not even contain alloca or
11698 # contain a buggy version. If you still want to use their alloca,
11699 # use ar to extract alloca.o from them instead of compiling alloca.c.
11701 ALLOCA=alloca.$ac_objext
11703 cat >>confdefs.h <<\_ACEOF
11708 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11709 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11710 if test "${ac_cv_os_cray+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #if defined(CRAY) && ! defined(CRAY2)
11727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728 $EGREP "webecray" >/dev/null 2>&1; then
11736 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11737 echo "${ECHO_T}$ac_cv_os_cray" >&6
11738 if test $ac_cv_os_cray = yes; then
11739 for ac_func in _getb67 GETB67 getb67; do
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11743 if eval "test \"\${$as_ac_var+set}\" = set"; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11758 # include <limits.h>
11760 # include <assert.h>
11762 /* Override any gcc2 internal prototype to avoid an error. */
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11770 /* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11776 char (*f) () = $ac_func;
11785 return f != $ac_func;
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 eval "$as_ac_var=no"
11809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define CRAY_STACKSEG_END $ac_func
11825 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11826 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11827 if test "${ac_cv_c_stack_direction+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 if test "$cross_compiling" = yes; then
11831 ac_cv_c_stack_direction=0
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11841 find_stack_direction ()
11843 static char *addr = 0;
11848 return find_stack_direction ();
11851 return (&dummy > addr) ? 1 : -1;
11857 exit (find_stack_direction () < 0);
11860 rm -f conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_cv_c_stack_direction=1
11873 echo "$as_me: program exited with status $ac_status" >&5
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ( exit $ac_status )
11878 ac_cv_c_stack_direction=-1
11880 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11884 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11886 cat >>confdefs.h <<_ACEOF
11887 #define STACK_DIRECTION $ac_cv_c_stack_direction
11895 for ac_header in stdlib.h unistd.h
11897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11899 echo "$as_me:$LINENO: checking for $ac_header" >&5
11900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11907 # Is the header compilable?
11908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11918 #include <$ac_header>
11920 rm -f conftest.$ac_objext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -s conftest.$ac_objext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 ac_header_compiler=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_header_compiler=no
11939 rm -f conftest.$ac_objext conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11941 echo "${ECHO_T}$ac_header_compiler" >&6
11943 # Is the header present?
11944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 #include <$ac_header>
11955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11971 if test -z "$ac_cpp_err"; then
11972 ac_header_preproc=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_header_preproc=no
11979 rm -f conftest.err conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6
11983 # So? What about this header?
11984 case $ac_header_compiler:$ac_header_preproc in
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11992 ## ------------------------------------ ##
11993 ## Report this to bug-autoconf@gnu.org. ##
11994 ## ------------------------------------ ##
11997 sed "s/^/$as_me: WARNING: /" >&2
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12008 ## ------------------------------------ ##
12009 ## Report this to bug-autoconf@gnu.org. ##
12010 ## ------------------------------------ ##
12013 sed "s/^/$as_me: WARNING: /" >&2
12016 echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 eval "$as_ac_Header=$ac_header_preproc"
12023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12037 for ac_func in getpagesize
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12042 if eval "test \"\${$as_ac_var+set}\" = set"; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.$ac_ext <<_ACEOF
12046 #line $LINENO "configure"
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12057 # include <limits.h>
12059 # include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error. */
12066 /* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12069 /* The GNU C library defines this for functions which it implements
12070 to always fail with ENOSYS. Some functions are actually named
12071 something starting with __ and the normal name is an alias. */
12072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12075 char (*f) () = $ac_func;
12084 return f != $ac_func;
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 eval "$as_ac_var=yes"
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 eval "$as_ac_var=no"
12108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12112 if test `eval echo '${'$as_ac_var'}'` = yes; then
12113 cat >>confdefs.h <<_ACEOF
12114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 echo "$as_me:$LINENO: checking for working mmap" >&5
12121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 if test "$cross_compiling" = yes; then
12126 ac_cv_func_mmap_fixed_mapped=no
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 $ac_includes_default
12136 /* malloc might have been renamed as rpl_malloc. */
12139 /* Thanks to Mike Haertel and Jim Avera for this test.
12140 Here is a matrix of mmap possibilities:
12141 mmap private not fixed
12142 mmap private fixed at somewhere currently unmapped
12143 mmap private fixed at somewhere already mapped
12144 mmap shared not fixed
12145 mmap shared fixed at somewhere currently unmapped
12146 mmap shared fixed at somewhere already mapped
12147 For private mappings, we should verify that changes cannot be read()
12148 back from the file, nor mmap's back from the file at a different
12149 address. (There have been systems where private was not correctly
12150 implemented like the infamous i386 svr4.0, and systems where the
12151 VM page cache was not coherent with the file system buffer cache
12152 like early versions of FreeBSD and possibly contemporary NetBSD.)
12153 For shared mappings, we should conversely verify that changes get
12154 propagated back to all the places they're supposed to be.
12156 Grep wants private fixed already mapped.
12157 The main things grep needs to know about mmap are:
12158 * does it exist and is it safe to write into the mmap'd area
12159 * how to use it (BSD variants) */
12162 #include <sys/mman.h>
12164 #if !STDC_HEADERS && !HAVE_STDLIB_H
12168 /* This mess was copied from the GNU getpagesize.h. */
12169 #if !HAVE_GETPAGESIZE
12170 /* Assume that all systems that can run configure have sys/param.h. */
12171 # if !HAVE_SYS_PARAM_H
12172 # define HAVE_SYS_PARAM_H 1
12175 # ifdef _SC_PAGESIZE
12176 # define getpagesize() sysconf(_SC_PAGESIZE)
12177 # else /* no _SC_PAGESIZE */
12178 # if HAVE_SYS_PARAM_H
12179 # include <sys/param.h>
12180 # ifdef EXEC_PAGESIZE
12181 # define getpagesize() EXEC_PAGESIZE
12182 # else /* no EXEC_PAGESIZE */
12184 # define getpagesize() NBPG * CLSIZE
12187 # endif /* no CLSIZE */
12188 # else /* no NBPG */
12190 # define getpagesize() NBPC
12191 # else /* no NBPC */
12193 # define getpagesize() PAGESIZE
12194 # endif /* PAGESIZE */
12195 # endif /* no NBPC */
12196 # endif /* no NBPG */
12197 # endif /* no EXEC_PAGESIZE */
12198 # else /* no HAVE_SYS_PARAM_H */
12199 # define getpagesize() 8192 /* punt totally */
12200 # endif /* no HAVE_SYS_PARAM_H */
12201 # endif /* no _SC_PAGESIZE */
12203 #endif /* no HAVE_GETPAGESIZE */
12208 char *data, *data2, *data3;
12212 pagesize = getpagesize ();
12214 /* First, make a file with some known garbage in it. */
12215 data = (char *) malloc (pagesize);
12218 for (i = 0; i < pagesize; ++i)
12219 *(data + i) = rand ();
12221 fd = creat ("conftest.mmap", 0600);
12224 if (write (fd, data, pagesize) != pagesize)
12228 /* Next, try to mmap the file at a fixed address which already has
12229 something else allocated at it. If we can, also make sure that
12230 we see the same garbage. */
12231 fd = open ("conftest.mmap", O_RDWR);
12234 data2 = (char *) malloc (2 * pagesize);
12237 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12238 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12241 for (i = 0; i < pagesize; ++i)
12242 if (*(data + i) != *(data2 + i))
12245 /* Finally, make sure that changes to the mapped area do not
12246 percolate back to the file as seen by read(). (This is a bug on
12247 some variants of i386 svr4.0.) */
12248 for (i = 0; i < pagesize; ++i)
12249 *(data2 + i) = *(data2 + i) + 1;
12250 data3 = (char *) malloc (pagesize);
12253 if (read (fd, data3, pagesize) != pagesize)
12255 for (i = 0; i < pagesize; ++i)
12256 if (*(data + i) != *(data3 + i))
12262 rm -f conftest$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_func_mmap_fixed_mapped=yes
12275 echo "$as_me: program exited with status $ac_status" >&5
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ( exit $ac_status )
12280 ac_cv_func_mmap_fixed_mapped=no
12282 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12285 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12286 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12287 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12289 cat >>confdefs.h <<\_ACEOF
12290 #define HAVE_MMAP 1
12294 rm -f conftest.mmap
12297 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12298 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12299 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12303 #line $LINENO "configure"
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12310 #include <features.h>
12311 #ifdef __GNU_LIBRARY__
12312 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12319 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12320 ac_cv_gnu_library_2_1=yes
12322 ac_cv_gnu_library_2_1=no
12329 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12330 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12332 GLIBC21="$ac_cv_gnu_library_2_1"
12346 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12347 stdlib.h string.h unistd.h sys/param.h
12349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12351 echo "$as_me:$LINENO: checking for $ac_header" >&5
12352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12359 # Is the header compilable?
12360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12363 #line $LINENO "configure"
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 $ac_includes_default
12370 #include <$ac_header>
12372 rm -f conftest.$ac_objext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374 (eval $ac_compile) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_header_compiler=no
12391 rm -f conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12393 echo "${ECHO_T}$ac_header_compiler" >&6
12395 # Is the header present?
12396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <$ac_header>
12407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } >/dev/null; then
12415 if test -s conftest.err; then
12416 ac_cpp_err=$ac_c_preproc_warn_flag
12423 if test -z "$ac_cpp_err"; then
12424 ac_header_preproc=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_header_preproc=no
12431 rm -f conftest.err conftest.$ac_ext
12432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433 echo "${ECHO_T}$ac_header_preproc" >&6
12435 # So? What about this header?
12436 case $ac_header_compiler:$ac_header_preproc in
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12444 ## ------------------------------------ ##
12445 ## Report this to bug-autoconf@gnu.org. ##
12446 ## ------------------------------------ ##
12449 sed "s/^/$as_me: WARNING: /" >&2
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12460 ## ------------------------------------ ##
12461 ## Report this to bug-autoconf@gnu.org. ##
12462 ## ------------------------------------ ##
12465 sed "s/^/$as_me: WARNING: /" >&2
12468 echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 eval "$as_ac_Header=$ac_header_preproc"
12475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12509 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12510 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12511 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12514 echo "$as_me:$LINENO: checking for $ac_func" >&5
12515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12516 if eval "test \"\${$as_ac_var+set}\" = set"; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 /* System header to define __stub macros and hopefully few prototypes,
12527 which can conflict with char $ac_func (); below.
12528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529 <limits.h> exists even on freestanding compilers. */
12531 # include <limits.h>
12533 # include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error. */
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12543 /* The GNU C library defines this for functions which it implements
12544 to always fail with ENOSYS. Some functions are actually named
12545 something starting with __ and the normal name is an alias. */
12546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12549 char (*f) () = $ac_func;
12558 return f != $ac_func;
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565 (eval $ac_link) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 eval "$as_ac_var=yes"
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 eval "$as_ac_var=no"
12582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12598 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12599 if test "${with_libiconv_prefix+set}" = set; then
12600 withval="$with_libiconv_prefix"
12602 for dir in `echo "$withval" | tr : ' '`; do
12603 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12604 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12609 echo "$as_me:$LINENO: checking for iconv" >&5
12610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12611 if test "${am_cv_func_iconv+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 am_cv_func_iconv="no, consider installing GNU libiconv"
12617 cat >conftest.$ac_ext <<_ACEOF
12618 #line $LINENO "configure"
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 #include <stdlib.h>
12629 iconv_t cd = iconv_open("","");
12630 iconv(cd,NULL,NULL,NULL,NULL);
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -s conftest$ac_exeext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 am_cv_func_iconv=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12655 if test "$am_cv_func_iconv" != yes; then
12656 am_save_LIBS="$LIBS"
12657 LIBS="$LIBS -liconv"
12658 cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 #include <stdlib.h>
12670 iconv_t cd = iconv_open("","");
12671 iconv(cd,NULL,NULL,NULL,NULL);
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -s conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 am_cv_lib_iconv=yes
12690 am_cv_func_iconv=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697 LIBS="$am_save_LIBS"
12701 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12702 echo "${ECHO_T}$am_cv_func_iconv" >&6
12703 if test "$am_cv_func_iconv" = yes; then
12705 cat >>confdefs.h <<\_ACEOF
12706 #define HAVE_ICONV 1
12709 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12710 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12711 if test "${am_cv_proto_iconv+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 #include <stdlib.h>
12729 #if defined(__STDC__) || defined(__cplusplus)
12730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 am_cv_proto_iconv_arg1=""
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 am_cv_proto_iconv_arg1="const"
12762 rm -f conftest.$ac_objext conftest.$ac_ext
12763 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);"
12766 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12767 echo "$as_me:$LINENO: result: ${ac_t:-
12768 }$am_cv_proto_iconv" >&5
12769 echo "${ECHO_T}${ac_t:-
12770 }$am_cv_proto_iconv" >&6
12772 cat >>confdefs.h <<_ACEOF
12773 #define ICONV_CONST $am_cv_proto_iconv_arg1
12778 if test "$am_cv_lib_iconv" = yes; then
12784 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12785 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12786 if test "${am_cv_langinfo_codeset+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line $LINENO "configure"
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 #include <langinfo.h>
12800 char* cs = nl_langinfo(CODESET);
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 am_cv_langinfo_codeset=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 am_cv_langinfo_codeset=no
12824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12828 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12829 if test $am_cv_langinfo_codeset = yes; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_LANGINFO_CODESET 1
12837 if test $ac_cv_header_locale_h = yes; then
12838 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12839 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12840 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 cat >conftest.$ac_ext <<_ACEOF
12844 #line $LINENO "configure"
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 #include <locale.h>
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 am_cv_val_LC_MESSAGES=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 am_cv_val_LC_MESSAGES=no
12878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12880 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12881 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12882 if test $am_cv_val_LC_MESSAGES = yes; then
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_LC_MESSAGES 1
12890 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12891 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12892 # Check whether --enable-nls or --disable-nls was given.
12893 if test "${enable_nls+set}" = set; then
12894 enableval="$enable_nls"
12899 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12900 echo "${ECHO_T}$USE_NLS" >&6
12903 BUILD_INCLUDED_LIBINTL=no
12904 USE_INCLUDED_LIBINTL=no
12907 if test "$USE_NLS" = "yes"; then
12909 cat >>confdefs.h <<\_ACEOF
12910 #define ENABLE_NLS 1
12913 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12914 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12916 # Check whether --with-included-gettext or --without-included-gettext was given.
12917 if test "${with_included_gettext+set}" = set; then
12918 withval="$with_included_gettext"
12919 nls_cv_force_use_gnu_gettext=$withval
12921 nls_cv_force_use_gnu_gettext=no
12923 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12924 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12926 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12927 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12933 if test "${ac_cv_header_libintl_h+set}" = set; then
12934 echo "$as_me:$LINENO: checking for libintl.h" >&5
12935 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
12936 if test "${ac_cv_header_libintl_h+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12940 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
12942 # Is the header compilable?
12943 echo "$as_me:$LINENO: checking libintl.h usability" >&5
12944 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12953 #include <libintl.h>
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_header_compiler=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_header_compiler=no
12974 rm -f conftest.$ac_objext conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976 echo "${ECHO_T}$ac_header_compiler" >&6
12978 # Is the header present?
12979 echo "$as_me:$LINENO: checking libintl.h presence" >&5
12980 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 #include <libintl.h>
12990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } >/dev/null; then
12998 if test -s conftest.err; then
12999 ac_cpp_err=$ac_c_preproc_warn_flag
13006 if test -z "$ac_cpp_err"; then
13007 ac_header_preproc=yes
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_header_preproc=no
13014 rm -f conftest.err conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016 echo "${ECHO_T}$ac_header_preproc" >&6
13018 # So? What about this header?
13019 case $ac_header_compiler:$ac_header_preproc in
13021 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13022 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13027 ## ------------------------------------ ##
13028 ## Report this to bug-autoconf@gnu.org. ##
13029 ## ------------------------------------ ##
13032 sed "s/^/$as_me: WARNING: /" >&2
13035 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13036 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13038 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13040 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13043 ## ------------------------------------ ##
13044 ## Report this to bug-autoconf@gnu.org. ##
13045 ## ------------------------------------ ##
13048 sed "s/^/$as_me: WARNING: /" >&2
13051 echo "$as_me:$LINENO: checking for libintl.h" >&5
13052 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13053 if test "${ac_cv_header_libintl_h+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 ac_cv_header_libintl_h=$ac_header_preproc
13058 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13059 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13062 if test $ac_cv_header_libintl_h = yes; then
13063 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13064 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13065 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075 #include <libintl.h>
13076 extern int _nl_msg_cat_cntr;
13080 bindtextdomain ("", "");
13081 return (int) gettext ("") + _nl_msg_cat_cntr
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088 (eval $ac_link) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -s conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 gt_cv_func_gnugettext1_libc=yes
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 gt_cv_func_gnugettext1_libc=no
13105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13108 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13110 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13111 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13112 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13113 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 gt_save_LIBS="$LIBS"
13117 LIBS="$LIBS -lintl $LIBICONV"
13118 cat >conftest.$ac_ext <<_ACEOF
13119 #line $LINENO "configure"
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <libintl.h>
13126 extern int _nl_msg_cat_cntr;
13130 bindtextdomain ("", "");
13131 return (int) gettext ("") + _nl_msg_cat_cntr
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 gt_cv_func_gnugettext1_libintl=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 gt_cv_func_gnugettext1_libintl=no
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156 LIBS="$gt_save_LIBS"
13158 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13159 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13162 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13163 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13164 && test "$PACKAGE" != gettext; }; then
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_GETTEXT 1
13171 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13172 INTLLIBS="-lintl $LIBICONV"
13175 gt_save_LIBS="$LIBS"
13176 LIBS="$LIBS $INTLLIBS"
13178 for ac_func in dcgettext
13180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13181 echo "$as_me:$LINENO: checking for $ac_func" >&5
13182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13183 if eval "test \"\${$as_ac_var+set}\" = set"; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func (); below.
13195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 <limits.h> exists even on freestanding compilers. */
13198 # include <limits.h>
13200 # include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error. */
13207 /* We use char because int might match the return type of a gcc2
13208 builtin and then its argument prototype would still apply. */
13210 /* The GNU C library defines this for functions which it implements
13211 to always fail with ENOSYS. Some functions are actually named
13212 something starting with __ and the normal name is an alias. */
13213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13216 char (*f) () = $ac_func;
13225 return f != $ac_func;
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13232 (eval $ac_link) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -s conftest$ac_exeext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 eval "$as_ac_var=yes"
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 eval "$as_ac_var=no"
13249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13253 if test `eval echo '${'$as_ac_var'}'` = yes; then
13254 cat >>confdefs.h <<_ACEOF
13255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13261 LIBS="$gt_save_LIBS"
13263 # Extract the first word of "msgfmt", so it can be a program name with args.
13264 set dummy msgfmt; ac_word=$2
13265 echo "$as_me:$LINENO: checking for $ac_word" >&5
13266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13267 if test "${ac_cv_path_MSGFMT+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13276 for ac_dir in $PATH; do
13277 test -z "$ac_dir" && ac_dir=.
13278 if test -f $ac_dir/$ac_word; then
13279 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13280 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13286 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13290 MSGFMT="$ac_cv_path_MSGFMT"
13291 if test "$MSGFMT" != ":"; then
13292 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13293 echo "${ECHO_T}$MSGFMT" >&6
13295 echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6
13299 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13300 set dummy gmsgfmt; ac_word=$2
13301 echo "$as_me:$LINENO: checking for $ac_word" >&5
13302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13303 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13329 GMSGFMT=$ac_cv_path_GMSGFMT
13331 if test -n "$GMSGFMT"; then
13332 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13333 echo "${ECHO_T}$GMSGFMT" >&6
13335 echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13340 # Extract the first word of "xgettext", so it can be a program name with args.
13341 set dummy xgettext; ac_word=$2
13342 echo "$as_me:$LINENO: checking for $ac_word" >&5
13343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13344 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 case "$XGETTEXT" in
13349 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13353 for ac_dir in $PATH; do
13354 test -z "$ac_dir" && ac_dir=.
13355 if test -f $ac_dir/$ac_word; then
13356 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13357 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13367 XGETTEXT="$ac_cv_path_XGETTEXT"
13368 if test "$XGETTEXT" != ":"; then
13369 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13370 echo "${ECHO_T}$XGETTEXT" >&6
13372 echo "$as_me:$LINENO: result: no" >&5
13373 echo "${ECHO_T}no" >&6
13384 if test "$CATOBJEXT" = "NONE"; then
13385 nls_cv_use_gnu_gettext=yes
13389 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13390 INTLOBJS="\$(GETTOBJS)"
13391 # Extract the first word of "msgfmt", so it can be a program name with args.
13392 set dummy msgfmt; ac_word=$2
13393 echo "$as_me:$LINENO: checking for $ac_word" >&5
13394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13395 if test "${ac_cv_path_MSGFMT+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13404 for ac_dir in $PATH; do
13405 test -z "$ac_dir" && ac_dir=.
13406 if test -f $ac_dir/$ac_word; then
13407 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13408 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13414 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13418 MSGFMT="$ac_cv_path_MSGFMT"
13419 if test "$MSGFMT" != ":"; then
13420 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13421 echo "${ECHO_T}$MSGFMT" >&6
13423 echo "$as_me:$LINENO: result: no" >&5
13424 echo "${ECHO_T}no" >&6
13427 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13428 set dummy gmsgfmt; ac_word=$2
13429 echo "$as_me:$LINENO: checking for $ac_word" >&5
13430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13431 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13457 GMSGFMT=$ac_cv_path_GMSGFMT
13459 if test -n "$GMSGFMT"; then
13460 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13461 echo "${ECHO_T}$GMSGFMT" >&6
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13467 # Extract the first word of "xgettext", so it can be a program name with args.
13468 set dummy xgettext; ac_word=$2
13469 echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13471 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 case "$XGETTEXT" in
13476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13480 for ac_dir in $PATH; do
13481 test -z "$ac_dir" && ac_dir=.
13482 if test -f $ac_dir/$ac_word; then
13483 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13484 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13490 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13494 XGETTEXT="$ac_cv_path_XGETTEXT"
13495 if test "$XGETTEXT" != ":"; then
13496 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13497 echo "${ECHO_T}$XGETTEXT" >&6
13499 echo "$as_me:$LINENO: result: no" >&5
13500 echo "${ECHO_T}no" >&6
13504 BUILD_INCLUDED_LIBINTL=yes
13505 USE_INCLUDED_LIBINTL=yes
13507 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13508 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13511 if test "$GMSGFMT" != ":"; then
13512 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13515 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13516 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13521 if test "$XGETTEXT" != ":"; then
13522 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13525 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13526 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13533 ac_config_commands="$ac_config_commands default-1"
13537 if test "$PACKAGE" = gettext; then
13538 BUILD_INCLUDED_LIBINTL=yes
13541 for ac_prog in bison
13543 # Extract the first word of "$ac_prog", so it can be a program name with args.
13544 set dummy $ac_prog; ac_word=$2
13545 echo "$as_me:$LINENO: checking for $ac_word" >&5
13546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13547 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 if test -n "$INTLBISON"; then
13551 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in $PATH
13557 test -z "$as_dir" && as_dir=.
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13560 ac_cv_prog_INTLBISON="$ac_prog"
13561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13569 INTLBISON=$ac_cv_prog_INTLBISON
13570 if test -n "$INTLBISON"; then
13571 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13572 echo "${ECHO_T}$INTLBISON" >&6
13574 echo "$as_me:$LINENO: result: no" >&5
13575 echo "${ECHO_T}no" >&6
13578 test -n "$INTLBISON" && break
13581 if test -z "$INTLBISON"; then
13584 echo "$as_me:$LINENO: checking version of bison" >&5
13585 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13586 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13587 case $ac_prog_version in
13588 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13589 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13590 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13591 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13593 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13594 echo "${ECHO_T}$ac_prog_version" >&6
13596 if test $ac_verc_fail = yes; then
13600 for lang in $ALL_LINGUAS; do
13601 GMOFILES="$GMOFILES $lang.gmo"
13602 POFILES="$POFILES $lang.po"
13615 nls_cv_header_intl=
13616 nls_cv_header_libgt=
13628 if test "x$CATOBJEXT" != "x"; then
13629 if test "x$ALL_LINGUAS" = "x"; then
13632 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13633 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13635 for presentlang in $ALL_LINGUAS; do
13637 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13638 # Use the presentlang catalog if desiredlang is
13639 # a. equal to presentlang, or
13640 # b. a variant of presentlang (because in this case,
13641 # presentlang can be used as a fallback for messages
13642 # which are not translated in the desiredlang catalog).
13643 case "$desiredlang" in
13644 "$presentlang"*) useit=yes;;
13647 if test $useit = yes; then
13648 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13651 LINGUAS=$NEW_LINGUAS
13652 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13653 echo "${ECHO_T}$LINGUAS" >&6
13656 if test -n "$LINGUAS"; then
13657 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13662 if test -n "$ac_aux_dir"; then
13663 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13665 if test -z "$MKINSTALLDIRS"; then
13666 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13670 INTL_LIBTOOL_SUFFIX_PREFIX=
13674 if test "$am_cv_func_iconv" != "yes"
13676 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13677 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13681 for ac_header in iconv.h
13683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13685 echo "$as_me:$LINENO: checking for $ac_header" >&5
13686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13693 # Is the header compilable?
13694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 #include <$ac_header>
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -s conftest.$ac_objext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_header_compiler=yes
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_header_compiler=no
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13727 echo "${ECHO_T}$ac_header_compiler" >&6
13729 # Is the header present?
13730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13732 cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <$ac_header>
13741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } >/dev/null; then
13749 if test -s conftest.err; then
13750 ac_cpp_err=$ac_c_preproc_warn_flag
13757 if test -z "$ac_cpp_err"; then
13758 ac_header_preproc=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_header_preproc=no
13765 rm -f conftest.err conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6
13769 # So? What about this header?
13770 case $ac_header_compiler:$ac_header_preproc in
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13778 ## ------------------------------------ ##
13779 ## Report this to bug-autoconf@gnu.org. ##
13780 ## ------------------------------------ ##
13783 sed "s/^/$as_me: WARNING: /" >&2
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13794 ## ------------------------------------ ##
13795 ## Report this to bug-autoconf@gnu.org. ##
13796 ## ------------------------------------ ##
13799 sed "s/^/$as_me: WARNING: /" >&2
13802 echo "$as_me:$LINENO: checking for $ac_header" >&5
13803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 eval "$as_ac_Header=$ac_header_preproc"
13809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13814 cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13817 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13818 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13819 cat >conftest.$ac_ext <<_ACEOF
13820 #line $LINENO "configure"
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13831 echo "$as_me:$LINENO: result: yes" >&5
13832 echo "${ECHO_T}yes" >&6
13834 cat >>confdefs.h <<\_ACEOF
13835 #define HAVE_ICONV_T_DEF 1
13839 echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13849 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13850 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13851 if test "${mutt_cv_iconv_good+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 mutt_save_LIBS="$LIBS"
13855 LIBS="$LIBS $LIBICONV"
13856 if test "$cross_compiling" = yes; then
13857 mutt_cv_iconv_good=yes
13859 cat >conftest.$ac_ext <<_ACEOF
13860 #line $LINENO "configure"
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13874 ob = buf, obl = sizeof(buf);
13875 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
13876 (iconv(cd, 0, 0, &ob, &obl) ||
13877 !(ob == buf && obl == sizeof(buf)) ||
13882 rm -f conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884 (eval $ac_link) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 mutt_cv_iconv_good=yes
13895 echo "$as_me: program exited with status $ac_status" >&5
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ( exit $ac_status )
13900 mutt_cv_iconv_good=no
13902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13904 LIBS="$mutt_save_LIBS"
13906 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
13907 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
13908 if test "$mutt_cv_iconv_good" = no; then
13909 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
13910 echo "$as_me: error: Try using libiconv instead" >&2;}
13911 { (exit 1); exit 1; }; }
13914 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
13915 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
13916 if test "${mutt_cv_iconv_nontrans+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 mutt_save_LIBS="$LIBS"
13920 LIBS="$LIBS $LIBICONV"
13921 if test "$cross_compiling" = yes; then
13922 mutt_cv_iconv_nontrans=no
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13933 #include <string.h>
13940 const char *s = "\304\211";
13942 ib = s, ibl = 2, ob = t, obl = 3;
13943 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
13944 iconv(cd, &ib, &ibl, &ob, &obl));
13948 rm -f conftest$ac_exeext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950 (eval $ac_link) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 mutt_cv_iconv_nontrans=no
13961 echo "$as_me: program exited with status $ac_status" >&5
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ( exit $ac_status )
13966 mutt_cv_iconv_nontrans=yes
13968 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13970 LIBS="$mutt_save_LIBS"
13972 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
13973 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
13974 if test "$mutt_cv_iconv_nontrans" = yes; then
13975 cat >>confdefs.h <<\_ACEOF
13976 #define ICONV_NONTRANS 1
13980 cat >>confdefs.h <<\_ACEOF
13981 #define ICONV_NONTRANS 0
13986 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
13988 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13996 for ac_func in bind_textdomain_codeset
13998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13999 echo "$as_me:$LINENO: checking for $ac_func" >&5
14000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_var+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14005 #line $LINENO "configure"
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* System header to define __stub macros and hopefully few prototypes,
14012 which can conflict with char $ac_func (); below.
14013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14014 <limits.h> exists even on freestanding compilers. */
14016 # include <limits.h>
14018 # include <assert.h>
14020 /* Override any gcc2 internal prototype to avoid an error. */
14025 /* We use char because int might match the return type of a gcc2
14026 builtin and then its argument prototype would still apply. */
14028 /* The GNU C library defines this for functions which it implements
14029 to always fail with ENOSYS. Some functions are actually named
14030 something starting with __ and the normal name is an alias. */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14034 char (*f) () = $ac_func;
14043 return f != $ac_func;
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 eval "$as_ac_var=yes"
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 eval "$as_ac_var=no"
14067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14071 if test `eval echo '${'$as_ac_var'}'` = yes; then
14072 cat >>confdefs.h <<_ACEOF
14073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14085 for ac_header in wchar.h
14087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14097 # Is the header compilable?
14098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 $ac_includes_default
14108 #include <$ac_header>
14110 rm -f conftest.$ac_objext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14112 (eval $ac_compile) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_header_compiler=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_header_compiler=no
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14131 echo "${ECHO_T}$ac_header_compiler" >&6
14133 # Is the header present?
14134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14136 cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <$ac_header>
14145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14148 grep -v '^ *+' conftest.er1 >conftest.err
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } >/dev/null; then
14153 if test -s conftest.err; then
14154 ac_cpp_err=$ac_c_preproc_warn_flag
14161 if test -z "$ac_cpp_err"; then
14162 ac_header_preproc=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_header_preproc=no
14169 rm -f conftest.err conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14171 echo "${ECHO_T}$ac_header_preproc" >&6
14173 # So? What about this header?
14174 case $ac_header_compiler:$ac_header_preproc in
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14182 ## ------------------------------------ ##
14183 ## Report this to bug-autoconf@gnu.org. ##
14184 ## ------------------------------------ ##
14187 sed "s/^/$as_me: WARNING: /" >&2
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14203 sed "s/^/$as_me: WARNING: /" >&2
14206 echo "$as_me:$LINENO: checking for $ac_header" >&5
14207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 eval "$as_ac_Header=$ac_header_preproc"
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227 echo "$as_me:$LINENO: checking for wchar_t" >&5
14228 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14229 if test "${mutt_cv_wchar_t+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 #include <stddef.h>
14241 #include <stdlib.h>
14242 #ifdef HAVE_WCHAR_H
14249 wchar_t wc; return 0;
14254 rm -f conftest.$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 mutt_cv_wchar_t=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14273 rm -f conftest.$ac_objext conftest.$ac_ext
14275 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14276 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14278 if test "$mutt_cv_wchar_t" = no; then
14280 cat >>confdefs.h <<\_ACEOF
14281 #define wchar_t int
14286 echo "$as_me:$LINENO: checking for wint_t" >&5
14287 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14288 if test "${mutt_cv_wint_t+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 #include <stddef.h>
14300 #include <stdlib.h>
14301 #ifdef HAVE_WCHAR_H
14308 wint_t wc; return 0;
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315 (eval $ac_compile) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14334 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14335 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14337 if test "$mutt_cv_wint_t" = no; then
14339 cat >>confdefs.h <<\_ACEOF
14346 for ac_header in wctype.h
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14350 echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14358 # Is the header compilable?
14359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14369 #include <$ac_header>
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 ac_header_compiler=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_header_compiler=no
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392 echo "${ECHO_T}$ac_header_compiler" >&6
14394 # Is the header present?
14395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 #include <$ac_header>
14406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } >/dev/null; then
14414 if test -s conftest.err; then
14415 ac_cpp_err=$ac_c_preproc_warn_flag
14422 if test -z "$ac_cpp_err"; then
14423 ac_header_preproc=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_preproc=no
14430 rm -f conftest.err conftest.$ac_ext
14431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6
14434 # So? What about this header?
14435 case $ac_header_compiler:$ac_header_preproc in
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14443 ## ------------------------------------ ##
14444 ## Report this to bug-autoconf@gnu.org. ##
14445 ## ------------------------------------ ##
14448 sed "s/^/$as_me: WARNING: /" >&2
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14459 ## ------------------------------------ ##
14460 ## Report this to bug-autoconf@gnu.org. ##
14461 ## ------------------------------------ ##
14464 sed "s/^/$as_me: WARNING: /" >&2
14467 echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 eval "$as_ac_Header=$ac_header_preproc"
14474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14479 cat >>confdefs.h <<_ACEOF
14480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14491 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494 echo "$as_me:$LINENO: checking for $ac_func" >&5
14495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14496 if eval "test \"\${$as_ac_var+set}\" = set"; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 /* System header to define __stub macros and hopefully few prototypes,
14507 which can conflict with char $ac_func (); below.
14508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14509 <limits.h> exists even on freestanding compilers. */
14511 # include <limits.h>
14513 # include <assert.h>
14515 /* Override any gcc2 internal prototype to avoid an error. */
14520 /* We use char because int might match the return type of a gcc2
14521 builtin and then its argument prototype would still apply. */
14523 /* The GNU C library defines this for functions which it implements
14524 to always fail with ENOSYS. Some functions are actually named
14525 something starting with __ and the normal name is an alias. */
14526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14529 char (*f) () = $ac_func;
14538 return f != $ac_func;
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 (eval $ac_link) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 eval "$as_ac_var=yes"
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 eval "$as_ac_var=no"
14562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14566 if test `eval echo '${'$as_ac_var'}'` = yes; then
14567 cat >>confdefs.h <<_ACEOF
14568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14580 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14583 echo "$as_me:$LINENO: checking for $ac_func" >&5
14584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14585 if eval "test \"\${$as_ac_var+set}\" = set"; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14589 #line $LINENO "configure"
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* System header to define __stub macros and hopefully few prototypes,
14596 which can conflict with char $ac_func (); below.
14597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14598 <limits.h> exists even on freestanding compilers. */
14600 # include <limits.h>
14602 # include <assert.h>
14604 /* Override any gcc2 internal prototype to avoid an error. */
14609 /* We use char because int might match the return type of a gcc2
14610 builtin and then its argument prototype would still apply. */
14612 /* The GNU C library defines this for functions which it implements
14613 to always fail with ENOSYS. Some functions are actually named
14614 something starting with __ and the normal name is an alias. */
14615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14618 char (*f) () = $ac_func;
14627 return f != $ac_func;
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 eval "$as_ac_var=yes"
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 eval "$as_ac_var=no"
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14655 if test `eval echo '${'$as_ac_var'}'` = yes; then
14656 cat >>confdefs.h <<_ACEOF
14657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14666 for ac_func in iswxdigit towupper towlower
14668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14669 echo "$as_me:$LINENO: checking for $ac_func" >&5
14670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_var+set}\" = set"; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 /* System header to define __stub macros and hopefully few prototypes,
14682 which can conflict with char $ac_func (); below.
14683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14684 <limits.h> exists even on freestanding compilers. */
14686 # include <limits.h>
14688 # include <assert.h>
14690 /* Override any gcc2 internal prototype to avoid an error. */
14695 /* We use char because int might match the return type of a gcc2
14696 builtin and then its argument prototype would still apply. */
14698 /* The GNU C library defines this for functions which it implements
14699 to always fail with ENOSYS. Some functions are actually named
14700 something starting with __ and the normal name is an alias. */
14701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14704 char (*f) () = $ac_func;
14713 return f != $ac_func;
14718 rm -f conftest.$ac_objext conftest$ac_exeext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14720 (eval $ac_link) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -s conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 eval "$as_ac_var=yes"
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 eval "$as_ac_var=no"
14737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14750 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14751 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14752 if test "${mutt_cv_mbstate_t+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 cat >conftest.$ac_ext <<_ACEOF
14756 #line $LINENO "configure"
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14763 #include <stddef.h>
14764 #include <stdlib.h>
14765 #ifdef HAVE_WCHAR_H
14772 mbstate_t s; return 0;
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779 (eval $ac_compile) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 mutt_cv_mbstate_t=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 mutt_cv_mbstate_t=no
14796 rm -f conftest.$ac_objext conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14799 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14801 if test "$mutt_cv_mbstate_t" = no; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define mbstate_t int
14811 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14812 if test "${with_wc_funcs+set}" = set; then
14813 withval="$with_wc_funcs"
14817 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14818 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14819 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14820 if test "${mutt_cv_wc_funcs+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 mutt_cv_wc_funcs=no
14824 cat >conftest.$ac_ext <<_ACEOF
14825 #line $LINENO "configure"
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14832 #define _XOPEN_SOURCE 1
14833 #include <stddef.h>
14834 #include <stdlib.h>
14835 #ifdef HAVE_WCTYPE_H
14836 #include <wctype.h>
14838 #ifdef HAVE_WCHAR_H
14844 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14845 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -s conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 mutt_cv_wc_funcs=yes
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14870 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
14871 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
14872 wc_funcs=$mutt_cv_wc_funcs
14875 if test $wc_funcs = yes; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_WC_FUNCS 1
14883 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14884 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14885 if test "${mutt_cv_langinfo_codeset+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 cat >conftest.$ac_ext <<_ACEOF
14889 #line $LINENO "configure"
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14895 #include <langinfo.h>
14899 char* cs = nl_langinfo(CODESET);
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -s conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 mutt_cv_langinfo_codeset=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 mutt_cv_langinfo_codeset=no
14923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14925 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
14926 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
14927 if test $mutt_cv_langinfo_codeset = yes; then
14929 cat >>confdefs.h <<\_ACEOF
14930 #define HAVE_LANGINFO_CODESET 1
14935 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
14936 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
14937 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <langinfo.h>
14951 char* cs = nl_langinfo(YESEXPR);
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958 (eval $ac_link) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -s conftest$ac_exeext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 mutt_cv_langinfo_yesexpr=yes
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 mutt_cv_langinfo_yesexpr=no
14975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14977 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
14978 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
14979 if test $mutt_cv_langinfo_yesexpr = yes; then
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_LANGINFO_YESEXPR 1
14989 # Check whether --with-libesmtp or --without-libesmtp was given.
14990 if test "${with_libesmtp+set}" = set; then
14991 withval="$with_libesmtp"
14992 if test "$with_libesmtp" != "no"
14994 mutt_libesmtp_check_path="$PATH"
14996 if test "$with_libesmtp" != "yes"
14998 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15001 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15002 set dummy libesmtp-config; ac_word=$2
15003 echo "$as_me:$LINENO: checking for $ac_word" >&5
15004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15005 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 case $mutt_libesmtp_config_path in
15010 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $mutt_libesmtp_check_path
15017 test -z "$as_dir" && as_dir=.
15018 for ac_exec_ext in '' $ac_executable_extensions; do
15019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15031 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15033 if test -n "$mutt_libesmtp_config_path"; then
15034 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15035 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15042 if test "$mutt_libesmtp_config_path" = "no"
15044 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15045 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15046 { (exit 1); exit 1; }; }
15049 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15050 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15052 temp_CFLAGS="$CFLAGS"
15053 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15054 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15055 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15056 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15057 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15061 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15063 # Is the header compilable?
15064 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15065 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line $LINENO "configure"
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 $ac_includes_default
15074 #include <libesmtp.h>
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -s conftest.$ac_objext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_header_compiler=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ac_header_compiler=no
15095 rm -f conftest.$ac_objext conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15097 echo "${ECHO_T}$ac_header_compiler" >&6
15099 # Is the header present?
15100 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15101 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <libesmtp.h>
15111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } >/dev/null; then
15119 if test -s conftest.err; then
15120 ac_cpp_err=$ac_c_preproc_warn_flag
15127 if test -z "$ac_cpp_err"; then
15128 ac_header_preproc=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_preproc=no
15135 rm -f conftest.err conftest.$ac_ext
15136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15137 echo "${ECHO_T}$ac_header_preproc" >&6
15139 # So? What about this header?
15140 case $ac_header_compiler:$ac_header_preproc in
15142 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15143 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15145 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15148 ## ------------------------------------ ##
15149 ## Report this to bug-autoconf@gnu.org. ##
15150 ## ------------------------------------ ##
15153 sed "s/^/$as_me: WARNING: /" >&2
15156 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15161 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15164 ## ------------------------------------ ##
15165 ## Report this to bug-autoconf@gnu.org. ##
15166 ## ------------------------------------ ##
15169 sed "s/^/$as_me: WARNING: /" >&2
15172 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15173 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15174 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 ac_cv_header_libesmtp_h=$ac_header_preproc
15179 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15180 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15183 if test $ac_cv_header_libesmtp_h = yes; then
15186 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15187 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15188 { (exit 1); exit 1; }; }
15192 CFLAGS="$temp_CFLAGS"
15194 temp_CFLAGS="$CFLAGS"
15196 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15197 LIBS="$LIBS $mutt_libesmtp_libs"
15199 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15200 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15201 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-lesmtp $LIBS"
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char smtp_create_session ();
15224 smtp_create_session ();
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231 (eval $ac_link) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_esmtp_smtp_create_session=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_cv_lib_esmtp_smtp_create_session=no
15248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15252 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15253 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBESMTP 1
15258 LIBS="-lesmtp $LIBS"
15261 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15262 echo "$as_me: error: Could not find libesmtp" >&2;}
15263 { (exit 1); exit 1; }; }
15266 CFLAGS="$temp_CFLAGS"
15275 if test x$use_libesmtp = xyes; then
15276 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15277 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15278 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15281 cat >>confdefs.h <<\_ACEOF
15282 #define USE_LIBESMTP 1
15287 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttrc.head doc/instdoc.sh"
15288 cat >confcache <<\_ACEOF
15289 # This file is a shell script that caches the results of configure
15290 # tests run on this system so they can be shared between configure
15291 # scripts and configure runs, see configure's option --config-cache.
15292 # It is not useful on other systems. If it contains results you don't
15293 # want to keep, you may remove or edit it.
15295 # config.status only pays attention to the cache file if you give it
15296 # the --recheck option to rerun configure.
15298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15300 # following values.
15304 # The following way of writing the cache mishandles newlines in values,
15305 # but we know of no workaround that is simple, portable, and efficient.
15306 # So, don't put newlines in cache variables' values.
15307 # Ultrix sh set writes to stderr and can't be redirected directly,
15308 # and sets the high bit in the cache file unless we assign to the vars.
15311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15313 # `set' does not quote correctly, so add quotes (double-quote
15314 # substitution turns \\\\ into \\, and sed turns \\ into \).
15317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15320 # `set' quotes correctly as required by POSIX, so do not add quotes.
15322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15333 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15334 if test -w $cache_file; then
15335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15336 cat confcache >$cache_file
15338 echo "not updating unwritable cache $cache_file"
15343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15344 # Let make expand exec_prefix.
15345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15349 # trailing colons and then remove the whole line if VPATH becomes empty
15350 # (actually we leave an empty line to preserve line numbers).
15351 if test "x$srcdir" = x.; then
15352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15353 s/:*\$(srcdir):*/:/;
15354 s/:*\${srcdir}:*/:/;
15356 s/^\([^=]*=[ ]*\):*/\1/;
15362 DEFS=-DHAVE_CONFIG_H
15366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15367 # 1. Remove the extension, and $U if already installed.
15368 ac_i=`echo "$ac_i" |
15369 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15371 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15372 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15374 LIBOBJS=$ac_libobjs
15376 LTLIBOBJS=$ac_ltlibobjs
15379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15380 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15381 Usually this means the macro was only invoked conditionally." >&5
15382 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15383 Usually this means the macro was only invoked conditionally." >&2;}
15384 { (exit 1); exit 1; }; }
15386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15387 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15388 Usually this means the macro was only invoked conditionally." >&5
15389 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15390 Usually this means the macro was only invoked conditionally." >&2;}
15391 { (exit 1); exit 1; }; }
15393 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15394 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15395 Usually this means the macro was only invoked conditionally." >&5
15396 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15397 Usually this means the macro was only invoked conditionally." >&2;}
15398 { (exit 1); exit 1; }; }
15400 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15401 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15402 Usually this means the macro was only invoked conditionally." >&5
15403 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15404 Usually this means the macro was only invoked conditionally." >&2;}
15405 { (exit 1); exit 1; }; }
15407 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15408 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15409 Usually this means the macro was only invoked conditionally." >&5
15410 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15411 Usually this means the macro was only invoked conditionally." >&2;}
15412 { (exit 1); exit 1; }; }
15414 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15415 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15416 Usually this means the macro was only invoked conditionally." >&5
15417 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15418 Usually this means the macro was only invoked conditionally." >&2;}
15419 { (exit 1); exit 1; }; }
15421 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15422 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15423 Usually this means the macro was only invoked conditionally." >&5
15424 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15425 Usually this means the macro was only invoked conditionally." >&2;}
15426 { (exit 1); exit 1; }; }
15429 : ${CONFIG_STATUS=./config.status}
15430 ac_clean_files_save=$ac_clean_files
15431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15434 cat >$CONFIG_STATUS <<_ACEOF
15436 # Generated by $as_me.
15437 # Run this file to recreate the current configuration.
15438 # Compiler output produced by configure, useful for debugging
15439 # configure, is in config.log if it exists.
15442 ac_cs_recheck=false
15444 SHELL=\${CONFIG_SHELL-$SHELL}
15447 cat >>$CONFIG_STATUS <<\_ACEOF
15448 ## --------------------- ##
15449 ## M4sh Initialization. ##
15450 ## --------------------- ##
15452 # Be Bourne compatible
15453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15457 # is contrary to our usage. Disable this feature.
15458 alias -g '${1+"$@"}'='"$@"'
15459 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15463 # Support unset when possible.
15464 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15471 # Work around bugs in pre-3.0 UWIN ksh.
15472 $as_unset ENV MAIL MAILPATH
15479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15481 LC_TELEPHONE LC_TIME
15483 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15484 eval $as_var=C; export $as_var
15490 # Required to use basename.
15491 if expr a : '\(a\)' >/dev/null 2>&1; then
15497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15498 as_basename=basename
15504 # Name of the executable.
15505 as_me=`$as_basename "$0" ||
15506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15507 X"$0" : 'X\(//\)$' \| \
15508 X"$0" : 'X\(/\)$' \| \
15509 . : '\(.\)' 2>/dev/null ||
15511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15512 /^X\/\(\/\/\)$/{ s//\1/; q; }
15513 /^X\/\(\/\).*/{ s//\1/; q; }
15517 # PATH needs CR, and LINENO needs CR and PATH.
15518 # Avoid depending upon Character Ranges.
15519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522 as_cr_digits='0123456789'
15523 as_cr_alnum=$as_cr_Letters$as_cr_digits
15525 # The user is always right.
15526 if test "${PATH_SEPARATOR+set}" != set; then
15527 echo "#! /bin/sh" >conf$$.sh
15528 echo "exit 0" >>conf$$.sh
15530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15539 as_lineno_1=$LINENO
15540 as_lineno_2=$LINENO
15541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542 test "x$as_lineno_1" != "x$as_lineno_2" &&
15543 test "x$as_lineno_3" = "x$as_lineno_2" || {
15544 # Find who we are. Look in the path if we contain no path at all
15547 *[\\/]* ) as_myself=$0 ;;
15548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15552 test -z "$as_dir" && as_dir=.
15553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15558 # We did not find ourselves, most probably we were run as `sh COMMAND'
15559 # in which case we are not to be found in the path.
15560 if test "x$as_myself" = x; then
15563 if test ! -f "$as_myself"; then
15564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15566 { (exit 1); exit 1; }; }
15568 case $CONFIG_SHELL in
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15574 test -z "$as_dir" && as_dir=.
15575 for as_base in sh bash ksh sh5; do
15578 if ("$as_dir/$as_base" -c '
15579 as_lineno_1=$LINENO
15580 as_lineno_2=$LINENO
15581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15582 test "x$as_lineno_1" != "x$as_lineno_2" &&
15583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15586 CONFIG_SHELL=$as_dir/$as_base
15587 export CONFIG_SHELL
15588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15597 # uniformly replaced by the line number. The first 'sed' inserts a
15598 # line-number line before each line; the second 'sed' does the real
15599 # work. The second script uses 'N' to pair each line-number line
15600 # with the numbered line, and appends trailing '-' during
15601 # substitution so that $LINENO is not a special case at line end.
15602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15604 sed '=' <$as_myself |
15609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15612 s,^['$as_cr_digits']*\n,,
15613 ' >$as_me.lineno &&
15614 chmod +x $as_me.lineno ||
15615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15617 { (exit 1); exit 1; }; }
15619 # Don't try to exec as it changes $[0], causing all sort of problems
15620 # (the dirname of $[0] is not the place where we might find the
15621 # original and so on. Autoconf is especially sensible to this).
15623 # Exit status is that of the last command.
15628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15629 *c*,-n*) ECHO_N= ECHO_C='
15631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15635 if expr a : '\(a\)' >/dev/null 2>&1; then
15641 rm -f conf$$ conf$$.exe conf$$.file
15643 if ln -s conf$$.file conf$$ 2>/dev/null; then
15644 # We could just check for DJGPP; but this test a) works b) is more generic
15645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15646 if test -f conf$$.exe; then
15647 # Don't use ln at all; we don't have any links
15652 elif ln conf$$.file conf$$ 2>/dev/null; then
15657 rm -f conf$$ conf$$.exe conf$$.file
15659 if mkdir -p . 2>/dev/null; then
15665 as_executable_p="test -f"
15667 # Sed expression to map a string onto a valid CPP name.
15668 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15670 # Sed expression to map a string onto a valid variable name.
15671 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15675 # We need space, tab and new line, in precisely that order.
15685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15686 # report actual input values of CONFIG_FILES etc. instead of their
15687 # values after options handling. Logging --version etc. is OK.
15691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15692 ## Running $as_me. ##
15697 This file was extended by $as_me, which was
15698 generated by GNU Autoconf 2.57. Invocation command line was
15700 CONFIG_FILES = $CONFIG_FILES
15701 CONFIG_HEADERS = $CONFIG_HEADERS
15702 CONFIG_LINKS = $CONFIG_LINKS
15703 CONFIG_COMMANDS = $CONFIG_COMMANDS
15707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15711 # Files that config.status was made for.
15712 if test -n "$ac_config_files"; then
15713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15716 if test -n "$ac_config_headers"; then
15717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15720 if test -n "$ac_config_links"; then
15721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15724 if test -n "$ac_config_commands"; then
15725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15728 cat >>$CONFIG_STATUS <<\_ACEOF
15731 \`$as_me' instantiates files from templates according to the
15732 current configuration.
15734 Usage: $0 [OPTIONS] [FILE]...
15736 -h, --help print this help, then exit
15737 -V, --version print version number, then exit
15738 -q, --quiet do not print progress messages
15739 -d, --debug don't remove temporary files
15740 --recheck update $as_me by reconfiguring in the same conditions
15741 --file=FILE[:TEMPLATE]
15742 instantiate the configuration file FILE
15743 --header=FILE[:TEMPLATE]
15744 instantiate the configuration header FILE
15746 Configuration files:
15749 Configuration headers:
15752 Configuration commands:
15755 Report bugs to <bug-autoconf@gnu.org>."
15758 cat >>$CONFIG_STATUS <<_ACEOF
15761 configured by $0, generated by GNU Autoconf 2.57,
15762 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15764 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15765 Free Software Foundation, Inc.
15766 This config.status script is free software; the Free Software Foundation
15767 gives unlimited permission to copy, distribute and modify it."
15772 cat >>$CONFIG_STATUS <<\_ACEOF
15773 # If no file are specified by the user, then we need to provide default
15774 # value. By we need to know if files were specified by the user.
15780 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15781 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15789 *) # This is not an option, so the user has probably given explicit
15792 ac_need_defaults=false;;
15796 # Handling of the options.
15798 cat >>$CONFIG_STATUS <<\_ACEOF
15799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15801 --version | --vers* | -V )
15802 echo "$ac_cs_version"; exit 0 ;;
15804 # Conflict between --help and --header
15805 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15806 Try \`$0 --help' for more information." >&5
15807 echo "$as_me: error: ambiguous option: $1
15808 Try \`$0 --help' for more information." >&2;}
15809 { (exit 1); exit 1; }; };;
15810 --help | --hel | -h )
15811 echo "$ac_cs_usage"; exit 0 ;;
15812 --debug | --d* | -d )
15814 --file | --fil | --fi | --f )
15816 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15817 ac_need_defaults=false;;
15818 --header | --heade | --head | --hea )
15820 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15821 ac_need_defaults=false;;
15822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15826 # This is an error.
15827 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15828 Try \`$0 --help' for more information." >&5
15829 echo "$as_me: error: unrecognized option: $1
15830 Try \`$0 --help' for more information." >&2;}
15831 { (exit 1); exit 1; }; } ;;
15833 *) ac_config_targets="$ac_config_targets $1" ;;
15839 ac_configure_extra_args=
15841 if $ac_cs_silent; then
15843 ac_configure_extra_args="$ac_configure_extra_args --silent"
15847 cat >>$CONFIG_STATUS <<_ACEOF
15848 if \$ac_cs_recheck; then
15849 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15850 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15855 cat >>$CONFIG_STATUS <<_ACEOF
15857 # INIT-COMMANDS section.
15860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15867 cat >>$CONFIG_STATUS <<\_ACEOF
15868 for ac_config_target in $ac_config_targets
15870 case "$ac_config_target" in
15871 # Handling of arguments.
15872 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15873 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15874 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15875 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15876 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15877 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15878 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
15879 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
15880 "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
15881 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
15882 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15883 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15884 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15887 { (exit 1); exit 1; }; };;
15891 # If the user did not use the arguments to specify the items to instantiate,
15892 # then the envvar interface is used. Set only those that are not.
15893 # We use the long form for the default assignment because of an extremely
15894 # bizarre bug on SunOS 4.1.3.
15895 if $ac_need_defaults; then
15896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15897 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15898 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15901 # Have a temporary directory for convenience. Make it in the build tree
15902 # simply because there is no reason to put it here, and in addition,
15903 # creating and moving files from /tmp can sometimes cause problems.
15904 # Create a temporary directory, and hook for its removal unless debugging.
15907 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15908 trap '{ (exit 1); exit 1; }' 1 2 13 15
15911 # Create a (secure) tmp directory for tmp files.
15914 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15915 test -n "$tmp" && test -d "$tmp"
15918 tmp=./confstat$$-$RANDOM
15919 (umask 077 && mkdir $tmp)
15922 echo "$me: cannot create a temporary directory in ." >&2
15923 { (exit 1); exit 1; }
15928 cat >>$CONFIG_STATUS <<_ACEOF
15931 # CONFIG_FILES section.
15934 # No need to generate the scripts if there are no CONFIG_FILES.
15935 # This happens for instance when ./config.status config.h
15936 if test -n "\$CONFIG_FILES"; then
15937 # Protect against being on the right side of a sed subst in config.status.
15938 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15939 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15940 s,@SHELL@,$SHELL,;t t
15941 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15942 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15943 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15944 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15945 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15946 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15947 s,@exec_prefix@,$exec_prefix,;t t
15948 s,@prefix@,$prefix,;t t
15949 s,@program_transform_name@,$program_transform_name,;t t
15950 s,@bindir@,$bindir,;t t
15951 s,@sbindir@,$sbindir,;t t
15952 s,@libexecdir@,$libexecdir,;t t
15953 s,@datadir@,$datadir,;t t
15954 s,@sysconfdir@,$sysconfdir,;t t
15955 s,@sharedstatedir@,$sharedstatedir,;t t
15956 s,@localstatedir@,$localstatedir,;t t
15957 s,@libdir@,$libdir,;t t
15958 s,@includedir@,$includedir,;t t
15959 s,@oldincludedir@,$oldincludedir,;t t
15960 s,@infodir@,$infodir,;t t
15961 s,@mandir@,$mandir,;t t
15962 s,@build_alias@,$build_alias,;t t
15963 s,@host_alias@,$host_alias,;t t
15964 s,@target_alias@,$target_alias,;t t
15965 s,@DEFS@,$DEFS,;t t
15966 s,@ECHO_C@,$ECHO_C,;t t
15967 s,@ECHO_N@,$ECHO_N,;t t
15968 s,@ECHO_T@,$ECHO_T,;t t
15969 s,@LIBS@,$LIBS,;t t
15970 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15971 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15972 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15973 s,@CYGPATH_W@,$CYGPATH_W,;t t
15974 s,@PACKAGE@,$PACKAGE,;t t
15975 s,@VERSION@,$VERSION,;t t
15976 s,@ACLOCAL@,$ACLOCAL,;t t
15977 s,@AUTOCONF@,$AUTOCONF,;t t
15978 s,@AUTOMAKE@,$AUTOMAKE,;t t
15979 s,@AUTOHEADER@,$AUTOHEADER,;t t
15980 s,@MAKEINFO@,$MAKEINFO,;t t
15981 s,@AMTAR@,$AMTAR,;t t
15982 s,@install_sh@,$install_sh,;t t
15983 s,@STRIP@,$STRIP,;t t
15984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15985 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15987 s,@SET_MAKE@,$SET_MAKE,;t t
15988 s,@am__leading_dot@,$am__leading_dot,;t t
15989 s,@build@,$build,;t t
15990 s,@build_cpu@,$build_cpu,;t t
15991 s,@build_vendor@,$build_vendor,;t t
15992 s,@build_os@,$build_os,;t t
15993 s,@host@,$host,;t t
15994 s,@host_cpu@,$host_cpu,;t t
15995 s,@host_vendor@,$host_vendor,;t t
15996 s,@host_os@,$host_os,;t t
15998 s,@CFLAGS@,$CFLAGS,;t t
15999 s,@LDFLAGS@,$LDFLAGS,;t t
16000 s,@CPPFLAGS@,$CPPFLAGS,;t t
16001 s,@ac_ct_CC@,$ac_ct_CC,;t t
16002 s,@EXEEXT@,$EXEEXT,;t t
16003 s,@OBJEXT@,$OBJEXT,;t t
16004 s,@DEPDIR@,$DEPDIR,;t t
16005 s,@am__include@,$am__include,;t t
16006 s,@am__quote@,$am__quote,;t t
16007 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16008 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16009 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16010 s,@CCDEPMODE@,$CCDEPMODE,;t t
16011 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16012 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16014 s,@EGREP@,$EGREP,;t t
16016 s,@ANSI2KNR@,$ANSI2KNR,;t t
16017 s,@RANLIB@,$RANLIB,;t t
16018 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16020 s,@ac_ct_AR@,$ac_ct_AR,;t t
16024 s,@DEBUGGER@,$DEBUGGER,;t t
16025 s,@SENDMAIL@,$SENDMAIL,;t t
16027 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16028 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16029 s,@SUBVERSION@,$SUBVERSION,;t t
16030 s,@ISPELL@,$ISPELL,;t t
16031 s,@LIBOBJS@,$LIBOBJS,;t t
16032 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16033 s,@docdir@,$docdir,;t t
16034 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16035 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16036 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16037 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16038 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16039 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16040 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16041 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16042 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16043 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16044 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16045 s,@MUTTLIBS@,$MUTTLIBS,;t t
16046 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16047 s,@LIBIMAP@,$LIBIMAP,;t t
16048 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16049 s,@ALLOCA@,$ALLOCA,;t t
16050 s,@GLIBC21@,$GLIBC21,;t t
16051 s,@LIBICONV@,$LIBICONV,;t t
16052 s,@USE_NLS@,$USE_NLS,;t t
16053 s,@MSGFMT@,$MSGFMT,;t t
16054 s,@GMSGFMT@,$GMSGFMT,;t t
16055 s,@XGETTEXT@,$XGETTEXT,;t t
16056 s,@INTLBISON@,$INTLBISON,;t t
16057 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16058 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16059 s,@CATALOGS@,$CATALOGS,;t t
16060 s,@CATOBJEXT@,$CATOBJEXT,;t t
16061 s,@GMOFILES@,$GMOFILES,;t t
16062 s,@INTLLIBS@,$INTLLIBS,;t t
16063 s,@INTLOBJS@,$INTLOBJS,;t t
16064 s,@POFILES@,$POFILES,;t t
16065 s,@POSUB@,$POSUB,;t t
16066 s,@DATADIRNAME@,$DATADIRNAME,;t t
16067 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16068 s,@GENCAT@,$GENCAT,;t t
16069 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16070 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16071 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16077 cat >>$CONFIG_STATUS <<\_ACEOF
16078 # Split the substitutions into bite-sized pieces for seds with
16079 # small command number limits, like on Digital OSF/1 and HP-UX.
16080 ac_max_sed_lines=48
16081 ac_sed_frag=1 # Number of current file.
16082 ac_beg=1 # First line for current file.
16083 ac_end=$ac_max_sed_lines # Line after last line for current file.
16086 while $ac_more_lines; do
16087 if test $ac_beg -gt 1; then
16088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16092 if test ! -s $tmp/subs.frag; then
16093 ac_more_lines=false
16095 # The purpose of the label and of the branching condition is to
16096 # speed up the sed processing (if there are no `@' at all, there
16097 # is no need to browse any of the substitutions).
16098 # These are the two extra sed commands mentioned above.
16100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16101 if test -z "$ac_sed_cmds"; then
16102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16106 ac_sed_frag=`expr $ac_sed_frag + 1`
16108 ac_end=`expr $ac_end + $ac_max_sed_lines`
16111 if test -z "$ac_sed_cmds"; then
16114 fi # test -n "$CONFIG_FILES"
16117 cat >>$CONFIG_STATUS <<\_ACEOF
16118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16121 - | *:- | *:-:* ) # input from stdin
16123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16127 * ) ac_file_in=$ac_file.in ;;
16130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133 X"$ac_file" : 'X\(//\)[^/]' \| \
16134 X"$ac_file" : 'X\(//\)$' \| \
16135 X"$ac_file" : 'X\(/\)' \| \
16136 . : '\(.\)' 2>/dev/null ||
16138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16140 /^X\(\/\/\)$/{ s//\1/; q; }
16141 /^X\(\/\).*/{ s//\1/; q; }
16143 { if $as_mkdir_p; then
16148 while test ! -d "$as_dir"; do
16149 as_dirs="$as_dir $as_dirs"
16150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16152 X"$as_dir" : 'X\(//\)[^/]' \| \
16153 X"$as_dir" : 'X\(//\)$' \| \
16154 X"$as_dir" : 'X\(/\)' \| \
16155 . : '\(.\)' 2>/dev/null ||
16157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16159 /^X\(\/\/\)$/{ s//\1/; q; }
16160 /^X\(\/\).*/{ s//\1/; q; }
16163 test ! -n "$as_dirs" || mkdir $as_dirs
16164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16166 { (exit 1); exit 1; }; }; }
16170 if test "$ac_dir" != .; then
16171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16172 # A "../" for each directory in $ac_dir_suffix.
16173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16175 ac_dir_suffix= ac_top_builddir=
16179 .) # No --srcdir option. We are building in place.
16181 if test -z "$ac_top_builddir"; then
16184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16186 [\\/]* | ?:[\\/]* ) # Absolute path.
16187 ac_srcdir=$srcdir$ac_dir_suffix;
16188 ac_top_srcdir=$srcdir ;;
16189 *) # Relative path.
16190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16193 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16195 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16196 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16197 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16198 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16206 if test x"$ac_file" != x-; then
16207 { echo "$as_me:$LINENO: creating $ac_file" >&5
16208 echo "$as_me: creating $ac_file" >&6;}
16211 # Let's still pretend it is `configure' which instantiates (i.e., don't
16212 # use $as_me), people would be surprised to read:
16213 # /* config.h. Generated by config.status. */
16214 if test x"$ac_file" = x-; then
16217 configure_input="$ac_file. "
16219 configure_input=$configure_input"Generated from `echo $ac_file_in |
16220 sed 's,.*/,,'` by configure."
16222 # First look for the input files in the build tree, otherwise in the
16224 ac_file_inputs=`IFS=:
16225 for f in $ac_file_in; do
16227 -) echo $tmp/stdin ;;
16229 # Absolute (can't be DOS-style, as IFS=:)
16230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16231 echo "$as_me: error: cannot find input file: $f" >&2;}
16232 { (exit 1); exit 1; }; }
16235 if test -f "$f"; then
16238 elif test -f "$srcdir/$f"; then
16243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16244 echo "$as_me: error: cannot find input file: $f" >&2;}
16245 { (exit 1); exit 1; }; }
16248 done` || { (exit 1); exit 1; }
16250 cat >>$CONFIG_STATUS <<_ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16257 s,@configure_input@,$configure_input,;t t
16258 s,@srcdir@,$ac_srcdir,;t t
16259 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16260 s,@top_srcdir@,$ac_top_srcdir,;t t
16261 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16262 s,@builddir@,$ac_builddir,;t t
16263 s,@abs_builddir@,$ac_abs_builddir,;t t
16264 s,@top_builddir@,$ac_top_builddir,;t t
16265 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16266 s,@INSTALL@,$ac_INSTALL,;t t
16267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16269 if test x"$ac_file" != x-; then
16270 mv $tmp/out $ac_file
16278 cat >>$CONFIG_STATUS <<\_ACEOF
16281 # CONFIG_HEADER section.
16284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16287 # ac_d sets the value in "#define NAME VALUE" lines.
16288 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16289 ac_dB='[ ].*$,\1#\2'
16292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16293 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16294 ac_uB='$,\1#\2define\3'
16298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16301 - | *:- | *:-:* ) # input from stdin
16303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16307 * ) ac_file_in=$ac_file.in ;;
16310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16311 echo "$as_me: creating $ac_file" >&6;}
16313 # First look for the input files in the build tree, otherwise in the
16315 ac_file_inputs=`IFS=:
16316 for f in $ac_file_in; do
16318 -) echo $tmp/stdin ;;
16320 # Absolute (can't be DOS-style, as IFS=:)
16321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16322 echo "$as_me: error: cannot find input file: $f" >&2;}
16323 { (exit 1); exit 1; }; }
16326 if test -f "$f"; then
16329 elif test -f "$srcdir/$f"; then
16334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16335 echo "$as_me: error: cannot find input file: $f" >&2;}
16336 { (exit 1); exit 1; }; }
16339 done` || { (exit 1); exit 1; }
16340 # Remove the trailing spaces.
16341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16346 # `conftest.undefs', that substitutes the proper values into
16347 # config.h.in to produce config.h. The first handles `#define'
16348 # templates, and the second `#undef' templates.
16349 # And first: Protect against being on the right side of a sed subst in
16350 # config.status. Protect against being in an unquoted here document
16351 # in config.status.
16352 rm -f conftest.defines conftest.undefs
16353 # Using a here document instead of a string reduces the quoting nightmare.
16354 # Putting comments in sed scripts is not portable.
16356 # `end' is used to avoid that the second main sed command (meant for
16357 # 0-ary CPP macros) applies to n-ary macro definitions.
16358 # See the Autoconf documentation for `clear'.
16359 cat >confdef2sed.sed <<\_ACEOF
16364 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16366 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16369 # If some macros were called several times there might be several times
16370 # the same #defines, which is useless. Nevertheless, we may not want to
16371 # sort them, since we want the *last* AC-DEFINE to be honored.
16372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16374 rm -f confdef2sed.sed
16376 # This sed command replaces #undef with comments. This is necessary, for
16377 # example, in the case of _POSIX_SOURCE, which is predefined and required
16378 # on some systems where configure will not decide to define it.
16379 cat >>conftest.undefs <<\_ACEOF
16380 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16383 # Break up conftest.defines because some shells have a limit on the size
16384 # of here documents, and old seds have small limits too (100 cmds).
16385 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16386 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16387 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16388 echo ' :' >>$CONFIG_STATUS
16389 rm -f conftest.tail
16390 while grep . conftest.defines >/dev/null
16392 # Write a limited-size here document to $tmp/defines.sed.
16393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16394 # Speed up: don't consider the non `#define' lines.
16395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16396 # Work around the forget-to-reset-the-flag bug.
16397 echo 't clr' >>$CONFIG_STATUS
16398 echo ': clr' >>$CONFIG_STATUS
16399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16403 mv $tmp/out $tmp/in
16405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16406 rm -f conftest.defines
16407 mv conftest.tail conftest.defines
16409 rm -f conftest.defines
16410 echo ' fi # grep' >>$CONFIG_STATUS
16411 echo >>$CONFIG_STATUS
16413 # Break up conftest.undefs because some shells have a limit on the size
16414 # of here documents, and old seds have small limits too (100 cmds).
16415 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16416 rm -f conftest.tail
16417 while grep . conftest.undefs >/dev/null
16419 # Write a limited-size here document to $tmp/undefs.sed.
16420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16421 # Speed up: don't consider the non `#undef'
16422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16423 # Work around the forget-to-reset-the-flag bug.
16424 echo 't clr' >>$CONFIG_STATUS
16425 echo ': clr' >>$CONFIG_STATUS
16426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16430 mv $tmp/out $tmp/in
16432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16433 rm -f conftest.undefs
16434 mv conftest.tail conftest.undefs
16436 rm -f conftest.undefs
16438 cat >>$CONFIG_STATUS <<\_ACEOF
16439 # Let's still pretend it is `configure' which instantiates (i.e., don't
16440 # use $as_me), people would be surprised to read:
16441 # /* config.h. Generated by config.status. */
16442 if test x"$ac_file" = x-; then
16443 echo "/* Generated by configure. */" >$tmp/config.h
16445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16447 cat $tmp/in >>$tmp/config.h
16449 if test x"$ac_file" != x-; then
16450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16452 echo "$as_me: $ac_file is unchanged" >&6;}
16454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16456 X"$ac_file" : 'X\(//\)[^/]' \| \
16457 X"$ac_file" : 'X\(//\)$' \| \
16458 X"$ac_file" : 'X\(/\)' \| \
16459 . : '\(.\)' 2>/dev/null ||
16461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16463 /^X\(\/\/\)$/{ s//\1/; q; }
16464 /^X\(\/\).*/{ s//\1/; q; }
16466 { if $as_mkdir_p; then
16471 while test ! -d "$as_dir"; do
16472 as_dirs="$as_dir $as_dirs"
16473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16475 X"$as_dir" : 'X\(//\)[^/]' \| \
16476 X"$as_dir" : 'X\(//\)$' \| \
16477 X"$as_dir" : 'X\(/\)' \| \
16478 . : '\(.\)' 2>/dev/null ||
16480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16482 /^X\(\/\/\)$/{ s//\1/; q; }
16483 /^X\(\/\).*/{ s//\1/; q; }
16486 test ! -n "$as_dirs" || mkdir $as_dirs
16487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16489 { (exit 1); exit 1; }; }; }
16492 mv $tmp/config.h $ac_file
16496 rm -f $tmp/config.h
16498 # Compute $ac_file's index in $config_headers.
16500 for _am_header in $config_headers :; do
16501 case $_am_header in
16502 $ac_file | $ac_file:* )
16505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16508 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16510 X$ac_file : 'X\(//\)[^/]' \| \
16511 X$ac_file : 'X\(//\)$' \| \
16512 X$ac_file : 'X\(/\)' \| \
16513 . : '\(.\)' 2>/dev/null ||
16515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16517 /^X\(\/\/\)$/{ s//\1/; q; }
16518 /^X\(\/\).*/{ s//\1/; q; }
16519 s/.*/./; q'`/stamp-h$_am_stamp_count
16522 cat >>$CONFIG_STATUS <<\_ACEOF
16525 # CONFIG_COMMANDS section.
16527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16528 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16529 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16530 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16532 X"$ac_dest" : 'X\(//\)[^/]' \| \
16533 X"$ac_dest" : 'X\(//\)$' \| \
16534 X"$ac_dest" : 'X\(/\)' \| \
16535 . : '\(.\)' 2>/dev/null ||
16537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16539 /^X\(\/\/\)$/{ s//\1/; q; }
16540 /^X\(\/\).*/{ s//\1/; q; }
16544 if test "$ac_dir" != .; then
16545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16546 # A "../" for each directory in $ac_dir_suffix.
16547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16549 ac_dir_suffix= ac_top_builddir=
16553 .) # No --srcdir option. We are building in place.
16555 if test -z "$ac_top_builddir"; then
16558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16560 [\\/]* | ?:[\\/]* ) # Absolute path.
16561 ac_srcdir=$srcdir$ac_dir_suffix;
16562 ac_top_srcdir=$srcdir ;;
16563 *) # Relative path.
16564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16567 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16569 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16570 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16571 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16572 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16575 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16576 echo "$as_me: executing $ac_dest commands" >&6;}
16578 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16579 # Strip MF so we end up with the name of the file.
16580 mf=`echo "$mf" | sed -e 's/:.*$//'`
16581 # Check whether this is an Automake generated Makefile or not.
16582 # We used to match only the files named `Makefile.in', but
16583 # some people rename them; so instead we look at the file content.
16584 # Grep'ing the first line is not enough: some people post-process
16585 # each Makefile.in and add a new line on top of each file to say so.
16586 # So let's grep whole file.
16587 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16588 dirpart=`(dirname "$mf") 2>/dev/null ||
16589 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16590 X"$mf" : 'X\(//\)[^/]' \| \
16591 X"$mf" : 'X\(//\)$' \| \
16592 X"$mf" : 'X\(/\)' \| \
16593 . : '\(.\)' 2>/dev/null ||
16595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16597 /^X\(\/\/\)$/{ s//\1/; q; }
16598 /^X\(\/\).*/{ s//\1/; q; }
16603 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16604 # Extract the definition of DEP_FILES from the Makefile without
16606 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16607 test -z "$DEPDIR" && continue
16608 # When using ansi2knr, U may be empty or an underscore; expand it
16609 U=`sed -n -e '/^U = / s///p' < "$mf"`
16610 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16611 # We invoke sed twice because it is the simplest approach to
16612 # changing $(DEPDIR) to its actual value in the expansion.
16613 for file in `sed -n -e '
16614 /^DEP_FILES = .*\\\\$/ {
16623 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16625 # Make sure the directory exists.
16626 test -f "$dirpart/$file" && continue
16627 fdir=`(dirname "$file") 2>/dev/null ||
16628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16629 X"$file" : 'X\(//\)[^/]' \| \
16630 X"$file" : 'X\(//\)$' \| \
16631 X"$file" : 'X\(/\)' \| \
16632 . : '\(.\)' 2>/dev/null ||
16634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16636 /^X\(\/\/\)$/{ s//\1/; q; }
16637 /^X\(\/\).*/{ s//\1/; q; }
16639 { if $as_mkdir_p; then
16640 mkdir -p $dirpart/$fdir
16642 as_dir=$dirpart/$fdir
16644 while test ! -d "$as_dir"; do
16645 as_dirs="$as_dir $as_dirs"
16646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648 X"$as_dir" : 'X\(//\)[^/]' \| \
16649 X"$as_dir" : 'X\(//\)$' \| \
16650 X"$as_dir" : 'X\(/\)' \| \
16651 . : '\(.\)' 2>/dev/null ||
16653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16655 /^X\(\/\/\)$/{ s//\1/; q; }
16656 /^X\(\/\).*/{ s//\1/; q; }
16659 test ! -n "$as_dirs" || mkdir $as_dirs
16660 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16661 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16662 { (exit 1); exit 1; }; }; }
16664 # echo "creating $dirpart/$file"
16665 echo '# dummy' > "$dirpart/$file"
16669 default-1 ) for ac_file in $CONFIG_FILES; do
16670 # Support "outfile[:infile[:infile...]]"
16672 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16674 # PO directories have a Makefile.in generated from Makefile.in.in.
16675 case "$ac_file" in */Makefile.in)
16676 # Adjust a relative srcdir.
16677 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16678 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16679 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16680 # In autoconf-2.13 it is called $ac_given_srcdir.
16681 # In autoconf-2.50 it is called $srcdir.
16682 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16683 case "$ac_given_srcdir" in
16684 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16685 /*) top_srcdir="$ac_given_srcdir" ;;
16686 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16688 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16689 rm -f "$ac_dir/POTFILES"
16690 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16691 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16692 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16693 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16702 cat >>$CONFIG_STATUS <<\_ACEOF
16704 { (exit 0); exit 0; }
16706 chmod +x $CONFIG_STATUS
16707 ac_clean_files=$ac_clean_files_save
16710 # configure is writing to config.log, and then calls config.status.
16711 # config.status does its own redirection, appending to config.log.
16712 # Unfortunately, on DOS this fails, as config.log is still kept open
16713 # by configure, so config.status won't be able to write to it; its
16714 # output is simply discarded. So we exec the FD to /dev/null,
16715 # effectively closing config.log, so it can be properly (re)opened and
16716 # appended to by config.status. When coming back to configure, we
16717 # need to make the FD available again.
16718 if test "$no_create" != yes; then
16720 ac_config_status_args=
16721 test "$silent" = yes &&
16722 ac_config_status_args="$ac_config_status_args --quiet"
16724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16727 # would make configure fail if this is the last instruction.
16728 $ac_cs_success || { (exit 1); exit 1; }