2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="mutt.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
667 INSTALL_STRIP_PROGRAM
675 CONFIG_STATUS_DEPENDENCIES
748 BUILD_INCLUDED_LIBINTL
761 INTL_LIBTOOL_SUFFIX_PREFIX
766 ac_precious_vars='build_alias
777 # Initialize some variables set by options.
779 ac_init_version=false
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
789 program_transform_name=s,x,x,
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE}'
814 infodir='${datarootdir}/info'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
835 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 # Accept the important Cygnus configure options, so we can diagnose typos.
841 case $ac_dashdash$ac_option in
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
863 cache_file=config.cache ;;
865 -datadir | --datadir | --datadi | --datad)
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
877 -disable-* | --disable-*)
878 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882 { (exit 1); exit 1; }; }
883 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
884 eval enable_$ac_feature=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 -enable-* | --enable-*)
897 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
900 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901 { (exit 1); exit 1; }; }
902 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
903 eval enable_$ac_feature=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
918 -help | --help | --hel | --he | -h)
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 # Obsolete; use --without-fp.
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1067 -site=* | --site=* | --sit=*)
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1094 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid package name: $ac_package" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1100 eval with_$ac_package=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_$ac_package=no ;;
1112 # Obsolete; use --with-x.
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) { echo "$as_me: error: unrecognized option: $ac_option
1130 Try \`$0 --help' for more information." >&2
1131 { (exit 1); exit 1; }; }
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1139 { (exit 1); exit 1; }; }
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 { echo "$as_me: error: missing argument to $ac_option" >&2
1157 { (exit 1); exit 1; }; }
1160 # Be sure to have absolute directory names.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1172 { (exit 1); exit 1; }; }
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1180 target=$target_alias
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x; then
1184 if test "x$build_alias" = x; then
1185 cross_compiling=maybe
1186 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1187 If a cross compiler is detected then cross compile mode will be used." >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196 test "$silent" = yes && exec 6>/dev/null
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 { echo "$as_me: error: Working directory cannot be determined" >&2
1203 { (exit 1); exit 1; }; }
1204 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1205 { echo "$as_me: error: pwd does not report name of working directory" >&2
1206 { (exit 1); exit 1; }; }
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$0" ||
1214 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$0" : 'X\(//\)[^/]' \| \
1216 X"$0" : 'X\(//\)$' \| \
1217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1241 ac_srcdir_defaulted=no
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1246 { (exit 1); exit 1; }; }
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1251 { (exit 1); exit 1; }; }
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1261 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 # Report the --help message.
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1277 \`configure' configures this package to adapt to many kinds of systems.
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1284 Defaults for the options are specified in brackets.
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1308 For better control, use the options below.
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1335 --program-prefix=PREFIX prepend PREFIX to installed program names
1336 --program-suffix=SUFFIX append SUFFIX to installed program names
1337 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1340 --build=BUILD configure for building on BUILD [guessed]
1341 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 if test -n "$ac_init_help"; then
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-dependency-tracking speeds up one-time build
1353 --enable-dependency-tracking do not reject slow dependency extractors
1354 --disable-largefile omit support for large files
1355 --enable-gpgme Enable GPGME support
1356 --disable-pgp Disable PGP support
1357 --disable-smime Disable SMIME support
1358 --enable-external-dotlock
1359 Force use of an external dotlock program
1360 --enable-pop Enable POP3 support
1361 --enable-imap Enable IMAP support
1362 --enable-smtp include internal SMTP relay support
1363 --enable-debug Enable debugging support
1364 --enable-flock Use flock() to lock files
1365 --disable-fcntl Do NOT use fcntl() to lock files
1366 --disable-warnings Turn off compiler warnings (not recommended)
1367 --enable-nfs-fix Work around an NFS with broken attributes caching
1368 --enable-mailtool Enable Sun mailtool attachments support
1369 --enable-locales-fix The result of isprint() is unreliable
1370 --enable-exact-address Enable regeneration of email addresses
1371 --enable-hcache Enable header caching
1372 --disable-iconv Disable iconv support
1373 --disable-nls Do not use Native Language Support
1374 --disable-full-doc Omit disabled variables
1377 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1378 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1379 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
1380 --with-mixmaster[=PATH] Include Mixmaster support
1381 --with-slang[=DIR] Use S-Lang instead of ncurses
1382 --with-curses=DIR Where ncurses is installed
1383 --with-regex Use the GNU regex library
1384 --with-homespool[=FILE] File in user's directory where new mail is spooled
1385 --with-mailpath=DIR Directory where spool mailboxes are located
1386 --with-docdir=PATH Specify where to put the documentation
1387 --with-domain=DOMAIN Specify your DNS domain name
1388 --with-gss[=PFX] Compile in GSSAPI authentication for IMAP
1389 --with-ssl[=PFX] Compile in SSL support for POP/IMAP/SMTP using
1391 --with-gnutls[=PFX] Compile in SSL support for POP/IMAP/SMTP using
1393 --with-sasl[=PFX] Use Cyrus SASL 2 network security library
1394 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
1395 --without-tokyocabinet Don't use tokyocabinet even if it is available
1396 --without-qdbm Don't use qdbm even if it is available
1397 --without-gdbm Don't use gdbm even if it is available
1398 --with-bdb[=DIR] Use BerkeleyDB4 if gdbm is not available
1399 --with-libiconv-prefix[=DIR]
1400 Search for libiconv in DIR/include and DIR/lib
1401 --with-included-gettext Use the GNU gettext library included here
1402 --with-idn=[PFX] Use GNU libidn for domain names
1403 --without-wc-funcs Do not use the system's wchar_t functions
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" || continue
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1479 generated by GNU Autoconf 2.61
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.61. Invocation command line was
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1514 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1518 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1553 ac_must_keep_next=false
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1582 -* ) ac_must_keep_next=true ;;
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1609 # The following way of writing the cache mishandles newlines in values,
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
1629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1646 for ac_var in $ac_subst_vars
1648 eval ac_val=\$$ac_var
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 echo "$ac_var='\''$ac_val'\''"
1656 if test -n "$ac_subst_files"; then
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1663 for ac_var in $ac_subst_files
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 echo "$ac_var='\''$ac_val'\''"
1674 if test -s confdefs.h; then
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1692 for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1700 # Predefined preprocessor variables.
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
1740 if test -r "$ac_site_file"; then
1741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1765 # Check that the precious variables saved in the cache have kept the same
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1788 echo "$as_me: former value: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1790 echo "$as_me: current value: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 *) ac_arg=$ac_var=$ac_new_val ;;
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1806 if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 ac_config_headers="$ac_config_headers config.h"
1840 mutt_cv_version=`cat $srcdir/VERSION`
1841 am__api_version='1.10'
1844 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1845 if test -f "$ac_dir/install-sh"; then
1847 ac_install_sh="$ac_aux_dir/install-sh -c"
1849 elif test -f "$ac_dir/install.sh"; then
1851 ac_install_sh="$ac_aux_dir/install.sh -c"
1853 elif test -f "$ac_dir/shtool"; then
1855 ac_install_sh="$ac_aux_dir/shtool install -c"
1859 if test -z "$ac_aux_dir"; then
1860 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1861 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1862 { (exit 1); exit 1; }; }
1865 # These three variables are undocumented and unsupported,
1866 # and are intended to be withdrawn in a future Autoconf release.
1867 # They can cause serious problems if a builder's source tree is in a directory
1868 # whose full name contains unusual characters.
1869 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1870 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1871 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1874 # Find a good install program. We prefer a C program (faster),
1875 # so one script is as good as another. But avoid the broken or
1876 # incompatible versions:
1877 # SysV /etc/install, /usr/sbin/install
1878 # SunOS /usr/etc/install
1879 # IRIX /sbin/install
1881 # AmigaOS /C/install, which installs bootblocks on floppy discs
1882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1885 # OS/2's system install, which has a completely different semantic
1886 # ./install, which can be erroneously created by make from ./install.sh.
1887 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1888 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1889 if test -z "$INSTALL"; then
1890 if test "${ac_cv_path_install+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 # Account for people who put trailing slashes in PATH elements.
1900 ./ | .// | /cC/* | \
1901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1902 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1905 # OSF1 and SCO ODT 3.0 have their own names for install.
1906 # Don't use installbsd from OSF since it installs stuff as root
1908 for ac_prog in ginstall scoinst install; do
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1911 if test $ac_prog = install &&
1912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1913 # AIX install. It has an incompatible calling convention.
1915 elif test $ac_prog = install &&
1916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1917 # program-specific install script used by HP pwplus--don't use.
1920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1933 if test "${ac_cv_path_install+set}" = set; then
1934 INSTALL=$ac_cv_path_install
1936 # As a last resort, use the slow shell script. Don't cache a
1937 # value for INSTALL within a source directory, because that will
1938 # break other packages using the cache if that directory is
1939 # removed, or if the value is a relative name.
1940 INSTALL=$ac_install_sh
1943 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1944 echo "${ECHO_T}$INSTALL" >&6; }
1946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1947 # It thinks the first close brace ends the variable substitution.
1948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1954 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1955 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1958 echo timestamp > conftest.file
1959 # Do `set' in a subshell so we don't clobber the current shell's
1960 # arguments. Must try -L first in case configure is actually a
1961 # symlink; some systems play weird games with the mod time of symlinks
1962 # (eg FreeBSD returns the mod time of the symlink's containing
1965 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1966 if test "$*" = "X"; then
1968 set X `ls -t $srcdir/configure conftest.file`
1971 if test "$*" != "X $srcdir/configure conftest.file" \
1972 && test "$*" != "X conftest.file $srcdir/configure"; then
1974 # If neither matched, then we have a broken ls. This can happen
1975 # if, for instance, CONFIG_SHELL is bash and it inherits a
1976 # broken ls alias from the environment. This has actually
1977 # happened. Such a system could not be considered "sane".
1978 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1979 alias in your environment" >&5
1980 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1981 alias in your environment" >&2;}
1982 { (exit 1); exit 1; }; }
1985 test "$2" = conftest.file
1991 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1992 Check your system clock" >&5
1993 echo "$as_me: error: newly created file is older than distributed files!
1994 Check your system clock" >&2;}
1995 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: yes" >&5
1998 echo "${ECHO_T}yes" >&6; }
1999 test "$program_prefix" != NONE &&
2000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001 # Use a double $ so make ignores it.
2002 test "$program_suffix" != NONE &&
2003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2004 # Double any \ or $. echo might interpret backslashes.
2005 # By default was `s,x,x', remove it if useless.
2006 cat <<\_ACEOF >conftest.sed
2007 s/[\\$]/&&/g;s/;s,x,x,$//
2009 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2012 # expand $ac_aux_dir to an absolute path
2013 am_aux_dir=`cd $ac_aux_dir && pwd`
2015 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2016 # Use eval to expand $SHELL
2017 if eval "$MISSING --run true"; then
2018 am_missing_run="$MISSING --run "
2021 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2022 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2025 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2026 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2027 if test -z "$MKDIR_P"; then
2028 if test "${ac_cv_path_mkdir+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2035 test -z "$as_dir" && as_dir=.
2036 for ac_prog in mkdir gmkdir; do
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2040 'mkdir (GNU coreutils) '* | \
2041 'mkdir (coreutils) '* | \
2042 'mkdir (fileutils) '4.1*)
2043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2053 if test "${ac_cv_path_mkdir+set}" = set; then
2054 MKDIR_P="$ac_cv_path_mkdir -p"
2056 # As a last resort, use the slow shell script. Don't cache a
2057 # value for MKDIR_P within a source directory, because that will
2058 # break other packages using the cache if that directory is
2059 # removed, or if the value is a relative name.
2060 test -d ./--version && rmdir ./--version
2061 MKDIR_P="$ac_install_sh -d"
2064 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2065 echo "${ECHO_T}$MKDIR_P" >&6; }
2069 [\\/$]* | ?:[\\/]*) ;;
2070 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2073 for ac_prog in gawk mawk nawk awk
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_AWK+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$AWK"; then
2083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_AWK="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test -n "$AWK"; then
2104 { echo "$as_me:$LINENO: result: $AWK" >&5
2105 echo "${ECHO_T}$AWK" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2112 test -n "$AWK" && break
2115 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2116 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2117 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2118 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.make <<\_ACEOF
2124 @echo '@@@%%%=$(MAKE)=@@@%%%'
2126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2129 eval ac_cv_prog_make_${ac_make}_set=yes;;
2131 eval ac_cv_prog_make_${ac_make}_set=no;;
2135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 SET_MAKE="MAKE=${MAKE-make}"
2145 rm -rf .tst 2>/dev/null
2146 mkdir .tst 2>/dev/null
2147 if test -d .tst; then
2152 rmdir .tst 2>/dev/null
2154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2156 # is not polluted with repeated "-I."
2157 am__isrc=' -I$(srcdir)'
2158 # test to see if srcdir already configured
2159 if test -f $srcdir/config.status; then
2160 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2161 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2162 { (exit 1); exit 1; }; }
2166 # test whether we have cygpath
2167 if test -z "$CYGPATH_W"; then
2168 if (cygpath --version) >/dev/null 2>/dev/null; then
2169 CYGPATH_W='cygpath -w'
2176 # Define the identity of the package.
2178 VERSION=$mutt_cv_version
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE "$PACKAGE"
2186 cat >>confdefs.h <<_ACEOF
2187 #define VERSION "$VERSION"
2190 # Some tools Automake needs.
2192 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2195 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2198 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2201 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2204 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2206 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2208 # Installed binaries are usually stripped using `strip' when the user
2209 # run `make install-strip'. However `strip' might not be the right
2210 # tool to use in cross-compilation environments, therefore Automake
2211 # will honor the `STRIP' environment variable to overrule this program.
2212 if test "$cross_compiling" != no; then
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}strip; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_STRIP+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$STRIP"; then
2222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 STRIP=$ac_cv_prog_STRIP
2242 if test -n "$STRIP"; then
2243 { echo "$as_me:$LINENO: result: $STRIP" >&5
2244 echo "${ECHO_T}$STRIP" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2252 if test -z "$ac_cv_prog_STRIP"; then
2254 # Extract the first word of "strip", so it can be a program name with args.
2255 set dummy strip; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_STRIP"; then
2262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_STRIP="strip"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2282 if test -n "$ac_ct_STRIP"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2284 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2290 if test "x$ac_ct_STRIP" = x; then
2293 case $cross_compiling:$ac_tool_warned in
2295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&5
2298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301 ac_tool_warned=yes ;;
2306 STRIP="$ac_cv_prog_STRIP"
2310 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2312 # We need awk for the "check" target. The system "awk" is bad on
2314 # Always define AMTAR for backward compatibility.
2316 AMTAR=${AMTAR-"${am_missing_run}tar"}
2318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2324 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/VERSION'
2328 cat >>confdefs.h <<\_ACEOF
2329 #define _GNU_SOURCE 1
2334 ALL_LINGUAS="de eu 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 ga"
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2339 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2340 { (exit 1); exit 1; }; }
2342 { echo "$as_me:$LINENO: checking build system type" >&5
2343 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2344 if test "${ac_cv_build+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2353 { (exit 1); exit 1; }; }
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2360 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2361 echo "${ECHO_T}$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2364 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2365 echo "$as_me: error: invalid value of canonical build" >&2;}
2366 { (exit 1); exit 1; }; };;
2369 ac_save_IFS=$IFS; IFS='-'
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2379 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2382 { echo "$as_me:$LINENO: checking host system type" >&5
2383 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2384 if test "${ac_cv_host+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test "x$host_alias" = x; then
2388 ac_cv_host=$ac_cv_build
2390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2392 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2393 { (exit 1); exit 1; }; }
2397 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2398 echo "${ECHO_T}$ac_cv_host" >&6; }
2401 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2402 echo "$as_me: error: invalid value of canonical host" >&2;}
2403 { (exit 1); exit 1; }; };;
2406 ac_save_IFS=$IFS; IFS='-'
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2420 { echo "$as_me:$LINENO: checking for prefix" >&5
2421 echo $ECHO_N "checking for prefix... $ECHO_C" >&6; }
2422 if test x$prefix = xNONE; then
2423 mutt_cv_prefix=$ac_default_prefix
2425 mutt_cv_prefix=$prefix
2427 { echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
2428 echo "${ECHO_T}$mutt_cv_prefix" >&6; }
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files ''
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2877 ac_exeext=$ac_cv_exeext
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && {
3056 test -z "$ac_c_werror_flag" ||
3057 test ! -s conftest.err
3058 } && test -s conftest.$ac_objext; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3073 GCC=`test $ac_compiler_gnu = yes && echo yes`
3074 ac_test_CFLAGS=${CFLAGS+set}
3075 ac_save_CFLAGS=$CFLAGS
3076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_cc_g+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_save_c_werror_flag=$ac_c_werror_flag
3082 ac_c_werror_flag=yes
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214 CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3222 if test "$GCC" = yes; then
3228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_prog_cc_c89=no
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3259 s = g (p, va_arg (v,int));
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 CC="$ac_save_CC $ac_arg"
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cc_c89=$ac_arg
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
3324 rm -f conftest.$ac_ext
3329 case "x$ac_cv_prog_cc_c89" in
3331 { echo "$as_me:$LINENO: result: none needed" >&5
3332 echo "${ECHO_T}none needed" >&6; } ;;
3334 { echo "$as_me:$LINENO: result: unsupported" >&5
3335 echo "${ECHO_T}unsupported" >&6; } ;;
3337 CC="$CC $ac_cv_prog_cc_c89"
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 DEPDIR="${am__leading_dot}deps"
3350 ac_config_commands="$ac_config_commands depfiles"
3353 am_make=${MAKE-make}
3354 cat > confinc << 'END'
3359 # If we don't find an include directive, just comment out the code.
3360 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3361 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3365 # First try GNU make style include.
3366 echo "include confinc" > confmf
3367 # We grep out `Entering directory' and `Leaving directory'
3368 # messages which can occur if `w' ends up in MAKEFLAGS.
3369 # In particular we don't look at `^make:' because GNU make might
3370 # be invoked under some other name (usually "gmake"), in which
3371 # case it prints its new name instead of `make'.
3372 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3377 # Now try BSD make style include.
3378 if test "$am__include" = "#"; then
3379 echo '.include "confinc"' > confmf
3380 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3381 am__include=.include
3388 { echo "$as_me:$LINENO: result: $_am_result" >&5
3389 echo "${ECHO_T}$_am_result" >&6; }
3390 rm -f confinc confmf
3392 # Check whether --enable-dependency-tracking was given.
3393 if test "${enable_dependency_tracking+set}" = set; then
3394 enableval=$enable_dependency_tracking;
3397 if test "x$enable_dependency_tracking" != xno; then
3398 am_depcomp="$ac_aux_dir/depcomp"
3401 if test "x$enable_dependency_tracking" != xno; then
3411 depcc="$CC" am_compiler_list=
3413 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3414 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3415 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3419 # We make a subdir and do the tests there. Otherwise we can end up
3420 # making bogus files that we don't know about and never remove. For
3421 # instance it was reported that on HP-UX the gcc test will end up
3422 # making a dummy file named `D' -- because `-MD' means `put the output
3425 # Copy depcomp to subdir because otherwise we won't find it if we're
3426 # using a relative directory.
3427 cp "$am_depcomp" conftest.dir
3429 # We will build objects and dependencies in a subdirectory because
3430 # it helps to detect inapplicable dependency modes. For instance
3431 # both Tru64's cc and ICC support -MD to output dependencies as a
3432 # side effect of compilation, but ICC will put the dependencies in
3433 # the current directory while Tru64 will put them in the object
3437 am_cv_CC_dependencies_compiler_type=none
3438 if test "$am_compiler_list" = ""; then
3439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3441 for depmode in $am_compiler_list; do
3442 # Setup a source with many dependencies, because some compilers
3443 # like to wrap large dependency lists on column 80 (with \), and
3444 # we should not choose a depcomp mode which is confused by this.
3446 # We need to recreate these files for each test, as the compiler may
3447 # overwrite some of them when testing with obscure command lines.
3448 # This happens at least with the AIX C compiler.
3450 for i in 1 2 3 4 5 6; do
3451 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3453 # Solaris 8's {/usr,}/bin/sh.
3454 touch sub/conftst$i.h
3456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3460 # after this tag, mechanisms are not by side-effect, so they'll
3461 # only be used when explicitly requested
3462 if test "x$enable_dependency_tracking" = xyes; then
3470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3471 # mode. It turns out that the SunPro C++ compiler does not properly
3472 # handle `-M -o', and we need to detect this.
3473 if depmode=$depmode \
3474 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3476 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3477 >/dev/null 2>conftest.err &&
3478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3480 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3482 # icc doesn't choke on unknown options, it will just issue warnings
3483 # or remarks (even with -Werror). So we grep stderr for any message
3484 # that says an option was ignored or not supported.
3485 # When given -MP, icc 7.0 and 7.1 complain thusly:
3486 # icc: Command line warning: ignoring option '-M'; no argument required
3487 # The diagnosis changed in icc 8.0:
3488 # icc: Command line remark: option '-MP' not supported
3489 if (grep 'ignoring option' conftest.err ||
3490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3491 am_cv_CC_dependencies_compiler_type=$depmode
3500 am_cv_CC_dependencies_compiler_type=none
3504 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3505 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3506 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3509 test "x$enable_dependency_tracking" != xno \
3510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3512 am__fastdepCC_FALSE='#'
3514 am__fastdepCC_TRUE='#'
3515 am__fastdepCC_FALSE=
3520 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3521 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3522 if test "${ac_cv_search_strerror+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 ac_func_search_save_LIBS=$LIBS
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3533 /* Override any GCC internal prototype to avoid an error.
3534 Use char because int might match the return type of a GCC
3535 builtin and then its argument prototype would still apply. */
3548 for ac_lib in '' cposix; do
3549 if test -z "$ac_lib"; then
3550 ac_res="none required"
3553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3555 rm -f conftest.$ac_objext conftest$ac_exeext
3556 if { (ac_try="$ac_link"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_link") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest$ac_exeext &&
3572 $as_test_x conftest$ac_exeext; then
3573 ac_cv_search_strerror=$ac_res
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3583 if test "${ac_cv_search_strerror+set}" = set; then
3587 if test "${ac_cv_search_strerror+set}" = set; then
3590 ac_cv_search_strerror=no
3593 LIBS=$ac_func_search_save_LIBS
3595 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3596 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3597 ac_res=$ac_cv_search_strerror
3598 if test "$ac_res" != no; then
3599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3603 { echo "$as_me:$LINENO: checking for function prototypes" >&5
3604 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
3605 if test "$ac_cv_prog_cc_c89" != no; then
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3609 cat >>confdefs.h <<\_ACEOF
3610 #define PROTOTYPES 1
3614 cat >>confdefs.h <<\_ACEOF
3615 #define __PROTOTYPES 1
3619 { echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6; }
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
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3657 # include <limits.h>
3659 # include <assert.h>
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3688 rm -f conftest.err conftest.$ac_ext
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <ac_nonexistent.h>
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null && {
3713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3716 # Broken: success on invalid input.
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 # Passes both tests.
3727 rm -f conftest.err conftest.$ac_ext
3730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731 rm -f conftest.err conftest.$ac_ext
3732 if $ac_preproc_ok; then
3744 { echo "$as_me:$LINENO: result: $CPP" >&5
3745 echo "${ECHO_T}$CPP" >&6; }
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3762 # include <limits.h>
3764 # include <assert.h>
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3821 # Broken: success on invalid input.
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3832 rm -f conftest.err conftest.$ac_ext
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3841 See \`config.log' for more details." >&5
3842 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3843 See \`config.log' for more details." >&2;}
3844 { (exit 1); exit 1; }; }
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3855 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_GREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 # Extract the first word of "grep ggrep" to use in msg output
3860 if test -z "$GREP"; then
3861 set dummy grep ggrep; ac_prog_name=$2
3862 if test "${ac_cv_path_GREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 ac_path_GREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878 case `"$ac_path_GREP" --version 2>&1` in
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 $ac_path_GREP_found && break 3
3915 GREP="$ac_cv_path_GREP"
3916 if test -z "$GREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3923 ac_cv_path_GREP=$GREP
3928 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3929 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3930 GREP="$ac_cv_path_GREP"
3933 { echo "$as_me:$LINENO: checking for egrep" >&5
3934 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3935 if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939 then ac_cv_path_EGREP="$GREP -E"
3941 # Extract the first word of "egrep" to use in msg output
3942 if test -z "$EGREP"; then
3943 set dummy egrep; ac_prog_name=$2
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_path_EGREP_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in egrep; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3958 # Check for GNU ac_path_EGREP and select it if it is found.
3959 # Check for GNU $ac_path_EGREP
3960 case `"$ac_path_EGREP" --version 2>&1` in
3962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3965 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 echo 'EGREP' >> "conftest.nl"
3972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_EGREP="$ac_path_EGREP"
3978 ac_path_EGREP_max=$ac_count
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987 $ac_path_EGREP_found && break 3
3997 EGREP="$ac_cv_path_EGREP"
3998 if test -z "$EGREP"; then
3999 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4000 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4001 { (exit 1); exit 1; }; }
4005 ac_cv_path_EGREP=$EGREP
4011 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4012 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4013 EGREP="$ac_cv_path_EGREP"
4016 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4018 if test "${ac_cv_header_stdc+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 ac_cv_header_stdc=yes
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ac_cv_header_stdc=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 if test $ac_cv_header_stdc = yes; then
4068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4079 $EGREP "memchr" >/dev/null 2>&1; then
4082 ac_cv_header_stdc=no
4088 if test $ac_cv_header_stdc = yes; then
4089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100 $EGREP "free" >/dev/null 2>&1; then
4103 ac_cv_header_stdc=no
4109 if test $ac_cv_header_stdc = yes; then
4110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4111 if test "$cross_compiling" = yes; then
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4122 #if ((' ' & 0x0FF) == 0x020)
4123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4126 # define ISLOWER(c) \
4127 (('a' <= (c) && (c) <= 'i') \
4128 || ('j' <= (c) && (c) <= 'r') \
4129 || ('s' <= (c) && (c) <= 'z'))
4130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4138 for (i = 0; i < 256; i++)
4139 if (XOR (islower (i), ISLOWER (i))
4140 || toupper (i) != TOUPPER (i))
4145 rm -f conftest$ac_exeext
4146 if { (ac_try="$ac_link"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_link") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4167 echo "$as_me: program exited with status $ac_status" >&5
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_cv_header_stdc=no
4174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4180 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4181 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4182 if test $ac_cv_header_stdc = yes; then
4184 cat >>confdefs.h <<\_ACEOF
4185 #define STDC_HEADERS 1
4190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4201 inttypes.h stdint.h unistd.h
4203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 $ac_includes_default
4217 #include <$ac_header>
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
4236 eval "$as_ac_Header=yes"
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 eval "$as_ac_Header=no"
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_res=`eval echo '${'$as_ac_Header'}'`
4247 { echo "$as_me:$LINENO: result: $ac_res" >&5
4248 echo "${ECHO_T}$ac_res" >&6; }
4249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4250 cat >>confdefs.h <<_ACEOF
4251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4260 if test "$ac_cv_prog_cc_stdc" != no; then
4263 U=_ ANSI2KNR=./ansi2knr
4265 # Ensure some checks needed by ansi2knr itself.
4268 for ac_header in string.h
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_res=`eval echo '${'$as_ac_Header'}'`
4278 { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4281 # Is the header compilable?
4282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4291 #include <$ac_header>
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && {
4307 test -z "$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest.$ac_objext; then
4310 ac_header_compiler=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_header_compiler=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6; }
4322 # Is the header present?
4323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <$ac_header>
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4349 ac_header_preproc=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_header_preproc=no
4357 rm -f conftest.err conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4359 echo "${ECHO_T}$ac_header_preproc" >&6; }
4361 # So? What about this header?
4362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4368 ac_header_preproc=yes
4371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 eval "$as_ac_Header=\$ac_header_preproc"
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4399 cat >>confdefs.h <<_ACEOF
4400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 if test "x$U" != "x"; then
4409 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
4410 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
4411 { (exit 1); exit 1; }; }
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4419 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4420 # On Suns, sometimes $CPP names a directory.
4421 if test -n "$CPP" && test -d "$CPP"; then
4424 if test -z "$CPP"; then
4425 if test "${ac_cv_prog_CPP+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 # Double quotes because CPP needs to be expanded
4429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4432 for ac_c_preproc_warn_flag in '' yes
4434 # Use a header file that comes with gcc, so configuring glibc
4435 # with a fresh cross-compiler works.
4436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 # <limits.h> exists even on freestanding compilers.
4438 # On the NeXT, cc -E runs the code through the compiler's parser,
4439 # not just through cpp. "Syntax error" is here to catch this case.
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 # include <limits.h>
4449 # include <assert.h>
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null && {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # Broken: fails on valid input.
4478 rm -f conftest.err conftest.$ac_ext
4480 # OK, works on sane cases. Now check whether nonexistent headers
4481 # can be detected and how.
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <ac_nonexistent.h>
4490 if { (ac_try="$ac_cpp conftest.$ac_ext"
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4498 grep -v '^ *+' conftest.er1 >conftest.err
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } >/dev/null && {
4503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4506 # Broken: success on invalid input.
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 # Passes both tests.
4517 rm -f conftest.err conftest.$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4534 { echo "$as_me:$LINENO: result: $CPP" >&5
4535 echo "${ECHO_T}$CPP" >&6; }
4537 for ac_c_preproc_warn_flag in '' yes
4539 # Use a header file that comes with gcc, so configuring glibc
4540 # with a fresh cross-compiler works.
4541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 # <limits.h> exists even on freestanding compilers.
4543 # On the NeXT, cc -E runs the code through the compiler's parser,
4544 # not just through cpp. "Syntax error" is here to catch this case.
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 # include <limits.h>
4554 # include <assert.h>
4558 if { (ac_try="$ac_cpp conftest.$ac_ext"
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null && {
4571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4572 test ! -s conftest.err
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 # Broken: fails on valid input.
4583 rm -f conftest.err conftest.$ac_ext
4585 # OK, works on sane cases. Now check whether nonexistent headers
4586 # can be detected and how.
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null && {
4608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4611 # Broken: success on invalid input.
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 # Passes both tests.
4622 rm -f conftest.err conftest.$ac_ext
4625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626 rm -f conftest.err conftest.$ac_ext
4627 if $ac_preproc_ok; then
4630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4631 See \`config.log' for more details." >&5
4632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&2;}
4634 { (exit 1); exit 1; }; }
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4644 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4645 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4646 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.make <<\_ACEOF
4652 @echo '@@@%%%=$(MAKE)=@@@%%%'
4654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4657 eval ac_cv_prog_make_${ac_make}_set=yes;;
4659 eval ac_cv_prog_make_${ac_make}_set=no;;
4663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4668 { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4670 SET_MAKE="MAKE=${MAKE-make}"
4673 # Find a good install program. We prefer a C program (faster),
4674 # so one script is as good as another. But avoid the broken or
4675 # incompatible versions:
4676 # SysV /etc/install, /usr/sbin/install
4677 # SunOS /usr/etc/install
4678 # IRIX /sbin/install
4680 # AmigaOS /C/install, which installs bootblocks on floppy discs
4681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4684 # OS/2's system install, which has a completely different semantic
4685 # ./install, which can be erroneously created by make from ./install.sh.
4686 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4688 if test -z "$INSTALL"; then
4689 if test "${ac_cv_path_install+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 # Account for people who put trailing slashes in PATH elements.
4699 ./ | .// | /cC/* | \
4700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4704 # OSF1 and SCO ODT 3.0 have their own names for install.
4705 # Don't use installbsd from OSF since it installs stuff as root
4707 for ac_prog in ginstall scoinst install; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4710 if test $ac_prog = install &&
4711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4712 # AIX install. It has an incompatible calling convention.
4714 elif test $ac_prog = install &&
4715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4716 # program-specific install script used by HP pwplus--don't use.
4719 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4732 if test "${ac_cv_path_install+set}" = set; then
4733 INSTALL=$ac_cv_path_install
4735 # As a last resort, use the slow shell script. Don't cache a
4736 # value for INSTALL within a source directory, because that will
4737 # break other packages using the cache if that directory is
4738 # removed, or if the value is a relative name.
4739 INSTALL=$ac_install_sh
4742 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4743 echo "${ECHO_T}$INSTALL" >&6; }
4745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4746 # It thinks the first close brace ends the variable substitution.
4747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4758 if test "${ac_cv_prog_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 RANLIB=$ac_cv_prog_RANLIB
4782 if test -n "$RANLIB"; then
4783 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4784 echo "${ECHO_T}$RANLIB" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4792 if test -z "$ac_cv_prog_RANLIB"; then
4793 ac_ct_RANLIB=$RANLIB
4794 # Extract the first word of "ranlib", so it can be a program name with args.
4795 set dummy ranlib; ac_word=$2
4796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4798 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 if test -n "$ac_ct_RANLIB"; then
4802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_RANLIB="ranlib"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4822 if test -n "$ac_ct_RANLIB"; then
4823 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4824 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4826 { echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6; }
4830 if test "x$ac_ct_RANLIB" = x; then
4833 case $cross_compiling:$ac_tool_warned in
4835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4836 whose name does not start with the host triplet. If you think this
4837 configuration is useful to you, please write to autoconf@gnu.org." >&5
4838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4839 whose name does not start with the host triplet. If you think this
4840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4841 ac_tool_warned=yes ;;
4843 RANLIB=$ac_ct_RANLIB
4846 RANLIB="$ac_cv_prog_RANLIB"
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4851 set dummy ${ac_tool_prefix}ar; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_prog_AR+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -n "$AR"; then
4858 ac_cv_prog_AR="$AR" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_AR="${ac_tool_prefix}ar"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 if test -n "$AR"; then
4879 { echo "$as_me:$LINENO: result: $AR" >&5
4880 echo "${ECHO_T}$AR" >&6; }
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4888 if test -z "$ac_cv_prog_AR"; then
4890 # Extract the first word of "ar", so it can be a program name with args.
4891 set dummy ar; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test -n "$ac_ct_AR"; then
4898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_ac_ct_AR="ar"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4918 if test -n "$ac_ct_AR"; then
4919 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4920 echo "${ECHO_T}$ac_ct_AR" >&6; }
4922 { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4926 if test "x$ac_ct_AR" = x; then
4929 case $cross_compiling:$ac_tool_warned in
4931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet. If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&5
4934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet. If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4937 ac_tool_warned=yes ;;
4946 { echo "$as_me:$LINENO: checking for inline" >&5
4947 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4948 if test "${ac_cv_c_inline+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 for ac_kw in inline __inline__ __inline; do
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4961 static $ac_kw foo_t static_foo () {return 0; }
4962 $ac_kw foo_t foo () {return 0; }
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_cv_c_inline=$ac_kw
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 test "$ac_cv_c_inline" != no && break
4996 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4997 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5000 case $ac_cv_c_inline in
5003 case $ac_cv_c_inline in
5005 *) ac_val=$ac_cv_c_inline;;
5007 cat >>confdefs.h <<_ACEOF
5009 #define inline $ac_val
5015 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5016 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5017 if test "${ac_cv_c_const+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5030 /* FIXME: Include the comments suggested by Paul. */
5032 /* Ultrix mips cc rejects this. */
5033 typedef int charset[2];
5035 /* SunOS 4.1.1 cc rejects this. */
5036 char const *const *pcpcc;
5038 /* NEC SVR4.0.2 mips cc rejects this. */
5039 struct point {int x, y;};
5040 static struct point const zero = {0,0};
5041 /* AIX XL C 1.02.0.0 rejects this.
5042 It does not let you subtract one const X* pointer from another in
5043 an arm of an if-expression whose if-part is not a constant
5045 const char *g = "string";
5046 pcpcc = &g + (g ? g-g : 0);
5047 /* HPUX 7.0 cc rejects these. */
5049 ppc = (char**) pcpcc;
5050 pcpcc = (char const *const *) ppc;
5051 { /* SCO 3.2v4 cc rejects this. */
5053 char const *s = 0 ? (char *) 0 : (char const *) 0;
5058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5060 const int *foo = &x[0];
5063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5064 typedef const int *iptr;
5068 { /* AIX XL C 1.02.0.0 rejects this saying
5069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5070 struct s { int j; const int *ap[3]; };
5071 struct s *b; b->j = 5;
5073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5077 return !cs[0] && !zero.x;
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5112 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5113 if test $ac_cv_c_const = no; then
5115 cat >>confdefs.h <<\_ACEOF
5121 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5122 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
5123 if test "${ac_cv_c_bigendian+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 # See if sys/param.h defines the BYTE_ORDER macro.
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #include <sys/types.h>
5134 #include <sys/param.h>
5139 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
5140 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
5148 rm -f conftest.$ac_objext
5149 if { (ac_try="$ac_compile"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 # It does; now see whether it defined to BIG_ENDIAN or not.
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <sys/types.h>
5173 #include <sys/param.h>
5178 #if BYTE_ORDER != BIG_ENDIAN
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_compile") 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_c_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest.$ac_objext; then
5203 ac_cv_c_bigendian=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_c_bigendian=no
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 # It does not; compile a test program.
5217 if test "$cross_compiling" = yes; then
5218 # try to guess the endianness by grepping values into an object file
5219 ac_cv_c_bigendian=unknown
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5235 _ascii (); _ebcdic ();
5240 rm -f conftest.$ac_objext
5241 if { (ac_try="$ac_compile"
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compile") 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && {
5254 test -z "$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5256 } && test -s conftest.$ac_objext; then
5257 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5258 ac_cv_c_bigendian=yes
5260 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5261 if test "$ac_cv_c_bigendian" = unknown; then
5262 ac_cv_c_bigendian=no
5264 # finding both strings is unlikely to happen, but who knows?
5265 ac_cv_c_bigendian=unknown
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 $ac_includes_default
5288 /* Are we little or big endian? From Harbison&Steele. */
5292 char c[sizeof (long int)];
5295 return u.c[sizeof (long int) - 1] == 1;
5301 rm -f conftest$ac_exeext
5302 if { (ac_try="$ac_link"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_link") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_c_bigendian=no
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_c_bigendian=yes
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5339 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5340 case $ac_cv_c_bigendian in
5343 cat >>confdefs.h <<\_ACEOF
5344 #define WORDS_BIGENDIAN 1
5350 { { echo "$as_me:$LINENO: error: unknown endianness
5351 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5352 echo "$as_me: error: unknown endianness
5353 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5354 { (exit 1); exit 1; }; } ;;
5358 # Check whether --enable-largefile was given.
5359 if test "${enable_largefile+set}" = set; then
5360 enableval=$enable_largefile;
5363 if test "$enable_largefile" != no; then
5365 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5366 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5367 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 ac_cv_sys_largefile_CC=no
5371 if test "$GCC" != yes; then
5374 # IRIX 6.2 and later do not support large files by default,
5375 # so use the C compiler's -n32 option if that helps.
5376 cat >conftest.$ac_ext <<_ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <sys/types.h>
5383 /* Check that off_t can represent 2**63 - 1 correctly.
5384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5385 since some C++ compilers masquerading as C compilers
5386 incorrectly reject 9223372036854775807. */
5387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5389 && LARGE_OFF_T % 2147483647 == 1)
5399 rm -f conftest.$ac_objext
5400 if { (ac_try="$ac_compile"
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_compile") 2>conftest.er1
5408 grep -v '^ *+' conftest.er1 >conftest.err
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest.$ac_objext; then
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5424 rm -f core conftest.err conftest.$ac_objext
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5443 ac_cv_sys_largefile_CC=' -n32'; break
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext
5455 rm -f conftest.$ac_ext
5458 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5459 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5460 if test "$ac_cv_sys_largefile_CC" != no; then
5461 CC=$CC$ac_cv_sys_largefile_CC
5464 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5465 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5466 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <sys/types.h>
5477 /* Check that off_t can represent 2**63 - 1 correctly.
5478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5479 since some C++ compilers masquerading as C compilers
5480 incorrectly reject 9223372036854775807. */
5481 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5483 && LARGE_OFF_T % 2147483647 == 1)
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_sys_file_offset_bits=no; break
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #define _FILE_OFFSET_BITS 64
5526 #include <sys/types.h>
5527 /* Check that off_t can represent 2**63 - 1 correctly.
5528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5529 since some C++ compilers masquerading as C compilers
5530 incorrectly reject 9223372036854775807. */
5531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5533 && LARGE_OFF_T % 2147483647 == 1)
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 ac_cv_sys_file_offset_bits=64; break
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cv_sys_file_offset_bits=unknown
5573 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5574 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5575 case $ac_cv_sys_file_offset_bits in #(
5578 cat >>confdefs.h <<_ACEOF
5579 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5584 if test $ac_cv_sys_file_offset_bits = unknown; then
5585 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5586 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5587 if test "${ac_cv_sys_large_files+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <sys/types.h>
5598 /* Check that off_t can represent 2**63 - 1 correctly.
5599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5600 since some C++ compilers masquerading as C compilers
5601 incorrectly reject 9223372036854775807. */
5602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5604 && LARGE_OFF_T % 2147483647 == 1)
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_sys_large_files=no; break
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #define _LARGE_FILES 1
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5664 rm -f conftest.$ac_objext
5665 if { (ac_try="$ac_compile"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compile") 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && {
5678 test -z "$ac_c_werror_flag" ||
5679 test ! -s conftest.err
5680 } && test -s conftest.$ac_objext; then
5681 ac_cv_sys_large_files=1; break
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 ac_cv_sys_large_files=unknown
5694 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5695 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5696 case $ac_cv_sys_large_files in #(
5699 cat >>confdefs.h <<_ACEOF
5700 #define _LARGE_FILES $ac_cv_sys_large_files
5708 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5709 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5710 if test "${ac_cv_sys_largefile_source+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <sys/types.h> /* for off_t */
5725 int (*fp) (FILE *, off_t, int) = fseeko;
5726 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (ac_try="$ac_link"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_link") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest$ac_exeext &&
5748 $as_test_x conftest$ac_exeext; then
5749 ac_cv_sys_largefile_source=no; break
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5758 conftest$ac_exeext conftest.$ac_ext
5759 cat >conftest.$ac_ext <<_ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #define _LARGEFILE_SOURCE 1
5766 #include <sys/types.h> /* for off_t */
5771 int (*fp) (FILE *, off_t, int) = fseeko;
5772 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (ac_try="$ac_link"
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_link") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest$ac_exeext &&
5794 $as_test_x conftest$ac_exeext; then
5795 ac_cv_sys_largefile_source=1; break
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5804 conftest$ac_exeext conftest.$ac_ext
5805 ac_cv_sys_largefile_source=unknown
5809 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5810 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5811 case $ac_cv_sys_largefile_source in #(
5814 cat >>confdefs.h <<_ACEOF
5815 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5821 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5822 # in glibc 2.1.3, but that breaks too many other things.
5823 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5824 if test $ac_cv_sys_largefile_source != unknown; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define HAVE_FSEEKO 1
5832 { echo "$as_me:$LINENO: checking for off_t" >&5
5833 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5834 if test "${ac_cv_type_off_t+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5844 typedef off_t ac__type_new_;
5848 if ((ac__type_new_ *) 0)
5850 if (sizeof (ac__type_new_))
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_type_off_t=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5886 # The cast to long int works around a bug in the HP C Compiler
5887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5889 # This bug is HP SR number 8606223364.
5890 { echo "$as_me:$LINENO: checking size of off_t" >&5
5891 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
5892 if test "${ac_cv_sizeof_off_t+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 if test "$cross_compiling" = yes; then
5896 # Depending upon the size, compute the lo and hi bounds.
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 typedef off_t ac__type_sizeof_;
5908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 typedef off_t ac__type_sizeof_;
5945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 ac_hi=$ac_mid; break
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_lo=`expr $ac_mid + 1`
5975 if test $ac_lo -le $ac_mid; then
5979 ac_mid=`expr 2 '*' $ac_mid + 1`
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 $ac_includes_default
5995 typedef off_t ac__type_sizeof_;
5999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 typedef off_t ac__type_sizeof_;
6036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 ac_lo=$ac_mid; break
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_hi=`expr '(' $ac_mid ')' - 1`
6066 if test $ac_mid -le $ac_hi; then
6070 ac_mid=`expr 2 '*' $ac_mid`
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 # Binary search between lo and hi bounds.
6087 while test "x$ac_lo" != "x$ac_hi"; do
6088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 typedef off_t ac__type_sizeof_;
6100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest.$ac_objext; then
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 ac_lo=`expr '(' $ac_mid ')' + 1`
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ?*) ac_cv_sizeof_off_t=$ac_lo;;
6136 '') if test "$ac_cv_type_off_t" = yes; then
6137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
6138 See \`config.log' for more details." >&5
6139 echo "$as_me: error: cannot compute sizeof (off_t)
6140 See \`config.log' for more details." >&2;}
6141 { (exit 77); exit 77; }; }
6143 ac_cv_sizeof_off_t=0
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 $ac_includes_default
6154 typedef off_t ac__type_sizeof_;
6155 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6156 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6163 FILE *f = fopen ("conftest.val", "w");
6166 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6168 long int i = longval ();
6169 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6171 fprintf (f, "%ld\n", i);
6175 unsigned long int i = ulongval ();
6176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6178 fprintf (f, "%lu\n", i);
6180 return ferror (f) || fclose (f) != 0;
6186 rm -f conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_link") 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197 { (case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_try") 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_sizeof_off_t=`cat conftest.val`
6208 echo "$as_me: program exited with status $ac_status" >&5
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6213 if test "$ac_cv_type_off_t" = yes; then
6214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
6215 See \`config.log' for more details." >&5
6216 echo "$as_me: error: cannot compute sizeof (off_t)
6217 See \`config.log' for more details." >&2;}
6218 { (exit 77); exit 77; }; }
6220 ac_cv_sizeof_off_t=0
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
6228 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
6232 cat >>confdefs.h <<_ACEOF
6233 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6238 # Extract the first word of "dbx", so it can be a program name with args.
6239 set dummy dbx; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_path_DBX+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
6270 if test -n "$DBX"; then
6271 { echo "$as_me:$LINENO: result: $DBX" >&5
6272 echo "${ECHO_T}$DBX" >&6; }
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6279 # Extract the first word of "gdb", so it can be a program name with args.
6280 set dummy gdb; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_path_GDB+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
6311 if test -n "$GDB"; then
6312 { echo "$as_me:$LINENO: result: $GDB" >&5
6313 echo "${ECHO_T}$GDB" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6320 # Extract the first word of "sdb", so it can be a program name with args.
6321 set dummy sdb; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_SDB+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
6352 if test -n "$SDB"; then
6353 { echo "$as_me:$LINENO: result: $SDB" >&5
6354 echo "${ECHO_T}$SDB" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6362 if test $GDB != no ; then
6364 elif test $DBX != no ; then
6366 elif test $SDB != no ; then
6398 for ac_header in inttypes.h
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_res=`eval echo '${'$as_ac_Header'}'`
6408 { echo "$as_me:$LINENO: result: $ac_res" >&5
6409 echo "${ECHO_T}$ac_res" >&6; }
6411 # Is the header compilable?
6412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 #include <$ac_header>
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 ac_header_compiler=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_header_compiler=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6; }
6452 # Is the header present?
6453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <$ac_header>
6463 if { (ac_try="$ac_cpp conftest.$ac_ext"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
6476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6479 ac_header_preproc=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_header_preproc=no
6487 rm -f conftest.err conftest.$ac_ext
6488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6489 echo "${ECHO_T}$ac_header_preproc" >&6; }
6491 # So? What about this header?
6492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6498 ac_header_preproc=yes
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 eval "$as_ac_Header=\$ac_header_preproc"
6523 ac_res=`eval echo '${'$as_ac_Header'}'`
6524 { echo "$as_me:$LINENO: result: $ac_res" >&5
6525 echo "${ECHO_T}$ac_res" >&6; }
6528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6538 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6539 if test "${ac_cv_type_uint32_t+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6549 typedef uint32_t ac__type_new_;
6553 if ((ac__type_new_ *) 0)
6555 if (sizeof (ac__type_new_))
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_cv_type_uint32_t=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_cv_type_uint32_t=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6589 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6590 if test $ac_cv_type_uint32_t = yes; then
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_C99_INTTYPES 1
6598 { echo "$as_me:$LINENO: checking for short" >&5
6599 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
6600 if test "${ac_cv_type_short+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 $ac_includes_default
6610 typedef short ac__type_new_;
6614 if ((ac__type_new_ *) 0)
6616 if (sizeof (ac__type_new_))
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6631 grep -v '^ *+' conftest.er1 >conftest.err
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.$ac_objext; then
6639 ac_cv_type_short=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6650 echo "${ECHO_T}$ac_cv_type_short" >&6; }
6652 # The cast to long int works around a bug in the HP C Compiler
6653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6655 # This bug is HP SR number 8606223364.
6656 { echo "$as_me:$LINENO: checking size of short" >&5
6657 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
6658 if test "${ac_cv_sizeof_short+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 if test "$cross_compiling" = yes; then
6662 # Depending upon the size, compute the lo and hi bounds.
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 $ac_includes_default
6670 typedef short ac__type_sizeof_;
6674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 $ac_includes_default
6707 typedef short ac__type_sizeof_;
6711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6718 rm -f conftest.$ac_objext
6719 if { (ac_try="$ac_compile"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_compile") 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest.$ac_objext; then
6735 ac_hi=$ac_mid; break
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_lo=`expr $ac_mid + 1`
6741 if test $ac_lo -le $ac_mid; then
6745 ac_mid=`expr 2 '*' $ac_mid + 1`
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 $ac_includes_default
6761 typedef short ac__type_sizeof_;
6765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 $ac_includes_default
6798 typedef short ac__type_sizeof_;
6802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_lo=$ac_mid; break
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_hi=`expr '(' $ac_mid ')' - 1`
6832 if test $ac_mid -le $ac_hi; then
6836 ac_mid=`expr 2 '*' $ac_mid`
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 # Binary search between lo and hi bounds.
6853 while test "x$ac_lo" != "x$ac_hi"; do
6854 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 typedef short ac__type_sizeof_;
6866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6873 rm -f conftest.$ac_objext
6874 if { (ac_try="$ac_compile"
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880 (eval "$ac_compile") 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest.$ac_objext; then
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 ac_lo=`expr '(' $ac_mid ')' + 1`
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 ?*) ac_cv_sizeof_short=$ac_lo;;
6902 '') if test "$ac_cv_type_short" = yes; then
6903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6904 See \`config.log' for more details." >&5
6905 echo "$as_me: error: cannot compute sizeof (short)
6906 See \`config.log' for more details." >&2;}
6907 { (exit 77); exit 77; }; }
6909 ac_cv_sizeof_short=0
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6920 typedef short ac__type_sizeof_;
6921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6929 FILE *f = fopen ("conftest.val", "w");
6932 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6934 long int i = longval ();
6935 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6937 fprintf (f, "%ld\n", i);
6941 unsigned long int i = ulongval ();
6942 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6944 fprintf (f, "%lu\n", i);
6946 return ferror (f) || fclose (f) != 0;
6952 rm -f conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_link") 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6963 { (case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_try") 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_sizeof_short=`cat conftest.val`
6974 echo "$as_me: program exited with status $ac_status" >&5
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6979 if test "$ac_cv_type_short" = yes; then
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (short)
6983 See \`config.log' for more details." >&2;}
6984 { (exit 77); exit 77; }; }
6986 ac_cv_sizeof_short=0
6989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6994 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6998 cat >>confdefs.h <<_ACEOF
6999 #define SIZEOF_SHORT $ac_cv_sizeof_short
7003 { echo "$as_me:$LINENO: checking for int" >&5
7004 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7005 if test "${ac_cv_type_int+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7015 typedef int ac__type_new_;
7019 if ((ac__type_new_ *) 0)
7021 if (sizeof (ac__type_new_))
7027 rm -f conftest.$ac_objext
7028 if { (ac_try="$ac_compile"
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest.$ac_objext; then
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7055 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7057 # The cast to long int works around a bug in the HP C Compiler
7058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7060 # This bug is HP SR number 8606223364.
7061 { echo "$as_me:$LINENO: checking size of int" >&5
7062 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7063 if test "${ac_cv_sizeof_int+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 if test "$cross_compiling" = yes; then
7067 # Depending upon the size, compute the lo and hi bounds.
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 typedef int ac__type_sizeof_;
7079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7095 grep -v '^ *+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7112 typedef int ac__type_sizeof_;
7116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_hi=$ac_mid; break
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_lo=`expr $ac_mid + 1`
7146 if test $ac_lo -le $ac_mid; then
7150 ac_mid=`expr 2 '*' $ac_mid + 1`
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 typedef int ac__type_sizeof_;
7170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7177 rm -f conftest.$ac_objext
7178 if { (ac_try="$ac_compile"
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 $ac_includes_default
7203 typedef int ac__type_sizeof_;
7207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7214 rm -f conftest.$ac_objext
7215 if { (ac_try="$ac_compile"
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_compile") 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest.$ac_objext; then
7231 ac_lo=$ac_mid; break
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 ac_hi=`expr '(' $ac_mid ')' - 1`
7237 if test $ac_mid -le $ac_hi; then
7241 ac_mid=`expr 2 '*' $ac_mid`
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 # Binary search between lo and hi bounds.
7258 while test "x$ac_lo" != "x$ac_hi"; do
7259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 typedef int ac__type_sizeof_;
7271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_lo=`expr '(' $ac_mid ')' + 1`
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 ?*) ac_cv_sizeof_int=$ac_lo;;
7307 '') if test "$ac_cv_type_int" = yes; then
7308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7309 See \`config.log' for more details." >&5
7310 echo "$as_me: error: cannot compute sizeof (int)
7311 See \`config.log' for more details." >&2;}
7312 { (exit 77); exit 77; }; }
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 $ac_includes_default
7325 typedef int ac__type_sizeof_;
7326 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7327 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7334 FILE *f = fopen ("conftest.val", "w");
7337 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7339 long int i = longval ();
7340 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7342 fprintf (f, "%ld\n", i);
7346 unsigned long int i = ulongval ();
7347 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7349 fprintf (f, "%lu\n", i);
7351 return ferror (f) || fclose (f) != 0;
7357 rm -f conftest$ac_exeext
7358 if { (ac_try="$ac_link"
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_link") 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7368 { (case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_try") 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_cv_sizeof_int=`cat conftest.val`
7379 echo "$as_me: program exited with status $ac_status" >&5
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7384 if test "$ac_cv_type_int" = yes; then
7385 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7386 See \`config.log' for more details." >&5
7387 echo "$as_me: error: cannot compute sizeof (int)
7388 See \`config.log' for more details." >&2;}
7389 { (exit 77); exit 77; }; }
7394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7398 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7399 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7403 cat >>confdefs.h <<_ACEOF
7404 #define SIZEOF_INT $ac_cv_sizeof_int
7408 { echo "$as_me:$LINENO: checking for long" >&5
7409 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7410 if test "${ac_cv_type_long+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 typedef long ac__type_new_;
7424 if ((ac__type_new_ *) 0)
7426 if (sizeof (ac__type_new_))
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7460 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7462 # The cast to long int works around a bug in the HP C Compiler
7463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7465 # This bug is HP SR number 8606223364.
7466 { echo "$as_me:$LINENO: checking size of long" >&5
7467 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7468 if test "${ac_cv_sizeof_long+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 if test "$cross_compiling" = yes; then
7472 # Depending upon the size, compute the lo and hi bounds.
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 $ac_includes_default
7480 typedef long ac__type_sizeof_;
7484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7510 cat >conftest.$ac_ext <<_ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 typedef long ac__type_sizeof_;
7521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 ac_hi=$ac_mid; break
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_lo=`expr $ac_mid + 1`
7551 if test $ac_lo -le $ac_mid; then
7555 ac_mid=`expr 2 '*' $ac_mid + 1`
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 typedef long ac__type_sizeof_;
7575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7591 grep -v '^ *+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 typedef long ac__type_sizeof_;
7612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 ac_lo=$ac_mid; break
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 ac_hi=`expr '(' $ac_mid ')' - 1`
7642 if test $ac_mid -le $ac_hi; then
7646 ac_mid=`expr 2 '*' $ac_mid`
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 # Binary search between lo and hi bounds.
7663 while test "x$ac_lo" != "x$ac_hi"; do
7664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 typedef long ac__type_sizeof_;
7676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7683 rm -f conftest.$ac_objext
7684 if { (ac_try="$ac_compile"
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_compile") 2>conftest.er1
7692 grep -v '^ *+' conftest.er1 >conftest.err
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && {
7697 test -z "$ac_c_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest.$ac_objext; then
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 ac_lo=`expr '(' $ac_mid ')' + 1`
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 ?*) ac_cv_sizeof_long=$ac_lo;;
7712 '') if test "$ac_cv_type_long" = yes; then
7713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7714 See \`config.log' for more details." >&5
7715 echo "$as_me: error: cannot compute sizeof (long)
7716 See \`config.log' for more details." >&2;}
7717 { (exit 77); exit 77; }; }
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 typedef long ac__type_sizeof_;
7731 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7732 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7739 FILE *f = fopen ("conftest.val", "w");
7742 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7744 long int i = longval ();
7745 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7747 fprintf (f, "%ld\n", i);
7751 unsigned long int i = ulongval ();
7752 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7754 fprintf (f, "%lu\n", i);
7756 return ferror (f) || fclose (f) != 0;
7762 rm -f conftest$ac_exeext
7763 if { (ac_try="$ac_link"
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_link") 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_try") 2>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_sizeof_long=`cat conftest.val`
7784 echo "$as_me: program exited with status $ac_status" >&5
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7789 if test "$ac_cv_type_long" = yes; then
7790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7791 See \`config.log' for more details." >&5
7792 echo "$as_me: error: cannot compute sizeof (long)
7793 See \`config.log' for more details." >&2;}
7794 { (exit 77); exit 77; }; }
7799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7803 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7804 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7808 cat >>confdefs.h <<_ACEOF
7809 #define SIZEOF_LONG $ac_cv_sizeof_long
7813 { echo "$as_me:$LINENO: checking for long long" >&5
7814 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7815 if test "${ac_cv_type_long_long+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 typedef long long ac__type_new_;
7829 if ((ac__type_new_ *) 0)
7831 if (sizeof (ac__type_new_))
7837 rm -f conftest.$ac_objext
7838 if { (ac_try="$ac_compile"
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_compile") 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest.$ac_objext; then
7854 ac_cv_type_long_long=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 ac_cv_type_long_long=no
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7865 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7867 # The cast to long int works around a bug in the HP C Compiler
7868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7870 # This bug is HP SR number 8606223364.
7871 { echo "$as_me:$LINENO: checking size of long long" >&5
7872 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7873 if test "${ac_cv_sizeof_long_long+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 if test "$cross_compiling" = yes; then
7877 # Depending upon the size, compute the lo and hi bounds.
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 $ac_includes_default
7885 typedef long long ac__type_sizeof_;
7889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 typedef long long ac__type_sizeof_;
7926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 ac_hi=$ac_mid; break
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 ac_lo=`expr $ac_mid + 1`
7956 if test $ac_lo -le $ac_mid; then
7960 ac_mid=`expr 2 '*' $ac_mid + 1`
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 cat >conftest.$ac_ext <<_ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 typedef long long ac__type_sizeof_;
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 typedef long long ac__type_sizeof_;
8017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_lo=$ac_mid; break
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_hi=`expr '(' $ac_mid ')' - 1`
8047 if test $ac_mid -le $ac_hi; then
8051 ac_mid=`expr 2 '*' $ac_mid`
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 # Binary search between lo and hi bounds.
8068 while test "x$ac_lo" != "x$ac_hi"; do
8069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8070 cat >conftest.$ac_ext <<_ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 $ac_includes_default
8077 typedef long long ac__type_sizeof_;
8081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_lo=`expr '(' $ac_mid ')' + 1`
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8117 '') if test "$ac_cv_type_long_long" = yes; then
8118 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8119 See \`config.log' for more details." >&5
8120 echo "$as_me: error: cannot compute sizeof (long long)
8121 See \`config.log' for more details." >&2;}
8122 { (exit 77); exit 77; }; }
8124 ac_cv_sizeof_long_long=0
8128 cat >conftest.$ac_ext <<_ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 $ac_includes_default
8135 typedef long long ac__type_sizeof_;
8136 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8137 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8144 FILE *f = fopen ("conftest.val", "w");
8147 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8149 long int i = longval ();
8150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8152 fprintf (f, "%ld\n", i);
8156 unsigned long int i = ulongval ();
8157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8159 fprintf (f, "%lu\n", i);
8161 return ferror (f) || fclose (f) != 0;
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_sizeof_long_long=`cat conftest.val`
8189 echo "$as_me: program exited with status $ac_status" >&5
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8194 if test "$ac_cv_type_long_long" = yes; then
8195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8196 See \`config.log' for more details." >&5
8197 echo "$as_me: error: cannot compute sizeof (long long)
8198 See \`config.log' for more details." >&2;}
8199 { (exit 77); exit 77; }; }
8201 ac_cv_sizeof_long_long=0
8204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8208 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8209 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8213 cat >>confdefs.h <<_ACEOF
8214 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8219 ac_aux_path_sendmail=/usr/sbin:/usr/lib
8220 # Extract the first word of "sendmail", so it can be a program name with args.
8221 set dummy sendmail; ac_word=$2
8222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224 if test "${ac_cv_path_SENDMAIL+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 as_dummy="$PATH:$ac_aux_path_sendmail"
8234 for as_dir in $as_dummy
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
8252 SENDMAIL=$ac_cv_path_SENDMAIL
8253 if test -n "$SENDMAIL"; then
8254 { echo "$as_me:$LINENO: result: $SENDMAIL" >&5
8255 echo "${ECHO_T}$SENDMAIL" >&6; }
8257 { echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6; }
8263 cat >>confdefs.h <<_ACEOF
8264 #define SENDMAIL "$ac_cv_path_SENDMAIL"
8270 { echo "$as_me:$LINENO: checking whether to build with GPGME support" >&5
8271 echo $ECHO_N "checking whether to build with GPGME support... $ECHO_C" >&6; }
8272 # Check whether --enable-gpgme was given.
8273 if test "${enable_gpgme+set}" = set; then
8274 enableval=$enable_gpgme; if test x$enableval = xyes; then
8281 if test x"$enable_gpgme" = xyes; then
8282 { echo "$as_me:$LINENO: result: yes" >&5
8283 echo "${ECHO_T}yes" >&6; }
8285 # Check whether --with-gpgme-prefix was given.
8286 if test "${with_gpgme_prefix+set}" = set; then
8287 withval=$with_gpgme_prefix; gpgme_config_prefix="$withval"
8289 gpgme_config_prefix=""
8292 if test "x$gpgme_config_prefix" != x ; then
8293 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
8295 # Extract the first word of "gpgme-config", so it can be a program name with args.
8296 set dummy gpgme-config; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 case $GPGME_CONFIG in
8304 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
8326 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
8327 if test -n "$GPGME_CONFIG"; then
8328 { echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
8329 echo "${ECHO_T}$GPGME_CONFIG" >&6; }
8331 { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8337 if test "$GPGME_CONFIG" != "no" ; then
8338 gpgme_version=`$GPGME_CONFIG --version`
8340 gpgme_version_major=`echo $gpgme_version | \
8341 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8342 gpgme_version_minor=`echo $gpgme_version | \
8343 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8344 gpgme_version_micro=`echo $gpgme_version | \
8345 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8348 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8349 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8350 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8353 min_gpgme_version="$tmp"
8356 { echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5
8357 echo $ECHO_N "checking for GPGME - version >= $min_gpgme_version... $ECHO_C" >&6; }
8359 if test "$GPGME_CONFIG" != "no" ; then
8360 req_major=`echo $min_gpgme_version | \
8361 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8362 req_minor=`echo $min_gpgme_version | \
8363 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8364 req_micro=`echo $min_gpgme_version | \
8365 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8366 if test "$gpgme_version_major" -gt "$req_major"; then
8369 if test "$gpgme_version_major" -eq "$req_major"; then
8370 if test "$gpgme_version_minor" -gt "$req_minor"; then
8373 if test "$gpgme_version_minor" -eq "$req_minor"; then
8374 if test "$gpgme_version_micro" -ge "$req_micro"; then
8382 if test $ok = yes; then
8383 # If we have a recent GPGME, we should also check that the
8384 # API is compatible.
8385 if test "$req_gpgme_api" -gt 0 ; then
8386 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
8387 if test "$tmp" -gt 0 ; then
8388 if test "$req_gpgme_api" -ne "$tmp" ; then
8394 if test $ok = yes; then
8395 GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
8396 GPGME_LIBS=`$GPGME_CONFIG --libs`
8397 { echo "$as_me:$LINENO: result: yes" >&5
8398 echo "${ECHO_T}yes" >&6; }
8400 cat >>confdefs.h <<\_ACEOF
8401 #define CRYPT_BACKEND_GPGME 1
8407 { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8414 if test x"$gpgme_found" = xno; then
8415 { { echo "$as_me:$LINENO: error: *** GPGME not found ***" >&5
8416 echo "$as_me: error: *** GPGME not found ***" >&2;}
8417 { (exit 1); exit 1; }; }
8420 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8421 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8422 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8425 min_gpgme_version="$tmp"
8428 { echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5
8429 echo $ECHO_N "checking for GPGME - version >= $min_gpgme_version... $ECHO_C" >&6; }
8431 if test "$GPGME_CONFIG" != "no" ; then
8432 req_major=`echo $min_gpgme_version | \
8433 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8434 req_minor=`echo $min_gpgme_version | \
8435 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8436 req_micro=`echo $min_gpgme_version | \
8437 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8438 if test "$gpgme_version_major" -gt "$req_major"; then
8441 if test "$gpgme_version_major" -eq "$req_major"; then
8442 if test "$gpgme_version_minor" -gt "$req_minor"; then
8445 if test "$gpgme_version_minor" -eq "$req_minor"; then
8446 if test "$gpgme_version_micro" -ge "$req_micro"; then
8454 if test $ok = yes; then
8455 # If we have a recent GPGME, we should also check that the
8456 # API is compatible.
8457 if test "$req_gpgme_api" -gt 0 ; then
8458 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
8459 if test "$tmp" -gt 0 ; then
8460 if test "$req_gpgme_api" -ne "$tmp" ; then
8466 if test $ok = yes; then
8467 GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
8468 GPGME_LIBS=`$GPGME_CONFIG --libs`
8469 { echo "$as_me:$LINENO: result: yes" >&5
8470 echo "${ECHO_T}yes" >&6; }
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_GPGME_PKA_TRUST 1
8479 { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8486 #needed to get GPGME_LIBS and al correctly
8488 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8489 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8490 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8493 min_gpgme_version="$tmp"
8496 { echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5
8497 echo $ECHO_N "checking for GPGME - version >= $min_gpgme_version... $ECHO_C" >&6; }
8499 if test "$GPGME_CONFIG" != "no" ; then
8500 req_major=`echo $min_gpgme_version | \
8501 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8502 req_minor=`echo $min_gpgme_version | \
8503 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8504 req_micro=`echo $min_gpgme_version | \
8505 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8506 if test "$gpgme_version_major" -gt "$req_major"; then
8509 if test "$gpgme_version_major" -eq "$req_major"; then
8510 if test "$gpgme_version_minor" -gt "$req_minor"; then
8513 if test "$gpgme_version_minor" -eq "$req_minor"; then
8514 if test "$gpgme_version_micro" -ge "$req_micro"; then
8522 if test $ok = yes; then
8523 # If we have a recent GPGME, we should also check that the
8524 # API is compatible.
8525 if test "$req_gpgme_api" -gt 0 ; then
8526 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
8527 if test "$tmp" -gt 0 ; then
8528 if test "$req_gpgme_api" -ne "$tmp" ; then
8534 if test $ok = yes; then
8535 GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
8536 GPGME_LIBS=`$GPGME_CONFIG --libs`
8537 { echo "$as_me:$LINENO: result: yes" >&5
8538 echo "${ECHO_T}yes" >&6; }
8540 cat >>confdefs.h <<\_ACEOF
8541 #define CRYPT_BACKEND_GPGME 1
8547 { echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6; }
8554 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
8557 { echo "$as_me:$LINENO: result: no" >&5
8558 echo "${ECHO_T}no" >&6; }
8561 # Check whether --enable-pgp was given.
8562 if test "${enable_pgp+set}" = set; then
8563 enableval=$enable_pgp; if test x$enableval = xno ; then
8570 if test x$have_pgp != xno ; then
8572 cat >>confdefs.h <<\_ACEOF
8573 #define CRYPT_BACKEND_CLASSIC_PGP 1
8576 PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)"
8577 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
8580 # Check whether --enable-smime was given.
8581 if test "${enable_smime+set}" = set; then
8582 enableval=$enable_smime; if test x$enableval = xno ; then
8589 if test x$have_smime != xno ; then
8591 cat >>confdefs.h <<\_ACEOF
8592 #define CRYPT_BACKEND_CLASSIC_SMIME 1
8595 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
8596 SMIMEAUX_TARGET="smime_keys"
8600 # Check whether --with-mixmaster was given.
8601 if test "${with_mixmaster+set}" = set; then
8602 withval=$with_mixmaster; if test "$withval" != no
8604 if test -x "$withval"
8606 MIXMASTER="$withval"
8608 MIXMASTER="mixmaster"
8610 OPS="$OPS \$(srcdir)/OPS.MIX"
8611 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
8613 cat >>confdefs.h <<_ACEOF
8614 #define MIXMASTER "$MIXMASTER"
8621 # We now require all OPS
8622 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
8628 # Extract the first word of "ispell", so it can be a program name with args.
8629 set dummy ispell; ac_word=$2
8630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8632 if test "${ac_cv_path_ISPELL+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
8648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
8659 ISPELL=$ac_cv_path_ISPELL
8660 if test -n "$ISPELL"; then
8661 { echo "$as_me:$LINENO: result: $ISPELL" >&5
8662 echo "${ECHO_T}$ISPELL" >&6; }
8664 { echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6; }
8669 if test $ISPELL != no; then
8671 cat >>confdefs.h <<_ACEOF
8672 #define ISPELL "$ISPELL"
8678 # Check whether --with-slang was given.
8679 if test "${with_slang+set}" = set; then
8680 withval=$with_slang; { echo "$as_me:$LINENO: checking if this is a BSD system" >&5
8681 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6; }
8682 if test "${mutt_cv_bsdish+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 if test "$cross_compiling" = yes; then
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <sys/param.h>
8706 rm -f conftest$ac_exeext
8707 if { (ac_try="$ac_link"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_link") 2>&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8728 echo "$as_me: program exited with status $ac_status" >&5
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8740 { echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
8741 echo "${ECHO_T}$mutt_cv_bsdish" >&6; }
8743 { echo "$as_me:$LINENO: checking for S-Lang" >&5
8744 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6; }
8745 if test $withval = yes; then
8746 if test -d $srcdir/../slang; then
8747 mutt_cv_slang=$srcdir/../slang/src
8748 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
8749 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
8751 if test -d $mutt_cv_prefix/include/slang; then
8752 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
8753 elif test -d /usr/include/slang; then
8754 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
8759 if test -f $withval/src/slang.h; then
8760 mutt_cv_slang=$withval/src
8761 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
8762 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
8764 mutt_cv_slang=$withval
8765 if test -d $withval/include/slang; then
8766 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
8767 elif test -d $withval/include; then
8768 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8770 LDFLAGS="$LDFLAGS -L${withval}/lib"
8773 { echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
8774 echo "${ECHO_T}$mutt_cv_slang" >&6; }
8775 if test $mutt_cv_bsdish = yes; then
8777 { echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
8778 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6; }
8779 if test "${ac_cv_lib_termlib_main+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-ltermlib $LIBS"
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_link") 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest$ac_exeext &&
8817 $as_test_x conftest$ac_exeext; then
8818 ac_cv_lib_termlib_main=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_lib_termlib_main=no
8826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8827 conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_lib_save_LIBS
8830 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
8831 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6; }
8832 if test $ac_cv_lib_termlib_main = yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_LIBTERMLIB 1
8837 LIBS="-ltermlib $LIBS"
8843 cat >>confdefs.h <<\_ACEOF
8844 #define USE_SLANG_CURSES 1
8848 cat >>confdefs.h <<\_ACEOF
8849 #define HAVE_COLOR 1
8852 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8855 { echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
8856 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6; }
8857 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-lslang -lm $LIBS"
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8875 char SLtt_get_terminfo ();
8879 return SLtt_get_terminfo ();
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (ac_try="$ac_link"
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext &&
8901 $as_test_x conftest$ac_exeext; then
8902 ac_cv_lib_slang_SLtt_get_terminfo=yes
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_lib_slang_SLtt_get_terminfo=no
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8914 { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
8915 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6; }
8916 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
8917 MUTTLIBS="$MUTTLIBS -lslang -lm"
8919 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
8920 echo "$as_me: error: unable to compile. check config.log" >&2;}
8921 { (exit 1); exit 1; }; }
8929 # Check whether --with-curses was given.
8930 if test "${with_curses+set}" = set; then
8931 withval=$with_curses; if test $withval != yes; then
8932 mutt_cv_curses=$withval
8934 if test x$mutt_cv_curses != x/usr; then
8935 LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib"
8936 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
8941 { echo "$as_me:$LINENO: checking for initscr" >&5
8942 echo $ECHO_N "checking for initscr... $ECHO_C" >&6; }
8943 if test "${ac_cv_func_initscr+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
8953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8954 #define initscr innocuous_initscr
8956 /* System header to define __stub macros and hopefully few prototypes,
8957 which can conflict with char initscr (); below.
8958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8959 <limits.h> exists even on freestanding compilers. */
8962 # include <limits.h>
8964 # include <assert.h>
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined __stub_initscr || defined __stub___initscr
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (ac_try="$ac_link"
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_link") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest$ac_exeext &&
9008 $as_test_x conftest$ac_exeext; then
9009 ac_cv_func_initscr=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_cv_func_initscr=no
9017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9018 conftest$ac_exeext conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
9021 echo "${ECHO_T}$ac_cv_func_initscr" >&6; }
9022 if test $ac_cv_func_initscr = yes; then
9026 cf_ncurses="ncurses"
9027 for lib in ncurses ncursesw
9029 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
9030 { echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
9031 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_check_lib_save_LIBS=$LIBS
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9044 /* Override any GCC internal prototype to avoid an error.
9045 Use char because int might match the return type of a GCC
9046 builtin and then its argument prototype would still apply. */
9054 return waddnwstr ();
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>conftest.er1
9068 grep -v '^ *+' conftest.er1 >conftest.err
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && {
9073 test -z "$ac_c_werror_flag" ||
9074 test ! -s conftest.err
9075 } && test -s conftest$ac_exeext &&
9076 $as_test_x conftest$ac_exeext; then
9077 eval "$as_ac_Lib=yes"
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 eval "$as_ac_Lib=no"
9085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9086 conftest$ac_exeext conftest.$ac_ext
9087 LIBS=$ac_check_lib_save_LIBS
9089 ac_res=`eval echo '${'$as_ac_Lib'}'`
9090 { echo "$as_me:$LINENO: result: $ac_res" >&5
9091 echo "${ECHO_T}$ac_res" >&6; }
9092 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9093 cf_ncurses="$lib"; break
9097 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
9098 { echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
9099 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6; }
9100 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-l$cf_ncurses $LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (ac_try="$ac_link"
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_link") 2>conftest.er1
9136 grep -v '^ *+' conftest.er1 >conftest.err
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest$ac_exeext &&
9144 $as_test_x conftest$ac_exeext; then
9145 eval "$as_ac_Lib=yes"
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 eval "$as_ac_Lib=no"
9153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9157 ac_res=`eval echo '${'$as_ac_Lib'}'`
9158 { echo "$as_me:$LINENO: result: $ac_res" >&5
9159 echo "${ECHO_T}$ac_res" >&6; }
9160 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9161 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
9163 if test "$cf_ncurses" = ncursesw; then
9165 for ac_header in ncursesw/ncurses.h
9167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_res=`eval echo '${'$as_ac_Header'}'`
9175 { echo "$as_me:$LINENO: result: $ac_res" >&5
9176 echo "${ECHO_T}$ac_res" >&6; }
9178 # Is the header compilable?
9179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9190 rm -f conftest.$ac_objext
9191 if { (ac_try="$ac_compile"
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_compile") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1 >conftest.err
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest.$ac_objext; then
9207 ac_header_compiler=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_header_compiler=no
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9217 echo "${ECHO_T}$ac_header_compiler" >&6; }
9219 # Is the header present?
9220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <$ac_header>
9230 if { (ac_try="$ac_cpp conftest.$ac_ext"
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null && {
9243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9246 ac_header_preproc=yes
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_header_preproc=no
9254 rm -f conftest.err conftest.$ac_ext
9255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9256 echo "${ECHO_T}$ac_header_preproc" >&6; }
9258 # So? What about this header?
9259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9265 ac_header_preproc=yes
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 eval "$as_ac_Header=\$ac_header_preproc"
9290 ac_res=`eval echo '${'$as_ac_Header'}'`
9291 { echo "$as_me:$LINENO: result: $ac_res" >&5
9292 echo "${ECHO_T}$ac_res" >&6; }
9295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9299 cf_cv_ncurses_header="ncursesw/ncurses.h"
9306 for ac_header in ncurses/ncurses.h
9308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 ac_res=`eval echo '${'$as_ac_Header'}'`
9316 { echo "$as_me:$LINENO: result: $ac_res" >&5
9317 echo "${ECHO_T}$ac_res" >&6; }
9319 # Is the header compilable?
9320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 #include <$ac_header>
9331 rm -f conftest.$ac_objext
9332 if { (ac_try="$ac_compile"
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.$ac_objext; then
9348 ac_header_compiler=yes
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_header_compiler=no
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9358 echo "${ECHO_T}$ac_header_compiler" >&6; }
9360 # Is the header present?
9361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <$ac_header>
9371 if { (ac_try="$ac_cpp conftest.$ac_ext"
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev/null && {
9384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9387 ac_header_preproc=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_header_preproc=no
9395 rm -f conftest.err conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397 echo "${ECHO_T}$ac_header_preproc" >&6; }
9399 # So? What about this header?
9400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 eval "$as_ac_Header=\$ac_header_preproc"
9431 ac_res=`eval echo '${'$as_ac_Header'}'`
9432 { echo "$as_me:$LINENO: result: $ac_res" >&5
9433 echo "${ECHO_T}$ac_res" >&6; }
9436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9437 cat >>confdefs.h <<_ACEOF
9438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9440 cf_cv_ncurses_header="ncurses/ncurses.h"
9443 for ac_header in ncurses.h
9445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9456 # Is the header compilable?
9457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 #include <$ac_header>
9468 rm -f conftest.$ac_objext
9469 if { (ac_try="$ac_compile"
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_compiler=no
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 echo "${ECHO_T}$ac_header_compiler" >&6; }
9497 # Is the header present?
9498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <$ac_header>
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } >/dev/null && {
9521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9524 ac_header_preproc=yes
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_header_preproc=no
9532 rm -f conftest.err conftest.$ac_ext
9533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 echo "${ECHO_T}$ac_header_preproc" >&6; }
9536 # So? What about this header?
9537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9543 ac_header_preproc=yes
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 eval "$as_ac_Header=\$ac_header_preproc"
9568 ac_res=`eval echo '${'$as_ac_Header'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9577 cf_cv_ncurses_header="ncurses.h"
9589 { echo "$as_me:$LINENO: checking for initscr" >&5
9590 echo $ECHO_N "checking for initscr... $ECHO_C" >&6; }
9591 if test "${ac_cv_func_initscr+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602 #define initscr innocuous_initscr
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char initscr (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9610 # include <limits.h>
9612 # include <assert.h>
9617 /* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
9624 /* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
9627 #if defined __stub_initscr || defined __stub___initscr
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (ac_try="$ac_link"
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_link") 2>conftest.er1
9648 grep -v '^ *+' conftest.er1 >conftest.err
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && {
9653 test -z "$ac_c_werror_flag" ||
9654 test ! -s conftest.err
9655 } && test -s conftest$ac_exeext &&
9656 $as_test_x conftest$ac_exeext; then
9657 ac_cv_func_initscr=yes
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 ac_cv_func_initscr=no
9665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666 conftest$ac_exeext conftest.$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
9669 echo "${ECHO_T}$ac_cv_func_initscr" >&6; }
9670 if test $ac_cv_func_initscr = yes; then
9674 case $host_os in #(vi
9676 { echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
9677 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6; }
9678 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 ac_check_lib_save_LIBS=$LIBS
9682 LIBS="-lmytinfo $LIBS"
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_lib_mytinfo_tgoto=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_lib_mytinfo_tgoto=no
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LIBS=$ac_check_lib_save_LIBS
9735 { echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
9736 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6; }
9737 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9738 LIBS="-lmytinfo $LIBS"
9743 { echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
9744 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6; }
9745 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-lcur_colr $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest$ac_exeext &&
9789 $as_test_x conftest$ac_exeext; then
9790 ac_cv_lib_cur_colr_initscr=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_cv_lib_cur_colr_initscr=no
9798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9802 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
9803 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6; }
9804 if test $ac_cv_lib_cur_colr_initscr = yes; then
9806 LIBS="-lcur_colr $LIBS"
9807 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
9808 ac_cv_func_initscr=yes
9812 { echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
9813 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6; }
9814 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_check_lib_save_LIBS=$LIBS
9818 LIBS="-lHcurses $LIBS"
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest$ac_exeext &&
9858 $as_test_x conftest$ac_exeext; then
9859 ac_cv_lib_Hcurses_initscr=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_cv_lib_Hcurses_initscr=no
9867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9871 { echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
9872 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6; }
9873 if test $ac_cv_lib_Hcurses_initscr = yes; then
9875 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
9876 LIBS="-lHcurses $LIBS"
9877 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
9878 ac_cv_func_initscr=yes
9885 linux*) # Suse Linux does not follow /usr/lib convention
9890 if test ".$With5lib" != ".no" ; then
9891 if test -d /usr/5lib ; then
9893 CPPFLAGS="$CPPFLAGS -I/usr/5include"
9894 LIBS="$LIBS -L/usr/5lib"
9898 if test ".$ac_cv_func_initscr" != .yes ; then
9899 cf_save_LIBS="$LIBS"
9903 # Check for library containing tgoto. Do this before curses library
9904 # because it may be needed to link the test-case for initscr.
9905 { echo "$as_me:$LINENO: checking for tgoto" >&5
9906 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6; }
9907 if test "${ac_cv_func_tgoto+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define tgoto innocuous_tgoto
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char tgoto (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9926 # include <limits.h>
9928 # include <assert.h>
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined __stub_tgoto || defined __stub___tgoto
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 ac_cv_func_tgoto=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9984 { echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
9985 echo "${ECHO_T}$ac_cv_func_tgoto" >&6; }
9986 if test $ac_cv_func_tgoto = yes; then
9987 cf_term_lib=predefined
9990 for cf_term_lib in termcap termlib unknown
9992 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
9993 { echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
9994 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6; }
9995 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-l$cf_term_lib $LIBS"
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest$ac_exeext &&
10039 $as_test_x conftest$ac_exeext; then
10040 eval "$as_ac_Lib=yes"
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 eval "$as_ac_Lib=no"
10048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049 conftest$ac_exeext conftest.$ac_ext
10050 LIBS=$ac_check_lib_save_LIBS
10052 ac_res=`eval echo '${'$as_ac_Lib'}'`
10053 { echo "$as_me:$LINENO: result: $ac_res" >&5
10054 echo "${ECHO_T}$ac_res" >&6; }
10055 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10064 # Check for library containing initscr
10065 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
10066 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
10068 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
10069 { echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
10070 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6; }
10071 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-l$cf_curs_lib $LIBS"
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest$ac_exeext &&
10115 $as_test_x conftest$ac_exeext; then
10116 eval "$as_ac_Lib=yes"
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 eval "$as_ac_Lib=no"
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_lib_save_LIBS
10128 ac_res=`eval echo '${'$as_ac_Lib'}'`
10129 { echo "$as_me:$LINENO: result: $ac_res" >&5
10130 echo "${ECHO_T}$ac_res" >&6; }
10131 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10136 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
10137 echo "$as_me: error: no curses library found" >&2;}
10138 { (exit 1); exit 1; }; }
10140 LIBS="-l$cf_curs_lib $cf_save_LIBS"
10141 if test "$cf_term_lib" = unknown ; then
10142 { echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
10143 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6; }
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <${cf_cv_ncurses_header-curses.h}>
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext &&
10176 $as_test_x conftest$ac_exeext; then
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result: $cf_result" >&5
10188 echo "${ECHO_T}$cf_result" >&6; }
10189 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
10190 echo "$as_me: error: Cannot link curses library" >&2;}
10191 { (exit 1); exit 1; }; }
10192 elif test "$cf_term_lib" != predefined ; then
10193 { echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
10194 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6; }
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 #include <${cf_cv_ncurses_header-curses.h}>
10205 initscr(); tgoto((char *)0, 0, 0);
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_link") 2>conftest.er1
10219 grep -v '^ *+' conftest.er1 >conftest.err
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } && {
10224 test -z "$ac_c_werror_flag" ||
10225 test ! -s conftest.err
10226 } && test -s conftest$ac_exeext &&
10227 $as_test_x conftest$ac_exeext; then
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10234 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <${cf_cv_ncurses_header-curses.h}>
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>conftest.er1
10259 grep -v '^ *+' conftest.er1 >conftest.err
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && {
10264 test -z "$ac_c_werror_flag" ||
10265 test ! -s conftest.err
10266 } && test -s conftest$ac_exeext &&
10267 $as_test_x conftest$ac_exeext; then
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10277 conftest$ac_exeext conftest.$ac_ext
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $cf_result" >&5
10284 echo "${ECHO_T}$cf_result" >&6; }
10298 LIBS="$LIBS $MUTTLIBS"
10299 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
10302 { echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
10303 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6; }
10304 if { as_var=ac_cv_func_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <${cf_cv_ncurses_header-curses.h}>
10318 extern int ${ac_func}();
10324 rm -f conftest.$ac_objext
10325 if { (ac_try="$ac_compile"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_compile") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest.$ac_objext; then
10342 cat >conftest.$ac_ext <<_ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 #include <${cf_cv_ncurses_header-curses.h}>
10353 int (*p)() = ${ac_func};
10359 rm -f conftest.$ac_objext
10360 if { (ac_try="$ac_compile"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_compile") 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_c_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest.$ac_objext; then
10377 eval "ac_cv_func_decl_$ac_func=yes"
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10383 eval "ac_cv_func_decl_$ac_func=no"
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10392 eval "ac_cv_func_decl_$ac_func=yes"
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
10399 { echo "$as_me:$LINENO: result: yes" >&5
10400 echo "${ECHO_T}yes" >&6; }
10403 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
10405 cat >>confdefs.h <<_ACEOF
10406 #define $ac_tr_func 1
10410 { echo "$as_me:$LINENO: result: no" >&5
10411 echo "${ECHO_T}no" >&6; }
10415 if test "$ac_cv_func_decl_start_color" = yes; then
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_COLOR 1
10422 if test "$ac_cv_func_decl_resizeterm" = yes; then
10423 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
10430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10432 if test "${ac_cv_header_stdc+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <stdlib.h>
10442 #include <stdarg.h>
10443 #include <string.h>
10454 rm -f conftest.$ac_objext
10455 if { (ac_try="$ac_compile"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_compile") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest.$ac_objext; then
10471 ac_cv_header_stdc=yes
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 ac_cv_header_stdc=no
10479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481 if test $ac_cv_header_stdc = yes; then
10482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <string.h>
10492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10493 $EGREP "memchr" >/dev/null 2>&1; then
10496 ac_cv_header_stdc=no
10502 if test $ac_cv_header_stdc = yes; then
10503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 #include <stdlib.h>
10513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10514 $EGREP "free" >/dev/null 2>&1; then
10517 ac_cv_header_stdc=no
10523 if test $ac_cv_header_stdc = yes; then
10524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10525 if test "$cross_compiling" = yes; then
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 #include <stdlib.h>
10536 #if ((' ' & 0x0FF) == 0x020)
10537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10540 # define ISLOWER(c) \
10541 (('a' <= (c) && (c) <= 'i') \
10542 || ('j' <= (c) && (c) <= 'r') \
10543 || ('s' <= (c) && (c) <= 'z'))
10544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10552 for (i = 0; i < 256; i++)
10553 if (XOR (islower (i), ISLOWER (i))
10554 || toupper (i) != TOUPPER (i))
10559 rm -f conftest$ac_exeext
10560 if { (ac_try="$ac_link"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10581 echo "$as_me: program exited with status $ac_status" >&5
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ( exit $ac_status )
10586 ac_cv_header_stdc=no
10588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10594 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10595 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10596 if test $ac_cv_header_stdc = yes; then
10598 cat >>confdefs.h <<\_ACEOF
10599 #define STDC_HEADERS 1
10609 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
10611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10622 # Is the header compilable?
10623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <$ac_header>
10634 rm -f conftest.$ac_objext
10635 if { (ac_try="$ac_compile"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_compile") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest.$ac_objext; then
10651 ac_header_compiler=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_header_compiler=no
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10661 echo "${ECHO_T}$ac_header_compiler" >&6; }
10663 # Is the header present?
10664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 #include <$ac_header>
10674 if { (ac_try="$ac_cpp conftest.$ac_ext"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10682 grep -v '^ *+' conftest.er1 >conftest.err
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } >/dev/null && {
10687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10690 ac_header_preproc=yes
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ac_header_preproc=no
10698 rm -f conftest.err conftest.$ac_ext
10699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10700 echo "${ECHO_T}$ac_header_preproc" >&6; }
10702 # So? What about this header?
10703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10709 ac_header_preproc=yes
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 eval "$as_ac_Header=\$ac_header_preproc"
10734 ac_res=`eval echo '${'$as_ac_Header'}'`
10735 { echo "$as_me:$LINENO: result: $ac_res" >&5
10736 echo "${ECHO_T}$ac_res" >&6; }
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10750 for ac_header in sys/time.h sys/resource.h
10752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 ac_res=`eval echo '${'$as_ac_Header'}'`
10760 { echo "$as_me:$LINENO: result: $ac_res" >&5
10761 echo "${ECHO_T}$ac_res" >&6; }
10763 # Is the header compilable?
10764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <$ac_header>
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_compile") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest.$ac_objext; then
10792 ac_header_compiler=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_header_compiler=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6; }
10804 # Is the header present?
10805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <$ac_header>
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } >/dev/null && {
10828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10831 ac_header_preproc=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_header_preproc=no
10839 rm -f conftest.err conftest.$ac_ext
10840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10841 echo "${ECHO_T}$ac_header_preproc" >&6; }
10843 # So? What about this header?
10844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10850 ac_header_preproc=yes
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 eval "$as_ac_Header=\$ac_header_preproc"
10875 ac_res=`eval echo '${'$as_ac_Header'}'`
10876 { echo "$as_me:$LINENO: result: $ac_res" >&5
10877 echo "${ECHO_T}$ac_res" >&6; }
10880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10881 cat >>confdefs.h <<_ACEOF
10882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10890 for ac_header in unix.h
10892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 ac_res=`eval echo '${'$as_ac_Header'}'`
10900 { echo "$as_me:$LINENO: result: $ac_res" >&5
10901 echo "${ECHO_T}$ac_res" >&6; }
10903 # Is the header compilable?
10904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 $ac_includes_default
10913 #include <$ac_header>
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_compile") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest.$ac_objext; then
10932 ac_header_compiler=yes
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_header_compiler=no
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10942 echo "${ECHO_T}$ac_header_compiler" >&6; }
10944 # Is the header present?
10945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <$ac_header>
10955 if { (ac_try="$ac_cpp conftest.$ac_ext"
10956 case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } >/dev/null && {
10968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10971 ac_header_preproc=yes
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_preproc=no
10979 rm -f conftest.err conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6; }
10983 # So? What about this header?
10984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990 ac_header_preproc=yes
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 eval "$as_ac_Header=\$ac_header_preproc"
11015 ac_res=`eval echo '${'$as_ac_Header'}'`
11016 { echo "$as_me:$LINENO: result: $ac_res" >&5
11017 echo "${ECHO_T}$ac_res" >&6; }
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11032 for ac_func in setrlimit getsid
11034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048 #define $ac_func innocuous_$ac_func
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11056 # include <limits.h>
11058 # include <assert.h>
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined __stub_$ac_func || defined __stub___$ac_func
11080 return $ac_func ();
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 eval "$as_ac_var=yes"
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 eval "$as_ac_var=no"
11111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11114 ac_res=`eval echo '${'$as_ac_var'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h <<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11126 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11127 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11128 if test "${ac_cv_type_signal+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <sys/types.h>
11138 #include <signal.h>
11143 return *(signal (0, 0)) (0) == 1;
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_compile") 2>conftest.er1
11157 grep -v '^ *+' conftest.er1 >conftest.err
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && {
11162 test -z "$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 } && test -s conftest.$ac_objext; then
11165 ac_cv_type_signal=int
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_cv_type_signal=void
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11176 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11178 cat >>confdefs.h <<_ACEOF
11179 #define RETSIGTYPE $ac_cv_type_signal
11184 { echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
11185 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 #include <signal.h>
11195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11196 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
11198 ac_cv_type_sig_atomic_t=yes;
11199 cat >conftest.$ac_ext <<_ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <signal.h>
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
11211 is_sig_atomic_t_volatile=yes;
11212 { echo "$as_me:$LINENO: result: yes, volatile" >&5
11213 echo "${ECHO_T}yes, volatile" >&6; }
11217 is_sig_atomic_t_volatile=no;
11218 { echo "$as_me:$LINENO: result: yes, non volatile" >&5
11219 echo "${ECHO_T}yes, non volatile" >&6; }
11227 { echo "$as_me:$LINENO: result: no" >&5
11228 echo "${ECHO_T}no" >&6; }
11229 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11230 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
11231 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 typedef sig_atomic_t ac__type_new_;
11245 if ((ac__type_new_ *) 0)
11247 if (sizeof (ac__type_new_))
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && {
11267 test -z "$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11269 } && test -s conftest.$ac_objext; then
11270 ac_cv_type_sig_atomic_t=yes
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_cv_type_sig_atomic_t=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
11282 if test $ac_cv_type_sig_atomic_t = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define sig_atomic_t int
11292 is_sig_atomic_t_volatile=no
11297 if test $is_sig_atomic_t_volatile = 'yes'
11299 cat >>confdefs.h <<\_ACEOF
11300 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
11304 cat >>confdefs.h <<\_ACEOF
11305 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
11310 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11311 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
11312 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <signal.h>
11322 /* NetBSD declares sys_siglist in unistd.h. */
11323 #ifdef HAVE_UNISTD_H
11324 # include <unistd.h>
11331 #ifndef sys_siglist
11332 (void) sys_siglist;
11339 rm -f conftest.$ac_objext
11340 if { (ac_try="$ac_compile"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest.$ac_objext; then
11356 ac_cv_have_decl_sys_siglist=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_cv_have_decl_sys_siglist=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11367 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
11368 if test $ac_cv_have_decl_sys_siglist = yes; then
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_DECL_SYS_SIGLIST 1
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_SYS_SIGLIST 0
11386 { echo "$as_me:$LINENO: checking for pid_t" >&5
11387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11388 if test "${ac_cv_type_pid_t+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 typedef pid_t ac__type_new_;
11402 if ((ac__type_new_ *) 0)
11404 if (sizeof (ac__type_new_))
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.$ac_objext; then
11427 ac_cv_type_pid_t=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_cv_type_pid_t=no
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11439 if test $ac_cv_type_pid_t = yes; then
11443 cat >>confdefs.h <<_ACEOF
11449 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11450 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11451 if test "${ac_cv_type_ssize_t+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 $ac_includes_default
11461 typedef ssize_t ac__type_new_;
11465 if ((ac__type_new_ *) 0)
11467 if (sizeof (ac__type_new_))
11473 rm -f conftest.$ac_objext
11474 if { (ac_try="$ac_compile"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_compile") 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } && {
11487 test -z "$ac_c_werror_flag" ||
11488 test ! -s conftest.err
11489 } && test -s conftest.$ac_objext; then
11490 ac_cv_type_ssize_t=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_type_ssize_t=no
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11501 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
11502 if test $ac_cv_type_ssize_t = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define ssize_t int
11518 for ac_func in fgetpos memmove setegid srand48 strerror
11520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11534 #define $ac_func innocuous_$ac_func
11536 /* System header to define __stub macros and hopefully few prototypes,
11537 which can conflict with char $ac_func (); below.
11538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11539 <limits.h> exists even on freestanding compilers. */
11542 # include <limits.h>
11544 # include <assert.h>
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined __stub_$ac_func || defined __stub___$ac_func
11566 return $ac_func ();
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (ac_try="$ac_link"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_link") 2>conftest.er1
11580 grep -v '^ *+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest$ac_exeext &&
11588 $as_test_x conftest$ac_exeext; then
11589 eval "$as_ac_var=yes"
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 eval "$as_ac_var=no"
11597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11598 conftest$ac_exeext conftest.$ac_ext
11600 ac_res=`eval echo '${'$as_ac_var'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11604 cat >>confdefs.h <<_ACEOF
11605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 for ac_func in setenv strcasecmp strdup strsep strtok_r
11619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11633 #define $ac_func innocuous_$ac_func
11635 /* System header to define __stub macros and hopefully few prototypes,
11636 which can conflict with char $ac_func (); below.
11637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11638 <limits.h> exists even on freestanding compilers. */
11641 # include <limits.h>
11643 # include <assert.h>
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11655 /* The GNU C library defines this for functions which it implements
11656 to always fail with ENOSYS. Some functions are actually named
11657 something starting with __ and the normal name is an alias. */
11658 #if defined __stub_$ac_func || defined __stub___$ac_func
11665 return $ac_func ();
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (ac_try="$ac_link"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_link") 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } && {
11684 test -z "$ac_c_werror_flag" ||
11685 test ! -s conftest.err
11686 } && test -s conftest$ac_exeext &&
11687 $as_test_x conftest$ac_exeext; then
11688 eval "$as_ac_var=yes"
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11697 conftest$ac_exeext conftest.$ac_ext
11699 ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 case " $LIBOBJS " in
11709 *" $ac_func.$ac_objext "* ) ;;
11710 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11719 { echo "$as_me:$LINENO: checking for getopt" >&5
11720 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
11721 if test "${ac_cv_func_getopt+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732 #define getopt innocuous_getopt
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char getopt (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11740 # include <limits.h>
11742 # include <assert.h>
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined __stub_getopt || defined __stub___getopt
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest$ac_exeext &&
11786 $as_test_x conftest$ac_exeext; then
11787 ac_cv_func_getopt=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_func_getopt=no
11795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11796 conftest$ac_exeext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
11799 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
11801 if test $ac_cv_func_getopt = yes; then
11803 for ac_header in getopt.h
11805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 ac_res=`eval echo '${'$as_ac_Header'}'`
11813 { echo "$as_me:$LINENO: result: $ac_res" >&5
11814 echo "${ECHO_T}$ac_res" >&6; }
11816 # Is the header compilable?
11817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 $ac_includes_default
11826 #include <$ac_header>
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11845 ac_header_compiler=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_header_compiler=no
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11855 echo "${ECHO_T}$ac_header_compiler" >&6; }
11857 # Is the header present?
11858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 #include <$ac_header>
11868 if { (ac_try="$ac_cpp conftest.$ac_ext"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev/null && {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11884 ac_header_preproc=yes
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_header_preproc=no
11892 rm -f conftest.err conftest.$ac_ext
11893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11894 echo "${ECHO_T}$ac_header_preproc" >&6; }
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11903 ac_header_preproc=yes
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 ac_res=`eval echo '${'$as_ac_Header'}'`
11929 { echo "$as_me:$LINENO: result: $ac_res" >&5
11930 echo "${ECHO_T}$ac_res" >&6; }
11933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11945 { echo "$as_me:$LINENO: checking for snprintf" >&5
11946 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
11947 if test "${ac_cv_func_snprintf+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958 #define snprintf innocuous_snprintf
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char snprintf (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11966 # include <limits.h>
11968 # include <assert.h>
11973 /* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined __stub_snprintf || defined __stub___snprintf
11990 return snprintf ();
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (ac_try="$ac_link"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest$ac_exeext &&
12012 $as_test_x conftest$ac_exeext; then
12013 ac_cv_func_snprintf=yes
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 ac_cv_func_snprintf=no
12021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022 conftest$ac_exeext conftest.$ac_ext
12024 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
12025 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
12026 if test $ac_cv_func_snprintf = yes; then
12027 mutt_cv_func_snprintf=yes
12029 mutt_cv_func_snprintf=no
12032 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
12033 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
12034 if test "${ac_cv_func_vsnprintf+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
12044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12045 #define vsnprintf innocuous_vsnprintf
12047 /* System header to define __stub macros and hopefully few prototypes,
12048 which can conflict with char vsnprintf (); below.
12049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12050 <limits.h> exists even on freestanding compilers. */
12053 # include <limits.h>
12055 # include <assert.h>
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12067 /* The GNU C library defines this for functions which it implements
12068 to always fail with ENOSYS. Some functions are actually named
12069 something starting with __ and the normal name is an alias. */
12070 #if defined __stub_vsnprintf || defined __stub___vsnprintf
12077 return vsnprintf ();
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_link") 2>conftest.er1
12091 grep -v '^ *+' conftest.er1 >conftest.err
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
12097 test ! -s conftest.err
12098 } && test -s conftest$ac_exeext &&
12099 $as_test_x conftest$ac_exeext; then
12100 ac_cv_func_vsnprintf=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_func_vsnprintf=no
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12111 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
12112 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
12113 if test $ac_cv_func_vsnprintf = yes; then
12114 mutt_cv_func_vsnprintf=yes
12116 mutt_cv_func_vsnprintf=no
12119 if test $mutt_cv_func_snprintf = yes; then
12120 { echo "$as_me:$LINENO: checking whether your system's snprintf is C99 compliant" >&5
12121 echo $ECHO_N "checking whether your system's snprintf is C99 compliant... $ECHO_C" >&6; }
12122 if test "${mutt_cv_c99_snprintf+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 if test "$cross_compiling" = yes; then
12126 mutt_cv_c99_snprintf=no
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12139 int len = snprintf(buf, 4, "1234567");
12140 return (len != 7 || buf[3] != '\0');
12144 rm -f conftest$ac_exeext
12145 if { (ac_try="$ac_link"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_link") 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12155 { (case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_try") 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 mutt_cv_c99_snprintf=yes
12166 echo "$as_me: program exited with status $ac_status" >&5
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ( exit $ac_status )
12171 mutt_cv_c99_snprintf=no
12173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12178 { echo "$as_me:$LINENO: result: $mutt_cv_c99_snprintf" >&5
12179 echo "${ECHO_T}$mutt_cv_c99_snprintf" >&6; }
12181 mutt_cv_c99_snprintf=no
12183 if test $mutt_cv_func_vsnprintf = yes; then
12184 { echo "$as_me:$LINENO: checking whether your system's vsnprintf is C99 compliant" >&5
12185 echo $ECHO_N "checking whether your system's vsnprintf is C99 compliant... $ECHO_C" >&6; }
12186 if test "${mutt_cv_c99_vsnprintf+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 if test "$cross_compiling" = yes; then
12190 mutt_cv_c99_vsnprintf=no
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 #include <stdarg.h>
12201 int foo(const char *fmt, ...)
12207 len = vsnprintf(buf, 4, fmt, ap);
12209 return (len != 7 || buf[3] != '\0');
12214 return foo("%s", "1234567");
12218 rm -f conftest$ac_exeext
12219 if { (ac_try="$ac_link"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_link") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 mutt_cv_c99_vsnprintf=yes
12240 echo "$as_me: program exited with status $ac_status" >&5
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ( exit $ac_status )
12245 mutt_cv_c99_vsnprintf=no
12247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $mutt_cv_c99_vsnprintf" >&5
12253 echo "${ECHO_T}$mutt_cv_c99_vsnprintf" >&6; }
12255 mutt_cv_c99_vsnprintf=no
12257 if test $mutt_cv_c99_snprintf = yes; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_SNPRINTF 1
12264 if test $mutt_cv_c99_vsnprintf = yes; then
12266 cat >>confdefs.h <<\_ACEOF
12267 #define HAVE_VSNPRINTF 1
12271 if test $mutt_cv_c99_snprintf = no -o $mutt_cv_c99_vsnprintf = no; then
12272 case " $LIBOBJS " in
12273 *" snprintf.$ac_objext "* ) ;;
12274 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12280 { echo "$as_me:$LINENO: checking for va_copy" >&5
12281 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 #include <stdarg.h>
12292 va_list ap1, ap2; va_copy(ap1, ap2);
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (ac_try="$ac_link"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_link") 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } && {
12311 test -z "$ac_c_werror_flag" ||
12312 test ! -s conftest.err
12313 } && test -s conftest$ac_exeext &&
12314 $as_test_x conftest$ac_exeext; then
12315 { echo "$as_me:$LINENO: result: va_copy" >&5
12316 echo "${ECHO_T}va_copy" >&6; }
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <stdarg.h>
12333 va_list ap1, ap2; __va_copy(ap1, ap2);
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest$ac_exeext &&
12355 $as_test_x conftest$ac_exeext; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define va_copy __va_copy
12360 { echo "$as_me:$LINENO: result: __va_copy" >&5
12361 echo "${ECHO_T}__va_copy" >&6; }
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 cat >>confdefs.h <<\_ACEOF
12367 #define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))
12370 { echo "$as_me:$LINENO: result: memcpy" >&5
12371 echo "${ECHO_T}memcpy" >&6; }
12375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12376 conftest$ac_exeext conftest.$ac_ext
12380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12381 conftest$ac_exeext conftest.$ac_ext
12385 for ac_func in ftruncate
12387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12401 #define $ac_func innocuous_$ac_func
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char $ac_func (); below.
12405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406 <limits.h> exists even on freestanding compilers. */
12409 # include <limits.h>
12411 # include <assert.h>
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined __stub_$ac_func || defined __stub___$ac_func
12433 return $ac_func ();
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (ac_try="$ac_link"
12440 case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_link") 2>conftest.er1
12447 grep -v '^ *+' conftest.er1 >conftest.err
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && {
12452 test -z "$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12454 } && test -s conftest$ac_exeext &&
12455 $as_test_x conftest$ac_exeext; then
12456 eval "$as_ac_var=yes"
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 eval "$as_ac_var=no"
12464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465 conftest$ac_exeext conftest.$ac_ext
12467 ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 if test `eval echo '${'$as_ac_var'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12477 { echo "$as_me:$LINENO: checking for chsize in -lx" >&5
12478 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6; }
12479 if test "${ac_cv_lib_x_chsize+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 ac_check_lib_save_LIBS=$LIBS
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext &&
12523 $as_test_x conftest$ac_exeext; then
12524 ac_cv_lib_x_chsize=yes
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_cv_lib_x_chsize=no
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 { echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
12537 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6; }
12538 if test $ac_cv_lib_x_chsize = yes; then
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_LIBX 1
12552 for ac_func in strftime
12554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define $ac_func innocuous_$ac_func
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12576 # include <limits.h>
12578 # include <assert.h>
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined __stub_$ac_func || defined __stub___$ac_func
12600 return $ac_func ();
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_link") 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && {
12619 test -z "$ac_c_werror_flag" ||
12620 test ! -s conftest.err
12621 } && test -s conftest$ac_exeext &&
12622 $as_test_x conftest$ac_exeext; then
12623 eval "$as_ac_var=yes"
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 eval "$as_ac_var=no"
12631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12632 conftest$ac_exeext conftest.$ac_ext
12634 ac_res=`eval echo '${'$as_ac_var'}'`
12635 { echo "$as_me:$LINENO: result: $ac_res" >&5
12636 echo "${ECHO_T}$ac_res" >&6; }
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12645 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12646 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-lintl $LIBS"
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12668 return strftime ();
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext &&
12690 $as_test_x conftest$ac_exeext; then
12691 ac_cv_lib_intl_strftime=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_cv_lib_intl_strftime=no
12699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12704 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12705 if test $ac_cv_lib_intl_strftime = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707 #define HAVE_LIBINTL 1
12710 LIBS="-lintl $LIBS"
12719 for ac_func in fchdir
12721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735 #define $ac_func innocuous_$ac_func
12737 /* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12743 # include <limits.h>
12745 # include <assert.h>
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined __stub_$ac_func || defined __stub___$ac_func
12767 return $ac_func ();
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest$ac_exeext &&
12789 $as_test_x conftest$ac_exeext; then
12790 eval "$as_ac_var=yes"
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 eval "$as_ac_var=no"
12798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799 conftest$ac_exeext conftest.$ac_ext
12801 ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803 echo "${ECHO_T}$ac_res" >&6; }
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12816 # Check whether --with-regex was given.
12817 if test "${with_regex+set}" = set; then
12818 withval=$with_regex; mutt_cv_regex=yes
12821 for ac_func in regcomp
12823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12837 #define $ac_func innocuous_$ac_func
12839 /* System header to define __stub macros and hopefully few prototypes,
12840 which can conflict with char $ac_func (); below.
12841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12842 <limits.h> exists even on freestanding compilers. */
12845 # include <limits.h>
12847 # include <assert.h>
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12859 /* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862 #if defined __stub_$ac_func || defined __stub___$ac_func
12869 return $ac_func ();
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (ac_try="$ac_link"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_link") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest$ac_exeext &&
12891 $as_test_x conftest$ac_exeext; then
12892 eval "$as_ac_var=yes"
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 eval "$as_ac_var=no"
12900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12901 conftest$ac_exeext conftest.$ac_ext
12903 ac_res=`eval echo '${'$as_ac_var'}'`
12904 { echo "$as_me:$LINENO: result: $ac_res" >&5
12905 echo "${ECHO_T}$ac_res" >&6; }
12906 if test `eval echo '${'$as_ac_var'}'` = yes; then
12907 cat >>confdefs.h <<_ACEOF
12908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919 if test $mutt_cv_regex = no ; then
12920 { echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
12921 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6; }
12922 if test "${mutt_cv_regex_broken+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 if test "$cross_compiling" = yes; then
12926 mutt_cv_regex_broken=yes
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 #include <unistd.h>
12937 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); }
12939 rm -f conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 mutt_cv_regex_broken=no
12961 echo "$as_me: program exited with status $ac_status" >&5
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12965 ( exit $ac_status )
12966 mutt_cv_regex_broken=yes
12968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12973 { echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
12974 echo "${ECHO_T}$mutt_cv_regex_broken" >&6; }
12975 if test $mutt_cv_regex_broken = yes ; then
12976 echo "Using the included GNU regex instead." >&6
12981 if test $mutt_cv_regex = yes; then
12983 cat >>confdefs.h <<\_ACEOF
12984 #define USE_GNU_REGEX 1
12987 case " $LIBOBJS " in
12988 *" regex.$ac_objext "* ) ;;
12989 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
12997 # Check whether --with-homespool was given.
12998 if test "${with_homespool+set}" = set; then
12999 withval=$with_homespool; with_homespool=${withval}
13002 if test x$with_homespool != x; then
13003 if test $with_homespool = yes; then
13004 with_homespool=mailbox
13007 cat >>confdefs.h <<_ACEOF
13008 #define MAILPATH "$with_homespool"
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HOMESPOOL 1
13017 cat >>confdefs.h <<\_ACEOF
13018 #define USE_DOTLOCK 1
13024 # Check whether --with-mailpath was given.
13025 if test "${with_mailpath+set}" = set; then
13026 withval=$with_mailpath; mutt_cv_mailpath=$withval
13028 { echo "$as_me:$LINENO: checking where new mail is stored" >&5
13029 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6; }
13030 if test "${mutt_cv_mailpath+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 mutt_cv_mailpath=no
13034 if test -d /var/mail; then
13035 mutt_cv_mailpath=/var/mail
13036 elif test -d /var/spool/mail; then
13037 mutt_cv_mailpath=/var/spool/mail
13038 elif test -d /usr/spool/mail; then
13039 mutt_cv_mailpath=/usr/spool/mail
13040 elif test -d /usr/mail; then
13041 mutt_cv_mailpath=/usr/mail
13044 { echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
13045 echo "${ECHO_T}$mutt_cv_mailpath" >&6; }
13049 if test "$mutt_cv_mailpath" = no; then
13050 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
13051 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
13052 { (exit 1); exit 1; }; }
13055 cat >>confdefs.h <<_ACEOF
13056 #define MAILPATH "$mutt_cv_mailpath"
13060 { echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
13061 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6; }
13062 if test "${mutt_cv_worldwrite+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 if test "$cross_compiling" = yes; then
13066 mutt_cv_worldwrite=no
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 #include <sys/types.h>
13075 #include <sys/stat.h>
13076 #include <stdlib.h>
13078 int main (int argc, char **argv)
13082 stat ("$mutt_cv_mailpath", &s);
13083 if (s.st_mode & S_IWOTH) exit (0);
13087 rm -f conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 mutt_cv_worldwrite=yes
13109 echo "$as_me: program exited with status $ac_status" >&5
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ( exit $ac_status )
13114 mutt_cv_worldwrite=no
13116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13121 { echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
13122 echo "${ECHO_T}$mutt_cv_worldwrite" >&6; }
13125 if test $mutt_cv_worldwrite = yes; then
13127 cat >>confdefs.h <<\_ACEOF
13128 #define USE_DOTLOCK 1
13133 { echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
13134 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6; }
13135 if test "${mutt_cv_groupwrite+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 if test "$cross_compiling" = yes; then
13139 mutt_cv_groupwrite=no
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <sys/types.h>
13148 #include <sys/stat.h>
13149 #include <stdlib.h>
13151 int main (int argc, char **argv)
13155 stat ("$mutt_cv_mailpath", &s);
13156 if (s.st_mode & S_IWGRP) exit (0);
13160 rm -f conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13171 { (case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_try") 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 mutt_cv_groupwrite=yes
13182 echo "$as_me: program exited with status $ac_status" >&5
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13186 ( exit $ac_status )
13187 mutt_cv_groupwrite=no
13189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13194 { echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
13195 echo "${ECHO_T}$mutt_cv_groupwrite" >&6; }
13197 if test $mutt_cv_groupwrite = yes; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define USE_DOTLOCK 1
13204 cat >>confdefs.h <<\_ACEOF
13205 #define USE_SETGID 1
13213 # Check whether --enable-external_dotlock was given.
13214 if test "${enable_external_dotlock+set}" = set; then
13215 enableval=$enable_external_dotlock; mutt_cv_external_dotlock="$enableval"
13219 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
13220 || test "x$mutt_cv_external_dotlock" = "xyes"
13223 cat >>confdefs.h <<\_ACEOF
13224 #define DL_STANDALONE 1
13227 DOTLOCK_TARGET="mutt_dotlock\$(EXEEXT)"
13229 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
13234 if test -z "$datarootdir"; then
13235 datarootdir='${prefix}/share'
13239 { echo "$as_me:$LINENO: checking where to put the documentation" >&5
13240 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6; }
13242 # Check whether --with-docdir was given.
13243 if test "${with_docdir+set}" = set; then
13244 withval=$with_docdir; mutt_cv_docdir=$withval
13246 mutt_cv_docdir='${datarootdir}/doc/mutt'
13249 { echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
13250 echo "${ECHO_T}$mutt_cv_docdir" >&6; }
13252 docdir=$mutt_cv_docdir
13255 if test x$mutt_cv_setgid = xyes; then
13256 DOTLOCK_GROUP='mail'
13257 DOTLOCK_PERMISSION=2755
13260 DOTLOCK_PERMISSION=755
13266 # Check whether --with-domain was given.
13267 if test "${with_domain+set}" = set; then
13268 withval=$with_domain; if test $withval != yes; then
13269 if test $withval != no; then
13271 cat >>confdefs.h <<_ACEOF
13272 #define DOMAIN "$withval"
13283 # Check whether --enable-pop was given.
13284 if test "${enable_pop+set}" = set; then
13285 enableval=$enable_pop; if test x$enableval = xyes ; then
13287 cat >>confdefs.h <<\_ACEOF
13291 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
13300 # Check whether --enable-imap was given.
13301 if test "${enable_imap+set}" = set; then
13302 enableval=$enable_imap; if test x$enableval = xyes ; then
13304 cat >>confdefs.h <<\_ACEOF
13308 LIBIMAP="-Limap -limap"
13309 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
13317 if test x$need_imap = xyes; then
13319 BUILD_IMAP_FALSE='#'
13321 BUILD_IMAP_TRUE='#'
13326 # Check whether --enable-smtp was given.
13327 if test "${enable_smtp+set}" = set; then
13328 enableval=$enable_smtp; if test $enableval = yes; then
13330 cat >>confdefs.h <<\_ACEOF
13334 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smtp.o"
13340 if test x"$need_imap" = xyes -o x"$need_pop" = xyes ; then
13341 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS bcache.o"
13345 if test "$need_socket" = "yes"
13348 for ac_header in sys/select.h
13350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_res=`eval echo '${'$as_ac_Header'}'`
13358 { echo "$as_me:$LINENO: result: $ac_res" >&5
13359 echo "${ECHO_T}$ac_res" >&6; }
13361 # Is the header compilable?
13362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 $ac_includes_default
13371 #include <$ac_header>
13373 rm -f conftest.$ac_objext
13374 if { (ac_try="$ac_compile"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest.$ac_objext; then
13390 ac_header_compiler=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_compiler=no
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13400 echo "${ECHO_T}$ac_header_compiler" >&6; }
13402 # Is the header present?
13403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <$ac_header>
13413 if { (ac_try="$ac_cpp conftest.$ac_ext"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } >/dev/null && {
13426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13429 ac_header_preproc=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_header_preproc=no
13437 rm -f conftest.err conftest.$ac_ext
13438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13439 echo "${ECHO_T}$ac_header_preproc" >&6; }
13441 # So? What about this header?
13442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13448 ac_header_preproc=yes
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 eval "$as_ac_Header=\$ac_header_preproc"
13473 ac_res=`eval echo '${'$as_ac_Header'}'`
13474 { echo "$as_me:$LINENO: result: $ac_res" >&5
13475 echo "${ECHO_T}$ac_res" >&6; }
13478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13479 cat >>confdefs.h <<_ACEOF
13480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13487 { echo "$as_me:$LINENO: checking for socklen_t" >&5
13488 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include <sys/socket.h>
13498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13499 $EGREP "socklen_t" >/dev/null 2>&1; then
13500 { echo "$as_me:$LINENO: result: yes" >&5
13501 echo "${ECHO_T}yes" >&6; }
13503 { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13506 cat >>confdefs.h <<\_ACEOF
13507 #define socklen_t int
13513 { echo "$as_me:$LINENO: checking for gethostent" >&5
13514 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; }
13515 if test "${ac_cv_func_gethostent+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
13525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13526 #define gethostent innocuous_gethostent
13528 /* System header to define __stub macros and hopefully few prototypes,
13529 which can conflict with char gethostent (); below.
13530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13531 <limits.h> exists even on freestanding compilers. */
13534 # include <limits.h>
13536 # include <assert.h>
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13547 char gethostent ();
13548 /* The GNU C library defines this for functions which it implements
13549 to always fail with ENOSYS. Some functions are actually named
13550 something starting with __ and the normal name is an alias. */
13551 #if defined __stub_gethostent || defined __stub___gethostent
13558 return gethostent ();
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (ac_try="$ac_link"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_link") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest$ac_exeext &&
13580 $as_test_x conftest$ac_exeext; then
13581 ac_cv_func_gethostent=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_cv_func_gethostent=no
13589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13590 conftest$ac_exeext conftest.$ac_ext
13592 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
13593 echo "${ECHO_T}$ac_cv_func_gethostent" >&6; }
13594 if test $ac_cv_func_gethostent = yes; then
13598 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
13599 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; }
13600 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_check_lib_save_LIBS=$LIBS
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13618 char gethostent ();
13622 return gethostent ();
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (ac_try="$ac_link"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_link") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest$ac_exeext &&
13644 $as_test_x conftest$ac_exeext; then
13645 ac_cv_lib_nsl_gethostent=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_cv_lib_nsl_gethostent=no
13653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
13658 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6; }
13659 if test $ac_cv_lib_nsl_gethostent = yes; then
13660 cat >>confdefs.h <<_ACEOF
13661 #define HAVE_LIBNSL 1
13670 { echo "$as_me:$LINENO: checking for setsockopt" >&5
13671 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
13672 if test "${ac_cv_func_setsockopt+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.$ac_ext <<_ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
13682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13683 #define setsockopt innocuous_setsockopt
13685 /* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char setsockopt (); below.
13687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13688 <limits.h> exists even on freestanding compilers. */
13691 # include <limits.h>
13693 # include <assert.h>
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13704 char setsockopt ();
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined __stub_setsockopt || defined __stub___setsockopt
13715 return setsockopt ();
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (ac_try="$ac_link"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_link") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest$ac_exeext &&
13737 $as_test_x conftest$ac_exeext; then
13738 ac_cv_func_setsockopt=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_cv_func_setsockopt=no
13746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13747 conftest$ac_exeext conftest.$ac_ext
13749 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
13750 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
13751 if test $ac_cv_func_setsockopt = yes; then
13755 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
13756 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
13757 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-lsocket $LIBS"
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13775 char setsockopt ();
13779 return setsockopt ();
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && {
13798 test -z "$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 } && test -s conftest$ac_exeext &&
13801 $as_test_x conftest$ac_exeext; then
13802 ac_cv_lib_socket_setsockopt=yes
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_cv_lib_socket_setsockopt=no
13810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13811 conftest$ac_exeext conftest.$ac_ext
13812 LIBS=$ac_check_lib_save_LIBS
13814 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
13815 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
13816 if test $ac_cv_lib_socket_setsockopt = yes; then
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_LIBSOCKET 1
13821 LIBS="-lsocket $LIBS"
13828 for ac_func in getaddrinfo
13830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 cat >conftest.$ac_ext <<_ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13844 #define $ac_func innocuous_$ac_func
13846 /* System header to define __stub macros and hopefully few prototypes,
13847 which can conflict with char $ac_func (); below.
13848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13849 <limits.h> exists even on freestanding compilers. */
13852 # include <limits.h>
13854 # include <assert.h>
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined __stub_$ac_func || defined __stub___$ac_func
13876 return $ac_func ();
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && {
13895 test -z "$ac_c_werror_flag" ||
13896 test ! -s conftest.err
13897 } && test -s conftest$ac_exeext &&
13898 $as_test_x conftest$ac_exeext; then
13899 eval "$as_ac_var=yes"
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 eval "$as_ac_var=no"
13907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13908 conftest$ac_exeext conftest.$ac_ext
13910 ac_res=`eval echo '${'$as_ac_var'}'`
13911 { echo "$as_me:$LINENO: result: $ac_res" >&5
13912 echo "${ECHO_T}$ac_res" >&6; }
13913 if test `eval echo '${'$as_ac_var'}'` = yes; then
13914 cat >>confdefs.h <<_ACEOF
13915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13922 cat >>confdefs.h <<\_ACEOF
13923 #define USE_SOCKET 1
13926 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
13931 # Check whether --with-gss was given.
13932 if test "${with_gss+set}" = set; then
13933 withval=$with_gss; gss_prefix="$withval"
13938 if test "$gss_prefix" != "no"
13940 if test "$need_imap" = "yes"
13943 GSSAPI_PREFIX=$gss_prefix
13945 saved_CPPFLAGS="$CPPFLAGS"
13946 saved_LDFLAGS="$LDFLAGS"
13948 if test "$GSSAPI_PREFIX" != "yes"
13950 krb5_path="$GSSAPI_PREFIX/bin"
13954 # Extract the first word of "krb5-config", so it can be a program name with args.
13955 set dummy krb5-config; ac_word=$2
13956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13958 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 case $KRB5CFGPATH in
13963 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $krb5_path
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
13974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
13985 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
13986 if test -n "$KRB5CFGPATH"; then
13987 { echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
13988 echo "${ECHO_T}$KRB5CFGPATH" >&6; }
13990 { echo "$as_me:$LINENO: result: no" >&5
13991 echo "${ECHO_T}no" >&6; }
13995 if test "$KRB5CFGPATH" != "none"
13997 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
13998 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
13999 case "`$KRB5CFGPATH --version`" in
14000 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
14001 ?eimdal*) GSSAPI_IMPL="Heimdal";;
14002 *) GSSAPI_IMPL="Unknown";;
14005 if test "$GSSAPI_PREFIX" != "yes"
14007 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
14008 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
14009 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
14010 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
14013 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14014 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
14015 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
14020 cat >conftest.$ac_ext <<_ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* Override any GCC internal prototype to avoid an error.
14028 Use char because int might match the return type of a GCC
14029 builtin and then its argument prototype would still apply. */
14033 char gss_init_sec_context ();
14037 return gss_init_sec_context ();
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (ac_try="$ac_link"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_link") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest$ac_exeext &&
14059 $as_test_x conftest$ac_exeext; then
14060 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14073 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14074 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
14077 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
14082 if test "$GSSAPI_IMPL" = "none"
14084 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
14085 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
14086 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14098 /* Override any GCC internal prototype to avoid an error.
14099 Use char because int might match the return type of a GCC
14100 builtin and then its argument prototype would still apply. */
14104 char gss_init_sec_context ();
14108 return gss_init_sec_context ();
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (ac_try="$ac_link"
14115 case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_link") 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } && {
14127 test -z "$ac_c_werror_flag" ||
14128 test ! -s conftest.err
14129 } && test -s conftest$ac_exeext &&
14130 $as_test_x conftest$ac_exeext; then
14131 ac_cv_lib_gssapi_gss_init_sec_context=yes
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_cv_lib_gssapi_gss_init_sec_context=no
14139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14143 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14144 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14145 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
14147 GSSAPI_IMPL="Heimdal"
14148 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
14149 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
14155 if test "$GSSAPI_IMPL" = "none"
14157 { echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
14158 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6; }
14159 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 ac_check_lib_save_LIBS=$LIBS
14163 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14171 /* Override any GCC internal prototype to avoid an error.
14172 Use char because int might match the return type of a GCC
14173 builtin and then its argument prototype would still apply. */
14177 char g_order_init ();
14181 return g_order_init ();
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (ac_try="$ac_link"
14188 case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_link") 2>conftest.er1
14195 grep -v '^ *+' conftest.er1 >conftest.err
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } && {
14200 test -z "$ac_c_werror_flag" ||
14201 test ! -s conftest.err
14202 } && test -s conftest$ac_exeext &&
14203 $as_test_x conftest$ac_exeext; then
14204 ac_cv_lib_gssapi_krb5_g_order_init=yes
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_cv_lib_gssapi_krb5_g_order_init=no
14212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14213 conftest$ac_exeext conftest.$ac_ext
14214 LIBS=$ac_check_lib_save_LIBS
14216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
14217 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6; }
14218 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
14220 GSSAPI_IMPL="OldMIT",
14221 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
14228 CPPFLAGS="$saved_CPPFLAGS"
14229 LDFLAGS="$saved_LDFLAGS"
14232 { echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
14233 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6; }
14234 { echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
14235 echo "${ECHO_T}$GSSAPI_IMPL" >&6; }
14236 if test "$GSSAPI_IMPL" = "none"
14238 cat >confcache <<\_ACEOF
14239 # This file is a shell script that caches the results of configure
14240 # tests run on this system so they can be shared between configure
14241 # scripts and configure runs, see configure's option --config-cache.
14242 # It is not useful on other systems. If it contains results you don't
14243 # want to keep, you may remove or edit it.
14245 # config.status only pays attention to the cache file if you give it
14246 # the --recheck option to rerun configure.
14248 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14250 # following values.
14254 # The following way of writing the cache mishandles newlines in values,
14255 # but we know of no workaround that is simple, portable, and efficient.
14256 # So, we kill variables containing newlines.
14257 # Ultrix sh set writes to stderr and can't be redirected directly,
14258 # and sets the high bit in the cache file unless we assign to the vars.
14260 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14261 eval ac_val=\$$ac_var
14265 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14266 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14269 _ | IFS | as_nl) ;; #(
14270 *) $as_unset $ac_var ;;
14276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14277 *${as_nl}ac_space=\ *)
14278 # `set' does not quote correctly, so add quotes (double-quote
14279 # substitution turns \\\\ into \\, and sed turns \\ into \).
14282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14285 # `set' quotes correctly as required by POSIX, so do not add quotes.
14286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14300 if test -w "$cache_file"; then
14301 test "x$cache_file" != "x/dev/null" &&
14302 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14303 echo "$as_me: updating cache $cache_file" >&6;}
14304 cat confcache >$cache_file
14306 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14307 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14311 { echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
14312 echo "${ECHO_T}GSSAPI libraries not found" >&6; }
14314 if test "$GSSAPI_IMPL" = "Heimdal"
14317 cat >>confdefs.h <<\_ACEOF
14318 #define HAVE_HEIMDAL 1
14322 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
14323 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
14325 cat >>confdefs.h <<\_ACEOF
14331 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
14332 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
14335 if test x$need_gss = xyes; then
14346 # Check whether --with-ssl was given.
14347 if test "${with_ssl+set}" = set; then
14348 withval=$with_ssl; if test "$with_ssl" != "no"
14350 if test "$need_socket" != "yes"; then
14351 { echo "$as_me:$LINENO: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5
14352 echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;}
14354 if test "$with_ssl" != "yes"
14356 LDFLAGS="$LDFLAGS -L$withval/lib"
14357 CPPFLAGS="$CPPFLAGS -I$withval/include"
14362 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
14363 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
14364 if test "${ac_cv_lib_z_deflate+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 ac_check_lib_save_LIBS=$LIBS
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (ac_try="$ac_link"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_link") 2>conftest.er1
14400 grep -v '^ *+' conftest.er1 >conftest.err
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && {
14405 test -z "$ac_c_werror_flag" ||
14406 test ! -s conftest.err
14407 } && test -s conftest$ac_exeext &&
14408 $as_test_x conftest$ac_exeext; then
14409 ac_cv_lib_z_deflate=yes
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_lib_z_deflate=no
14417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LIBS=$ac_check_lib_save_LIBS
14421 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
14422 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
14423 if test $ac_cv_lib_z_deflate = yes; then
14427 { echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
14428 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6; }
14429 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 ac_check_lib_save_LIBS=$LIBS
14433 LIBS="-lcrypto $crypto_libs $LIBS"
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14451 return X509_new ();
14456 rm -f conftest.$ac_objext conftest$ac_exeext
14457 if { (ac_try="$ac_link"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_link") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest$ac_exeext &&
14473 $as_test_x conftest$ac_exeext; then
14474 ac_cv_lib_crypto_X509_new=yes
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_lib_crypto_X509_new=no
14482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14486 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
14487 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6; }
14488 if test $ac_cv_lib_crypto_X509_new = yes; then
14489 crypto_libs="-lcrypto $crypto_libs"
14493 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
14494 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
14495 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 ac_check_lib_save_LIBS=$LIBS
14499 LIBS="-lssl $crypto_libs $LIBS"
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (ac_try="$ac_link"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_link") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && {
14536 test -z "$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14538 } && test -s conftest$ac_exeext &&
14539 $as_test_x conftest$ac_exeext; then
14540 ac_cv_lib_ssl_SSL_new=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_cv_lib_ssl_SSL_new=no
14548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LIBS=$ac_check_lib_save_LIBS
14552 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
14553 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
14554 if test $ac_cv_lib_ssl_SSL_new = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_LIBSSL 1
14562 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
14563 echo "$as_me: error: Unable to find SSL library" >&2;}
14564 { (exit 1); exit 1; }; }
14568 LIBS="$LIBS $crypto_libs"
14571 for ac_func in RAND_status RAND_egd
14573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14587 #define $ac_func innocuous_$ac_func
14589 /* System header to define __stub macros and hopefully few prototypes,
14590 which can conflict with char $ac_func (); below.
14591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14592 <limits.h> exists even on freestanding compilers. */
14595 # include <limits.h>
14597 # include <assert.h>
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14609 /* The GNU C library defines this for functions which it implements
14610 to always fail with ENOSYS. Some functions are actually named
14611 something starting with __ and the normal name is an alias. */
14612 #if defined __stub_$ac_func || defined __stub___$ac_func
14619 return $ac_func ();
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_link") 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && {
14638 test -z "$ac_c_werror_flag" ||
14639 test ! -s conftest.err
14640 } && test -s conftest$ac_exeext &&
14641 $as_test_x conftest$ac_exeext; then
14642 eval "$as_ac_var=yes"
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 eval "$as_ac_var=no"
14650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14651 conftest$ac_exeext conftest.$ac_ext
14653 ac_res=`eval echo '${'$as_ac_var'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14666 cat >>confdefs.h <<\_ACEOF
14671 cat >>confdefs.h <<\_ACEOF
14672 #define USE_SSL_OPENSSL 1
14676 MUTTLIBS="$MUTTLIBS -lssl $crypto_libs"
14677 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
14686 # Check whether --with-gnutls was given.
14687 if test "${with_gnutls+set}" = set; then
14688 withval=$with_gnutls; gnutls_prefix="$withval"
14693 if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes
14695 if test "$need_socket" != "yes"
14697 { echo "$as_me:$LINENO: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5
14698 echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;}
14700 libgnutls_config_prefix=$gnutls_prefix
14701 min_libgnutls_version=0.1.0
14703 if test x$libgnutls_config_prefix != x ; then
14704 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
14705 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
14709 # Extract the first word of "libgnutls-config", so it can be a program name with args.
14710 set dummy libgnutls-config; ac_word=$2
14711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14713 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 case $LIBGNUTLS_CONFIG in
14718 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14725 test -z "$as_dir" && as_dir=.
14726 for ac_exec_ext in '' $ac_executable_extensions; do
14727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14728 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
14740 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
14741 if test -n "$LIBGNUTLS_CONFIG"; then
14742 { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
14743 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
14745 { echo "$as_me:$LINENO: result: no" >&5
14746 echo "${ECHO_T}no" >&6; }
14750 { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
14751 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
14753 if test "$LIBGNUTLS_CONFIG" = "no" ; then
14756 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
14757 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
14758 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
14761 ac_save_CFLAGS="$CFLAGS"
14762 ac_save_LIBS="$LIBS"
14763 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
14764 LIBS="$LIBS $LIBGNUTLS_LIBS"
14766 rm -f conf.libgnutlstest
14767 if test "$cross_compiling" = yes; then
14768 echo $ac_n "cross compiling; assumed OK... $ac_c"
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14778 #include <stdlib.h>
14779 #include <string.h>
14780 #include <gnutls/gnutls.h>
14785 system ("touch conf.libgnutlstest");
14787 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
14789 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
14790 "$libgnutls_config_version", gnutls_check_version(NULL) );
14791 printf("*** was found! If libgnutls-config was correct, then it is best\n");
14792 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
14793 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14794 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14795 printf("*** required on your system.\n");
14796 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
14797 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
14798 printf("*** before re-running configure\n");
14800 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
14802 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
14803 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
14807 if ( gnutls_check_version( "$min_libgnutls_version" ) )
14813 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
14814 gnutls_check_version(NULL) );
14815 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
14816 "$min_libgnutls_version" );
14817 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
14819 printf("*** If you have already installed a sufficiently new version, this error\n");
14820 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
14821 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14822 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
14823 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
14824 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14825 printf("*** so that the correct libraries are found at run-time))\n");
14832 rm -f conftest$ac_exeext
14833 if { (ac_try="$ac_link"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14854 echo "$as_me: program exited with status $ac_status" >&5
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ( exit $ac_status )
14861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14865 CFLAGS="$ac_save_CFLAGS"
14866 LIBS="$ac_save_LIBS"
14869 if test "x$no_libgnutls" = x ; then
14870 { echo "$as_me:$LINENO: result: yes" >&5
14871 echo "${ECHO_T}yes" >&6; }
14873 for ac_header in gnutls/openssl.h
14875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_res=`eval echo '${'$as_ac_Header'}'`
14883 { echo "$as_me:$LINENO: result: $ac_res" >&5
14884 echo "${ECHO_T}$ac_res" >&6; }
14886 # Is the header compilable?
14887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14889 cat >conftest.$ac_ext <<_ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14895 $ac_includes_default
14896 #include <$ac_header>
14898 rm -f conftest.$ac_objext
14899 if { (ac_try="$ac_compile"
14900 case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_compile") 2>conftest.er1
14907 grep -v '^ *+' conftest.er1 >conftest.err
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } && {
14912 test -z "$ac_c_werror_flag" ||
14913 test ! -s conftest.err
14914 } && test -s conftest.$ac_objext; then
14915 ac_header_compiler=yes
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_header_compiler=no
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14925 echo "${ECHO_T}$ac_header_compiler" >&6; }
14927 # Is the header present?
14928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 #include <$ac_header>
14938 if { (ac_try="$ac_cpp conftest.$ac_ext"
14939 case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } >/dev/null && {
14951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14952 test ! -s conftest.err
14954 ac_header_preproc=yes
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_header_preproc=no
14962 rm -f conftest.err conftest.$ac_ext
14963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14964 echo "${ECHO_T}$ac_header_preproc" >&6; }
14966 # So? What about this header?
14967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14973 ac_header_preproc=yes
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 eval "$as_ac_Header=\$ac_header_preproc"
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999 { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15012 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
15013 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
15016 cat >>confdefs.h <<\_ACEOF
15021 cat >>confdefs.h <<\_ACEOF
15022 #define USE_SSL_GNUTLS 1
15026 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
15029 if test -f conf.libgnutlstest ; then
15032 { echo "$as_me:$LINENO: result: no" >&5
15033 echo "${ECHO_T}no" >&6; }
15035 if test "$LIBGNUTLS_CONFIG" = "no" ; then
15036 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
15037 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
15038 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
15039 echo "*** full path to libgnutls-config."
15041 if test -f conf.libgnutlstest ; then
15044 echo "*** Could not run libgnutls test program, checking why..."
15045 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
15046 LIBS="$LIBS $LIBGNUTLS_LIBS"
15047 cat >conftest.$ac_ext <<_ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15055 #include <stdlib.h>
15056 #include <string.h>
15057 #include <gnutls/gnutls.h>
15062 return !!gnutls_check_version(NULL);
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 echo "*** The test program compiled, but did not run. This usually means"
15086 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
15087 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
15088 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15089 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15090 echo "*** is required on your system"
15092 echo "*** If you have an old version installed, it is best to remove it, although"
15093 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 echo "*** The test program failed to compile or link. See the file config.log for the"
15100 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
15101 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
15102 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
15105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106 conftest$ac_exeext conftest.$ac_ext
15107 CFLAGS="$ac_save_CFLAGS"
15108 LIBS="$ac_save_LIBS"
15111 LIBGNUTLS_CFLAGS=""
15113 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
15114 echo "$as_me: error: could not find libgnutls" >&2;}
15115 { (exit 1); exit 1; }; }
15118 rm -f conf.libgnutlstest
15124 if test x$need_ssl = xyes; then
15134 # Check whether --with-sasl was given.
15135 if test "${with_sasl+set}" = set; then
15136 withval=$with_sasl;
15137 if test "$with_sasl" != "no"
15139 if test "$need_socket" != "yes"
15141 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
15142 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
15143 { (exit 1); exit 1; }; }
15146 if test "$with_sasl" != "yes"
15148 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
15149 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
15155 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
15156 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
15157 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 ac_check_lib_save_LIBS=$LIBS
15161 LIBS="-lsasl2 $LIBS"
15162 cat >conftest.$ac_ext <<_ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15169 /* Override any GCC internal prototype to avoid an error.
15170 Use char because int might match the return type of a GCC
15171 builtin and then its argument prototype would still apply. */
15175 char sasl_client_init ();
15179 return sasl_client_init ();
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_link") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest$ac_exeext &&
15201 $as_test_x conftest$ac_exeext; then
15202 ac_cv_lib_sasl2_sasl_client_init=yes
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 ac_cv_lib_sasl2_sasl_client_init=no
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15212 LIBS=$ac_check_lib_save_LIBS
15214 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
15215 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
15216 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
15217 cat >>confdefs.h <<_ACEOF
15218 #define HAVE_LIBSASL2 1
15221 LIBS="-lsasl2 $LIBS"
15224 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
15225 echo "$as_me: error: could not find libsasl2" >&2;}
15226 { (exit 1); exit 1; }; }
15230 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
15231 MUTTLIBS="$MUTTLIBS -lsasl2"
15234 cat >>confdefs.h <<\_ACEOF
15243 if test x$need_sasl = xyes; then
15253 # Check whether --enable-debug was given.
15254 if test "${enable_debug+set}" = set; then
15255 enableval=$enable_debug; if test x$enableval = xyes ; then
15257 cat >>confdefs.h <<\_ACEOF
15266 # Check whether --enable-flock was given.
15267 if test "${enable_flock+set}" = set; then
15268 enableval=$enable_flock; if test $enableval = yes; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define USE_FLOCK 1
15279 # Check whether --enable-fcntl was given.
15280 if test "${enable_fcntl+set}" = set; then
15281 enableval=$enable_fcntl; if test $enableval = no; then mutt_cv_fcntl=no; fi
15285 if test $mutt_cv_fcntl = yes; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define USE_FCNTL 1
15293 { echo "$as_me:$LINENO: checking whether struct dirent defines d_ino" >&5
15294 echo $ECHO_N "checking whether struct dirent defines d_ino... $ECHO_C" >&6; }
15295 ac_cv_dirent_d_ino=no
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 #include <dirent.h>
15306 struct dirent dp; (void)dp.d_ino
15311 rm -f conftest.$ac_objext conftest$ac_exeext
15312 if { (ac_try="$ac_link"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest$ac_exeext &&
15328 $as_test_x conftest$ac_exeext; then
15329 ac_cv_dirent_d_ino=yes
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338 conftest$ac_exeext conftest.$ac_ext
15339 if test x$ac_cv_dirent_d_ino = xyes ; then
15341 cat >>confdefs.h <<\_ACEOF
15342 #define HAVE_DIRENT_D_INO 1
15346 { echo "$as_me:$LINENO: result: $ac_cv_dirent_d_ino" >&5
15347 echo "${ECHO_T}$ac_cv_dirent_d_ino" >&6; }
15349 mutt_cv_warnings=yes
15350 # Check whether --enable-warnings was given.
15351 if test "${enable_warnings+set}" = set; then
15352 enableval=$enable_warnings; if test $enableval = no; then
15353 mutt_cv_warnings=no
15358 if test x$GCC = xyes && test $mutt_cv_warnings = yes; then
15359 CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS"
15362 # Check whether --enable-nfs-fix was given.
15363 if test "${enable_nfs_fix+set}" = set; then
15364 enableval=$enable_nfs_fix; if test x$enableval = xyes; then
15366 cat >>confdefs.h <<\_ACEOF
15367 #define NFS_ATTRIBUTE_HACK 1
15374 # Check whether --enable-mailtool was given.
15375 if test "${enable_mailtool+set}" = set; then
15376 enableval=$enable_mailtool; if test x$enableval = xyes; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define SUN_ATTACHMENT 1
15386 # Check whether --enable-locales-fix was given.
15387 if test "${enable_locales_fix+set}" = set; then
15388 enableval=$enable_locales_fix; if test x$enableval = xyes; then
15390 cat >>confdefs.h <<\_ACEOF
15391 #define LOCALES_HACK 1
15399 # Check whether --with-exec-shell was given.
15400 if test "${with_exec_shell+set}" = set; then
15401 withval=$with_exec_shell; if test $withval != yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define EXECSHELL "$withval"
15408 cat >>confdefs.h <<_ACEOF
15409 #define EXECSHELL "/bin/sh"
15414 cat >>confdefs.h <<_ACEOF
15415 #define EXECSHELL "/bin/sh"
15421 # Check whether --enable-exact-address was given.
15422 if test "${enable_exact_address+set}" = set; then
15423 enableval=$enable_exact_address; if test $enableval = yes; then
15425 cat >>confdefs.h <<\_ACEOF
15426 #define EXACT_ADDRESS 1
15436 # Check whether --enable-hcache was given.
15437 if test "${enable_hcache+set}" = set; then
15438 enableval=$enable_hcache;
15442 # Check whether --with-tokyocabinet was given.
15443 if test "${with_tokyocabinet+set}" = set; then
15444 withval=$with_tokyocabinet;
15448 # Check whether --with-qdbm was given.
15449 if test "${with_qdbm+set}" = set; then
15450 withval=$with_qdbm;
15454 # Check whether --with-gdbm was given.
15455 if test "${with_gdbm+set}" = set; then
15456 withval=$with_gdbm;
15460 # Check whether --with-bdb was given.
15461 if test "${with_bdb+set}" = set; then
15466 if test x$enable_hcache = xyes
15469 cat >>confdefs.h <<\_ACEOF
15470 #define USE_HCACHE 1
15473 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o"
15475 OLDCPPFLAGS="$CPPFLAGS"
15476 OLDLDFLAGS="$LDFLAGS"
15481 if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "no"
15485 if test -n "$with_qdbm" && test "$with_qdbm" != "no"
15487 if test "$db_requested" != "auto"
15489 { { echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5
15490 echo "$as_me: error: more than one header cache engine requested." >&2;}
15491 { (exit 1); exit 1; }; }
15496 if test -n "$with_gdbm" && test "$with_gdbm" != "no"
15498 if test "$db_requested" != "auto"
15500 { { echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5
15501 echo "$as_me: error: more than one header cache engine requested." >&2;}
15502 { (exit 1); exit 1; }; }
15507 if test -n "$with_bdb" && test "$with_bdb" != "no"
15509 if test "$db_requested" != "auto"
15511 { { echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5
15512 echo "$as_me: error: more than one header cache engine requested." >&2;}
15513 { (exit 1); exit 1; }; }
15519 if test "$with_tokyocabinet" != "no" \
15520 && test "$db_requested" = auto -o "$db_requested" = tc
15522 if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "yes"
15524 CPPFLAGS="$CPPFLAGS -I$with_tokyocabinet/include"
15525 LDFLAGS="$LDFLAGS -L$with_tokyocabinet/lib"
15528 if test "${ac_cv_header_tcbdb_h+set}" = set; then
15529 { echo "$as_me:$LINENO: checking for tcbdb.h" >&5
15530 echo $ECHO_N "checking for tcbdb.h... $ECHO_C" >&6; }
15531 if test "${ac_cv_header_tcbdb_h+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 { echo "$as_me:$LINENO: result: $ac_cv_header_tcbdb_h" >&5
15535 echo "${ECHO_T}$ac_cv_header_tcbdb_h" >&6; }
15537 # Is the header compilable?
15538 { echo "$as_me:$LINENO: checking tcbdb.h usability" >&5
15539 echo $ECHO_N "checking tcbdb.h usability... $ECHO_C" >&6; }
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 $ac_includes_default
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_compile") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest.$ac_objext; then
15566 ac_header_compiler=yes
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_compiler=no
15574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15576 echo "${ECHO_T}$ac_header_compiler" >&6; }
15578 # Is the header present?
15579 { echo "$as_me:$LINENO: checking tcbdb.h presence" >&5
15580 echo $ECHO_N "checking tcbdb.h presence... $ECHO_C" >&6; }
15581 cat >conftest.$ac_ext <<_ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15589 if { (ac_try="$ac_cpp conftest.$ac_ext"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } >/dev/null && {
15602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15605 ac_header_preproc=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_header_preproc=no
15613 rm -f conftest.err conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15615 echo "${ECHO_T}$ac_header_preproc" >&6; }
15617 # So? What about this header?
15618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620 { echo "$as_me:$LINENO: WARNING: tcbdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
15621 echo "$as_me: WARNING: tcbdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: tcbdb.h: proceeding with the compiler's result" >&5
15623 echo "$as_me: WARNING: tcbdb.h: proceeding with the compiler's result" >&2;}
15624 ac_header_preproc=yes
15627 { echo "$as_me:$LINENO: WARNING: tcbdb.h: present but cannot be compiled" >&5
15628 echo "$as_me: WARNING: tcbdb.h: present but cannot be compiled" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: tcbdb.h: check for missing prerequisite headers?" >&5
15630 echo "$as_me: WARNING: tcbdb.h: check for missing prerequisite headers?" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: tcbdb.h: see the Autoconf documentation" >&5
15632 echo "$as_me: WARNING: tcbdb.h: see the Autoconf documentation" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: tcbdb.h: section \"Present But Cannot Be Compiled\"" >&5
15634 echo "$as_me: WARNING: tcbdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: tcbdb.h: proceeding with the preprocessor's result" >&5
15636 echo "$as_me: WARNING: tcbdb.h: proceeding with the preprocessor's result" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: tcbdb.h: in the future, the compiler will take precedence" >&5
15638 echo "$as_me: WARNING: tcbdb.h: in the future, the compiler will take precedence" >&2;}
15642 { echo "$as_me:$LINENO: checking for tcbdb.h" >&5
15643 echo $ECHO_N "checking for tcbdb.h... $ECHO_C" >&6; }
15644 if test "${ac_cv_header_tcbdb_h+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 ac_cv_header_tcbdb_h=$ac_header_preproc
15649 { echo "$as_me:$LINENO: result: $ac_cv_header_tcbdb_h" >&5
15650 echo "${ECHO_T}$ac_cv_header_tcbdb_h" >&6; }
15653 if test $ac_cv_header_tcbdb_h = yes; then
15654 { echo "$as_me:$LINENO: checking for tcbdbopen in -ltokyocabinet" >&5
15655 echo $ECHO_N "checking for tcbdbopen in -ltokyocabinet... $ECHO_C" >&6; }
15656 if test "${ac_cv_lib_tokyocabinet_tcbdbopen+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 ac_check_lib_save_LIBS=$LIBS
15660 LIBS="-ltokyocabinet $LIBS"
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15668 /* Override any GCC internal prototype to avoid an error.
15669 Use char because int might match the return type of a GCC
15670 builtin and then its argument prototype would still apply. */
15678 return tcbdbopen ();
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext &&
15700 $as_test_x conftest$ac_exeext; then
15701 ac_cv_lib_tokyocabinet_tcbdbopen=yes
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_cv_lib_tokyocabinet_tcbdbopen=no
15709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15710 conftest$ac_exeext conftest.$ac_ext
15711 LIBS=$ac_check_lib_save_LIBS
15713 { echo "$as_me:$LINENO: result: $ac_cv_lib_tokyocabinet_tcbdbopen" >&5
15714 echo "${ECHO_T}$ac_cv_lib_tokyocabinet_tcbdbopen" >&6; }
15715 if test $ac_cv_lib_tokyocabinet_tcbdbopen = yes; then
15716 MUTTLIBS="$MUTTLIBS -ltokyocabinet"
15718 cat >>confdefs.h <<\_ACEOF
15724 CPPFLAGS="$OLDCPPFLAGS"
15725 LDFLAGS="$OLDLDFLAGS"
15731 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
15733 { { echo "$as_me:$LINENO: error: Tokyo Cabinet could not be used. Check config.log for details." >&5
15734 echo "$as_me: error: Tokyo Cabinet could not be used. Check config.log for details." >&2;}
15735 { (exit 1); exit 1; }; }
15739 if test "$with_qdbm" != "no" && test $db_found = no \
15740 && test "$db_requested" = auto -o "$db_requested" = qdbm
15742 if test -n "$with_qdbm" && test "$with_qdbm" != "yes"
15744 if test -d $with_qdbm/include/qdbm; then
15745 CPPFLAGS="$CPPFLAGS -I$with_qdbm/include/qdbm"
15747 CPPFLAGS="$CPPFLAGS -I$with_qdbm/include"
15749 LDFLAGS="$LDFLAGS -L$with_qdbm/lib"
15751 if test -d /usr/include/qdbm; then
15752 CPPFLAGS="$CPPFLAGS -I/usr/include/qdbm"
15758 for ac_header in villa.h
15760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15771 # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <$ac_header>
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15792 grep -v '^ *+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } && {
15797 test -z "$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 } && test -s conftest.$ac_objext; then
15800 ac_header_compiler=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <$ac_header>
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null && {
15836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15839 ac_header_preproc=yes
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 eval "$as_ac_Header=\$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15897 { echo "$as_me:$LINENO: checking for vlopen in -lqdbm" >&5
15898 echo $ECHO_N "checking for vlopen in -lqdbm... $ECHO_C" >&6; }
15899 if test "${ac_cv_lib_qdbm_vlopen+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 ac_check_lib_save_LIBS=$LIBS
15903 LIBS="-lqdbm $LIBS"
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext &&
15943 $as_test_x conftest$ac_exeext; then
15944 ac_cv_lib_qdbm_vlopen=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_lib_qdbm_vlopen=no
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { echo "$as_me:$LINENO: result: $ac_cv_lib_qdbm_vlopen" >&5
15957 echo "${ECHO_T}$ac_cv_lib_qdbm_vlopen" >&6; }
15958 if test $ac_cv_lib_qdbm_vlopen = yes; then
15959 MUTTLIBS="$MUTTLIBS -lqdbm"
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_QDBM 1
15967 CPPFLAGS="$OLDCPPFLAGS"
15968 LDFLAGS="$OLDLDFLAGS"
15972 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
15974 { { echo "$as_me:$LINENO: error: QDBM could not be used. Check config.log for details." >&5
15975 echo "$as_me: error: QDBM could not be used. Check config.log for details." >&2;}
15976 { (exit 1); exit 1; }; }
15980 if test x$with_gdbm != xno && test $db_found = no \
15981 && test "$db_requested" = auto -o "$db_requested" = gdbm
15983 if test "$with_gdbm" != "yes"
15985 CPPFLAGS="$CPPFLAGS -I$with_gdbm/include"
15986 LDFLAGS="$LDFLAGS -L$with_gdbm/lib"
15989 LIBS="$LIBS -lgdbm"
15990 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
15991 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
15992 if test "${ac_cv_gdbmopen+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16007 gdbm_open(0,0,0,0,0);
16012 rm -f conftest.$ac_objext conftest$ac_exeext
16013 if { (ac_try="$ac_link"
16014 case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_link") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest$ac_exeext &&
16029 $as_test_x conftest$ac_exeext; then
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16039 conftest$ac_exeext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
16043 echo "${ECHO_T}$ac_cv_gdbmopen" >&6; }
16045 if test "$ac_cv_gdbmopen" = yes
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_GDBM 1
16052 MUTTLIBS="$MUTTLIBS -lgdbm"
16055 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
16057 { { echo "$as_me:$LINENO: error: GDBM could not be used. Check config.log for details." >&5
16058 echo "$as_me: error: GDBM could not be used. Check config.log for details." >&2;}
16059 { (exit 1); exit 1; }; }
16063 ac_bdb_prefix="$with_bdb"
16064 if test x$ac_bdb_prefix != xno && test $db_found = no
16066 if test x$ac_bdb_prefix = xyes || test x$ac_bdb_prefix = x
16068 ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
16070 for d in $ac_bdb_prefix; do
16071 bdbpfx="$bdbpfx $d"
16072 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
16073 bdbpfx="$bdbpfx $d/$v"
16076 BDB_VERSIONS="db-4 db4 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
16077 { echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
16078 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6; }
16079 for d in $bdbpfx; do
16082 for v in / $BDB_VERSIONS; do
16083 if test -r "$d/include/$v/db.h"; then
16084 BDB_INCLUDE_DIR="$d/include/$v"
16085 for bdblibdir in "$d/lib/$v" "$d/lib"; do
16086 test -d "$bdblibdir" || continue
16087 BDB_LIB_DIR="$bdblibdir"
16088 for l in `echo $BDB_VERSIONS`; do
16089 CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
16090 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16098 #include <stdlib.h>
16106 db->open(db,NULL,NULL,NULL,0,0,0);
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (ac_try="$ac_link"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_link") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest$ac_exeext &&
16129 $as_test_x conftest$ac_exeext; then
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16145 test x$ac_cv_dbcreate = xyes && break 2
16149 test x$BDB_LIB != x && break
16151 if test x$ac_cv_dbcreate = xyes
16153 { echo "$as_me:$LINENO: result: yes" >&5
16154 echo "${ECHO_T}yes" >&6; }
16155 CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
16156 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
16158 cat >>confdefs.h <<\_ACEOF
16164 { echo "$as_me:$LINENO: result: no" >&5
16165 echo "${ECHO_T}no" >&6; }
16169 if test $db_found = no
16171 { { echo "$as_me:$LINENO: error: You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache" >&5
16172 echo "$as_me: error: You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache" >&2;}
16173 { (exit 1); exit 1; }; }
16177 if test "$need_md5" = "yes"
16179 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o"
16180 MUTT_MD5="mutt_md5"
16190 # Check whether --enable-iconv was given.
16191 if test "${enable_iconv+set}" = set; then
16192 enableval=$enable_iconv; if test x$enableval = xno ; then
16193 am_cv_func_iconv=no
16199 { echo "$as_me:$LINENO: checking for off_t" >&5
16200 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16201 if test "${ac_cv_type_off_t+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16211 typedef off_t ac__type_new_;
16215 if ((ac__type_new_ *) 0)
16217 if (sizeof (ac__type_new_))
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest.$ac_objext; then
16240 ac_cv_type_off_t=yes
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_cv_type_off_t=no
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16251 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16252 if test $ac_cv_type_off_t = yes; then
16256 cat >>confdefs.h <<_ACEOF
16257 #define off_t long int
16262 { echo "$as_me:$LINENO: checking for size_t" >&5
16263 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16264 if test "${ac_cv_type_size_t+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 $ac_includes_default
16274 typedef size_t ac__type_new_;
16278 if ((ac__type_new_ *) 0)
16280 if (sizeof (ac__type_new_))
16286 rm -f conftest.$ac_objext
16287 if { (ac_try="$ac_compile"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_compile") 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } && {
16300 test -z "$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 } && test -s conftest.$ac_objext; then
16303 ac_cv_type_size_t=yes
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_cv_type_size_t=no
16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16314 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16315 if test $ac_cv_type_size_t = yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define size_t unsigned int
16325 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16326 # for constant arguments. Useless!
16327 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
16328 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
16329 if test "${ac_cv_working_alloca_h+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 #include <alloca.h>
16342 char *p = (char *) alloca (2 * sizeof (int));
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_link") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } && {
16362 test -z "$ac_c_werror_flag" ||
16363 test ! -s conftest.err
16364 } && test -s conftest$ac_exeext &&
16365 $as_test_x conftest$ac_exeext; then
16366 ac_cv_working_alloca_h=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_cv_working_alloca_h=no
16374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16375 conftest$ac_exeext conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16378 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
16379 if test $ac_cv_working_alloca_h = yes; then
16381 cat >>confdefs.h <<\_ACEOF
16382 #define HAVE_ALLOCA_H 1
16387 { echo "$as_me:$LINENO: checking for alloca" >&5
16388 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
16389 if test "${ac_cv_func_alloca_works+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16399 # define alloca __builtin_alloca
16402 # include <malloc.h>
16403 # define alloca _alloca
16405 # ifdef HAVE_ALLOCA_H
16406 # include <alloca.h>
16411 # ifndef alloca /* predefined by HP cc +Olibcalls */
16422 char *p = (char *) alloca (1);
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 ac_cv_func_alloca_works=yes
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_func_alloca_works=no
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16458 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
16460 if test $ac_cv_func_alloca_works = yes; then
16462 cat >>confdefs.h <<\_ACEOF
16463 #define HAVE_ALLOCA 1
16467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16468 # that cause trouble. Some versions do not even contain alloca or
16469 # contain a buggy version. If you still want to use their alloca,
16470 # use ar to extract alloca.o from them instead of compiling alloca.c.
16472 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16474 cat >>confdefs.h <<\_ACEOF
16479 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16480 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
16481 if test "${ac_cv_os_cray+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 #if defined CRAY && ! defined CRAY2
16497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16498 $EGREP "webecray" >/dev/null 2>&1; then
16506 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16507 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16508 if test $ac_cv_os_cray = yes; then
16509 for ac_func in _getb67 GETB67 getb67; do
16510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16524 #define $ac_func innocuous_$ac_func
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func (); below.
16528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529 <limits.h> exists even on freestanding compilers. */
16532 # include <limits.h>
16534 # include <assert.h>
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16546 /* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549 #if defined __stub_$ac_func || defined __stub___$ac_func
16556 return $ac_func ();
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest$ac_exeext &&
16578 $as_test_x conftest$ac_exeext; then
16579 eval "$as_ac_var=yes"
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 eval "$as_ac_var=no"
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588 conftest$ac_exeext conftest.$ac_ext
16590 ac_res=`eval echo '${'$as_ac_var'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_var'}'` = yes; then
16595 cat >>confdefs.h <<_ACEOF
16596 #define CRAY_STACKSEG_END $ac_func
16605 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16606 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16607 if test "${ac_cv_c_stack_direction+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 if test "$cross_compiling" = yes; then
16611 ac_cv_c_stack_direction=0
16613 cat >conftest.$ac_ext <<_ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 $ac_includes_default
16621 find_stack_direction ()
16623 static char *addr = 0;
16628 return find_stack_direction ();
16631 return (&dummy > addr) ? 1 : -1;
16637 return find_stack_direction () < 0;
16640 rm -f conftest$ac_exeext
16641 if { (ac_try="$ac_link"
16642 case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_link") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_c_stack_direction=1
16662 echo "$as_me: program exited with status $ac_status" >&5
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ( exit $ac_status )
16667 ac_cv_c_stack_direction=-1
16669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16675 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16677 cat >>confdefs.h <<_ACEOF
16678 #define STACK_DIRECTION $ac_cv_c_stack_direction
16686 for ac_header in stdlib.h unistd.h
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 ac_res=`eval echo '${'$as_ac_Header'}'`
16696 { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16699 # Is the header compilable?
16700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 $ac_includes_default
16709 #include <$ac_header>
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_compile") 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } && {
16725 test -z "$ac_c_werror_flag" ||
16726 test ! -s conftest.err
16727 } && test -s conftest.$ac_objext; then
16728 ac_header_compiler=yes
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_header_compiler=no
16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16738 echo "${ECHO_T}$ac_header_compiler" >&6; }
16740 # Is the header present?
16741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 #include <$ac_header>
16751 if { (ac_try="$ac_cpp conftest.$ac_ext"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } >/dev/null && {
16764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16767 ac_header_preproc=yes
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_header_preproc=no
16775 rm -f conftest.err conftest.$ac_ext
16776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16777 echo "${ECHO_T}$ac_header_preproc" >&6; }
16779 # So? What about this header?
16780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16786 ac_header_preproc=yes
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 eval "$as_ac_Header=\$ac_header_preproc"
16811 ac_res=`eval echo '${'$as_ac_Header'}'`
16812 { echo "$as_me:$LINENO: result: $ac_res" >&5
16813 echo "${ECHO_T}$ac_res" >&6; }
16816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826 for ac_func in getpagesize
16828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16842 #define $ac_func innocuous_$ac_func
16844 /* System header to define __stub macros and hopefully few prototypes,
16845 which can conflict with char $ac_func (); below.
16846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847 <limits.h> exists even on freestanding compilers. */
16850 # include <limits.h>
16852 # include <assert.h>
16857 /* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined __stub_$ac_func || defined __stub___$ac_func
16874 return $ac_func ();
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest$ac_exeext &&
16896 $as_test_x conftest$ac_exeext; then
16897 eval "$as_ac_var=yes"
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 eval "$as_ac_var=no"
16905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16906 conftest$ac_exeext conftest.$ac_ext
16908 ac_res=`eval echo '${'$as_ac_var'}'`
16909 { echo "$as_me:$LINENO: result: $ac_res" >&5
16910 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16919 { echo "$as_me:$LINENO: checking for working mmap" >&5
16920 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16921 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 if test "$cross_compiling" = yes; then
16925 ac_cv_func_mmap_fixed_mapped=no
16927 cat >conftest.$ac_ext <<_ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 $ac_includes_default
16934 /* malloc might have been renamed as rpl_malloc. */
16937 /* Thanks to Mike Haertel and Jim Avera for this test.
16938 Here is a matrix of mmap possibilities:
16939 mmap private not fixed
16940 mmap private fixed at somewhere currently unmapped
16941 mmap private fixed at somewhere already mapped
16942 mmap shared not fixed
16943 mmap shared fixed at somewhere currently unmapped
16944 mmap shared fixed at somewhere already mapped
16945 For private mappings, we should verify that changes cannot be read()
16946 back from the file, nor mmap's back from the file at a different
16947 address. (There have been systems where private was not correctly
16948 implemented like the infamous i386 svr4.0, and systems where the
16949 VM page cache was not coherent with the file system buffer cache
16950 like early versions of FreeBSD and possibly contemporary NetBSD.)
16951 For shared mappings, we should conversely verify that changes get
16952 propagated back to all the places they're supposed to be.
16954 Grep wants private fixed already mapped.
16955 The main things grep needs to know about mmap are:
16956 * does it exist and is it safe to write into the mmap'd area
16957 * how to use it (BSD variants) */
16960 #include <sys/mman.h>
16962 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16966 /* This mess was copied from the GNU getpagesize.h. */
16967 #ifndef HAVE_GETPAGESIZE
16968 /* Assume that all systems that can run configure have sys/param.h. */
16969 # ifndef HAVE_SYS_PARAM_H
16970 # define HAVE_SYS_PARAM_H 1
16973 # ifdef _SC_PAGESIZE
16974 # define getpagesize() sysconf(_SC_PAGESIZE)
16975 # else /* no _SC_PAGESIZE */
16976 # ifdef HAVE_SYS_PARAM_H
16977 # include <sys/param.h>
16978 # ifdef EXEC_PAGESIZE
16979 # define getpagesize() EXEC_PAGESIZE
16980 # else /* no EXEC_PAGESIZE */
16982 # define getpagesize() NBPG * CLSIZE
16985 # endif /* no CLSIZE */
16986 # else /* no NBPG */
16988 # define getpagesize() NBPC
16989 # else /* no NBPC */
16991 # define getpagesize() PAGESIZE
16992 # endif /* PAGESIZE */
16993 # endif /* no NBPC */
16994 # endif /* no NBPG */
16995 # endif /* no EXEC_PAGESIZE */
16996 # else /* no HAVE_SYS_PARAM_H */
16997 # define getpagesize() 8192 /* punt totally */
16998 # endif /* no HAVE_SYS_PARAM_H */
16999 # endif /* no _SC_PAGESIZE */
17001 #endif /* no HAVE_GETPAGESIZE */
17006 char *data, *data2, *data3;
17010 pagesize = getpagesize ();
17012 /* First, make a file with some known garbage in it. */
17013 data = (char *) malloc (pagesize);
17016 for (i = 0; i < pagesize; ++i)
17017 *(data + i) = rand ();
17019 fd = creat ("conftest.mmap", 0600);
17022 if (write (fd, data, pagesize) != pagesize)
17026 /* Next, try to mmap the file at a fixed address which already has
17027 something else allocated at it. If we can, also make sure that
17028 we see the same garbage. */
17029 fd = open ("conftest.mmap", O_RDWR);
17032 data2 = (char *) malloc (2 * pagesize);
17035 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17036 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17037 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17039 for (i = 0; i < pagesize; ++i)
17040 if (*(data + i) != *(data2 + i))
17043 /* Finally, make sure that changes to the mapped area do not
17044 percolate back to the file as seen by read(). (This is a bug on
17045 some variants of i386 svr4.0.) */
17046 for (i = 0; i < pagesize; ++i)
17047 *(data2 + i) = *(data2 + i) + 1;
17048 data3 = (char *) malloc (pagesize);
17051 if (read (fd, data3, pagesize) != pagesize)
17053 for (i = 0; i < pagesize; ++i)
17054 if (*(data + i) != *(data3 + i))
17060 rm -f conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_cv_func_mmap_fixed_mapped=yes
17082 echo "$as_me: program exited with status $ac_status" >&5
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ( exit $ac_status )
17087 ac_cv_func_mmap_fixed_mapped=no
17089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17094 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17095 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17096 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_MMAP 1
17103 rm -f conftest.mmap
17106 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
17107 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
17108 if test "${ac_cv_gnu_library_2_1+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 cat >conftest.$ac_ext <<_ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17118 #include <features.h>
17119 #ifdef __GNU_LIBRARY__
17120 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
17126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17127 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
17128 ac_cv_gnu_library_2_1=yes
17130 ac_cv_gnu_library_2_1=no
17137 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
17138 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
17140 GLIBC21="$ac_cv_gnu_library_2_1"
17154 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
17155 stdlib.h string.h unistd.h sys/param.h
17157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 ac_res=`eval echo '${'$as_ac_Header'}'`
17165 { echo "$as_me:$LINENO: result: $ac_res" >&5
17166 echo "${ECHO_T}$ac_res" >&6; }
17168 # Is the header compilable?
17169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <$ac_header>
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ac_header_compiler=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ac_header_compiler=no
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17207 echo "${ECHO_T}$ac_header_compiler" >&6; }
17209 # Is the header present?
17210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 #include <$ac_header>
17220 if { (ac_try="$ac_cpp conftest.$ac_ext"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } >/dev/null && {
17233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17236 ac_header_preproc=yes
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_preproc=no
17244 rm -f conftest.err conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17246 echo "${ECHO_T}$ac_header_preproc" >&6; }
17248 # So? What about this header?
17249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17255 ac_header_preproc=yes
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 eval "$as_ac_Header=\$ac_header_preproc"
17280 ac_res=`eval echo '${'$as_ac_Header'}'`
17281 { echo "$as_me:$LINENO: result: $ac_res" >&5
17282 echo "${ECHO_T}$ac_res" >&6; }
17285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17286 cat >>confdefs.h <<_ACEOF
17287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17315 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
17316 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
17317 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
17319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 cat >conftest.$ac_ext <<_ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17333 #define $ac_func innocuous_$ac_func
17335 /* System header to define __stub macros and hopefully few prototypes,
17336 which can conflict with char $ac_func (); below.
17337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17338 <limits.h> exists even on freestanding compilers. */
17341 # include <limits.h>
17343 # include <assert.h>
17348 /* Override any GCC internal prototype to avoid an error.
17349 Use char because int might match the return type of a GCC
17350 builtin and then its argument prototype would still apply. */
17355 /* The GNU C library defines this for functions which it implements
17356 to always fail with ENOSYS. Some functions are actually named
17357 something starting with __ and the normal name is an alias. */
17358 #if defined __stub_$ac_func || defined __stub___$ac_func
17365 return $ac_func ();
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_link") 2>conftest.er1
17379 grep -v '^ *+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } && {
17384 test -z "$ac_c_werror_flag" ||
17385 test ! -s conftest.err
17386 } && test -s conftest$ac_exeext &&
17387 $as_test_x conftest$ac_exeext; then
17388 eval "$as_ac_var=yes"
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 eval "$as_ac_var=no"
17396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397 conftest$ac_exeext conftest.$ac_ext
17399 ac_res=`eval echo '${'$as_ac_var'}'`
17400 { echo "$as_me:$LINENO: result: $ac_res" >&5
17401 echo "${ECHO_T}$ac_res" >&6; }
17402 if test `eval echo '${'$as_ac_var'}'` = yes; then
17403 cat >>confdefs.h <<_ACEOF
17404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17414 # Check whether --with-libiconv-prefix was given.
17415 if test "${with_libiconv_prefix+set}" = set; then
17416 withval=$with_libiconv_prefix;
17417 for dir in `echo "$withval" | tr : ' '`; do
17418 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17419 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17425 { echo "$as_me:$LINENO: checking for iconv" >&5
17426 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17427 if test "${am_cv_func_iconv+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 am_cv_func_iconv="no, consider installing GNU libiconv"
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <stdlib.h>
17444 iconv_t cd = iconv_open("","");
17445 iconv(cd,NULL,NULL,NULL,NULL);
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (ac_try="$ac_link"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_link") 2>conftest.er1
17460 grep -v '^ *+' conftest.er1 >conftest.err
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest$ac_exeext &&
17468 $as_test_x conftest$ac_exeext; then
17469 am_cv_func_iconv=yes
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17478 conftest$ac_exeext conftest.$ac_ext
17479 if test "$am_cv_func_iconv" != yes; then
17480 am_save_LIBS="$LIBS"
17481 LIBS="$LIBS -liconv"
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 #include <stdlib.h>
17493 iconv_t cd = iconv_open("","");
17494 iconv(cd,NULL,NULL,NULL,NULL);
17500 rm -f conftest.$ac_objext conftest$ac_exeext
17501 if { (ac_try="$ac_link"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_link") 2>conftest.er1
17509 grep -v '^ *+' conftest.er1 >conftest.err
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && {
17514 test -z "$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17516 } && test -s conftest$ac_exeext &&
17517 $as_test_x conftest$ac_exeext; then
17518 am_cv_lib_iconv=yes
17519 am_cv_func_iconv=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17528 conftest$ac_exeext conftest.$ac_ext
17529 LIBS="$am_save_LIBS"
17533 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17534 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17535 if test "$am_cv_func_iconv" = yes; then
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_ICONV 1
17541 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
17542 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
17543 if test "${am_cv_proto_iconv+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17554 #include <stdlib.h>
17560 #if defined(__STDC__) || defined(__cplusplus)
17561 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17574 rm -f conftest.$ac_objext
17575 if { (ac_try="$ac_compile"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_compile") 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } && {
17588 test -z "$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17590 } && test -s conftest.$ac_objext; then
17591 am_cv_proto_iconv_arg1=""
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 am_cv_proto_iconv_arg1="const"
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600 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);"
17603 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17604 { echo "$as_me:$LINENO: result: ${ac_t:-
17605 }$am_cv_proto_iconv" >&5
17606 echo "${ECHO_T}${ac_t:-
17607 }$am_cv_proto_iconv" >&6; }
17609 cat >>confdefs.h <<_ACEOF
17610 #define ICONV_CONST $am_cv_proto_iconv_arg1
17615 if test "$am_cv_lib_iconv" = yes; then
17621 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17622 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
17623 if test "${am_cv_langinfo_codeset+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 #include <langinfo.h>
17636 char* cs = nl_langinfo(CODESET);
17641 rm -f conftest.$ac_objext conftest$ac_exeext
17642 if { (ac_try="$ac_link"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_link") 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } && {
17655 test -z "$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17657 } && test -s conftest$ac_exeext &&
17658 $as_test_x conftest$ac_exeext; then
17659 am_cv_langinfo_codeset=yes
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 am_cv_langinfo_codeset=no
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668 conftest$ac_exeext conftest.$ac_ext
17671 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17672 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
17673 if test $am_cv_langinfo_codeset = yes; then
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_LANGINFO_CODESET 1
17681 if test $ac_cv_header_locale_h = yes; then
17682 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17683 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
17684 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 #include <locale.h>
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (ac_try="$ac_link"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_link") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest$ac_exeext &&
17719 $as_test_x conftest$ac_exeext; then
17720 am_cv_val_LC_MESSAGES=yes
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 am_cv_val_LC_MESSAGES=no
17728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17729 conftest$ac_exeext conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17732 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
17733 if test $am_cv_val_LC_MESSAGES = yes; then
17735 cat >>confdefs.h <<\_ACEOF
17736 #define HAVE_LC_MESSAGES 1
17741 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17742 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17743 # Check whether --enable-nls was given.
17744 if test "${enable_nls+set}" = set; then
17745 enableval=$enable_nls; USE_NLS=$enableval
17750 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17751 echo "${ECHO_T}$USE_NLS" >&6; }
17754 BUILD_INCLUDED_LIBINTL=no
17755 USE_INCLUDED_LIBINTL=no
17758 if test "$USE_NLS" = "yes"; then
17760 cat >>confdefs.h <<\_ACEOF
17761 #define ENABLE_NLS 1
17764 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17765 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
17767 # Check whether --with-included-gettext was given.
17768 if test "${with_included_gettext+set}" = set; then
17769 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
17771 nls_cv_force_use_gnu_gettext=no
17774 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17775 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
17777 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17778 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17784 if test "${ac_cv_header_libintl_h+set}" = set; then
17785 { echo "$as_me:$LINENO: checking for libintl.h" >&5
17786 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17787 if test "${ac_cv_header_libintl_h+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17791 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17793 # Is the header compilable?
17794 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
17795 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 $ac_includes_default
17803 #include <libintl.h>
17805 rm -f conftest.$ac_objext
17806 if { (ac_try="$ac_compile"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_compile") 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } && {
17819 test -z "$ac_c_werror_flag" ||
17820 test ! -s conftest.err
17821 } && test -s conftest.$ac_objext; then
17822 ac_header_compiler=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_header_compiler=no
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17832 echo "${ECHO_T}$ac_header_compiler" >&6; }
17834 # Is the header present?
17835 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
17836 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 #include <libintl.h>
17845 if { (ac_try="$ac_cpp conftest.$ac_ext"
17846 case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } >/dev/null && {
17858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17859 test ! -s conftest.err
17861 ac_header_preproc=yes
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 ac_header_preproc=no
17869 rm -f conftest.err conftest.$ac_ext
17870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17871 echo "${ECHO_T}$ac_header_preproc" >&6; }
17873 # So? What about this header?
17874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17876 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17877 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
17879 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
17880 ac_header_preproc=yes
17883 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17884 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17885 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17886 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
17888 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
17890 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17892 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
17894 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
17898 { echo "$as_me:$LINENO: checking for libintl.h" >&5
17899 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17900 if test "${ac_cv_header_libintl_h+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 ac_cv_header_libintl_h=$ac_header_preproc
17905 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17906 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17909 if test $ac_cv_header_libintl_h = yes; then
17910 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17911 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17912 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 #include <libintl.h>
17922 extern int _nl_msg_cat_cntr;
17926 bindtextdomain ("", "");
17927 return (int) gettext ("") + _nl_msg_cat_cntr
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_link") 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } && {
17946 test -z "$ac_c_werror_flag" ||
17947 test ! -s conftest.err
17948 } && test -s conftest$ac_exeext &&
17949 $as_test_x conftest$ac_exeext; then
17950 gt_cv_func_gnugettext1_libc=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 gt_cv_func_gnugettext1_libc=no
17958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959 conftest$ac_exeext conftest.$ac_ext
17961 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17962 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17964 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17965 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17966 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
17967 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 gt_save_LIBS="$LIBS"
17971 LIBS="$LIBS -lintl $LIBICONV"
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 #include <libintl.h>
17979 extern int _nl_msg_cat_cntr;
17983 bindtextdomain ("", "");
17984 return (int) gettext ("") + _nl_msg_cat_cntr
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (ac_try="$ac_link"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_link") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest$ac_exeext &&
18006 $as_test_x conftest$ac_exeext; then
18007 gt_cv_func_gnugettext1_libintl=yes
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 gt_cv_func_gnugettext1_libintl=no
18015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS="$gt_save_LIBS"
18019 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18020 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18023 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18024 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18025 && test "$PACKAGE" != gettext; }; then
18027 cat >>confdefs.h <<\_ACEOF
18028 #define HAVE_GETTEXT 1
18032 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18033 INTLLIBS="-lintl $LIBICONV"
18036 gt_save_LIBS="$LIBS"
18037 LIBS="$LIBS $INTLLIBS"
18039 for ac_func in dcgettext
18041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 cat >conftest.$ac_ext <<_ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18055 #define $ac_func innocuous_$ac_func
18057 /* System header to define __stub macros and hopefully few prototypes,
18058 which can conflict with char $ac_func (); below.
18059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18060 <limits.h> exists even on freestanding compilers. */
18063 # include <limits.h>
18065 # include <assert.h>
18070 /* Override any GCC internal prototype to avoid an error.
18071 Use char because int might match the return type of a GCC
18072 builtin and then its argument prototype would still apply. */
18077 /* The GNU C library defines this for functions which it implements
18078 to always fail with ENOSYS. Some functions are actually named
18079 something starting with __ and the normal name is an alias. */
18080 #if defined __stub_$ac_func || defined __stub___$ac_func
18087 return $ac_func ();
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && {
18106 test -z "$ac_c_werror_flag" ||
18107 test ! -s conftest.err
18108 } && test -s conftest$ac_exeext &&
18109 $as_test_x conftest$ac_exeext; then
18110 eval "$as_ac_var=yes"
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 eval "$as_ac_var=no"
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18121 ac_res=`eval echo '${'$as_ac_var'}'`
18122 { echo "$as_me:$LINENO: result: $ac_res" >&5
18123 echo "${ECHO_T}$ac_res" >&6; }
18124 if test `eval echo '${'$as_ac_var'}'` = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18132 LIBS="$gt_save_LIBS"
18134 # Extract the first word of "msgfmt", so it can be a program name with args.
18135 set dummy msgfmt; ac_word=$2
18136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18138 if test "${ac_cv_path_MSGFMT+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18147 for ac_dir in $PATH; do
18148 test -z "$ac_dir" && ac_dir=.
18149 if test -f $ac_dir/$ac_word; then
18150 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
18151 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
18157 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18161 MSGFMT="$ac_cv_path_MSGFMT"
18162 if test "$MSGFMT" != ":"; then
18163 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18164 echo "${ECHO_T}$MSGFMT" >&6; }
18166 { echo "$as_me:$LINENO: result: no" >&5
18167 echo "${ECHO_T}no" >&6; }
18170 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18171 set dummy gmsgfmt; ac_word=$2
18172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18174 if test "${ac_cv_path_GMSGFMT+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18183 for as_dir in $PATH
18186 test -z "$as_dir" && as_dir=.
18187 for ac_exec_ext in '' $ac_executable_extensions; do
18188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18189 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18197 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18201 GMSGFMT=$ac_cv_path_GMSGFMT
18202 if test -n "$GMSGFMT"; then
18203 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
18204 echo "${ECHO_T}$GMSGFMT" >&6; }
18206 { echo "$as_me:$LINENO: result: no" >&5
18207 echo "${ECHO_T}no" >&6; }
18212 # Extract the first word of "xgettext", so it can be a program name with args.
18213 set dummy xgettext; ac_word=$2
18214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18216 if test "${ac_cv_path_XGETTEXT+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 case "$XGETTEXT" in
18221 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18225 for ac_dir in $PATH; do
18226 test -z "$ac_dir" && ac_dir=.
18227 if test -f $ac_dir/$ac_word; then
18228 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
18229 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
18235 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18239 XGETTEXT="$ac_cv_path_XGETTEXT"
18240 if test "$XGETTEXT" != ":"; then
18241 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18242 echo "${ECHO_T}$XGETTEXT" >&6; }
18244 { echo "$as_me:$LINENO: result: no" >&5
18245 echo "${ECHO_T}no" >&6; }
18256 if test "$CATOBJEXT" = "NONE"; then
18257 nls_cv_use_gnu_gettext=yes
18261 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18262 INTLOBJS="\$(GETTOBJS)"
18263 # Extract the first word of "msgfmt", so it can be a program name with args.
18264 set dummy msgfmt; ac_word=$2
18265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18267 if test "${ac_cv_path_MSGFMT+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18276 for ac_dir in $PATH; do
18277 test -z "$ac_dir" && ac_dir=.
18278 if test -f $ac_dir/$ac_word; then
18279 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
18280 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
18286 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18290 MSGFMT="$ac_cv_path_MSGFMT"
18291 if test "$MSGFMT" != ":"; then
18292 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18293 echo "${ECHO_T}$MSGFMT" >&6; }
18295 { echo "$as_me:$LINENO: result: no" >&5
18296 echo "${ECHO_T}no" >&6; }
18299 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18300 set dummy gmsgfmt; ac_word=$2
18301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18303 if test "${ac_cv_path_GMSGFMT+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18312 for as_dir in $PATH
18315 test -z "$as_dir" && as_dir=.
18316 for ac_exec_ext in '' $ac_executable_extensions; do
18317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18318 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18326 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18330 GMSGFMT=$ac_cv_path_GMSGFMT
18331 if test -n "$GMSGFMT"; then
18332 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
18333 echo "${ECHO_T}$GMSGFMT" >&6; }
18335 { echo "$as_me:$LINENO: result: no" >&5
18336 echo "${ECHO_T}no" >&6; }
18340 # Extract the first word of "xgettext", so it can be a program name with args.
18341 set dummy xgettext; ac_word=$2
18342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18344 if test "${ac_cv_path_XGETTEXT+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 case "$XGETTEXT" in
18349 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18353 for ac_dir in $PATH; do
18354 test -z "$ac_dir" && ac_dir=.
18355 if test -f $ac_dir/$ac_word; then
18356 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
18357 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
18363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18367 XGETTEXT="$ac_cv_path_XGETTEXT"
18368 if test "$XGETTEXT" != ":"; then
18369 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18370 echo "${ECHO_T}$XGETTEXT" >&6; }
18372 { echo "$as_me:$LINENO: result: no" >&5
18373 echo "${ECHO_T}no" >&6; }
18377 BUILD_INCLUDED_LIBINTL=yes
18378 USE_INCLUDED_LIBINTL=yes
18380 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
18381 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18384 if test "$GMSGFMT" != ":"; then
18385 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
18388 { echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
18389 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
18394 if test "$XGETTEXT" != ":"; then
18395 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
18398 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
18399 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
18406 ac_config_commands="$ac_config_commands default-1"
18410 if test "$PACKAGE" = gettext; then
18411 BUILD_INCLUDED_LIBINTL=yes
18414 for ac_prog in bison
18416 # Extract the first word of "$ac_prog", so it can be a program name with args.
18417 set dummy $ac_prog; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_INTLBISON+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 if test -n "$INTLBISON"; then
18424 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18430 test -z "$as_dir" && as_dir=.
18431 for ac_exec_ext in '' $ac_executable_extensions; do
18432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433 ac_cv_prog_INTLBISON="$ac_prog"
18434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 INTLBISON=$ac_cv_prog_INTLBISON
18444 if test -n "$INTLBISON"; then
18445 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
18446 echo "${ECHO_T}$INTLBISON" >&6; }
18448 { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18453 test -n "$INTLBISON" && break
18456 if test -z "$INTLBISON"; then
18459 { echo "$as_me:$LINENO: checking version of bison" >&5
18460 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
18461 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18462 case $ac_prog_version in
18463 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18464 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
18465 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18466 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18468 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
18469 echo "${ECHO_T}$ac_prog_version" >&6; }
18471 if test $ac_verc_fail = yes; then
18475 for lang in $ALL_LINGUAS; do
18476 GMOFILES="$GMOFILES $lang.gmo"
18477 POFILES="$POFILES $lang.po"
18490 nls_cv_header_intl=
18491 nls_cv_header_libgt=
18503 if test "x$CATOBJEXT" != "x"; then
18504 if test "x$ALL_LINGUAS" = "x"; then
18507 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
18508 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
18510 for presentlang in $ALL_LINGUAS; do
18512 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
18513 # Use the presentlang catalog if desiredlang is
18514 # a. equal to presentlang, or
18515 # b. a variant of presentlang (because in this case,
18516 # presentlang can be used as a fallback for messages
18517 # which are not translated in the desiredlang catalog).
18518 case "$desiredlang" in
18519 "$presentlang"*) useit=yes;;
18522 if test $useit = yes; then
18523 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
18526 LINGUAS=$NEW_LINGUAS
18527 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
18528 echo "${ECHO_T}$LINGUAS" >&6; }
18531 if test -n "$LINGUAS"; then
18532 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
18537 if test -n "$ac_aux_dir"; then
18538 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
18540 if test -z "$MKINSTALLDIRS"; then
18541 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
18545 INTL_LIBTOOL_SUFFIX_PREFIX=
18549 if test "$am_cv_func_iconv" != "yes"
18551 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
18552 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
18556 for ac_header in iconv.h
18558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 ac_res=`eval echo '${'$as_ac_Header'}'`
18566 { echo "$as_me:$LINENO: result: $ac_res" >&5
18567 echo "${ECHO_T}$ac_res" >&6; }
18569 # Is the header compilable?
18570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18579 #include <$ac_header>
18581 rm -f conftest.$ac_objext
18582 if { (ac_try="$ac_compile"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_compile") 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } && {
18595 test -z "$ac_c_werror_flag" ||
18596 test ! -s conftest.err
18597 } && test -s conftest.$ac_objext; then
18598 ac_header_compiler=yes
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18603 ac_header_compiler=no
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18608 echo "${ECHO_T}$ac_header_compiler" >&6; }
18610 # Is the header present?
18611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619 #include <$ac_header>
18621 if { (ac_try="$ac_cpp conftest.$ac_ext"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } >/dev/null && {
18634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18637 ac_header_preproc=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_header_preproc=no
18645 rm -f conftest.err conftest.$ac_ext
18646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18647 echo "${ECHO_T}$ac_header_preproc" >&6; }
18649 # So? What about this header?
18650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18656 ac_header_preproc=yes
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 eval "$as_ac_Header=\$ac_header_preproc"
18681 ac_res=`eval echo '${'$as_ac_Header'}'`
18682 { echo "$as_me:$LINENO: result: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18690 { echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
18691 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18702 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
18703 { echo "$as_me:$LINENO: result: yes" >&5
18704 echo "${ECHO_T}yes" >&6; }
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE_ICONV_T_DEF 1
18711 { echo "$as_me:$LINENO: result: no" >&5
18712 echo "${ECHO_T}no" >&6; }
18721 { echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
18722 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6; }
18723 if test "${mutt_cv_iconv_good+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 mutt_save_LIBS="$LIBS"
18727 LIBS="$LIBS $LIBICONV"
18728 if test "$cross_compiling" = yes; then
18729 mutt_cv_iconv_good=yes
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18745 ob = buf, obl = sizeof(buf);
18746 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
18747 (iconv(cd, 0, 0, &ob, &obl) ||
18748 !(ob == buf && obl == sizeof(buf)) ||
18753 rm -f conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 mutt_cv_iconv_good=yes
18775 echo "$as_me: program exited with status $ac_status" >&5
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ( exit $ac_status )
18780 mutt_cv_iconv_good=no
18782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18786 LIBS="$mutt_save_LIBS"
18788 { echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
18789 echo "${ECHO_T}$mutt_cv_iconv_good" >&6; }
18790 if test "$mutt_cv_iconv_good" = no; then
18791 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
18792 echo "$as_me: error: Try using libiconv instead" >&2;}
18793 { (exit 1); exit 1; }; }
18796 { echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
18797 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6; }
18798 if test "${mutt_cv_iconv_nontrans+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 mutt_save_LIBS="$LIBS"
18802 LIBS="$LIBS $LIBICONV"
18803 if test "$cross_compiling" = yes; then
18804 mutt_cv_iconv_nontrans=no
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18814 #include <string.h>
18821 const char *s = "\304\211";
18823 ib = s, ibl = 2, ob = t, obl = 3;
18824 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
18825 iconv(cd, &ib, &ibl, &ob, &obl));
18829 rm -f conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18840 { (case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_try") 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 mutt_cv_iconv_nontrans=no
18851 echo "$as_me: program exited with status $ac_status" >&5
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 ( exit $ac_status )
18856 mutt_cv_iconv_nontrans=yes
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18862 LIBS="$mutt_save_LIBS"
18864 { echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
18865 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6; }
18866 if test "$mutt_cv_iconv_nontrans" = yes; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define ICONV_NONTRANS 1
18872 cat >>confdefs.h <<\_ACEOF
18873 #define ICONV_NONTRANS 0
18878 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
18880 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
18882 cat >>confdefs.h <<\_ACEOF
18883 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18887 mutt_save_LIBS="$LIBS"
18888 LIBS="$LIBS $INTLLIBS"
18890 for ac_func in bind_textdomain_codeset
18892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18906 #define $ac_func innocuous_$ac_func
18908 /* System header to define __stub macros and hopefully few prototypes,
18909 which can conflict with char $ac_func (); below.
18910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911 <limits.h> exists even on freestanding compilers. */
18914 # include <limits.h>
18916 # include <assert.h>
18921 /* Override any GCC internal prototype to avoid an error.
18922 Use char because int might match the return type of a GCC
18923 builtin and then its argument prototype would still apply. */
18928 /* The GNU C library defines this for functions which it implements
18929 to always fail with ENOSYS. Some functions are actually named
18930 something starting with __ and the normal name is an alias. */
18931 #if defined __stub_$ac_func || defined __stub___$ac_func
18938 return $ac_func ();
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext &&
18960 $as_test_x conftest$ac_exeext; then
18961 eval "$as_ac_var=yes"
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 eval "$as_ac_var=no"
18969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18970 conftest$ac_exeext conftest.$ac_ext
18972 ac_res=`eval echo '${'$as_ac_var'}'`
18973 { echo "$as_me:$LINENO: result: $ac_res" >&5
18974 echo "${ECHO_T}$ac_res" >&6; }
18975 if test `eval echo '${'$as_ac_var'}'` = yes; then
18976 cat >>confdefs.h <<_ACEOF
18977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18983 LIBS="$mutt_save_LIBS"
18990 # Check whether --with-idn was given.
18991 if test "${with_idn+set}" = set; then
18993 if test "$with_idn" != "no" ; then
18994 if test "$with_idn" != "yes" ; then
18995 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
18996 LDFLAGS="$LDFLAGS -L$with_idn/lib"
19004 if test "x$with_idn" != "xno"; then
19005 if test "$am_cv_func_iconv" != "yes"
19007 if test "x$with_idn" != "x"
19009 { { echo "$as_me:$LINENO: error: IDN requested but iconv is disabled or unavailable" >&5
19010 echo "$as_me: error: IDN requested but iconv is disabled or unavailable" >&2;}
19011 { (exit 1); exit 1; }; }
19014 { echo "$as_me:$LINENO: checking for library containing stringprep_check_version" >&5
19015 echo $ECHO_N "checking for library containing stringprep_check_version... $ECHO_C" >&6; }
19016 if test "${ac_cv_search_stringprep_check_version+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 ac_func_search_save_LIBS=$LIBS
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19027 /* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
19033 char stringprep_check_version ();
19037 return stringprep_check_version ();
19042 for ac_lib in '' idn; do
19043 if test -z "$ac_lib"; then
19044 ac_res="none required"
19047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (ac_try="$ac_link"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_link") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest$ac_exeext &&
19066 $as_test_x conftest$ac_exeext; then
19067 ac_cv_search_stringprep_check_version=$ac_res
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077 if test "${ac_cv_search_stringprep_check_version+set}" = set; then
19081 if test "${ac_cv_search_stringprep_check_version+set}" = set; then
19084 ac_cv_search_stringprep_check_version=no
19086 rm conftest.$ac_ext
19087 LIBS=$ac_func_search_save_LIBS
19089 { echo "$as_me:$LINENO: result: $ac_cv_search_stringprep_check_version" >&5
19090 echo "${ECHO_T}$ac_cv_search_stringprep_check_version" >&6; }
19091 ac_res=$ac_cv_search_stringprep_check_version
19092 if test "$ac_res" != no; then
19093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19096 cat >>confdefs.h <<\_ACEOF
19097 #define HAVE_LIBIDN 1
19100 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_idna.o"
19106 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
19108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19122 #define $ac_func innocuous_$ac_func
19124 /* System header to define __stub macros and hopefully few prototypes,
19125 which can conflict with char $ac_func (); below.
19126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19127 <limits.h> exists even on freestanding compilers. */
19130 # include <limits.h>
19132 # include <assert.h>
19137 /* Override any GCC internal prototype to avoid an error.
19138 Use char because int might match the return type of a GCC
19139 builtin and then its argument prototype would still apply. */
19144 /* The GNU C library defines this for functions which it implements
19145 to always fail with ENOSYS. Some functions are actually named
19146 something starting with __ and the normal name is an alias. */
19147 #if defined __stub_$ac_func || defined __stub___$ac_func
19154 return $ac_func ();
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19177 eval "$as_ac_var=yes"
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 eval "$as_ac_var=no"
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19188 ac_res=`eval echo '${'$as_ac_var'}'`
19189 { echo "$as_me:$LINENO: result: $ac_res" >&5
19190 echo "${ECHO_T}$ac_res" >&6; }
19191 if test `eval echo '${'$as_ac_var'}'` = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19201 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
19203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19217 #define $ac_func innocuous_$ac_func
19219 /* System header to define __stub macros and hopefully few prototypes,
19220 which can conflict with char $ac_func (); below.
19221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19222 <limits.h> exists even on freestanding compilers. */
19225 # include <limits.h>
19227 # include <assert.h>
19232 /* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19239 /* The GNU C library defines this for functions which it implements
19240 to always fail with ENOSYS. Some functions are actually named
19241 something starting with __ and the normal name is an alias. */
19242 #if defined __stub_$ac_func || defined __stub___$ac_func
19249 return $ac_func ();
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (ac_try="$ac_link"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_link") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest$ac_exeext &&
19271 $as_test_x conftest$ac_exeext; then
19272 eval "$as_ac_var=yes"
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 eval "$as_ac_var=no"
19280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19281 conftest$ac_exeext conftest.$ac_ext
19283 ac_res=`eval echo '${'$as_ac_var'}'`
19284 { echo "$as_me:$LINENO: result: $ac_res" >&5
19285 echo "${ECHO_T}$ac_res" >&6; }
19286 if test `eval echo '${'$as_ac_var'}'` = yes; then
19287 cat >>confdefs.h <<_ACEOF
19288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19296 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
19298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19312 #define $ac_func innocuous_$ac_func
19314 /* System header to define __stub macros and hopefully few prototypes,
19315 which can conflict with char $ac_func (); below.
19316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19317 <limits.h> exists even on freestanding compilers. */
19320 # include <limits.h>
19322 # include <assert.h>
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19334 /* The GNU C library defines this for functions which it implements
19335 to always fail with ENOSYS. Some functions are actually named
19336 something starting with __ and the normal name is an alias. */
19337 #if defined __stub_$ac_func || defined __stub___$ac_func
19344 return $ac_func ();
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (ac_try="$ac_link"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_link") 2>conftest.er1
19358 grep -v '^ *+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest$ac_exeext &&
19366 $as_test_x conftest$ac_exeext; then
19367 eval "$as_ac_var=yes"
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 eval "$as_ac_var=no"
19375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19376 conftest$ac_exeext conftest.$ac_ext
19378 ac_res=`eval echo '${'$as_ac_var'}'`
19379 { echo "$as_me:$LINENO: result: $ac_res" >&5
19380 echo "${ECHO_T}$ac_res" >&6; }
19381 if test `eval echo '${'$as_ac_var'}'` = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19394 for ac_header in wchar.h
19396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 ac_res=`eval echo '${'$as_ac_Header'}'`
19404 { echo "$as_me:$LINENO: result: $ac_res" >&5
19405 echo "${ECHO_T}$ac_res" >&6; }
19407 # Is the header compilable?
19408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 $ac_includes_default
19417 #include <$ac_header>
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
19436 ac_header_compiler=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_header_compiler=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6; }
19448 # Is the header present?
19449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19459 if { (ac_try="$ac_cpp conftest.$ac_ext"
19460 case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } >/dev/null && {
19472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19473 test ! -s conftest.err
19475 ac_header_preproc=yes
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_header_preproc=no
19483 rm -f conftest.err conftest.$ac_ext
19484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6; }
19487 # So? What about this header?
19488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19494 ac_header_preproc=yes
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 eval "$as_ac_Header=\$ac_header_preproc"
19519 ac_res=`eval echo '${'$as_ac_Header'}'`
19520 { echo "$as_me:$LINENO: result: $ac_res" >&5
19521 echo "${ECHO_T}$ac_res" >&6; }
19524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19525 cat >>confdefs.h <<_ACEOF
19526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19534 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19535 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19536 if test "${mutt_cv_wchar_t+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19546 #include <stddef.h>
19547 #include <stdlib.h>
19548 #ifdef HAVE_WCHAR_H
19555 wchar_t wc; return 0;
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_compile") 2>conftest.er1
19569 grep -v '^ *+' conftest.er1 >conftest.err
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && {
19574 test -z "$ac_c_werror_flag" ||
19575 test ! -s conftest.err
19576 } && test -s conftest.$ac_objext; then
19577 mutt_cv_wchar_t=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 { echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
19588 echo "${ECHO_T}$mutt_cv_wchar_t" >&6; }
19590 if test "$mutt_cv_wchar_t" = no; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define wchar_t int
19598 { echo "$as_me:$LINENO: checking for wint_t" >&5
19599 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19600 if test "${mutt_cv_wint_t+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19610 #include <stddef.h>
19611 #include <stdlib.h>
19612 #ifdef HAVE_WCHAR_H
19619 wint_t wc; return 0;
19624 rm -f conftest.$ac_objext
19625 if { (ac_try="$ac_compile"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_compile") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } && {
19638 test -z "$ac_c_werror_flag" ||
19639 test ! -s conftest.err
19640 } && test -s conftest.$ac_objext; then
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 { echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
19652 echo "${ECHO_T}$mutt_cv_wint_t" >&6; }
19654 if test "$mutt_cv_wint_t" = no; then
19656 cat >>confdefs.h <<\_ACEOF
19663 for ac_header in wctype.h
19665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 ac_res=`eval echo '${'$as_ac_Header'}'`
19673 { echo "$as_me:$LINENO: result: $ac_res" >&5
19674 echo "${ECHO_T}$ac_res" >&6; }
19676 # Is the header compilable?
19677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19686 #include <$ac_header>
19688 rm -f conftest.$ac_objext
19689 if { (ac_try="$ac_compile"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_compile") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1 >conftest.err
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest.$ac_objext; then
19705 ac_header_compiler=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_header_compiler=no
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19715 echo "${ECHO_T}$ac_header_compiler" >&6; }
19717 # Is the header present?
19718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <$ac_header>
19728 if { (ac_try="$ac_cpp conftest.$ac_ext"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } >/dev/null && {
19741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19744 ac_header_preproc=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_header_preproc=no
19752 rm -f conftest.err conftest.$ac_ext
19753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19754 echo "${ECHO_T}$ac_header_preproc" >&6; }
19756 # So? What about this header?
19757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19763 ac_header_preproc=yes
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 eval "$as_ac_Header=\$ac_header_preproc"
19788 ac_res=`eval echo '${'$as_ac_Header'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19794 cat >>confdefs.h <<_ACEOF
19795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19806 for ac_func in iswalnum iswalpha iswcntrl iswdigit
19808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19822 #define $ac_func innocuous_$ac_func
19824 /* System header to define __stub macros and hopefully few prototypes,
19825 which can conflict with char $ac_func (); below.
19826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19827 <limits.h> exists even on freestanding compilers. */
19830 # include <limits.h>
19832 # include <assert.h>
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19844 /* The GNU C library defines this for functions which it implements
19845 to always fail with ENOSYS. Some functions are actually named
19846 something starting with __ and the normal name is an alias. */
19847 #if defined __stub_$ac_func || defined __stub___$ac_func
19854 return $ac_func ();
19859 rm -f conftest.$ac_objext conftest$ac_exeext
19860 if { (ac_try="$ac_link"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_link") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1 >conftest.err
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest$ac_exeext &&
19876 $as_test_x conftest$ac_exeext; then
19877 eval "$as_ac_var=yes"
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 eval "$as_ac_var=no"
19885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19886 conftest$ac_exeext conftest.$ac_ext
19888 ac_res=`eval echo '${'$as_ac_var'}'`
19889 { echo "$as_me:$LINENO: result: $ac_res" >&5
19890 echo "${ECHO_T}$ac_res" >&6; }
19891 if test `eval echo '${'$as_ac_var'}'` = yes; then
19892 cat >>confdefs.h <<_ACEOF
19893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19905 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
19907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19921 #define $ac_func innocuous_$ac_func
19923 /* System header to define __stub macros and hopefully few prototypes,
19924 which can conflict with char $ac_func (); below.
19925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19926 <limits.h> exists even on freestanding compilers. */
19929 # include <limits.h>
19931 # include <assert.h>
19936 /* Override any GCC internal prototype to avoid an error.
19937 Use char because int might match the return type of a GCC
19938 builtin and then its argument prototype would still apply. */
19943 /* The GNU C library defines this for functions which it implements
19944 to always fail with ENOSYS. Some functions are actually named
19945 something starting with __ and the normal name is an alias. */
19946 #if defined __stub_$ac_func || defined __stub___$ac_func
19953 return $ac_func ();
19958 rm -f conftest.$ac_objext conftest$ac_exeext
19959 if { (ac_try="$ac_link"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_link") 2>conftest.er1
19967 grep -v '^ *+' conftest.er1 >conftest.err
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest$ac_exeext &&
19975 $as_test_x conftest$ac_exeext; then
19976 eval "$as_ac_var=yes"
19978 echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 eval "$as_ac_var=no"
19984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19985 conftest$ac_exeext conftest.$ac_ext
19987 ac_res=`eval echo '${'$as_ac_var'}'`
19988 { echo "$as_me:$LINENO: result: $ac_res" >&5
19989 echo "${ECHO_T}$ac_res" >&6; }
19990 if test `eval echo '${'$as_ac_var'}'` = yes; then
19991 cat >>confdefs.h <<_ACEOF
19992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20001 for ac_func in iswxdigit towupper towlower
20003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20017 #define $ac_func innocuous_$ac_func
20019 /* System header to define __stub macros and hopefully few prototypes,
20020 which can conflict with char $ac_func (); below.
20021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20022 <limits.h> exists even on freestanding compilers. */
20025 # include <limits.h>
20027 # include <assert.h>
20032 /* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20039 /* The GNU C library defines this for functions which it implements
20040 to always fail with ENOSYS. Some functions are actually named
20041 something starting with __ and the normal name is an alias. */
20042 #if defined __stub_$ac_func || defined __stub___$ac_func
20049 return $ac_func ();
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest$ac_exeext &&
20071 $as_test_x conftest$ac_exeext; then
20072 eval "$as_ac_var=yes"
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 eval "$as_ac_var=no"
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081 conftest$ac_exeext conftest.$ac_ext
20083 ac_res=`eval echo '${'$as_ac_var'}'`
20084 { echo "$as_me:$LINENO: result: $ac_res" >&5
20085 echo "${ECHO_T}$ac_res" >&6; }
20086 if test `eval echo '${'$as_ac_var'}'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20095 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
20096 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
20097 if test "${mutt_cv_mbstate_t+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20107 #include <stddef.h>
20108 #include <stdlib.h>
20109 #ifdef HAVE_WCHAR_H
20116 mbstate_t s; return 0;
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 mutt_cv_mbstate_t=yes
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 mutt_cv_mbstate_t=no
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
20149 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6; }
20151 if test "$mutt_cv_mbstate_t" = no; then
20153 cat >>confdefs.h <<\_ACEOF
20154 #define mbstate_t int
20161 # Check whether --with-wc-funcs was given.
20162 if test "${with_wc_funcs+set}" = set; then
20163 withval=$with_wc_funcs; wc_funcs=$withval
20167 if test "$wc_funcs" != yes && test "$wc_funcs" != no; then
20168 { echo "$as_me:$LINENO: checking for wchar_t functions" >&5
20169 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6; }
20170 if test "${mutt_cv_wc_funcs+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 mutt_cv_wc_funcs=no
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 #define _XOPEN_SOURCE 1
20182 #include <stddef.h>
20183 #include <stdlib.h>
20184 #ifdef HAVE_WCTYPE_H
20185 #include <wctype.h>
20187 #ifdef HAVE_WCHAR_H
20193 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
20194 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (ac_try="$ac_link"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_link") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext &&
20216 $as_test_x conftest$ac_exeext; then
20217 mutt_cv_wc_funcs=yes
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226 conftest$ac_exeext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
20229 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6; }
20230 wc_funcs=$mutt_cv_wc_funcs
20233 if test $wc_funcs = yes; then
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE_WC_FUNCS 1
20240 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS utf8.o wcwidth.o"
20243 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20244 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
20245 if test "${mutt_cv_langinfo_codeset+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 #include <langinfo.h>
20258 char* cs = nl_langinfo(CODESET);
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } && {
20277 test -z "$ac_c_werror_flag" ||
20278 test ! -s conftest.err
20279 } && test -s conftest$ac_exeext &&
20280 $as_test_x conftest$ac_exeext; then
20281 mutt_cv_langinfo_codeset=yes
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 mutt_cv_langinfo_codeset=no
20289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20290 conftest$ac_exeext conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
20293 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6; }
20294 if test $mutt_cv_langinfo_codeset = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE_LANGINFO_CODESET 1
20302 { echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
20303 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6; }
20304 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #include <langinfo.h>
20317 char* cs = nl_langinfo(YESEXPR);
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest$ac_exeext &&
20339 $as_test_x conftest$ac_exeext; then
20340 mutt_cv_langinfo_yesexpr=yes
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 mutt_cv_langinfo_yesexpr=no
20348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20349 conftest$ac_exeext conftest.$ac_ext
20351 { echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
20352 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6; }
20353 if test $mutt_cv_langinfo_yesexpr = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE_LANGINFO_YESEXPR 1
20362 # Extract the first word of "ospcat", so it can be a program name with args.
20363 set dummy ospcat; ac_word=$2
20364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20366 if test "${ac_cv_path_OSPCAT+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 ac_cv_path_OSPCAT="$OSPCAT" # Let the user override the test with a path.
20374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20375 for as_dir in $PATH
20378 test -z "$as_dir" && as_dir=.
20379 for ac_exec_ext in '' $ac_executable_extensions; do
20380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20381 ac_cv_path_OSPCAT="$as_dir/$ac_word$ac_exec_ext"
20382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20389 test -z "$ac_cv_path_OSPCAT" && ac_cv_path_OSPCAT="none"
20393 OSPCAT=$ac_cv_path_OSPCAT
20394 if test -n "$OSPCAT"; then
20395 { echo "$as_me:$LINENO: result: $OSPCAT" >&5
20396 echo "${ECHO_T}$OSPCAT" >&6; }
20398 { echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6; }
20403 if test "$OSPCAT" != "none"
20405 { echo "$as_me:$LINENO: checking for openjade docbook stylesheets" >&5
20406 echo $ECHO_N "checking for openjade docbook stylesheets... $ECHO_C" >&6; }
20407 dslosfile=`ospcat --public-id="-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"`
20408 DSLROOT=`echo $dslosfile | sed -n -e "s/.*SOIBASE='\([^']*\)\/catalog'.*/\1/p"`
20409 # ospcat may spit out an absolute path without an SOIBASE
20410 if test -z "$DSLROOT"
20412 DSLROOT=`echo $dslosfile | sed -e 's|<OSFILE>\(.*\)/print/docbook.dsl|\1|'`
20414 if test -f $DSLROOT/print/docbook.dsl
20416 { echo "$as_me:$LINENO: result: in $DSLROOT" >&5
20417 echo "${ECHO_T}in $DSLROOT" >&6; }
20418 have_openjade="yes"
20420 { echo "$as_me:$LINENO: result: not found: PDF documentation will not be built." >&5
20421 echo "${ECHO_T}not found: PDF documentation will not be built." >&6; }
20426 # Check whether --enable-full_doc was given.
20427 if test "${enable_full_doc+set}" = set; then
20428 enableval=$enable_full_doc; if test x$enableval = xno ; then
20434 if test x$full_doc != xno ; then
20436 cat >>confdefs.h <<\_ACEOF
20437 #define MAKEDOC_FULL 1
20442 ac_config_files="$ac_config_files Makefile contrib/Makefile doc/Makefile imap/Makefile intl/Makefile m4/Makefile po/Makefile.in hcachever.sh muttbug.sh doc/instdoc.sh"
20444 cat >confcache <<\_ACEOF
20445 # This file is a shell script that caches the results of configure
20446 # tests run on this system so they can be shared between configure
20447 # scripts and configure runs, see configure's option --config-cache.
20448 # It is not useful on other systems. If it contains results you don't
20449 # want to keep, you may remove or edit it.
20451 # config.status only pays attention to the cache file if you give it
20452 # the --recheck option to rerun configure.
20454 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20456 # following values.
20460 # The following way of writing the cache mishandles newlines in values,
20461 # but we know of no workaround that is simple, portable, and efficient.
20462 # So, we kill variables containing newlines.
20463 # Ultrix sh set writes to stderr and can't be redirected directly,
20464 # and sets the high bit in the cache file unless we assign to the vars.
20466 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20467 eval ac_val=\$$ac_var
20471 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20472 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20475 _ | IFS | as_nl) ;; #(
20476 *) $as_unset $ac_var ;;
20482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20483 *${as_nl}ac_space=\ *)
20484 # `set' does not quote correctly, so add quotes (double-quote
20485 # substitution turns \\\\ into \\, and sed turns \\ into \).
20488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20491 # `set' quotes correctly as required by POSIX, so do not add quotes.
20492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20505 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20506 if test -w "$cache_file"; then
20507 test "x$cache_file" != "x/dev/null" &&
20508 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20509 echo "$as_me: updating cache $cache_file" >&6;}
20510 cat confcache >$cache_file
20512 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20513 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20519 # Let make expand exec_prefix.
20520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20522 DEFS=-DHAVE_CONFIG_H
20526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20527 # 1. Remove the extension, and $U if already installed.
20528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20529 ac_i=`echo "$ac_i" | sed "$ac_script"`
20530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20531 # will be set to the directory where LIBOBJS objects are built.
20532 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20533 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20535 LIBOBJS=$ac_libobjs
20537 LTLIBOBJS=$ac_ltlibobjs
20540 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20541 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20542 Usually this means the macro was only invoked conditionally." >&5
20543 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20544 Usually this means the macro was only invoked conditionally." >&2;}
20545 { (exit 1); exit 1; }; }
20547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20548 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20549 Usually this means the macro was only invoked conditionally." >&5
20550 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20551 Usually this means the macro was only invoked conditionally." >&2;}
20552 { (exit 1); exit 1; }; }
20554 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
20555 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
20556 Usually this means the macro was only invoked conditionally." >&5
20557 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
20558 Usually this means the macro was only invoked conditionally." >&2;}
20559 { (exit 1); exit 1; }; }
20561 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
20562 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
20563 Usually this means the macro was only invoked conditionally." >&5
20564 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
20565 Usually this means the macro was only invoked conditionally." >&2;}
20566 { (exit 1); exit 1; }; }
20568 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
20569 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
20570 Usually this means the macro was only invoked conditionally." >&5
20571 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
20572 Usually this means the macro was only invoked conditionally." >&2;}
20573 { (exit 1); exit 1; }; }
20575 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
20576 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
20577 Usually this means the macro was only invoked conditionally." >&5
20578 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
20579 Usually this means the macro was only invoked conditionally." >&2;}
20580 { (exit 1); exit 1; }; }
20583 : ${CONFIG_STATUS=./config.status}
20584 ac_clean_files_save=$ac_clean_files
20585 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20586 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20587 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20588 cat >$CONFIG_STATUS <<_ACEOF
20590 # Generated by $as_me.
20591 # Run this file to recreate the current configuration.
20592 # Compiler output produced by configure, useful for debugging
20593 # configure, is in config.log if it exists.
20596 ac_cs_recheck=false
20598 SHELL=\${CONFIG_SHELL-$SHELL}
20601 cat >>$CONFIG_STATUS <<\_ACEOF
20602 ## --------------------- ##
20603 ## M4sh Initialization. ##
20604 ## --------------------- ##
20606 # Be more Bourne compatible
20607 DUALCASE=1; export DUALCASE # for MKS sh
20608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20612 # is contrary to our usage. Disable this feature.
20613 alias -g '${1+"$@"}'='"$@"'
20614 setopt NO_GLOB_SUBST
20616 case `(set -o) 2>/dev/null` in
20617 *posix*) set -o posix ;;
20626 # Avoid depending upon Character Ranges.
20627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20630 as_cr_digits='0123456789'
20631 as_cr_alnum=$as_cr_Letters$as_cr_digits
20633 # The user is always right.
20634 if test "${PATH_SEPARATOR+set}" != set; then
20635 echo "#! /bin/sh" >conf$$.sh
20636 echo "exit 0" >>conf$$.sh
20638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20646 # Support unset when possible.
20647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20655 # We need space, tab and new line, in precisely that order. Quoting is
20656 # there to prevent editors from complaining about space-tab.
20657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20658 # splitting by setting IFS to empty value.)
20663 # Find who we are. Look in the path if we contain no directory separator.
20665 *[\\/]* ) as_myself=$0 ;;
20666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20667 for as_dir in $PATH
20670 test -z "$as_dir" && as_dir=.
20671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20677 # We did not find ourselves, most probably we were run as `sh COMMAND'
20678 # in which case we are not to be found in the path.
20679 if test "x$as_myself" = x; then
20682 if test ! -f "$as_myself"; then
20683 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20684 { (exit 1); exit 1; }
20687 # Work around bugs in pre-3.0 UWIN ksh.
20688 for as_var in ENV MAIL MAILPATH
20689 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20697 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20698 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20699 LC_TELEPHONE LC_TIME
20701 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20702 eval $as_var=C; export $as_var
20704 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20708 # Required to use basename.
20709 if expr a : '\(a\)' >/dev/null 2>&1 &&
20710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20717 as_basename=basename
20723 # Name of the executable.
20724 as_me=`$as_basename -- "$0" ||
20725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20726 X"$0" : 'X\(//\)$' \| \
20727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20729 sed '/^.*\/\([^/][^/]*\)\/*$/{
20748 as_lineno_1=$LINENO
20749 as_lineno_2=$LINENO
20750 test "x$as_lineno_1" != "x$as_lineno_2" &&
20751 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20753 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20754 # uniformly replaced by the line number. The first 'sed' inserts a
20755 # line-number line after each line using $LINENO; the second 'sed'
20756 # does the real work. The second script uses 'N' to pair each
20757 # line-number line with the line containing $LINENO, and appends
20758 # trailing '-' during substitution so that $LINENO is not a special
20759 # case at line end.
20760 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20761 # scripts with optimization help from Paolo Bonzini. Blame Lee
20762 # E. McMahon (1931-1989) for sed's syntax. :-)
20774 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20777 ' >$as_me.lineno &&
20778 chmod +x "$as_me.lineno" ||
20779 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20780 { (exit 1); exit 1; }; }
20782 # Don't try to exec as it changes $[0], causing all sort of problems
20783 # (the dirname of $[0] is not the place where we might find the
20784 # original and so on. Autoconf is especially sensitive to this).
20785 . "./$as_me.lineno"
20786 # Exit status is that of the last command.
20791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20797 ECHO_C= ECHO_N= ECHO_T=
20798 case `echo -n x` in
20800 case `echo 'x\c'` in
20801 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20808 if expr a : '\(a\)' >/dev/null 2>&1 &&
20809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20815 rm -f conf$$ conf$$.exe conf$$.file
20816 if test -d conf$$.dir; then
20817 rm -f conf$$.dir/conf$$.file
20823 if ln -s conf$$.file conf$$ 2>/dev/null; then
20825 # ... but there are two gotchas:
20826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20828 # In both cases, we have to default to `cp -p'.
20829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20831 elif ln conf$$.file conf$$ 2>/dev/null; then
20836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20837 rmdir conf$$.dir 2>/dev/null
20839 if mkdir -p . 2>/dev/null; then
20842 test -d ./-p && rmdir ./-p
20846 if test -x / >/dev/null 2>&1; then
20847 as_test_x='test -x'
20849 if ls -dL / >/dev/null 2>&1; then
20856 if test -d "$1"; then
20862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20863 ???[sx]*):;;*)false;;esac;fi
20867 as_executable_p=$as_test_x
20869 # Sed expression to map a string onto a valid CPP name.
20870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20872 # Sed expression to map a string onto a valid variable name.
20873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20878 # Save the log message, to keep $[0] and so on meaningful, and to
20879 # report actual input values of CONFIG_FILES etc. instead of their
20880 # values after options handling.
20882 This file was extended by $as_me, which was
20883 generated by GNU Autoconf 2.61. Invocation command line was
20885 CONFIG_FILES = $CONFIG_FILES
20886 CONFIG_HEADERS = $CONFIG_HEADERS
20887 CONFIG_LINKS = $CONFIG_LINKS
20888 CONFIG_COMMANDS = $CONFIG_COMMANDS
20891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20896 cat >>$CONFIG_STATUS <<_ACEOF
20897 # Files that config.status was made for.
20898 config_files="$ac_config_files"
20899 config_headers="$ac_config_headers"
20900 config_commands="$ac_config_commands"
20904 cat >>$CONFIG_STATUS <<\_ACEOF
20906 \`$as_me' instantiates files from templates according to the
20907 current configuration.
20909 Usage: $0 [OPTIONS] [FILE]...
20911 -h, --help print this help, then exit
20912 -V, --version print version number and configuration settings, then exit
20913 -q, --quiet do not print progress messages
20914 -d, --debug don't remove temporary files
20915 --recheck update $as_me by reconfiguring in the same conditions
20916 --file=FILE[:TEMPLATE]
20917 instantiate the configuration file FILE
20918 --header=FILE[:TEMPLATE]
20919 instantiate the configuration header FILE
20921 Configuration files:
20924 Configuration headers:
20927 Configuration commands:
20930 Report bugs to <bug-autoconf@gnu.org>."
20933 cat >>$CONFIG_STATUS <<_ACEOF
20936 configured by $0, generated by GNU Autoconf 2.61,
20937 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20939 Copyright (C) 2006 Free Software Foundation, Inc.
20940 This config.status script is free software; the Free Software Foundation
20941 gives unlimited permission to copy, distribute and modify it."
20949 cat >>$CONFIG_STATUS <<\_ACEOF
20950 # If no file are specified by the user, then we need to provide default
20951 # value. By we need to know if files were specified by the user.
20957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20969 # Handling of the options.
20970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20973 echo "$ac_cs_version"; exit ;;
20974 --debug | --debu | --deb | --de | --d | -d )
20976 --file | --fil | --fi | --f )
20978 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20979 ac_need_defaults=false;;
20980 --header | --heade | --head | --hea )
20982 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20983 ac_need_defaults=false;;
20985 # Conflict between --help and --header
20986 { echo "$as_me: error: ambiguous option: $1
20987 Try \`$0 --help' for more information." >&2
20988 { (exit 1); exit 1; }; };;
20989 --help | --hel | -h )
20990 echo "$ac_cs_usage"; exit ;;
20991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20992 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20995 # This is an error.
20996 -*) { echo "$as_me: error: unrecognized option: $1
20997 Try \`$0 --help' for more information." >&2
20998 { (exit 1); exit 1; }; } ;;
21000 *) ac_config_targets="$ac_config_targets $1"
21001 ac_need_defaults=false ;;
21007 ac_configure_extra_args=
21009 if $ac_cs_silent; then
21011 ac_configure_extra_args="$ac_configure_extra_args --silent"
21015 cat >>$CONFIG_STATUS <<_ACEOF
21016 if \$ac_cs_recheck; then
21017 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21018 CONFIG_SHELL=$SHELL
21019 export CONFIG_SHELL
21020 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21024 cat >>$CONFIG_STATUS <<\_ACEOF
21028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21029 ## Running $as_me. ##
21035 cat >>$CONFIG_STATUS <<_ACEOF
21039 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21044 cat >>$CONFIG_STATUS <<\_ACEOF
21046 # Handling of arguments.
21047 for ac_config_target in $ac_config_targets
21049 case $ac_config_target in
21050 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21051 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21052 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21054 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21055 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21056 "imap/Makefile") CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
21057 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
21058 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21059 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21060 "hcachever.sh") CONFIG_FILES="$CONFIG_FILES hcachever.sh" ;;
21061 "muttbug.sh") CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
21062 "doc/instdoc.sh") CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
21064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21066 { (exit 1); exit 1; }; };;
21071 # If the user did not use the arguments to specify the items to instantiate,
21072 # then the envvar interface is used. Set only those that are not.
21073 # We use the long form for the default assignment because of an extremely
21074 # bizarre bug on SunOS 4.1.3.
21075 if $ac_need_defaults; then
21076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21081 # Have a temporary directory for convenience. Make it in the build tree
21082 # simply because there is no reason against having it here, and in addition,
21083 # creating and moving files from /tmp can sometimes cause problems.
21084 # Hook for its removal unless debugging.
21085 # Note that there is a small window in which the directory will not be cleaned:
21086 # after its creation but before its name has been assigned to `$tmp'.
21090 trap 'exit_status=$?
21091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21093 trap '{ (exit 1); exit 1; }' 1 2 13 15
21095 # Create a (secure) tmp directory for tmp files.
21098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21099 test -n "$tmp" && test -d "$tmp"
21102 tmp=./conf$$-$RANDOM
21103 (umask 077 && mkdir "$tmp")
21106 echo "$me: cannot create a temporary directory in ." >&2
21107 { (exit 1); exit 1; }
21111 # Set up the sed scripts for CONFIG_FILES section.
21114 # No need to generate the scripts if there are no CONFIG_FILES.
21115 # This happens for instance when ./config.status config.h
21116 if test -n "$CONFIG_FILES"; then
21123 for ac_last_try in false false false false false :; do
21124 cat >conf$$subs.sed <<_ACEOF
21125 SHELL!$SHELL$ac_delim
21126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21132 exec_prefix!$exec_prefix$ac_delim
21133 prefix!$prefix$ac_delim
21134 program_transform_name!$program_transform_name$ac_delim
21135 bindir!$bindir$ac_delim
21136 sbindir!$sbindir$ac_delim
21137 libexecdir!$libexecdir$ac_delim
21138 datarootdir!$datarootdir$ac_delim
21139 datadir!$datadir$ac_delim
21140 sysconfdir!$sysconfdir$ac_delim
21141 sharedstatedir!$sharedstatedir$ac_delim
21142 localstatedir!$localstatedir$ac_delim
21143 includedir!$includedir$ac_delim
21144 oldincludedir!$oldincludedir$ac_delim
21145 docdir!$docdir$ac_delim
21146 infodir!$infodir$ac_delim
21147 htmldir!$htmldir$ac_delim
21148 dvidir!$dvidir$ac_delim
21149 pdfdir!$pdfdir$ac_delim
21150 psdir!$psdir$ac_delim
21151 libdir!$libdir$ac_delim
21152 localedir!$localedir$ac_delim
21153 mandir!$mandir$ac_delim
21154 DEFS!$DEFS$ac_delim
21155 ECHO_C!$ECHO_C$ac_delim
21156 ECHO_N!$ECHO_N$ac_delim
21157 ECHO_T!$ECHO_T$ac_delim
21158 LIBS!$LIBS$ac_delim
21159 build_alias!$build_alias$ac_delim
21160 host_alias!$host_alias$ac_delim
21161 target_alias!$target_alias$ac_delim
21162 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21163 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21164 INSTALL_DATA!$INSTALL_DATA$ac_delim
21165 am__isrc!$am__isrc$ac_delim
21166 CYGPATH_W!$CYGPATH_W$ac_delim
21167 PACKAGE!$PACKAGE$ac_delim
21168 VERSION!$VERSION$ac_delim
21169 ACLOCAL!$ACLOCAL$ac_delim
21170 AUTOCONF!$AUTOCONF$ac_delim
21171 AUTOMAKE!$AUTOMAKE$ac_delim
21172 AUTOHEADER!$AUTOHEADER$ac_delim
21173 MAKEINFO!$MAKEINFO$ac_delim
21174 install_sh!$install_sh$ac_delim
21175 STRIP!$STRIP$ac_delim
21176 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21177 mkdir_p!$mkdir_p$ac_delim
21179 SET_MAKE!$SET_MAKE$ac_delim
21180 am__leading_dot!$am__leading_dot$ac_delim
21181 AMTAR!$AMTAR$ac_delim
21182 am__tar!$am__tar$ac_delim
21183 am__untar!$am__untar$ac_delim
21184 CONFIG_STATUS_DEPENDENCIES!$CONFIG_STATUS_DEPENDENCIES$ac_delim
21185 build!$build$ac_delim
21186 build_cpu!$build_cpu$ac_delim
21187 build_vendor!$build_vendor$ac_delim
21188 build_os!$build_os$ac_delim
21189 host!$host$ac_delim
21190 host_cpu!$host_cpu$ac_delim
21191 host_vendor!$host_vendor$ac_delim
21192 host_os!$host_os$ac_delim
21194 CFLAGS!$CFLAGS$ac_delim
21195 LDFLAGS!$LDFLAGS$ac_delim
21196 CPPFLAGS!$CPPFLAGS$ac_delim
21197 ac_ct_CC!$ac_ct_CC$ac_delim
21198 EXEEXT!$EXEEXT$ac_delim
21199 OBJEXT!$OBJEXT$ac_delim
21200 DEPDIR!$DEPDIR$ac_delim
21201 am__include!$am__include$ac_delim
21202 am__quote!$am__quote$ac_delim
21203 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21204 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21205 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21206 CCDEPMODE!$CCDEPMODE$ac_delim
21207 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21208 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21210 GREP!$GREP$ac_delim
21211 EGREP!$EGREP$ac_delim
21213 ANSI2KNR!$ANSI2KNR$ac_delim
21214 RANLIB!$RANLIB$ac_delim
21219 DEBUGGER!$DEBUGGER$ac_delim
21220 SENDMAIL!$SENDMAIL$ac_delim
21221 GPGME_CONFIG!$GPGME_CONFIG$ac_delim
21224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21226 elif $ac_last_try; then
21227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21229 { (exit 1); exit 1; }; }
21231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21236 if test -n "$ac_eof"; then
21237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21238 ac_eof=`expr $ac_eof + 1`
21241 cat >>$CONFIG_STATUS <<_ACEOF
21242 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21247 s/^/s,@/; s/!/@,|#_!!_#|/
21250 s/'"$ac_delim"'$/,g/; t
21252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21253 ' >>$CONFIG_STATUS <conf$$subs.sed
21254 rm -f conf$$subs.sed
21255 cat >>$CONFIG_STATUS <<_ACEOF
21261 for ac_last_try in false false false false false :; do
21262 cat >conf$$subs.sed <<_ACEOF
21263 GPGME_CFLAGS!$GPGME_CFLAGS$ac_delim
21264 GPGME_LIBS!$GPGME_LIBS$ac_delim
21266 PGPAUX_TARGET!$PGPAUX_TARGET$ac_delim
21267 SMIMEAUX_TARGET!$SMIMEAUX_TARGET$ac_delim
21268 ISPELL!$ISPELL$ac_delim
21269 LIBOBJS!$LIBOBJS$ac_delim
21270 DOTLOCK_TARGET!$DOTLOCK_TARGET$ac_delim
21271 DOTLOCK_GROUP!$DOTLOCK_GROUP$ac_delim
21272 DOTLOCK_PERMISSION!$DOTLOCK_PERMISSION$ac_delim
21273 BUILD_IMAP_TRUE!$BUILD_IMAP_TRUE$ac_delim
21274 BUILD_IMAP_FALSE!$BUILD_IMAP_FALSE$ac_delim
21275 KRB5CFGPATH!$KRB5CFGPATH$ac_delim
21276 USE_GSS_TRUE!$USE_GSS_TRUE$ac_delim
21277 USE_GSS_FALSE!$USE_GSS_FALSE$ac_delim
21278 LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
21279 LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
21280 LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
21281 USE_SSL_TRUE!$USE_SSL_TRUE$ac_delim
21282 USE_SSL_FALSE!$USE_SSL_FALSE$ac_delim
21283 USE_SASL_TRUE!$USE_SASL_TRUE$ac_delim
21284 USE_SASL_FALSE!$USE_SASL_FALSE$ac_delim
21285 MUTT_MD5!$MUTT_MD5$ac_delim
21286 MUTTLIBS!$MUTTLIBS$ac_delim
21287 MUTT_LIB_OBJECTS!$MUTT_LIB_OBJECTS$ac_delim
21288 LIBIMAP!$LIBIMAP$ac_delim
21289 LIBIMAPDEPS!$LIBIMAPDEPS$ac_delim
21290 ALLOCA!$ALLOCA$ac_delim
21291 GLIBC21!$GLIBC21$ac_delim
21292 LIBICONV!$LIBICONV$ac_delim
21293 USE_NLS!$USE_NLS$ac_delim
21294 MSGFMT!$MSGFMT$ac_delim
21295 GMSGFMT!$GMSGFMT$ac_delim
21296 XGETTEXT!$XGETTEXT$ac_delim
21297 INTLBISON!$INTLBISON$ac_delim
21298 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
21299 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
21300 CATALOGS!$CATALOGS$ac_delim
21301 CATOBJEXT!$CATOBJEXT$ac_delim
21302 GMOFILES!$GMOFILES$ac_delim
21303 INTLLIBS!$INTLLIBS$ac_delim
21304 INTLOBJS!$INTLOBJS$ac_delim
21305 POFILES!$POFILES$ac_delim
21306 POSUB!$POSUB$ac_delim
21307 DATADIRNAME!$DATADIRNAME$ac_delim
21308 INSTOBJEXT!$INSTOBJEXT$ac_delim
21309 GENCAT!$GENCAT$ac_delim
21310 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
21311 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
21312 OSPCAT!$OSPCAT$ac_delim
21313 DSLROOT!$DSLROOT$ac_delim
21314 LTLIBOBJS!$LTLIBOBJS$ac_delim
21317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
21319 elif $ac_last_try; then
21320 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21321 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21322 { (exit 1); exit 1; }; }
21324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21328 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21329 if test -n "$ac_eof"; then
21330 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21331 ac_eof=`expr $ac_eof + 1`
21334 cat >>$CONFIG_STATUS <<_ACEOF
21335 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21340 s/^/s,@/; s/!/@,|#_!!_#|/
21343 s/'"$ac_delim"'$/,g/; t
21345 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21346 ' >>$CONFIG_STATUS <conf$$subs.sed
21347 rm -f conf$$subs.sed
21348 cat >>$CONFIG_STATUS <<_ACEOF
21355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21357 # trailing colons and then remove the whole line if VPATH becomes empty
21358 # (actually we leave an empty line to preserve line numbers).
21359 if test "x$srcdir" = x.; then
21360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21361 s/:*\$(srcdir):*/:/
21362 s/:*\${srcdir}:*/:/
21364 s/^\([^=]*=[ ]*\):*/\1/
21370 cat >>$CONFIG_STATUS <<\_ACEOF
21371 fi # test -n "$CONFIG_FILES"
21374 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21377 :[FHLC]) ac_mode=$ac_tag; continue;;
21379 case $ac_mode$ac_tag in
21381 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21382 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21383 { (exit 1); exit 1; }; };;
21384 :[FH]-) ac_tag=-:-;;
21385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21402 -) ac_f="$tmp/stdin";;
21403 *) # Look for the file first in the build tree, then in the source tree
21404 # (if the path is not absolute). The absolute path cannot be DOS-style,
21405 # because $ac_f cannot contain `:'.
21409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21411 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21412 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21413 { (exit 1); exit 1; }; };;
21415 ac_file_inputs="$ac_file_inputs $ac_f"
21418 # Let's still pretend it is `configure' which instantiates (i.e., don't
21419 # use $as_me), people would be surprised to read:
21420 # /* config.h. Generated by config.status. */
21421 configure_input="Generated from "`IFS=:
21422 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21423 if test x"$ac_file" != x-; then
21424 configure_input="$ac_file. $configure_input"
21425 { echo "$as_me:$LINENO: creating $ac_file" >&5
21426 echo "$as_me: creating $ac_file" >&6;}
21430 *:-:* | *:-) cat >"$tmp/stdin";;
21435 ac_dir=`$as_dirname -- "$ac_file" ||
21436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21437 X"$ac_file" : 'X\(//\)[^/]' \| \
21438 X"$ac_file" : 'X\(//\)$' \| \
21439 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21445 /^X\(\/\/\)[^/].*/{
21460 -*) as_dir=./$as_dir;;
21462 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21466 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21467 *) as_qdir=$as_dir;;
21469 as_dirs="'$as_qdir' $as_dirs"
21470 as_dir=`$as_dirname -- "$as_dir" ||
21471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21472 X"$as_dir" : 'X\(//\)[^/]' \| \
21473 X"$as_dir" : 'X\(//\)$' \| \
21474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21480 /^X\(\/\/\)[^/].*/{
21493 test -d "$as_dir" && break
21495 test -z "$as_dirs" || eval "mkdir $as_dirs"
21496 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21497 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21498 { (exit 1); exit 1; }; }; }
21502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21505 # A ".." for each directory in $ac_dir_suffix.
21506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21507 case $ac_top_builddir_sub in
21508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21512 ac_abs_top_builddir=$ac_pwd
21513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21514 # for backward compatibility:
21515 ac_top_builddir=$ac_top_build_prefix
21518 .) # We are building in place.
21520 ac_top_srcdir=$ac_top_builddir_sub
21521 ac_abs_top_srcdir=$ac_pwd ;;
21522 [\\/]* | ?:[\\/]* ) # Absolute name.
21523 ac_srcdir=$srcdir$ac_dir_suffix;
21524 ac_top_srcdir=$srcdir
21525 ac_abs_top_srcdir=$srcdir ;;
21526 *) # Relative name.
21527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21528 ac_top_srcdir=$ac_top_build_prefix$srcdir
21529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21544 ac_MKDIR_P=$MKDIR_P
21546 [\\/$]* | ?:[\\/]* ) ;;
21547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21551 cat >>$CONFIG_STATUS <<\_ACEOF
21552 # If the template does not know about datarootdir, expand it.
21553 # FIXME: This hack should be removed a few years after 2.60.
21554 ac_datarootdir_hack=; ac_datarootdir_seen=
21556 case `sed -n '/datarootdir/ {
21565 ' $ac_file_inputs` in
21566 *datarootdir*) ac_datarootdir_seen=yes;;
21567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21568 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21569 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21571 cat >>$CONFIG_STATUS <<_ACEOF
21572 ac_datarootdir_hack='
21573 s&@datadir@&$datadir&g
21574 s&@docdir@&$docdir&g
21575 s&@infodir@&$infodir&g
21576 s&@localedir@&$localedir&g
21577 s&@mandir@&$mandir&g
21578 s&\\\${datarootdir}&$datarootdir&g' ;;
21582 # Neutralize VPATH when `$srcdir' = `.'.
21583 # Shell code in configure.ac might set extrasub.
21584 # FIXME: do we really want to maintain this feature?
21585 cat >>$CONFIG_STATUS <<_ACEOF
21589 cat >>$CONFIG_STATUS <<\_ACEOF
21591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21592 s&@configure_input@&$configure_input&;t t
21593 s&@top_builddir@&$ac_top_builddir_sub&;t t
21594 s&@srcdir@&$ac_srcdir&;t t
21595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21596 s&@top_srcdir@&$ac_top_srcdir&;t t
21597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21598 s&@builddir@&$ac_builddir&;t t
21599 s&@abs_builddir@&$ac_abs_builddir&;t t
21600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21601 s&@INSTALL@&$ac_INSTALL&;t t
21602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21603 $ac_datarootdir_hack
21604 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21606 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21607 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21608 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21609 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610 which seems to be undefined. Please make sure it is defined." >&5
21611 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21612 which seems to be undefined. Please make sure it is defined." >&2;}
21616 -) cat "$tmp/out"; rm -f "$tmp/out";;
21617 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21626 # Transform confdefs.h into a sed script `conftest.defines', that
21627 # substitutes the proper values into config.h.in to produce config.h.
21628 rm -f conftest.defines conftest.tail
21629 # First, append a space to every undef/define line, to ease matching.
21630 echo 's/$/ /' >conftest.defines
21631 # Then, protect against being on the right side of a sed subst, or in
21632 # an unquoted here document, in config.status. If some macros were
21633 # called several times there might be several #defines for the same
21634 # symbol, which is useless. But do not sort them, since the last
21635 # AC_DEFINE must be honored.
21636 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21637 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21638 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21639 # PARAMS is the parameter list in the macro definition--in most cases, it's
21640 # just an empty string.
21641 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21642 ac_dB='\\)[ (].*,\\1define\\2'
21650 s/^[ ]*#[ ]*define[ ][ ]*//
21655 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21656 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21657 ' >>conftest.defines
21659 # Remove the space that was appended to ease matching.
21660 # Then replace #undef with comments. This is necessary, for
21661 # example, in the case of _POSIX_SOURCE, which is predefined and required
21662 # on some systems where configure will not decide to define it.
21663 # (The regexp can be short, since the line contains either #define or #undef.)
21665 s,^[ #]*u.*,/* & */,' >>conftest.defines
21667 # Break up conftest.defines:
21668 ac_max_sed_lines=50
21670 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21671 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21672 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21674 ac_in='$ac_file_inputs'
21675 ac_out='"$tmp/out1"'
21676 ac_nxt='"$tmp/out2"'
21680 # Write a here document:
21681 cat >>$CONFIG_STATUS <<_ACEOF
21682 # First, check the format of the line:
21683 cat >"\$tmp/defines.sed" <<\\CEOF
21684 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21685 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21689 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21691 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21692 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21693 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21694 grep . conftest.tail >/dev/null || break
21695 rm -f conftest.defines
21696 mv conftest.tail conftest.defines
21698 rm -f conftest.defines conftest.tail
21700 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21701 cat >>$CONFIG_STATUS <<\_ACEOF
21702 if test x"$ac_file" != x-; then
21703 echo "/* $configure_input */" >"$tmp/config.h"
21704 cat "$ac_result" >>"$tmp/config.h"
21705 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21706 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21707 echo "$as_me: $ac_file is unchanged" >&6;}
21710 mv "$tmp/config.h" $ac_file
21713 echo "/* $configure_input */"
21717 # Compute $ac_file's index in $config_headers.
21720 for _am_header in $config_headers :; do
21721 case $_am_header in
21722 $_am_arg | $_am_arg:* )
21725 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21728 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21729 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730 X"$_am_arg" : 'X\(//\)[^/]' \| \
21731 X"$_am_arg" : 'X\(//\)$' \| \
21732 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21738 /^X\(\/\/\)[^/].*/{
21750 s/.*/./; q'`/stamp-h$_am_stamp_count
21753 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21754 echo "$as_me: executing $ac_file commands" >&6;}
21759 case $ac_file$ac_mode in
21760 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21761 # Strip MF so we end up with the name of the file.
21762 mf=`echo "$mf" | sed -e 's/:.*$//'`
21763 # Check whether this is an Automake generated Makefile or not.
21764 # We used to match only the files named `Makefile.in', but
21765 # some people rename them; so instead we look at the file content.
21766 # Grep'ing the first line is not enough: some people post-process
21767 # each Makefile.in and add a new line on top of each file to say so.
21768 # Grep'ing the whole file is not good either: AIX grep has a line
21769 # limit of 2048, but all sed's we know have understand at least 4000.
21770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21771 dirpart=`$as_dirname -- "$mf" ||
21772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21773 X"$mf" : 'X\(//\)[^/]' \| \
21774 X"$mf" : 'X\(//\)$' \| \
21775 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21781 /^X\(\/\/\)[^/].*/{
21797 # Extract the definition of DEPDIR, am__include, and am__quote
21798 # from the Makefile without running `make'.
21799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21800 test -z "$DEPDIR" && continue
21801 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21802 test -z "am__include" && continue
21803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21804 # When using ansi2knr, U may be empty or an underscore; expand it
21805 U=`sed -n 's/^U = //p' < "$mf"`
21806 # Find all dependency output files, they are included files with
21807 # $(DEPDIR) in their names. We invoke sed twice because it is the
21808 # simplest approach to changing $(DEPDIR) to its actual value in the
21810 for file in `sed -n "
21811 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21812 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21813 # Make sure the directory exists.
21814 test -f "$dirpart/$file" && continue
21815 fdir=`$as_dirname -- "$file" ||
21816 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21817 X"$file" : 'X\(//\)[^/]' \| \
21818 X"$file" : 'X\(//\)$' \| \
21819 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21825 /^X\(\/\/\)[^/].*/{
21838 { as_dir=$dirpart/$fdir
21840 -*) as_dir=./$as_dir;;
21842 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21846 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21847 *) as_qdir=$as_dir;;
21849 as_dirs="'$as_qdir' $as_dirs"
21850 as_dir=`$as_dirname -- "$as_dir" ||
21851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21852 X"$as_dir" : 'X\(//\)[^/]' \| \
21853 X"$as_dir" : 'X\(//\)$' \| \
21854 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21860 /^X\(\/\/\)[^/].*/{
21873 test -d "$as_dir" && break
21875 test -z "$as_dirs" || eval "mkdir $as_dirs"
21876 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21877 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21878 { (exit 1); exit 1; }; }; }
21879 # echo "creating $dirpart/$file"
21880 echo '# dummy' > "$dirpart/$file"
21884 "default-1":C) for ac_file in $CONFIG_FILES; do
21885 # Support "outfile[:infile[:infile...]]"
21887 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21889 # PO directories have a Makefile.in generated from Makefile.in.in.
21890 case "$ac_file" in */Makefile.in)
21891 # Adjust a relative srcdir.
21892 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21893 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21894 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21895 # In autoconf-2.13 it is called $ac_given_srcdir.
21896 # In autoconf-2.50 it is called $srcdir.
21897 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21898 case "$ac_given_srcdir" in
21899 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21900 /*) top_srcdir="$ac_given_srcdir" ;;
21901 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21903 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21904 rm -f "$ac_dir/POTFILES"
21905 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21906 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
21907 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21908 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21918 { (exit 0); exit 0; }
21920 chmod +x $CONFIG_STATUS
21921 ac_clean_files=$ac_clean_files_save
21924 # configure is writing to config.log, and then calls config.status.
21925 # config.status does its own redirection, appending to config.log.
21926 # Unfortunately, on DOS this fails, as config.log is still kept open
21927 # by configure, so config.status won't be able to write to it; its
21928 # output is simply discarded. So we exec the FD to /dev/null,
21929 # effectively closing config.log, so it can be properly (re)opened and
21930 # appended to by config.status. When coming back to configure, we
21931 # need to make the FD available again.
21932 if test "$no_create" != yes; then
21934 ac_config_status_args=
21935 test "$silent" = yes &&
21936 ac_config_status_args="$ac_config_status_args --quiet"
21938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21941 # would make configure fail if this is the last instruction.
21942 $ac_cs_success || { (exit 1); exit 1; }