2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="mutt.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
822 --build=BUILD configure for building on BUILD [guessed]
823 --host=HOST cross-compile to build programs to run on HOST [BUILD]
827 if test -n "$ac_init_help"; then
832 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
833 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
834 --disable-largefile omit support for large files
835 --enable-gpgme Enable GPGME support
836 --disable-pgp Disable PGP support
837 --disable-smime Disable SMIME support
838 --enable-external-dotlock Force use of an external dotlock program
839 --enable-pop Enable POP3 support
840 --enable-imap Enable IMAP support
841 --enable-nntp Enable NNTP support
842 --enable-debug Enable debugging support
843 --enable-flock Use flock() to lock files
844 --disable-fcntl Do NOT use fcntl() to lock files
845 --enable-inodesort Read files in maildir folders sorted by inode.
846 --disable-warnings Turn off compiler warnings (not recommended)
847 --enable-nfs-fix Work around an NFS with broken attributes caching
848 --enable-buffy-size Use file size attribute instead of access time
849 --enable-mailtool Enable Sun mailtool attachments support
850 --enable-compressed Enable compressed folders support
851 --enable-locales-fix The result of isprint() is unreliable
852 --enable-exact-address Enable regeneration of email addresses
853 --enable-hcache Enable header caching
854 --disable-iconv Disable iconv support
855 --disable-nls Do not use Native Language Support
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
861 --with-mixmaster=PATH Include Mixmaster support
862 --with-slang=DIR Use S-Lang instead of ncurses
863 --with-curses=DIR Where ncurses is installed
864 --with-regex Use the GNU regex library
865 --with-homespool=FILE File in user's directory where new mail is spooled
866 --with-mailpath=DIR Directory where spool mailboxes are located
867 --with-docdir=PATH Specify where to put the documentation
868 --with-domain=DOMAIN Specify your DNS domain name
869 --with-gss=PFX Compile in GSSAPI authentication for IMAP
870 --with-ssl=PFX Compile in SSL support for POP/IMAP
871 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
872 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
873 --with-gnutls=PFX Enable SSL support using gnutls
874 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
875 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
876 --with-idn=PFX Use GNU libidn for domain names
877 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
878 --without-gdbm Get rid of gdbm even if it is available
879 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
880 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
881 --with-included-gettext Use the GNU gettext library included here
882 --without-wc-funcs Do not use the system's wchar_t functions
883 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
885 Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
894 Use these variables to override the choices made by `configure' or to help
895 it to find libraries and programs with nonstandard names/locations.
900 if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
907 if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 ac_dir_suffix= ac_top_builddir=
916 .) # No --srcdir option. We are building in place.
918 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
934 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.53. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Also quote any args containing shell meta-characters.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n ) continue ;;
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 case " $ac_configure_args " in
1040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1041 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 if test -s confdefs.h; then
1085 sed "/^$/d" confdefs.h
1088 test "$ac_signal" != 0 &&
1089 echo "$as_me: caught signal $ac_signal"
1090 echo "$as_me: exit $exit_status"
1092 rm -f core core.* *.core &&
1093 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096 for ac_signal in 1 2 13 15; do
1097 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1102 rm -rf conftest* confdefs.h
1103 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106 # Predefined preprocessor variables.
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_NAME "$PACKAGE_NAME"
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_STRING "$PACKAGE_STRING"
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1133 # Let the site file select an alternate cache file if it wants to.
1134 # Prefer explicitly selected file to automatically selected ones.
1135 if test -z "$CONFIG_SITE"; then
1136 if test "x$prefix" != xNONE; then
1137 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1139 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142 for ac_site_file in $CONFIG_SITE; do
1143 if test -r "$ac_site_file"; then
1144 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1145 echo "$as_me: loading site script $ac_site_file" >&6;}
1146 sed 's/^/| /' "$ac_site_file" >&5
1151 if test -r "$cache_file"; then
1152 # Some versions of bash will fail to source /dev/null (special
1153 # files actually), so we avoid doing that.
1154 if test -f "$cache_file"; then
1155 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1156 echo "$as_me: loading cache $cache_file" >&6;}
1158 [\\/]* | ?:[\\/]* ) . $cache_file;;
1159 *) . ./$cache_file;;
1163 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1164 echo "$as_me: creating cache $cache_file" >&6;}
1168 # Check that the precious variables saved in the cache have kept the same
1170 ac_cache_corrupted=false
1171 for ac_var in `(set) 2>&1 |
1172 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1174 eval ac_new_set=\$ac_env_${ac_var}_set
1175 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1176 eval ac_new_val="\$ac_env_${ac_var}_value"
1177 case $ac_old_set,$ac_new_set in
1179 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1183 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1184 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1185 ac_cache_corrupted=: ;;
1188 if test "x$ac_old_val" != "x$ac_new_val"; then
1189 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1190 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1191 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1192 echo "$as_me: former value: $ac_old_val" >&2;}
1193 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1194 echo "$as_me: current value: $ac_new_val" >&2;}
1195 ac_cache_corrupted=:
1198 # Pass precious variables to config.status.
1199 if test "$ac_new_set" = set; then
1201 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1202 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1203 *) ac_arg=$ac_var=$ac_new_val ;;
1205 case " $ac_configure_args " in
1206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1207 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1211 if $ac_cache_corrupted; then
1212 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1213 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1214 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1215 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1216 { (exit 1); exit 1; }; }
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243 ac_config_headers="$ac_config_headers config.h"
1245 ac_config_commands="$ac_config_commands default-1"
1248 mutt_cv_version=`cat $srcdir/VERSION`
1251 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1252 if test -f $ac_dir/install-sh; then
1254 ac_install_sh="$ac_aux_dir/install-sh -c"
1256 elif test -f $ac_dir/install.sh; then
1258 ac_install_sh="$ac_aux_dir/install.sh -c"
1260 elif test -f $ac_dir/shtool; then
1262 ac_install_sh="$ac_aux_dir/shtool install -c"
1266 if test -z "$ac_aux_dir"; then
1267 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1268 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1269 { (exit 1); exit 1; }; }
1271 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1272 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1273 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1275 # Find a good install program. We prefer a C program (faster),
1276 # so one script is as good as another. But avoid the broken or
1277 # incompatible versions:
1278 # SysV /etc/install, /usr/sbin/install
1279 # SunOS /usr/etc/install
1280 # IRIX /sbin/install
1282 # AmigaOS /C/install, which installs bootblocks on floppy discs
1283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1286 # ./install, which can be erroneously created by make from ./install.sh.
1287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1289 if test -z "$INSTALL"; then
1290 if test "${ac_cv_path_install+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 test -z "$as_dir" && as_dir=.
1298 # Account for people who put trailing slashes in PATH elements.
1300 ./ | .// | /cC/* | \
1301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1304 # OSF1 and SCO ODT 3.0 have their own names for install.
1305 # Don't use installbsd from OSF since it installs stuff as root
1307 for ac_prog in ginstall scoinst install; do
1308 for ac_exec_ext in '' $ac_executable_extensions; do
1309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1310 if test $ac_prog = install &&
1311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1312 # AIX install. It has an incompatible calling convention.
1314 elif test $ac_prog = install &&
1315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1316 # program-specific install script used by HP pwplus--don't use.
1319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1331 if test "${ac_cv_path_install+set}" = set; then
1332 INSTALL=$ac_cv_path_install
1334 # As a last resort, use the slow shell script. We don't cache a
1335 # path for INSTALL within a source directory, because that will
1336 # break other packages using the cache if that directory is
1337 # removed, or if the path is relative.
1338 INSTALL=$ac_install_sh
1341 echo "$as_me:$LINENO: result: $INSTALL" >&5
1342 echo "${ECHO_T}$INSTALL" >&6
1344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1345 # It thinks the first close brace ends the variable substitution.
1346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1352 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1356 echo timestamp > conftestfile
1357 # Do `set' in a subshell so we don't clobber the current shell's
1358 # arguments. Must try -L first in case configure is actually a
1359 # symlink; some systems play weird games with the mod time of symlinks
1360 # (eg FreeBSD returns the mod time of the symlink's containing
1363 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1364 if test "$*" = "X"; then
1366 set X `ls -t $srcdir/configure conftestfile`
1368 if test "$*" != "X $srcdir/configure conftestfile" \
1369 && test "$*" != "X conftestfile $srcdir/configure"; then
1371 # If neither matched, then we have a broken ls. This can happen
1372 # if, for instance, CONFIG_SHELL is bash and it inherits a
1373 # broken ls alias from the environment. This has actually
1374 # happened. Such a system could not be considered "sane".
1375 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1376 alias in your environment" >&5
1377 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1378 alias in your environment" >&2;}
1379 { (exit 1); exit 1; }; }
1382 test "$2" = conftestfile
1388 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1389 Check your system clock" >&5
1390 echo "$as_me: error: newly created file is older than distributed files!
1391 Check your system clock" >&2;}
1392 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: result: yes" >&5
1396 echo "${ECHO_T}yes" >&6
1397 test "$program_prefix" != NONE &&
1398 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1399 # Use a double $ so make ignores it.
1400 test "$program_suffix" != NONE &&
1401 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1402 # Double any \ or $. echo might interpret backslashes.
1403 # By default was `s,x,x', remove it if useless.
1404 cat <<\_ACEOF >conftest.sed
1405 s/[\\$]/&&/g;s/;s,x,x,$//
1407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1410 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1411 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1412 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1413 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 cat >conftest.make <<\_ACEOF
1418 @echo 'ac_maketemp="${MAKE}"'
1420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1421 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1422 if test -n "$ac_maketemp"; then
1423 eval ac_cv_prog_make_${ac_make}_set=yes
1425 eval ac_cv_prog_make_${ac_make}_set=no
1429 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1430 echo "$as_me:$LINENO: result: yes" >&5
1431 echo "${ECHO_T}yes" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 SET_MAKE="MAKE=${MAKE-make}"
1442 VERSION=$mutt_cv_version
1444 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1445 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1446 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1447 { (exit 1); exit 1; }; }
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE "$PACKAGE"
1455 cat >>confdefs.h <<_ACEOF
1456 #define VERSION "$VERSION"
1461 missing_dir=`cd $ac_aux_dir && pwd`
1462 echo "$as_me:$LINENO: checking for working aclocal" >&5
1463 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1464 # Run test in a subshell; some versions of sh will print an error if
1465 # an executable is not found, even if stderr is redirected.
1466 # Redirect stdin to placate older versions of autoconf. Sigh.
1467 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1469 echo "$as_me:$LINENO: result: found" >&5
1470 echo "${ECHO_T}found" >&6
1472 ACLOCAL="$missing_dir/missing aclocal"
1473 echo "$as_me:$LINENO: result: missing" >&5
1474 echo "${ECHO_T}missing" >&6
1477 echo "$as_me:$LINENO: checking for working autoconf" >&5
1478 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1479 # Run test in a subshell; some versions of sh will print an error if
1480 # an executable is not found, even if stderr is redirected.
1481 # Redirect stdin to placate older versions of autoconf. Sigh.
1482 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1484 echo "$as_me:$LINENO: result: found" >&5
1485 echo "${ECHO_T}found" >&6
1487 AUTOCONF="$missing_dir/missing autoconf"
1488 echo "$as_me:$LINENO: result: missing" >&5
1489 echo "${ECHO_T}missing" >&6
1492 echo "$as_me:$LINENO: checking for working automake" >&5
1493 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1494 # Run test in a subshell; some versions of sh will print an error if
1495 # an executable is not found, even if stderr is redirected.
1496 # Redirect stdin to placate older versions of autoconf. Sigh.
1497 if (automake --version) < /dev/null > /dev/null 2>&1; then
1499 echo "$as_me:$LINENO: result: found" >&5
1500 echo "${ECHO_T}found" >&6
1502 AUTOMAKE="$missing_dir/missing automake"
1503 echo "$as_me:$LINENO: result: missing" >&5
1504 echo "${ECHO_T}missing" >&6
1507 echo "$as_me:$LINENO: checking for working autoheader" >&5
1508 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1509 # Run test in a subshell; some versions of sh will print an error if
1510 # an executable is not found, even if stderr is redirected.
1511 # Redirect stdin to placate older versions of autoconf. Sigh.
1512 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1513 AUTOHEADER=autoheader
1514 echo "$as_me:$LINENO: result: found" >&5
1515 echo "${ECHO_T}found" >&6
1517 AUTOHEADER="$missing_dir/missing autoheader"
1518 echo "$as_me:$LINENO: result: missing" >&5
1519 echo "${ECHO_T}missing" >&6
1522 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1523 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1524 # Run test in a subshell; some versions of sh will print an error if
1525 # an executable is not found, even if stderr is redirected.
1526 # Redirect stdin to placate older versions of autoconf. Sigh.
1527 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1529 echo "$as_me:$LINENO: result: found" >&5
1530 echo "${ECHO_T}found" >&6
1532 MAKEINFO="$missing_dir/missing makeinfo"
1533 echo "$as_me:$LINENO: result: missing" >&5
1534 echo "${ECHO_T}missing" >&6
1541 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582 ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 echo "$as_me:$LINENO: checking for prefix" >&5
1599 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1600 if test x$prefix = xNONE; then
1601 mutt_cv_prefix=$ac_default_prefix
1603 mutt_cv_prefix=$prefix
1605 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1606 echo "${ECHO_T}$mutt_cv_prefix" >&6
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$ac_cv_prog_CC"; then
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_CC"; then
1732 # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1812 set dummy "$as_dir/$ac_word" ${1+"$@"}
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$CC"; then
1830 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1868 test -n "$CC" && break
1871 if test -z "$CC"; then
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_ac_ct_CC="$ac_prog"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1910 test -n "$ac_ct_CC" && break
1919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1921 { (exit 1); exit 1; }; }
1923 # Provide some information about the compiler.
1924 echo "$as_me:$LINENO:" \
1925 "checking for C compiler version" >&5
1926 ac_compiler=`set X $ac_compile; echo $2`
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1928 (eval $ac_compiler --version </dev/null >&5) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1933 (eval $ac_compiler -v </dev/null >&5) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1938 (eval $ac_compiler -V </dev/null >&5) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line $LINENO "configure"
1945 #include "confdefs.h"
1947 #ifdef F77_DUMMY_MAIN
1951 int F77_DUMMY_MAIN() { return 1; }
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1966 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1967 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1981 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1982 ls a.out conftest 2>/dev/null;
1983 ls a.* conftest.* 2>/dev/null`; do
1985 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1986 a.out ) # We found the default executable, but exeext='' is most
1989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1997 echo "$as_me: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2000 echo "$as_me: error: C compiler cannot create executables" >&2;}
2001 { (exit 77); exit 77; }; }
2004 ac_exeext=$ac_cv_exeext
2005 echo "$as_me:$LINENO: result: $ac_file" >&5
2006 echo "${ECHO_T}$ac_file" >&6
2008 # Check the compiler produces executables we can run. If not, either
2009 # the compiler is broken, or we cross compile.
2010 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2011 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2012 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2013 # If not cross compiling, check that we can run a simple program.
2014 if test "$cross_compiling" != yes; then
2015 if { ac_try='./$ac_file'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 if test "$cross_compiling" = maybe; then
2026 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2027 If you meant to cross compile, use \`--host'." >&5
2028 echo "$as_me: error: cannot run C compiled programs.
2029 If you meant to cross compile, use \`--host'." >&2;}
2030 { (exit 1); exit 1; }; }
2034 echo "$as_me:$LINENO: result: yes" >&5
2035 echo "${ECHO_T}yes" >&6
2037 rm -f a.out a.exe conftest$ac_cv_exeext
2038 ac_clean_files=$ac_clean_files_save
2039 # Check the compiler produces executables we can run. If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2042 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2043 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2044 echo "${ECHO_T}$cross_compiling" >&6
2046 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2047 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2049 (eval $ac_link) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2055 # work properly (i.e., refer to `conftest.exe'), while it won't with
2057 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2059 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2068 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2069 { (exit 1); exit 1; }; }
2072 rm -f conftest$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2076 rm -f conftest.$ac_ext
2077 EXEEXT=$ac_cv_exeext
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 #include "confdefs.h"
2088 #ifdef F77_DUMMY_MAIN
2092 int F77_DUMMY_MAIN() { return 1; }
2102 rm -f conftest.o conftest.obj
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; then
2108 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2119 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2120 { (exit 1); exit 1; }; }
2123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT=$ac_cv_objext
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2138 #ifdef F77_DUMMY_MAIN
2142 int F77_DUMMY_MAIN() { return 1; }
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2169 echo "$as_me: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2173 rm -f conftest.$ac_objext conftest.$ac_ext
2174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2177 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179 GCC=`test $ac_compiler_gnu = yes && echo yes`
2180 ac_test_CFLAGS=${CFLAGS+set}
2181 ac_save_CFLAGS=$CFLAGS
2183 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_g+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.$ac_ext <<_ACEOF
2189 #line $LINENO "configure"
2190 #include "confdefs.h"
2192 #ifdef F77_DUMMY_MAIN
2196 int F77_DUMMY_MAIN() { return 1; }
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2224 rm -f conftest.$ac_objext conftest.$ac_ext
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2228 if test "$ac_test_CFLAGS" = set; then
2229 CFLAGS=$ac_save_CFLAGS
2230 elif test $ac_cv_prog_cc_g = yes; then
2231 if test "$GCC" = yes; then
2237 if test "$GCC" = yes; then
2243 # Some people use a C++ compiler to compile C. Since we use `exit',
2244 # in C++ we need to declare it. In case someone uses the same compiler
2245 # for both compiling C and C++ we need to have the C++ compiler decide
2246 # the declaration of exit, since it's the most demanding environment.
2247 cat >conftest.$ac_ext <<_ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 for ac_declaration in \
2266 '#include <stdlib.h>' \
2267 'extern "C" void std::exit (int) throw (); using std::exit;' \
2268 'extern "C" void std::exit (int); using std::exit;' \
2269 'extern "C" void exit (int) throw ();' \
2270 'extern "C" void exit (int);' \
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2278 #ifdef F77_DUMMY_MAIN
2282 int F77_DUMMY_MAIN() { return 1; }
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2315 #ifdef F77_DUMMY_MAIN
2319 int F77_DUMMY_MAIN() { return 1; }
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2349 if test -n "$ac_declaration"; then
2350 echo '#ifdef __cplusplus' >>confdefs.h
2351 echo $ac_declaration >>confdefs.h
2352 echo '#endif' >>confdefs.h
2356 echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2369 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2370 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 ac_check_lib_save_LIBS=$LIBS
2374 LIBS="-lcposix $LIBS"
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2386 #ifdef F77_DUMMY_MAIN
2390 int F77_DUMMY_MAIN() { return 1; }
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2402 (eval $ac_link) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_lib_cposix_strerror=yes
2414 echo "$as_me: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 ac_cv_lib_cposix_strerror=no
2418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2419 LIBS=$ac_check_lib_save_LIBS
2421 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2422 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2423 if test $ac_cv_lib_cposix_strerror = yes; then
2424 LIBS="$LIBS -lcposix"
2432 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2434 if test "${am_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 am_cv_prog_cc_stdc=no
2439 # Don't try gcc -ansi; that turns off useful extensions and
2440 # breaks some systems' header files.
2441 # AIX -qlanglvl=ansi
2442 # Ultrix and OSF/1 -std1
2443 # HP-UX -Aa -D_HPUX_SOURCE
2444 # SVR4 -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2447 CC="$ac_save_CC $ac_arg"
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line $LINENO "configure"
2450 #include "confdefs.h"
2453 #include <sys/types.h>
2454 #include <sys/stat.h>
2455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2456 struct buf { int x; };
2457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458 static char *e (p, i)
2464 static char *f (char * (*g) (char **, int), char **p, ...)
2469 s = g (p, va_arg (v,int));
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 #ifdef F77_DUMMY_MAIN
2484 int F77_DUMMY_MAIN() { return 1; }
2490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 am_cv_prog_cc_stdc="$ac_arg"; break
2510 echo "$as_me: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 rm -f conftest.$ac_objext conftest.$ac_ext
2519 if test -z "$am_cv_prog_cc_stdc"; then
2520 echo "$as_me:$LINENO: result: none needed" >&5
2521 echo "${ECHO_T}none needed" >&6
2523 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2524 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2526 case "x$am_cv_prog_cc_stdc" in
2528 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2538 # On Suns, sometimes $CPP names a directory.
2539 if test -n "$CPP" && test -d "$CPP"; then
2542 if test -z "$CPP"; then
2543 if test "${ac_cv_prog_CPP+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 # Double quotes because CPP needs to be expanded
2547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2550 for ac_c_preproc_warn_flag in '' yes
2552 # Use a header file that comes with gcc, so configuring glibc
2553 # with a fresh cross-compiler works.
2554 # On the NeXT, cc -E runs the code through the compiler's parser,
2555 # not just through cpp. "Syntax error" is here to catch this case.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565 egrep -v '^ *\+' conftest.er1 >conftest.err
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } >/dev/null; then
2570 if test -s conftest.err; then
2571 ac_cpp_err=$ac_c_preproc_warn_flag
2578 if test -z "$ac_cpp_err"; then
2581 echo "$as_me: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 # Broken: fails on valid input.
2586 rm -f conftest.err conftest.$ac_ext
2588 # OK, works on sane cases. Now check whether non-existent headers
2589 # can be detected and how.
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2593 #include <ac_nonexistent.h>
2595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2598 egrep -v '^ *\+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } >/dev/null; then
2603 if test -s conftest.err; then
2604 ac_cpp_err=$ac_c_preproc_warn_flag
2611 if test -z "$ac_cpp_err"; then
2612 # Broken: success on invalid input.
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 # Passes both tests.
2621 rm -f conftest.err conftest.$ac_ext
2624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2625 rm -f conftest.err conftest.$ac_ext
2626 if $ac_preproc_ok; then
2638 echo "$as_me:$LINENO: result: $CPP" >&5
2639 echo "${ECHO_T}$CPP" >&6
2641 for ac_c_preproc_warn_flag in '' yes
2643 # Use a header file that comes with gcc, so configuring glibc
2644 # with a fresh cross-compiler works.
2645 # On the NeXT, cc -E runs the code through the compiler's parser,
2646 # not just through cpp. "Syntax error" is here to catch this case.
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656 egrep -v '^ *\+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } >/dev/null; then
2661 if test -s conftest.err; then
2662 ac_cpp_err=$ac_c_preproc_warn_flag
2669 if test -z "$ac_cpp_err"; then
2672 echo "$as_me: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 # Broken: fails on valid input.
2677 rm -f conftest.err conftest.$ac_ext
2679 # OK, works on sane cases. Now check whether non-existent headers
2680 # can be detected and how.
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 #include "confdefs.h"
2684 #include <ac_nonexistent.h>
2686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2689 egrep -v '^ *\+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } >/dev/null; then
2694 if test -s conftest.err; then
2695 ac_cpp_err=$ac_c_preproc_warn_flag
2702 if test -z "$ac_cpp_err"; then
2703 # Broken: success on invalid input.
2706 echo "$as_me: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2708 # Passes both tests.
2712 rm -f conftest.err conftest.$ac_ext
2715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2716 rm -f conftest.err conftest.$ac_ext
2717 if $ac_preproc_ok; then
2720 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2721 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2722 { (exit 1); exit 1; }; }
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2743 inttypes.h stdint.h unistd.h
2745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2746 echo "$as_me:$LINENO: checking for $ac_header" >&5
2747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 $ac_includes_default
2756 #include <$ac_header>
2758 rm -f conftest.$ac_objext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 eval "$as_ac_Header=yes"
2772 echo "$as_me: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 eval "$as_ac_Header=no"
2776 rm -f conftest.$ac_objext conftest.$ac_ext
2778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2781 cat >>confdefs.h <<_ACEOF
2782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2792 echo "$as_me:$LINENO: checking for function prototypes" >&5
2793 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2794 if test "$am_cv_prog_cc_stdc" != no; then
2795 echo "$as_me:$LINENO: result: yes" >&5
2796 echo "${ECHO_T}yes" >&6
2798 cat >>confdefs.h <<\_ACEOF
2799 #define PROTOTYPES 1
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 U=_ ANSI2KNR=./ansi2knr
2807 # Ensure some checks needed by ansi2knr itself.
2808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2810 if test "${ac_cv_header_stdc+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 #include "confdefs.h"
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2825 egrep -v '^ *\+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_c_preproc_warn_flag
2838 if test -z "$ac_cpp_err"; then
2839 ac_cv_header_stdc=yes
2841 echo "$as_me: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 ac_cv_header_stdc=no
2845 rm -f conftest.err conftest.$ac_ext
2847 if test $ac_cv_header_stdc = yes; then
2848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 #include "confdefs.h"
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "memchr" >/dev/null 2>&1; then
2859 ac_cv_header_stdc=no
2865 if test $ac_cv_header_stdc = yes; then
2866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 #include "confdefs.h"
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 egrep "free" >/dev/null 2>&1; then
2877 ac_cv_header_stdc=no
2883 if test $ac_cv_header_stdc = yes; then
2884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2885 if test "$cross_compiling" = yes; then
2888 cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2890 #include "confdefs.h"
2892 #if ((' ' & 0x0FF) == 0x020)
2893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2896 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2897 || ('j' <= (c) && (c) <= 'r') \
2898 || ('s' <= (c) && (c) <= 'z'))
2899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2907 for (i = 0; i < 256; i++)
2908 if (XOR (islower (i), ISLOWER (i))
2909 || toupper (i) != TOUPPER (i))
2914 rm -f conftest$ac_exeext
2915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2916 (eval $ac_link) 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: program exited with status $ac_status" >&5
2928 echo "$as_me: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2931 ac_cv_header_stdc=no
2933 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2937 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2939 if test $ac_cv_header_stdc = yes; then
2941 cat >>confdefs.h <<\_ACEOF
2942 #define STDC_HEADERS 1
2948 for ac_header in string.h
2950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2952 echo "$as_me:$LINENO: checking for $ac_header" >&5
2953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2960 # Is the header compilable?
2961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 #include "confdefs.h"
2966 $ac_includes_default
2967 #include <$ac_header>
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_header_compiler=yes
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 ac_header_compiler=no
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2989 echo "${ECHO_T}$ac_header_compiler" >&6
2991 # Is the header present?
2992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 #include "confdefs.h"
2997 #include <$ac_header>
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 egrep -v '^ *\+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null; then
3007 if test -s conftest.err; then
3008 ac_cpp_err=$ac_c_preproc_warn_flag
3015 if test -z "$ac_cpp_err"; then
3016 ac_header_preproc=yes
3018 echo "$as_me: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 ac_header_preproc=no
3022 rm -f conftest.err conftest.$ac_ext
3023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3024 echo "${ECHO_T}$ac_header_preproc" >&6
3026 # So? What about this header?
3027 case $ac_header_compiler:$ac_header_preproc in
3029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3041 echo "$as_me:$LINENO: checking for $ac_header" >&5
3042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 eval "$as_ac_Header=$ac_header_preproc"
3048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3053 cat >>confdefs.h <<_ACEOF
3054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3063 if test "x$U" != "x"; then
3064 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3065 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3066 { (exit 1); exit 1; }; }
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3075 # On Suns, sometimes $CPP names a directory.
3076 if test -n "$CPP" && test -d "$CPP"; then
3079 if test -z "$CPP"; then
3080 if test "${ac_cv_prog_CPP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 # Double quotes because CPP needs to be expanded
3084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3087 for ac_c_preproc_warn_flag in '' yes
3089 # Use a header file that comes with gcc, so configuring glibc
3090 # with a fresh cross-compiler works.
3091 # On the NeXT, cc -E runs the code through the compiler's parser,
3092 # not just through cpp. "Syntax error" is here to catch this case.
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 #include "confdefs.h"
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 egrep -v '^ *\+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3115 if test -z "$ac_cpp_err"; then
3118 echo "$as_me: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 # Broken: fails on valid input.
3123 rm -f conftest.err conftest.$ac_ext
3125 # OK, works on sane cases. Now check whether non-existent headers
3126 # can be detected and how.
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3129 #include "confdefs.h"
3130 #include <ac_nonexistent.h>
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 egrep -v '^ *\+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3148 if test -z "$ac_cpp_err"; then
3149 # Broken: success on invalid input.
3152 echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 # Passes both tests.
3158 rm -f conftest.err conftest.$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3175 echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 #include "confdefs.h"
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 egrep -v '^ *\+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3206 if test -z "$ac_cpp_err"; then
3209 echo "$as_me: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 # Broken: fails on valid input.
3214 rm -f conftest.err conftest.$ac_ext
3216 # OK, works on sane cases. Now check whether non-existent headers
3217 # can be detected and how.
3218 cat >conftest.$ac_ext <<_ACEOF
3219 #line $LINENO "configure"
3220 #include "confdefs.h"
3221 #include <ac_nonexistent.h>
3223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3226 egrep -v '^ *\+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } >/dev/null; then
3231 if test -s conftest.err; then
3232 ac_cpp_err=$ac_c_preproc_warn_flag
3239 if test -z "$ac_cpp_err"; then
3240 # Broken: success on invalid input.
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 # Passes both tests.
3249 rm -f conftest.err conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3258 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3259 { (exit 1); exit 1; }; }
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3269 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3270 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3271 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 cat >conftest.make <<\_ACEOF
3276 @echo 'ac_maketemp="${MAKE}"'
3278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3279 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3280 if test -n "$ac_maketemp"; then
3281 eval ac_cv_prog_make_${ac_make}_set=yes
3283 eval ac_cv_prog_make_${ac_make}_set=no
3287 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3294 SET_MAKE="MAKE=${MAKE-make}"
3297 # Find a good install program. We prefer a C program (faster),
3298 # so one script is as good as another. But avoid the broken or
3299 # incompatible versions:
3300 # SysV /etc/install, /usr/sbin/install
3301 # SunOS /usr/etc/install
3302 # IRIX /sbin/install
3304 # AmigaOS /C/install, which installs bootblocks on floppy discs
3305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3308 # ./install, which can be erroneously created by make from ./install.sh.
3309 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3310 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3311 if test -z "$INSTALL"; then
3312 if test "${ac_cv_path_install+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 # Account for people who put trailing slashes in PATH elements.
3322 ./ | .// | /cC/* | \
3323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3326 # OSF1 and SCO ODT 3.0 have their own names for install.
3327 # Don't use installbsd from OSF since it installs stuff as root
3329 for ac_prog in ginstall scoinst install; do
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3332 if test $ac_prog = install &&
3333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3334 # AIX install. It has an incompatible calling convention.
3336 elif test $ac_prog = install &&
3337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3338 # program-specific install script used by HP pwplus--don't use.
3341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3353 if test "${ac_cv_path_install+set}" = set; then
3354 INSTALL=$ac_cv_path_install
3356 # As a last resort, use the slow shell script. We don't cache a
3357 # path for INSTALL within a source directory, because that will
3358 # break other packages using the cache if that directory is
3359 # removed, or if the path is relative.
3360 INSTALL=$ac_install_sh
3363 echo "$as_me:$LINENO: result: $INSTALL" >&5
3364 echo "${ECHO_T}$INSTALL" >&6
3366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3367 # It thinks the first close brace ends the variable substitution.
3368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_RANLIB+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$RANLIB"; then
3383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 RANLIB=$ac_cv_prog_RANLIB
3402 if test -n "$RANLIB"; then
3403 echo "$as_me:$LINENO: result: $RANLIB" >&5
3404 echo "${ECHO_T}$RANLIB" >&6
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3411 if test -z "$ac_cv_prog_RANLIB"; then
3412 ac_ct_RANLIB=$RANLIB
3413 # Extract the first word of "ranlib", so it can be a program name with args.
3414 set dummy ranlib; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -n "$ac_ct_RANLIB"; then
3421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_ac_ct_RANLIB="ranlib"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3441 if test -n "$ac_ct_RANLIB"; then
3442 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 RANLIB=$ac_ct_RANLIB
3451 RANLIB="$ac_cv_prog_RANLIB"
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}ar; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_AR+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 if test -n "$AR"; then
3463 ac_cv_prog_AR="$AR" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_AR="${ac_tool_prefix}ar"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 if test -n "$AR"; then
3483 echo "$as_me:$LINENO: result: $AR" >&5
3484 echo "${ECHO_T}$AR" >&6
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3491 if test -z "$ac_cv_prog_AR"; then
3493 # Extract the first word of "ar", so it can be a program name with args.
3494 set dummy ar; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if test -n "$ac_ct_AR"; then
3501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_ac_ct_AR="ar"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3521 if test -n "$ac_ct_AR"; then
3522 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3523 echo "${ECHO_T}$ac_ct_AR" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3535 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3536 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3537 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 ac_cv_prog_cc_stdc=no
3542 cat >conftest.$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3544 #include "confdefs.h"
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3563 s = g (p, va_arg (v,int));
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 #ifdef F77_DUMMY_MAIN
3577 int F77_DUMMY_MAIN() { return 1; }
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 # Don't try gcc -ansi; that turns off useful extensions and
3588 # breaks some systems' header files.
3589 # AIX -qlanglvl=ansi
3590 # Ultrix and OSF/1 -std1
3591 # HP-UX 10.20 and later -Ae
3592 # HP-UX older versions -Aa -D_HPUX_SOURCE
3593 # SVR4 -Xc -D__EXTENSIONS__
3594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 CC="$ac_save_CC $ac_arg"
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_cv_prog_cc_stdc=$ac_arg
3612 echo "$as_me: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 rm -f conftest.$ac_objext
3617 rm -f conftest.$ac_ext conftest.$ac_objext
3622 case "x$ac_cv_prog_cc_stdc" in
3624 echo "$as_me:$LINENO: result: none needed" >&5
3625 echo "${ECHO_T}none needed" >&6 ;;
3627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3629 CC="$CC $ac_cv_prog_cc_stdc" ;;
3632 echo "$as_me:$LINENO: checking for inline" >&5
3633 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3634 if test "${ac_cv_c_inline+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 for ac_kw in inline __inline__ __inline; do
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 #include "confdefs.h"
3643 static $ac_kw int static_foo () {return 0; }
3644 $ac_kw int foo () {return 0; }
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_c_inline=$ac_kw; break
3662 echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 rm -f conftest.$ac_objext conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3670 echo "${ECHO_T}$ac_cv_c_inline" >&6
3671 case $ac_cv_c_inline in
3674 cat >>confdefs.h <<\_ACEOF
3678 *) cat >>confdefs.h <<_ACEOF
3679 #define inline $ac_cv_c_inline
3684 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3685 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3686 if test "${ac_cv_c_const+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3691 #include "confdefs.h"
3693 #ifdef F77_DUMMY_MAIN
3697 int F77_DUMMY_MAIN() { return 1; }
3702 /* FIXME: Include the comments suggested by Paul. */
3704 /* Ultrix mips cc rejects this. */
3705 typedef int charset[2];
3707 /* SunOS 4.1.1 cc rejects this. */
3708 char const *const *ccp;
3710 /* NEC SVR4.0.2 mips cc rejects this. */
3711 struct point {int x, y;};
3712 static struct point const zero = {0,0};
3713 /* AIX XL C 1.02.0.0 rejects this.
3714 It does not let you subtract one const X* pointer from another in
3715 an arm of an if-expression whose if-part is not a constant
3717 const char *g = "string";
3718 ccp = &g + (g ? g-g : 0);
3719 /* HPUX 7.0 cc rejects these. */
3722 ccp = (char const *const *) p;
3723 { /* SCO 3.2v4 cc rejects this. */
3725 char const *s = 0 ? (char *) 0 : (char const *) 0;
3729 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3731 const int *foo = &x[0];
3734 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3735 typedef const int *iptr;
3739 { /* AIX XL C 1.02.0.0 rejects this saying
3740 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3741 struct s { int j; const int *ap[3]; };
3742 struct s *b; b->j = 5;
3744 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3767 echo "$as_me: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3771 rm -f conftest.$ac_objext conftest.$ac_ext
3773 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3774 echo "${ECHO_T}$ac_cv_c_const" >&6
3775 if test $ac_cv_c_const = no; then
3777 cat >>confdefs.h <<\_ACEOF
3784 # Check whether --enable-largefile or --disable-largefile was given.
3785 if test "${enable_largefile+set}" = set; then
3786 enableval="$enable_largefile"
3789 if test "$enable_largefile" != no; then
3791 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3792 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3793 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_cv_sys_largefile_CC=no
3797 if test "$GCC" != yes; then
3800 # IRIX 6.2 and later do not support large files by default,
3801 # so use the C compiler's -n32 option if that helps.
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3804 #include "confdefs.h"
3805 #include <sys/types.h>
3806 /* Check that off_t can represent 2**63 - 1 correctly.
3807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3808 since some C++ compilers masquerading as C compilers
3809 incorrectly reject 9223372036854775807. */
3810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3812 && LARGE_OFF_T % 2147483647 == 1)
3814 #ifdef F77_DUMMY_MAIN
3818 int F77_DUMMY_MAIN() { return 1; }
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 rm -f conftest.$ac_objext
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_sys_largefile_CC=' -n32'; break
3861 echo "$as_me: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 rm -f conftest.$ac_objext
3868 rm -f conftest.$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3872 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3873 if test "$ac_cv_sys_largefile_CC" != no; then
3874 CC=$CC$ac_cv_sys_largefile_CC
3877 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3878 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_cv_sys_file_offset_bits=no
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3887 #include <sys/types.h>
3888 /* Check that off_t can represent 2**63 - 1 correctly.
3889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3890 since some C++ compilers masquerading as C compilers
3891 incorrectly reject 9223372036854775807. */
3892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3894 && LARGE_OFF_T % 2147483647 == 1)
3896 #ifdef F77_DUMMY_MAIN
3900 int F77_DUMMY_MAIN() { return 1; }
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -s conftest.$ac_objext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3924 echo "$as_me: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 rm -f conftest.$ac_objext conftest.$ac_ext
3928 cat >conftest.$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3930 #include "confdefs.h"
3931 #define _FILE_OFFSET_BITS 64
3932 #include <sys/types.h>
3933 /* Check that off_t can represent 2**63 - 1 correctly.
3934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3935 since some C++ compilers masquerading as C compilers
3936 incorrectly reject 9223372036854775807. */
3937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3939 && LARGE_OFF_T % 2147483647 == 1)
3941 #ifdef F77_DUMMY_MAIN
3945 int F77_DUMMY_MAIN() { return 1; }
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_sys_file_offset_bits=64; break
3969 echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 rm -f conftest.$ac_objext conftest.$ac_ext
3976 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3978 if test "$ac_cv_sys_file_offset_bits" != no; then
3980 cat >>confdefs.h <<_ACEOF
3981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3986 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3988 if test "${ac_cv_sys_large_files+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 ac_cv_sys_large_files=no
3993 cat >conftest.$ac_ext <<_ACEOF
3994 #line $LINENO "configure"
3995 #include "confdefs.h"
3996 #include <sys/types.h>
3997 /* Check that off_t can represent 2**63 - 1 correctly.
3998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3999 since some C++ compilers masquerading as C compilers
4000 incorrectly reject 9223372036854775807. */
4001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4003 && LARGE_OFF_T % 2147483647 == 1)
4005 #ifdef F77_DUMMY_MAIN
4009 int F77_DUMMY_MAIN() { return 1; }
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -s conftest.$ac_objext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4033 echo "$as_me: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 rm -f conftest.$ac_objext conftest.$ac_ext
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 #define _LARGE_FILES 1
4041 #include <sys/types.h>
4042 /* Check that off_t can represent 2**63 - 1 correctly.
4043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044 since some C++ compilers masquerading as C compilers
4045 incorrectly reject 9223372036854775807. */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048 && LARGE_OFF_T % 2147483647 == 1)
4050 #ifdef F77_DUMMY_MAIN
4054 int F77_DUMMY_MAIN() { return 1; }
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_sys_large_files=1; break
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 rm -f conftest.$ac_objext conftest.$ac_ext
4085 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4086 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4087 if test "$ac_cv_sys_large_files" != no; then
4089 cat >>confdefs.h <<_ACEOF
4090 #define _LARGE_FILES $ac_cv_sys_large_files
4098 # Extract the first word of "dbx", so it can be a program name with args.
4099 set dummy dbx; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_DBX+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4130 if test -n "$DBX"; then
4131 echo "$as_me:$LINENO: result: $DBX" >&5
4132 echo "${ECHO_T}$DBX" >&6
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 # Extract the first word of "gdb", so it can be a program name with args.
4139 set dummy gdb; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_GDB+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4170 if test -n "$GDB"; then
4171 echo "$as_me:$LINENO: result: $GDB" >&5
4172 echo "${ECHO_T}$GDB" >&6
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4178 # Extract the first word of "sdb", so it can be a program name with args.
4179 set dummy sdb; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_SDB+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4210 if test -n "$SDB"; then
4211 echo "$as_me:$LINENO: result: $SDB" >&5
4212 echo "${ECHO_T}$SDB" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4219 if test $GDB != no ; then
4221 elif test $DBX != no ; then
4223 elif test $SDB != no ; then
4253 for ac_header in inttypes.h
4255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257 echo "$as_me:$LINENO: checking for $ac_header" >&5
4258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4265 # Is the header compilable?
4266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4270 #include "confdefs.h"
4271 $ac_includes_default
4272 #include <$ac_header>
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_header_compiler=yes
4288 echo "$as_me: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 ac_header_compiler=no
4292 rm -f conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4294 echo "${ECHO_T}$ac_header_compiler" >&6
4296 # Is the header present?
4297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4300 #line $LINENO "configure"
4301 #include "confdefs.h"
4302 #include <$ac_header>
4304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4307 egrep -v '^ *\+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } >/dev/null; then
4312 if test -s conftest.err; then
4313 ac_cpp_err=$ac_c_preproc_warn_flag
4320 if test -z "$ac_cpp_err"; then
4321 ac_header_preproc=yes
4323 echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 ac_header_preproc=no
4327 rm -f conftest.err conftest.$ac_ext
4328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4329 echo "${ECHO_T}$ac_header_preproc" >&6
4331 # So? What about this header?
4332 case $ac_header_compiler:$ac_header_preproc in
4334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 eval "$as_ac_Header=$ac_header_preproc"
4353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 echo "$as_me:$LINENO: checking for uint32_t" >&5
4367 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4368 if test "${ac_cv_type_uint32_t+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 #include "confdefs.h"
4374 $ac_includes_default
4375 #ifdef F77_DUMMY_MAIN
4379 int F77_DUMMY_MAIN() { return 1; }
4386 if (sizeof (uint32_t))
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_type_uint32_t=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_type_uint32_t=no
4410 rm -f conftest.$ac_objext conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4413 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4414 if test $ac_cv_type_uint32_t = yes; then
4416 cat >>confdefs.h <<\_ACEOF
4417 #define HAVE_C99_INTTYPES 1
4421 echo "$as_me:$LINENO: checking for short" >&5
4422 echo $ECHO_N "checking for short... $ECHO_C" >&6
4423 if test "${ac_cv_type_short+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 #line $LINENO "configure"
4428 #include "confdefs.h"
4429 $ac_includes_default
4430 #ifdef F77_DUMMY_MAIN
4434 int F77_DUMMY_MAIN() { return 1; }
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_type_short=yes
4461 echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4465 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4468 echo "${ECHO_T}$ac_cv_type_short" >&6
4470 echo "$as_me:$LINENO: checking size of short" >&5
4471 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4472 if test "${ac_cv_sizeof_short+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test "$ac_cv_type_short" = yes; then
4476 # The cast to unsigned long works around a bug in the HP C Compiler
4477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4479 # This bug is HP SR number 8606223364.
4480 if test "$cross_compiling" = yes; then
4481 # Depending upon the size, compute the lo and hi bounds.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 #include "confdefs.h"
4485 $ac_includes_default
4486 #ifdef F77_DUMMY_MAIN
4490 int F77_DUMMY_MAIN() { return 1; }
4495 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4518 #include "confdefs.h"
4519 $ac_includes_default
4520 #ifdef F77_DUMMY_MAIN
4524 int F77_DUMMY_MAIN() { return 1; }
4529 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_hi=$ac_mid; break
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 ac_lo=`expr $ac_mid + 1`
4553 if test $ac_lo -le $ac_mid; then
4557 ac_mid=`expr 2 '*' $ac_mid + 1`
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 #include "confdefs.h"
4567 $ac_includes_default
4568 #ifdef F77_DUMMY_MAIN
4572 int F77_DUMMY_MAIN() { return 1; }
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4601 $ac_includes_default
4602 #ifdef F77_DUMMY_MAIN
4606 int F77_DUMMY_MAIN() { return 1; }
4611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_lo=$ac_mid; break
4632 echo "$as_me: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635 if test $ac_mid -le $ac_hi; then
4639 ac_mid=`expr 2 '*' $ac_mid`
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4648 rm -f conftest.$ac_objext conftest.$ac_ext
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4651 # Binary search between lo and hi bounds.
4652 while test "x$ac_lo" != "x$ac_hi"; do
4653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4657 $ac_includes_default
4658 #ifdef F77_DUMMY_MAIN
4662 int F77_DUMMY_MAIN() { return 1; }
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4688 echo "$as_me: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 ac_lo=`expr '(' $ac_mid ')' + 1`
4692 rm -f conftest.$ac_objext conftest.$ac_ext
4695 ?*) ac_cv_sizeof_short=$ac_lo;;
4696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4697 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4698 { (exit 1); exit 1; }; } ;;
4701 if test "$cross_compiling" = yes; then
4702 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4703 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4704 { (exit 1); exit 1; }; }
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4709 $ac_includes_default
4710 long longval () { return (long) (sizeof (short)); }
4711 unsigned long ulongval () { return (long) (sizeof (short)); }
4714 #ifdef F77_DUMMY_MAIN
4718 int F77_DUMMY_MAIN() { return 1; }
4724 FILE *f = fopen ("conftest.val", "w");
4727 if (((long) (sizeof (short))) < 0)
4729 long i = longval ();
4730 if (i != ((long) (sizeof (short))))
4732 fprintf (f, "%ld\n", i);
4736 unsigned long i = ulongval ();
4737 if (i != ((long) (sizeof (short))))
4739 fprintf (f, "%lu\n", i);
4741 exit (ferror (f) || fclose (f) != 0);
4747 rm -f conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_sizeof_short=`cat conftest.val`
4760 echo "$as_me: program exited with status $ac_status" >&5
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4765 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4766 { (exit 1); exit 1; }; }
4768 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4773 ac_cv_sizeof_short=0
4776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4777 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4778 cat >>confdefs.h <<_ACEOF
4779 #define SIZEOF_SHORT $ac_cv_sizeof_short
4783 echo "$as_me:$LINENO: checking for int" >&5
4784 echo $ECHO_N "checking for int... $ECHO_C" >&6
4785 if test "${ac_cv_type_int+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4790 #include "confdefs.h"
4791 $ac_includes_default
4792 #ifdef F77_DUMMY_MAIN
4796 int F77_DUMMY_MAIN() { return 1; }
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4823 echo "$as_me: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4827 rm -f conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4830 echo "${ECHO_T}$ac_cv_type_int" >&6
4832 echo "$as_me:$LINENO: checking size of int" >&5
4833 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_int+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test "$ac_cv_type_int" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 #line $LINENO "configure"
4846 #include "confdefs.h"
4847 $ac_includes_default
4848 #ifdef F77_DUMMY_MAIN
4852 int F77_DUMMY_MAIN() { return 1; }
4857 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4881 $ac_includes_default
4882 #ifdef F77_DUMMY_MAIN
4886 int F77_DUMMY_MAIN() { return 1; }
4891 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_hi=$ac_mid; break
4912 echo "$as_me: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 ac_lo=`expr $ac_mid + 1`
4915 if test $ac_lo -le $ac_mid; then
4919 ac_mid=`expr 2 '*' $ac_mid + 1`
4921 rm -f conftest.$ac_objext conftest.$ac_ext
4924 echo "$as_me: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 #include "confdefs.h"
4929 $ac_includes_default
4930 #ifdef F77_DUMMY_MAIN
4934 int F77_DUMMY_MAIN() { return 1; }
4939 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -s conftest.$ac_objext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 #include "confdefs.h"
4963 $ac_includes_default
4964 #ifdef F77_DUMMY_MAIN
4968 int F77_DUMMY_MAIN() { return 1; }
4973 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_lo=$ac_mid; break
4994 echo "$as_me: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 ac_hi=`expr '(' $ac_mid ')' - 1`
4997 if test $ac_mid -le $ac_hi; then
5001 ac_mid=`expr 2 '*' $ac_mid`
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5006 echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5013 # Binary search between lo and hi bounds.
5014 while test "x$ac_lo" != "x$ac_hi"; do
5015 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5016 cat >conftest.$ac_ext <<_ACEOF
5017 #line $LINENO "configure"
5018 #include "confdefs.h"
5019 $ac_includes_default
5020 #ifdef F77_DUMMY_MAIN
5024 int F77_DUMMY_MAIN() { return 1; }
5029 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5050 echo "$as_me: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 ac_lo=`expr '(' $ac_mid ')' + 1`
5054 rm -f conftest.$ac_objext conftest.$ac_ext
5057 ?*) ac_cv_sizeof_int=$ac_lo;;
5058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5059 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5060 { (exit 1); exit 1; }; } ;;
5063 if test "$cross_compiling" = yes; then
5064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5065 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5066 { (exit 1); exit 1; }; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5071 $ac_includes_default
5072 long longval () { return (long) (sizeof (int)); }
5073 unsigned long ulongval () { return (long) (sizeof (int)); }
5076 #ifdef F77_DUMMY_MAIN
5080 int F77_DUMMY_MAIN() { return 1; }
5086 FILE *f = fopen ("conftest.val", "w");
5089 if (((long) (sizeof (int))) < 0)
5091 long i = longval ();
5092 if (i != ((long) (sizeof (int))))
5094 fprintf (f, "%ld\n", i);
5098 unsigned long i = ulongval ();
5099 if (i != ((long) (sizeof (int))))
5101 fprintf (f, "%lu\n", i);
5103 exit (ferror (f) || fclose (f) != 0);
5109 rm -f conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_sizeof_int=`cat conftest.val`
5122 echo "$as_me: program exited with status $ac_status" >&5
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5127 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5128 { (exit 1); exit 1; }; }
5130 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5139 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5140 cat >>confdefs.h <<_ACEOF
5141 #define SIZEOF_INT $ac_cv_sizeof_int
5145 echo "$as_me:$LINENO: checking for long" >&5
5146 echo $ECHO_N "checking for long... $ECHO_C" >&6
5147 if test "${ac_cv_type_long+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5152 #include "confdefs.h"
5153 $ac_includes_default
5154 #ifdef F77_DUMMY_MAIN
5158 int F77_DUMMY_MAIN() { return 1; }
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5185 echo "$as_me: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5192 echo "${ECHO_T}$ac_cv_type_long" >&6
5194 echo "$as_me:$LINENO: checking size of long" >&5
5195 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5196 if test "${ac_cv_sizeof_long+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test "$ac_cv_type_long" = yes; then
5200 # The cast to unsigned long works around a bug in the HP C Compiler
5201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203 # This bug is HP SR number 8606223364.
5204 if test "$cross_compiling" = yes; then
5205 # Depending upon the size, compute the lo and hi bounds.
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 #include "confdefs.h"
5209 $ac_includes_default
5210 #ifdef F77_DUMMY_MAIN
5214 int F77_DUMMY_MAIN() { return 1; }
5219 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243 $ac_includes_default
5244 #ifdef F77_DUMMY_MAIN
5248 int F77_DUMMY_MAIN() { return 1; }
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -s conftest.$ac_objext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_hi=$ac_mid; break
5274 echo "$as_me: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5276 ac_lo=`expr $ac_mid + 1`
5277 if test $ac_lo -le $ac_mid; then
5281 ac_mid=`expr 2 '*' $ac_mid + 1`
5283 rm -f conftest.$ac_objext conftest.$ac_ext
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5291 $ac_includes_default
5292 #ifdef F77_DUMMY_MAIN
5296 int F77_DUMMY_MAIN() { return 1; }
5301 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5325 $ac_includes_default
5326 #ifdef F77_DUMMY_MAIN
5330 int F77_DUMMY_MAIN() { return 1; }
5335 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_lo=$ac_mid; break
5356 echo "$as_me: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 ac_hi=`expr '(' $ac_mid ')' - 1`
5359 if test $ac_mid -le $ac_hi; then
5363 ac_mid=`expr 2 '*' $ac_mid`
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5368 echo "$as_me: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5372 rm -f conftest.$ac_objext conftest.$ac_ext
5374 rm -f conftest.$ac_objext conftest.$ac_ext
5375 # Binary search between lo and hi bounds.
5376 while test "x$ac_lo" != "x$ac_hi"; do
5377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 $ac_includes_default
5382 #ifdef F77_DUMMY_MAIN
5386 int F77_DUMMY_MAIN() { return 1; }
5391 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5412 echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 ac_lo=`expr '(' $ac_mid ')' + 1`
5416 rm -f conftest.$ac_objext conftest.$ac_ext
5419 ?*) ac_cv_sizeof_long=$ac_lo;;
5420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5421 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5422 { (exit 1); exit 1; }; } ;;
5425 if test "$cross_compiling" = yes; then
5426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5427 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5428 { (exit 1); exit 1; }; }
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 #include "confdefs.h"
5433 $ac_includes_default
5434 long longval () { return (long) (sizeof (long)); }
5435 unsigned long ulongval () { return (long) (sizeof (long)); }
5438 #ifdef F77_DUMMY_MAIN
5442 int F77_DUMMY_MAIN() { return 1; }
5448 FILE *f = fopen ("conftest.val", "w");
5451 if (((long) (sizeof (long))) < 0)
5453 long i = longval ();
5454 if (i != ((long) (sizeof (long))))
5456 fprintf (f, "%ld\n", i);
5460 unsigned long i = ulongval ();
5461 if (i != ((long) (sizeof (long))))
5463 fprintf (f, "%lu\n", i);
5465 exit (ferror (f) || fclose (f) != 0);
5471 rm -f conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_sizeof_long=`cat conftest.val`
5484 echo "$as_me: program exited with status $ac_status" >&5
5485 echo "$as_me: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5489 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5490 { (exit 1); exit 1; }; }
5492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5501 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_LONG $ac_cv_sizeof_long
5507 echo "$as_me:$LINENO: checking for long long" >&5
5508 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5509 if test "${ac_cv_type_long_long+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 #include "confdefs.h"
5515 $ac_includes_default
5516 #ifdef F77_DUMMY_MAIN
5520 int F77_DUMMY_MAIN() { return 1; }
5525 if ((long long *) 0)
5527 if (sizeof (long long))
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_type_long_long=yes
5547 echo "$as_me: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5549 ac_cv_type_long_long=no
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5554 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5556 echo "$as_me:$LINENO: checking size of long long" >&5
5557 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5558 if test "${ac_cv_sizeof_long_long+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test "$ac_cv_type_long_long" = yes; then
5562 # The cast to unsigned long works around a bug in the HP C Compiler
5563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5565 # This bug is HP SR number 8606223364.
5566 if test "$cross_compiling" = yes; then
5567 # Depending upon the size, compute the lo and hi bounds.
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 #include "confdefs.h"
5571 $ac_includes_default
5572 #ifdef F77_DUMMY_MAIN
5576 int F77_DUMMY_MAIN() { return 1; }
5581 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 #include "confdefs.h"
5605 $ac_includes_default
5606 #ifdef F77_DUMMY_MAIN
5610 int F77_DUMMY_MAIN() { return 1; }
5615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_hi=$ac_mid; break
5636 echo "$as_me: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 ac_lo=`expr $ac_mid + 1`
5639 if test $ac_lo -le $ac_mid; then
5643 ac_mid=`expr 2 '*' $ac_mid + 1`
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 #include "confdefs.h"
5653 $ac_includes_default
5654 #ifdef F77_DUMMY_MAIN
5658 int F77_DUMMY_MAIN() { return 1; }
5663 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line $LINENO "configure"
5686 #include "confdefs.h"
5687 $ac_includes_default
5688 #ifdef F77_DUMMY_MAIN
5692 int F77_DUMMY_MAIN() { return 1; }
5697 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_lo=$ac_mid; break
5718 echo "$as_me: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5720 ac_hi=`expr '(' $ac_mid ')' - 1`
5721 if test $ac_mid -le $ac_hi; then
5725 ac_mid=`expr 2 '*' $ac_mid`
5727 rm -f conftest.$ac_objext conftest.$ac_ext
5730 echo "$as_me: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5734 rm -f conftest.$ac_objext conftest.$ac_ext
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5737 # Binary search between lo and hi bounds.
5738 while test "x$ac_lo" != "x$ac_hi"; do
5739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5742 #include "confdefs.h"
5743 $ac_includes_default
5744 #ifdef F77_DUMMY_MAIN
5748 int F77_DUMMY_MAIN() { return 1; }
5753 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5774 echo "$as_me: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 ac_lo=`expr '(' $ac_mid ')' + 1`
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5781 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5782 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5783 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5784 { (exit 1); exit 1; }; } ;;
5787 if test "$cross_compiling" = yes; then
5788 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5789 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5790 { (exit 1); exit 1; }; }
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795 $ac_includes_default
5796 long longval () { return (long) (sizeof (long long)); }
5797 unsigned long ulongval () { return (long) (sizeof (long long)); }
5800 #ifdef F77_DUMMY_MAIN
5804 int F77_DUMMY_MAIN() { return 1; }
5810 FILE *f = fopen ("conftest.val", "w");
5813 if (((long) (sizeof (long long))) < 0)
5815 long i = longval ();
5816 if (i != ((long) (sizeof (long long))))
5818 fprintf (f, "%ld\n", i);
5822 unsigned long i = ulongval ();
5823 if (i != ((long) (sizeof (long long))))
5825 fprintf (f, "%lu\n", i);
5827 exit (ferror (f) || fclose (f) != 0);
5833 rm -f conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835 (eval $ac_link) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_sizeof_long_long=`cat conftest.val`
5846 echo "$as_me: program exited with status $ac_status" >&5
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5851 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5852 { (exit 1); exit 1; }; }
5854 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5859 ac_cv_sizeof_long_long=0
5862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5863 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5875 ac_aux_path_sendmail=/usr/sbin:/usr/lib
5876 # Extract the first word of "sendmail", so it can be a program name with args.
5877 set dummy sendmail; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH:$ac_aux_path_sendmail
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
5906 SENDMAIL=$ac_cv_path_SENDMAIL
5908 if test -n "$SENDMAIL"; then
5909 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5910 echo "${ECHO_T}$SENDMAIL" >&6
5912 echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5917 cat >>confdefs.h <<_ACEOF
5918 #define SENDMAIL "$ac_cv_path_SENDMAIL"
5923 if test -f $srcdir/EXPORTABLE ; then
5928 # Check whether --enable-gpgme or --disable-gpgme was given.
5929 if test "${enable_gpgme+set}" = set; then
5930 enableval="$enable_gpgme"
5931 if test x$enableval = xyes; then
5937 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
5938 if test "${with_gpgme_prefix+set}" = set; then
5939 withval="$with_gpgme_prefix"
5940 gpgme_config_prefix="$withval"
5942 gpgme_config_prefix=""
5945 if test x$have_gpgme = xyes; then
5946 if test x$gpgme_config_prefix != x; then
5947 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
5949 # Extract the first word of "gpgme-config", so it can be a program name with args.
5950 set dummy gpgme-config; ac_word=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 case $GPGME_CONFIG in
5958 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
5979 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
5981 if test -n "$GPGME_CONFIG"; then
5982 echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
5983 echo "${ECHO_T}$GPGME_CONFIG" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5990 if test "x$GPGME_CONFIG" = "xno"; then
5991 { { echo "$as_me:$LINENO: error: GPGME not found" >&5
5992 echo "$as_me: error: GPGME not found" >&2;}
5993 { (exit 1); exit 1; }; }
5995 LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
5996 LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
5997 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
5999 cat >>confdefs.h <<\_ACEOF
6000 #define CRYPT_BACKEND_GPGME 1
6008 # Check whether --enable-pgp or --disable-pgp was given.
6009 if test "${enable_pgp+set}" = set; then
6010 enableval="$enable_pgp"
6011 if test x$enableval = xno ; then
6017 if test x$have_pgp != xno ; then
6019 cat >>confdefs.h <<\_ACEOF
6020 #define CRYPT_BACKEND_CLASSIC_PGP 1
6023 PGPAUX_TARGET="pgpring pgpewrap"
6024 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"
6027 # Check whether --enable-smime or --disable-smime was given.
6028 if test "${enable_smime+set}" = set; then
6029 enableval="$enable_smime"
6030 if test x$enableval = xno ; then
6036 if test x$have_smime != xno ; then
6038 cat >>confdefs.h <<\_ACEOF
6039 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6042 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6043 SMIMEAUX_TARGET="smime_keys"
6047 # Check whether --with-mixmaster or --without-mixmaster was given.
6048 if test "${with_mixmaster+set}" = set; then
6049 withval="$with_mixmaster"
6050 if test -x "$withval" ; then
6051 MIXMASTER="$withval"
6053 MIXMASTER="mixmaster"
6055 OPS="$OPS \$(srcdir)/OPS.MIX"
6056 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6058 cat >>confdefs.h <<_ACEOF
6059 #define MIXMASTER "$MIXMASTER"
6066 # We now require all OPS
6067 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6075 cat >>confdefs.h <<_ACEOF
6076 #define SUBVERSION "$SUBVERSION"
6081 # Extract the first word of "ispell", so it can be a program name with args.
6082 set dummy ispell; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_path_ISPELL+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6111 ISPELL=$ac_cv_path_ISPELL
6113 if test -n "$ISPELL"; then
6114 echo "$as_me:$LINENO: result: $ISPELL" >&5
6115 echo "${ECHO_T}$ISPELL" >&6
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6121 if test $ISPELL != no; then
6123 cat >>confdefs.h <<_ACEOF
6124 #define ISPELL "$ISPELL"
6130 # Check whether --with-slang or --without-slang was given.
6131 if test "${with_slang+set}" = set; then
6132 withval="$with_slang"
6133 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6134 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6135 if test "${mutt_cv_bsdish+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 if test "$cross_compiling" = yes; then
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6143 #include "confdefs.h"
6144 #include <sys/param.h>
6155 rm -f conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6168 echo "$as_me: program exited with status $ac_status" >&5
6169 echo "$as_me: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6174 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6178 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6180 echo "$as_me:$LINENO: checking for S-Lang" >&5
6181 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6182 if test $withval = yes; then
6183 if test -d $srcdir/../slang; then
6184 mutt_cv_slang=$srcdir/../slang/src
6185 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6186 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6188 if test -d $mutt_cv_prefix/include/slang; then
6189 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
6190 elif test -d /usr/include/slang; then
6191 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
6196 if test -f $withval/src/slang.h; then
6197 mutt_cv_slang=$withval/src
6198 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6199 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6201 mutt_cv_slang=$withval
6202 if test -d $withval/include/slang; then
6203 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
6204 elif test -d $withval/include; then
6205 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6207 LDFLAGS="$LDFLAGS -L${withval}/lib"
6210 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6211 echo "${ECHO_T}$mutt_cv_slang" >&6
6212 if test $mutt_cv_bsdish = yes; then
6214 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6215 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6216 if test "${ac_cv_lib_termlib_main+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_check_lib_save_LIBS=$LIBS
6220 LIBS="-ltermlib $LIBS"
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 #include "confdefs.h"
6226 #ifdef F77_DUMMY_MAIN
6230 int F77_DUMMY_MAIN() { return 1; }
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242 (eval $ac_link) 2>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest$ac_exeext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_lib_termlib_main=yes
6254 echo "$as_me: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6256 ac_cv_lib_termlib_main=no
6258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6259 LIBS=$ac_check_lib_save_LIBS
6261 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6262 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6263 if test $ac_cv_lib_termlib_main = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define HAVE_LIBTERMLIB 1
6268 LIBS="-ltermlib $LIBS"
6274 cat >>confdefs.h <<\_ACEOF
6275 #define USE_SLANG_CURSES 1
6279 cat >>confdefs.h <<\_ACEOF
6280 #define HAVE_COLOR 1
6283 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6286 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6287 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6288 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lslang -lm $LIBS"
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6297 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6303 char SLtt_get_terminfo ();
6304 #ifdef F77_DUMMY_MAIN
6308 int F77_DUMMY_MAIN() { return 1; }
6313 SLtt_get_terminfo ();
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest$ac_exeext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_lib_slang_SLtt_get_terminfo=yes
6332 echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6334 ac_cv_lib_slang_SLtt_get_terminfo=no
6336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_check_lib_save_LIBS
6339 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6340 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6341 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6342 MUTTLIBS="$MUTTLIBS -lslang -lm"
6344 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
6345 echo "$as_me: error: unable to compile. check config.log" >&2;}
6346 { (exit 1); exit 1; }; }
6354 # Check whether --with-curses or --without-curses was given.
6355 if test "${with_curses+set}" = set; then
6356 withval="$with_curses"
6357 if test $withval != yes; then
6358 mutt_cv_curses=$withval
6360 if test x$mutt_cv_curses != x/usr; then
6361 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6362 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6366 echo "$as_me:$LINENO: checking for initscr" >&5
6367 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6368 if test "${ac_cv_func_initscr+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 #include "confdefs.h"
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char initscr (); below. */
6377 /* Override any gcc2 internal prototype to avoid an error. */
6381 /* We use char because int might match the return type of a gcc2
6382 builtin and then its argument prototype would still apply. */
6386 #ifdef F77_DUMMY_MAIN
6390 int F77_DUMMY_MAIN() { return 1; }
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_initscr) || defined (__stub___initscr)
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_func_initscr=yes
6422 echo "$as_me: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_cv_func_initscr=no
6426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6429 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6430 if test $ac_cv_func_initscr = yes; then
6434 cf_ncurses="ncurses"
6435 for lib in ncurses ncursesw
6437 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6438 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6439 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_check_lib_save_LIBS=$LIBS
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6456 #ifdef F77_DUMMY_MAIN
6460 int F77_DUMMY_MAIN() { return 1; }
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 eval "$as_ac_Lib=yes"
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 eval "$as_ac_Lib=no"
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6493 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6494 cf_ncurses="$lib"; break
6498 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
6499 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
6500 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 ac_check_lib_save_LIBS=$LIBS
6505 LIBS="-l$cf_ncurses $LIBS"
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6510 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6517 #ifdef F77_DUMMY_MAIN
6521 int F77_DUMMY_MAIN() { return 1; }
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533 (eval $ac_link) 2>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 eval "$as_ac_Lib=yes"
6545 echo "$as_me: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 eval "$as_ac_Lib=no"
6549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6554 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6555 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
6556 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
6557 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
6560 if test "$cf_ncurses" = ncursesw; then
6562 for ac_header in ncursesw/ncurses.h
6564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo "$as_me:$LINENO: checking for $ac_header" >&5
6567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6574 # Is the header compilable?
6575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6577 cat >conftest.$ac_ext <<_ACEOF
6578 #line $LINENO "configure"
6579 #include "confdefs.h"
6580 $ac_includes_default
6581 #include <$ac_header>
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_header_compiler=yes
6597 echo "$as_me: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6599 ac_header_compiler=no
6601 rm -f conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6
6605 # Is the header present?
6606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line $LINENO "configure"
6610 #include "confdefs.h"
6611 #include <$ac_header>
6613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6616 egrep -v '^ *\+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null; then
6621 if test -s conftest.err; then
6622 ac_cpp_err=$ac_c_preproc_warn_flag
6629 if test -z "$ac_cpp_err"; then
6630 ac_header_preproc=yes
6632 echo "$as_me: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6634 ac_header_preproc=no
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc in
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6655 echo "$as_me:$LINENO: checking for $ac_header" >&5
6656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 eval "$as_ac_Header=$ac_header_preproc"
6662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6670 cf_cv_ncurses_header="ncursesw/ncurses.h"
6677 for ac_header in ncurses.h
6679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681 echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6689 # Is the header compilable?
6690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695 $ac_includes_default
6696 #include <$ac_header>
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_header_compiler=yes
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 ac_header_compiler=no
6716 rm -f conftest.$ac_objext conftest.$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6718 echo "${ECHO_T}$ac_header_compiler" >&6
6720 # Is the header present?
6721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6724 #line $LINENO "configure"
6725 #include "confdefs.h"
6726 #include <$ac_header>
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6731 egrep -v '^ *\+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev/null; then
6736 if test -s conftest.err; then
6737 ac_cpp_err=$ac_c_preproc_warn_flag
6744 if test -z "$ac_cpp_err"; then
6745 ac_header_preproc=yes
6747 echo "$as_me: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 ac_header_preproc=no
6751 rm -f conftest.err conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753 echo "${ECHO_T}$ac_header_preproc" >&6
6755 # So? What about this header?
6756 case $ac_header_compiler:$ac_header_preproc in
6758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6770 echo "$as_me:$LINENO: checking for $ac_header" >&5
6771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 eval "$as_ac_Header=$ac_header_preproc"
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6785 cf_cv_ncurses_header="ncurses.h"
6793 echo "$as_me:$LINENO: checking for initscr" >&5
6794 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6795 if test "${ac_cv_func_initscr+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 #include "confdefs.h"
6801 /* System header to define __stub macros and hopefully few prototypes,
6802 which can conflict with char initscr (); below. */
6804 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6813 #ifdef F77_DUMMY_MAIN
6817 int F77_DUMMY_MAIN() { return 1; }
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_initscr) || defined (__stub___initscr)
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_func_initscr=yes
6849 echo "$as_me: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6851 ac_cv_func_initscr=no
6853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6856 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6857 if test $ac_cv_func_initscr = yes; then
6861 case $host_os in #(vi
6863 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
6864 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6865 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_check_lib_save_LIBS=$LIBS
6869 LIBS="-lmytinfo $LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6872 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6881 #ifdef F77_DUMMY_MAIN
6885 int F77_DUMMY_MAIN() { return 1; }
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897 (eval $ac_link) 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -s conftest$ac_exeext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_lib_mytinfo_tgoto=yes
6909 echo "$as_me: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 ac_cv_lib_mytinfo_tgoto=no
6913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6916 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
6917 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6918 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6919 LIBS="-lmytinfo $LIBS"
6924 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
6925 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6926 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 ac_check_lib_save_LIBS=$LIBS
6930 LIBS="-lcur_colr $LIBS"
6931 cat >conftest.$ac_ext <<_ACEOF
6932 #line $LINENO "configure"
6933 #include "confdefs.h"
6935 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6942 #ifdef F77_DUMMY_MAIN
6946 int F77_DUMMY_MAIN() { return 1; }
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_lib_cur_colr_initscr=yes
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 ac_cv_lib_cur_colr_initscr=no
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 LIBS=$ac_check_lib_save_LIBS
6977 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
6978 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
6979 if test $ac_cv_lib_cur_colr_initscr = yes; then
6981 LIBS="-lcur_colr $LIBS"
6982 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
6983 ac_cv_func_initscr=yes
6987 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
6988 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
6989 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-lHcurses $LIBS"
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
6998 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7005 #ifdef F77_DUMMY_MAIN
7009 int F77_DUMMY_MAIN() { return 1; }
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -s conftest$ac_exeext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_lib_Hcurses_initscr=yes
7033 echo "$as_me: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7035 ac_cv_lib_Hcurses_initscr=no
7037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7040 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7041 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7042 if test $ac_cv_lib_Hcurses_initscr = yes; then
7044 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7045 LIBS="-lHcurses $LIBS"
7046 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7047 ac_cv_func_initscr=yes
7054 linux*) # Suse Linux does not follow /usr/lib convention
7059 if test ".$With5lib" != ".no" ; then
7060 if test -d /usr/5lib ; then
7062 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7063 LIBS="$LIBS -L/usr/5lib"
7067 if test ".$ac_cv_func_initscr" != .yes ; then
7068 cf_save_LIBS="$LIBS"
7072 # Check for library containing tgoto. Do this before curses library
7073 # because it may be needed to link the test-case for initscr.
7074 echo "$as_me:$LINENO: checking for tgoto" >&5
7075 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7076 if test "${ac_cv_func_tgoto+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 /* System header to define __stub macros and hopefully few prototypes,
7083 which can conflict with char tgoto (); below. */
7085 /* Override any gcc2 internal prototype to avoid an error. */
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7094 #ifdef F77_DUMMY_MAIN
7098 int F77_DUMMY_MAIN() { return 1; }
7103 /* The GNU C library defines this for functions which it implements
7104 to always fail with ENOSYS. Some functions are actually named
7105 something starting with __ and the normal name is an alias. */
7106 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_cv_func_tgoto=yes
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7137 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7138 if test $ac_cv_func_tgoto = yes; then
7139 cf_term_lib=predefined
7142 for cf_term_lib in termcap termlib unknown
7144 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7145 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7146 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7147 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_check_lib_save_LIBS=$LIBS
7151 LIBS="-l$cf_term_lib $LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 #include "confdefs.h"
7156 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7163 #ifdef F77_DUMMY_MAIN
7167 int F77_DUMMY_MAIN() { return 1; }
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179 (eval $ac_link) 2>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -s conftest$ac_exeext'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 eval "$as_ac_Lib=yes"
7191 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 eval "$as_ac_Lib=no"
7195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7196 LIBS=$ac_check_lib_save_LIBS
7198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7199 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7209 # Check for library containing initscr
7210 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7211 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7213 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7214 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7215 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_check_lib_save_LIBS=$LIBS
7220 LIBS="-l$cf_curs_lib $LIBS"
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7232 #ifdef F77_DUMMY_MAIN
7236 int F77_DUMMY_MAIN() { return 1; }
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 eval "$as_ac_Lib=yes"
7260 echo "$as_me: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7262 eval "$as_ac_Lib=no"
7264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265 LIBS=$ac_check_lib_save_LIBS
7267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7269 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7274 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7275 echo "$as_me: error: no curses library found" >&2;}
7276 { (exit 1); exit 1; }; }
7278 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7279 if test "$cf_term_lib" = unknown ; then
7280 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7281 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7283 #line $LINENO "configure"
7284 #include "confdefs.h"
7285 #include <${cf_cv_ncurses_header-curses.h}>
7286 #ifdef F77_DUMMY_MAIN
7290 int F77_DUMMY_MAIN() { return 1; }
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest$ac_exeext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7314 echo "$as_me: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $cf_result" >&5
7320 echo "${ECHO_T}$cf_result" >&6
7321 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7322 echo "$as_me: error: Cannot link curses library" >&2;}
7323 { (exit 1); exit 1; }; }
7324 elif test "$cf_term_lib" != predefined ; then
7325 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7326 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7329 #include "confdefs.h"
7330 #include <${cf_cv_ncurses_header-curses.h}>
7331 #ifdef F77_DUMMY_MAIN
7335 int F77_DUMMY_MAIN() { return 1; }
7340 initscr(); tgoto((char *)0, 0, 0);
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -s conftest$ac_exeext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7359 echo "$as_me: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7363 cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7366 #include <${cf_cv_ncurses_header-curses.h}>
7367 #ifdef F77_DUMMY_MAIN
7371 int F77_DUMMY_MAIN() { return 1; }
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -s conftest$ac_exeext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7395 echo "$as_me: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $cf_result" >&5
7404 echo "${ECHO_T}$cf_result" >&6
7418 LIBS="$LIBS $MUTTLIBS"
7419 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
7422 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
7423 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
7424 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 cat >conftest.$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7429 #include "confdefs.h"
7430 #include <${cf_cv_ncurses_header-curses.h}>
7431 #ifdef F77_DUMMY_MAIN
7435 int F77_DUMMY_MAIN() { return 1; }
7441 extern int ${ac_func}();
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -s conftest.$ac_objext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 #include "confdefs.h"
7463 #include <${cf_cv_ncurses_header-curses.h}>
7464 #ifdef F77_DUMMY_MAIN
7468 int F77_DUMMY_MAIN() { return 1; }
7474 int (*p)() = ${ac_func};
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7493 eval "ac_cv_func_decl_$ac_func=yes"
7495 echo "$as_me: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7498 eval "ac_cv_func_decl_$ac_func=no"
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_func_decl_$ac_func=yes"
7507 rm -f conftest.$ac_objext conftest.$ac_ext
7510 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
7511 echo "$as_me:$LINENO: result: yes" >&5
7512 echo "${ECHO_T}yes" >&6
7515 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
7517 cat >>confdefs.h <<_ACEOF
7518 #define $ac_tr_func 1
7522 echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7527 if test "$ac_cv_func_decl_start_color" = yes; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_COLOR 1
7534 if test "$ac_cv_func_decl_resizeterm" = yes; then
7535 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
7541 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7542 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7543 if test "${ac_cv_header_stdc+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line $LINENO "configure"
7548 #include "confdefs.h"
7555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558 egrep -v '^ *\+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } >/dev/null; then
7563 if test -s conftest.err; then
7564 ac_cpp_err=$ac_c_preproc_warn_flag
7571 if test -z "$ac_cpp_err"; then
7572 ac_cv_header_stdc=yes
7574 echo "$as_me: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7576 ac_cv_header_stdc=no
7578 rm -f conftest.err conftest.$ac_ext
7580 if test $ac_cv_header_stdc = yes; then
7581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 #include "confdefs.h"
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 egrep "memchr" >/dev/null 2>&1; then
7592 ac_cv_header_stdc=no
7598 if test $ac_cv_header_stdc = yes; then
7599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 #include "confdefs.h"
7606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607 egrep "free" >/dev/null 2>&1; then
7610 ac_cv_header_stdc=no
7616 if test $ac_cv_header_stdc = yes; then
7617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7618 if test "$cross_compiling" = yes; then
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7623 #include "confdefs.h"
7625 #if ((' ' & 0x0FF) == 0x020)
7626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7629 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7630 || ('j' <= (c) && (c) <= 'r') \
7631 || ('s' <= (c) && (c) <= 'z'))
7632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7640 for (i = 0; i < 256; i++)
7641 if (XOR (islower (i), ISLOWER (i))
7642 || toupper (i) != TOUPPER (i))
7647 rm -f conftest$ac_exeext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7649 (eval $ac_link) 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7660 echo "$as_me: program exited with status $ac_status" >&5
7661 echo "$as_me: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 ac_cv_header_stdc=no
7666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7672 if test $ac_cv_header_stdc = yes; then
7674 cat >>confdefs.h <<\_ACEOF
7675 #define STDC_HEADERS 1
7685 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
7687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689 echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7697 # Is the header compilable?
7698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7700 cat >conftest.$ac_ext <<_ACEOF
7701 #line $LINENO "configure"
7702 #include "confdefs.h"
7703 $ac_includes_default
7704 #include <$ac_header>
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_header_compiler=yes
7720 echo "$as_me: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 ac_header_compiler=no
7724 rm -f conftest.$ac_objext conftest.$ac_ext
7725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7726 echo "${ECHO_T}$ac_header_compiler" >&6
7728 # Is the header present?
7729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line $LINENO "configure"
7733 #include "confdefs.h"
7734 #include <$ac_header>
7736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7739 egrep -v '^ *\+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } >/dev/null; then
7744 if test -s conftest.err; then
7745 ac_cpp_err=$ac_c_preproc_warn_flag
7752 if test -z "$ac_cpp_err"; then
7753 ac_header_preproc=yes
7755 echo "$as_me: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 ac_header_preproc=no
7759 rm -f conftest.err conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7761 echo "${ECHO_T}$ac_header_preproc" >&6
7763 # So? What about this header?
7764 case $ac_header_compiler:$ac_header_preproc in
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778 echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 eval "$as_ac_Header=$ac_header_preproc"
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 for ac_header in sys/time.h sys/resource.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #include <$ac_header>
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7835 echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7849 #include <$ac_header>
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7854 egrep -v '^ *\+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } >/dev/null; then
7859 if test -s conftest.err; then
7860 ac_cpp_err=$ac_c_preproc_warn_flag
7867 if test -z "$ac_cpp_err"; then
7868 ac_header_preproc=yes
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_header_preproc=no
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7878 # So? What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7893 echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 eval "$as_ac_Header=$ac_header_preproc"
7900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 for ac_header in unix.h
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926 # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 $ac_includes_default
7933 #include <$ac_header>
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -s conftest.$ac_objext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_header_compiler=yes
7949 echo "$as_me: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 ac_header_compiler=no
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6
7957 # Is the header present?
7958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 #include <$ac_header>
7965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7968 egrep -v '^ *\+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } >/dev/null; then
7973 if test -s conftest.err; then
7974 ac_cpp_err=$ac_c_preproc_warn_flag
7981 if test -z "$ac_cpp_err"; then
7982 ac_header_preproc=yes
7984 echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 ac_header_preproc=no
7988 rm -f conftest.err conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7990 echo "${ECHO_T}$ac_header_preproc" >&6
7992 # So? What about this header?
7993 case $ac_header_compiler:$ac_header_preproc in
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8007 echo "$as_me:$LINENO: checking for $ac_header" >&5
8008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 eval "$as_ac_Header=$ac_header_preproc"
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031 for ac_func in setrlimit getsid isctype
8033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8034 echo "$as_me:$LINENO: checking for $ac_func" >&5
8035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8036 if eval "test \"\${$as_ac_var+set}\" = set"; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 /* System header to define __stub macros and hopefully few prototypes,
8043 which can conflict with char $ac_func (); below. */
8045 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8054 #ifdef F77_DUMMY_MAIN
8058 int F77_DUMMY_MAIN() { return 1; }
8063 /* The GNU C library defines this for functions which it implements
8064 to always fail with ENOSYS. Some functions are actually named
8065 something starting with __ and the normal name is an alias. */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "$as_ac_var=yes"
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 eval "$as_ac_var=no"
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8098 if test `eval echo '${'$as_ac_var'}'` = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8107 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8108 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8109 if test "${ac_cv_type_signal+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 #include <sys/types.h>
8121 extern "C" void (*signal (int, void (*)(int)))(int);
8123 void (*signal ()) ();
8126 #ifdef F77_DUMMY_MAIN
8130 int F77_DUMMY_MAIN() { return 1; }
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_type_signal=void
8154 echo "$as_me: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_cv_type_signal=int
8158 rm -f conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8161 echo "${ECHO_T}$ac_cv_type_signal" >&6
8163 cat >>confdefs.h <<_ACEOF
8164 #define RETSIGTYPE $ac_cv_type_signal
8169 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8170 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line $LINENO "configure"
8173 #include "confdefs.h"
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 egrep "sig_atomic_t" >/dev/null 2>&1; then
8180 ac_cv_type_sig_atomic_t=yes;
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8188 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8190 is_sig_atomic_t_volatile=yes;
8191 echo "$as_me:$LINENO: result: yes, volatile" >&5
8192 echo "${ECHO_T}yes, volatile" >&6
8196 is_sig_atomic_t_volatile=no;
8197 echo "$as_me:$LINENO: result: yes, non volatile" >&5
8198 echo "${ECHO_T}yes, non volatile" >&6
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8208 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8209 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8210 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 #include "confdefs.h"
8216 $ac_includes_default
8217 #ifdef F77_DUMMY_MAIN
8221 int F77_DUMMY_MAIN() { return 1; }
8226 if ((sig_atomic_t *) 0)
8228 if (sizeof (sig_atomic_t))
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236 (eval $ac_compile) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest.$ac_objext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_type_sig_atomic_t=yes
8248 echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 ac_cv_type_sig_atomic_t=no
8252 rm -f conftest.$ac_objext conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8255 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8256 if test $ac_cv_type_sig_atomic_t = yes; then
8260 cat >>confdefs.h <<_ACEOF
8261 #define sig_atomic_t int
8266 is_sig_atomic_t_volatile=no
8271 if test $is_sig_atomic_t_volatile = 'yes'
8273 cat >>confdefs.h <<\_ACEOF
8274 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8278 cat >>confdefs.h <<\_ACEOF
8279 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
8284 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
8285 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
8286 if test "${ac_cv_decl_sys_siglist+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 #include <sys/types.h>
8294 /* NetBSD declares sys_siglist in unistd.h. */
8296 # include <unistd.h>
8299 #ifdef F77_DUMMY_MAIN
8303 int F77_DUMMY_MAIN() { return 1; }
8308 char *msg = *(sys_siglist + 1);
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_decl_sys_siglist=yes
8327 echo "$as_me: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 ac_cv_decl_sys_siglist=no
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8333 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
8334 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
8335 if test $ac_cv_decl_sys_siglist = yes; then
8337 cat >>confdefs.h <<\_ACEOF
8338 #define SYS_SIGLIST_DECLARED 1
8344 echo "$as_me:$LINENO: checking for pid_t" >&5
8345 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8346 if test "${ac_cv_type_pid_t+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 #include "confdefs.h"
8352 $ac_includes_default
8353 #ifdef F77_DUMMY_MAIN
8357 int F77_DUMMY_MAIN() { return 1; }
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_type_pid_t=yes
8384 echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8391 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8392 if test $ac_cv_type_pid_t = yes; then
8396 cat >>confdefs.h <<_ACEOF
8408 for ac_func in fgetpos memmove setegid srand48 strerror
8410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8411 echo "$as_me:$LINENO: checking for $ac_func" >&5
8412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8413 if eval "test \"\${$as_ac_var+set}\" = set"; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 cat >conftest.$ac_ext <<_ACEOF
8417 #line $LINENO "configure"
8418 #include "confdefs.h"
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char $ac_func (); below. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8431 #ifdef F77_DUMMY_MAIN
8435 int F77_DUMMY_MAIN() { return 1; }
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_var=yes"
8467 echo "$as_me: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8469 eval "$as_ac_var=no"
8471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8475 if test `eval echo '${'$as_ac_var'}'` = yes; then
8476 cat >>confdefs.h <<_ACEOF
8477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8486 for ac_func in strcasecmp strdup
8488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8489 echo "$as_me:$LINENO: checking for $ac_func" >&5
8490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8491 if eval "test \"\${$as_ac_var+set}\" = set"; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8496 #include "confdefs.h"
8497 /* System header to define __stub macros and hopefully few prototypes,
8498 which can conflict with char $ac_func (); below. */
8500 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8509 #ifdef F77_DUMMY_MAIN
8513 int F77_DUMMY_MAIN() { return 1; }
8518 /* The GNU C library defines this for functions which it implements
8519 to always fail with ENOSYS. Some functions are actually named
8520 something starting with __ and the normal name is an alias. */
8521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 eval "$as_ac_var=yes"
8545 echo "$as_me: failed program was:" >&5
8546 cat conftest.$ac_ext >&5
8547 eval "$as_ac_var=no"
8549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8553 if test `eval echo '${'$as_ac_var'}'` = yes; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8559 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8565 echo "$as_me:$LINENO: checking for getopt" >&5
8566 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8567 if test "${ac_cv_func_getopt+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char getopt (); below. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8585 #ifdef F77_DUMMY_MAIN
8589 int F77_DUMMY_MAIN() { return 1; }
8594 /* The GNU C library defines this for functions which it implements
8595 to always fail with ENOSYS. Some functions are actually named
8596 something starting with __ and the normal name is an alias. */
8597 #if defined (__stub_getopt) || defined (__stub___getopt)
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_func_getopt=yes
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 ac_cv_func_getopt=no
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8628 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8630 if test $ac_cv_func_getopt = yes; then
8632 for ac_header in getopt.h
8634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo "$as_me:$LINENO: checking for $ac_header" >&5
8637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8644 # Is the header compilable?
8645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8647 cat >conftest.$ac_ext <<_ACEOF
8648 #line $LINENO "configure"
8649 #include "confdefs.h"
8650 $ac_includes_default
8651 #include <$ac_header>
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_header_compiler=yes
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_header_compiler=no
8671 rm -f conftest.$ac_objext conftest.$ac_ext
8672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8673 echo "${ECHO_T}$ac_header_compiler" >&6
8675 # Is the header present?
8676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8680 #include "confdefs.h"
8681 #include <$ac_header>
8683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8686 egrep -v '^ *\+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } >/dev/null; then
8691 if test -s conftest.err; then
8692 ac_cpp_err=$ac_c_preproc_warn_flag
8699 if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8702 echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 ac_header_preproc=no
8706 rm -f conftest.err conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8710 # So? What about this header?
8711 case $ac_header_compiler:$ac_header_preproc in
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8725 echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 eval "$as_ac_Header=$ac_header_preproc"
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750 for ac_func in snprintf
8752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8753 echo "$as_me:$LINENO: checking for $ac_func" >&5
8754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8755 if eval "test \"\${$as_ac_var+set}\" = set"; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8760 #include "confdefs.h"
8761 /* System header to define __stub macros and hopefully few prototypes,
8762 which can conflict with char $ac_func (); below. */
8764 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8773 #ifdef F77_DUMMY_MAIN
8777 int F77_DUMMY_MAIN() { return 1; }
8782 /* The GNU C library defines this for functions which it implements
8783 to always fail with ENOSYS. Some functions are actually named
8784 something starting with __ and the normal name is an alias. */
8785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 eval "$as_ac_var=yes"
8809 echo "$as_me: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8811 eval "$as_ac_var=no"
8813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8817 if test `eval echo '${'$as_ac_var'}'` = yes; then
8818 cat >>confdefs.h <<_ACEOF
8819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8823 mutt_cv_snprintf=yes
8828 for ac_func in vsnprintf
8830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8831 echo "$as_me:$LINENO: checking for $ac_func" >&5
8832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_var+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 /* System header to define __stub macros and hopefully few prototypes,
8840 which can conflict with char $ac_func (); below. */
8842 /* Override any gcc2 internal prototype to avoid an error. */
8846 /* We use char because int might match the return type of a gcc2
8847 builtin and then its argument prototype would still apply. */
8851 #ifdef F77_DUMMY_MAIN
8855 int F77_DUMMY_MAIN() { return 1; }
8860 /* The GNU C library defines this for functions which it implements
8861 to always fail with ENOSYS. Some functions are actually named
8862 something starting with __ and the normal name is an alias. */
8863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 eval "$as_ac_var=yes"
8887 echo "$as_me: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 eval "$as_ac_var=no"
8891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8895 if test `eval echo '${'$as_ac_var'}'` = yes; then
8896 cat >>confdefs.h <<_ACEOF
8897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8901 mutt_cv_snprintf=yes
8905 if test $mutt_cv_snprintf = yes; then
8906 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8910 for ac_func in ftruncate
8912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8913 echo "$as_me:$LINENO: checking for $ac_func" >&5
8914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_var+set}\" = set"; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 #include "confdefs.h"
8921 /* System header to define __stub macros and hopefully few prototypes,
8922 which can conflict with char $ac_func (); below. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8933 #ifdef F77_DUMMY_MAIN
8937 int F77_DUMMY_MAIN() { return 1; }
8942 /* The GNU C library defines this for functions which it implements
8943 to always fail with ENOSYS. Some functions are actually named
8944 something starting with __ and the normal name is an alias. */
8945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 eval "$as_ac_var=yes"
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 eval "$as_ac_var=no"
8973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8984 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8985 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8986 if test "${ac_cv_lib_x_chsize+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ac_check_lib_save_LIBS=$LIBS
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9002 #ifdef F77_DUMMY_MAIN
9006 int F77_DUMMY_MAIN() { return 1; }
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_x_chsize=yes
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_lib_x_chsize=no
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9038 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9039 if test $ac_cv_lib_x_chsize = yes; then
9040 cat >>confdefs.h <<_ACEOF
9053 for ac_func in strftime
9055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_var+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9062 #line $LINENO "configure"
9063 #include "confdefs.h"
9064 /* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char $ac_func (); below. */
9067 /* Override any gcc2 internal prototype to avoid an error. */
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9076 #ifdef F77_DUMMY_MAIN
9080 int F77_DUMMY_MAIN() { return 1; }
9085 /* The GNU C library defines this for functions which it implements
9086 to always fail with ENOSYS. Some functions are actually named
9087 something starting with __ and the normal name is an alias. */
9088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 eval "$as_ac_var=yes"
9112 echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 eval "$as_ac_var=no"
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9120 if test `eval echo '${'$as_ac_var'}'` = yes; then
9121 cat >>confdefs.h <<_ACEOF
9122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9127 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9128 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9129 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 ac_check_lib_save_LIBS=$LIBS
9134 cat >conftest.$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9136 #include "confdefs.h"
9138 /* Override any gcc2 internal prototype to avoid an error. */
9142 /* We use char because int might match the return type of a gcc2
9143 builtin and then its argument prototype would still apply. */
9145 #ifdef F77_DUMMY_MAIN
9149 int F77_DUMMY_MAIN() { return 1; }
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_intl_strftime=yes
9173 echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9175 ac_cv_lib_intl_strftime=no
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9181 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9182 if test $ac_cv_lib_intl_strftime = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_LIBINTL 1
9196 for ac_func in fchdir
9198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9199 echo "$as_me:$LINENO: checking for $ac_func" >&5
9200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_var+set}\" = set"; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9206 #include "confdefs.h"
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char $ac_func (); below. */
9210 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9219 #ifdef F77_DUMMY_MAIN
9223 int F77_DUMMY_MAIN() { return 1; }
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243 (eval $ac_link) 2>&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 eval "$as_ac_var=yes"
9255 echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 eval "$as_ac_var=no"
9259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9263 if test `eval echo '${'$as_ac_var'}'` = yes; then
9264 cat >>confdefs.h <<_ACEOF
9265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9275 # Check whether --with-regex or --without-regex was given.
9276 if test "${with_regex+set}" = set; then
9277 withval="$with_regex"
9281 for ac_func in regcomp
9283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 #include "confdefs.h"
9292 /* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char $ac_func (); below. */
9295 /* Override any gcc2 internal prototype to avoid an error. */
9299 /* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9304 #ifdef F77_DUMMY_MAIN
9308 int F77_DUMMY_MAIN() { return 1; }
9313 /* The GNU C library defines this for functions which it implements
9314 to always fail with ENOSYS. Some functions are actually named
9315 something starting with __ and the normal name is an alias. */
9316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328 (eval $ac_link) 2>&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 eval "$as_ac_var=yes"
9340 echo "$as_me: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 eval "$as_ac_var=no"
9344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9348 if test `eval echo '${'$as_ac_var'}'` = yes; then
9349 cat >>confdefs.h <<_ACEOF
9350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 if test $mutt_cv_regex = no ; then
9361 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9362 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9363 if test "${mutt_cv_regex_broken+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 if test "$cross_compiling" = yes; then
9367 mutt_cv_regex_broken=yes
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 #include "confdefs.h"
9375 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); }
9377 rm -f conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 mutt_cv_regex_broken=no
9390 echo "$as_me: program exited with status $ac_status" >&5
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 mutt_cv_regex_broken=yes
9396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9400 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9401 if test $mutt_cv_regex_broken = yes ; then
9402 echo "Using the included GNU regex instead." >&6
9407 if test $mutt_cv_regex = yes; then
9409 cat >>confdefs.h <<\_ACEOF
9410 #define USE_GNU_REGEX 1
9413 LIBOBJS="$LIBOBJS regex.$ac_objext"
9418 # Check whether --with-homespool or --without-homespool was given.
9419 if test "${with_homespool+set}" = set; then
9420 withval="$with_homespool"
9421 with_homespool=${withval}
9423 if test x$with_homespool != x; then
9424 if test $with_homespool = yes; then
9425 with_homespool=mailbox
9428 cat >>confdefs.h <<_ACEOF
9429 #define MAILPATH "$with_homespool"
9433 cat >>confdefs.h <<\_ACEOF
9438 cat >>confdefs.h <<\_ACEOF
9439 #define USE_DOTLOCK 1
9445 # Check whether --with-mailpath or --without-mailpath was given.
9446 if test "${with_mailpath+set}" = set; then
9447 withval="$with_mailpath"
9448 mutt_cv_mailpath=$withval
9450 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9451 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9452 if test "${mutt_cv_mailpath+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 if test -d /var/mail; then
9457 mutt_cv_mailpath=/var/mail
9458 elif test -d /var/spool/mail; then
9459 mutt_cv_mailpath=/var/spool/mail
9460 elif test -d /usr/spool/mail; then
9461 mutt_cv_mailpath=/usr/spool/mail
9462 elif test -d /usr/mail; then
9463 mutt_cv_mailpath=/usr/mail
9466 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9467 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9470 if test "$mutt_cv_mailpath" = no; then
9471 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9472 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9473 { (exit 1); exit 1; }; }
9476 cat >>confdefs.h <<_ACEOF
9477 #define MAILPATH "$mutt_cv_mailpath"
9481 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9482 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9483 if test "${mutt_cv_worldwrite+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 if test "$cross_compiling" = yes; then
9487 mutt_cv_worldwrite=no
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 #include "confdefs.h"
9492 #include <sys/types.h>
9493 #include <sys/stat.h>
9495 int main (int argc, char **argv)
9499 stat ("$mutt_cv_mailpath", &s);
9500 if (s.st_mode & S_IWOTH) exit (0);
9504 rm -f conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 mutt_cv_worldwrite=yes
9517 echo "$as_me: program exited with status $ac_status" >&5
9518 echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 mutt_cv_worldwrite=no
9523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9527 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9530 if test $mutt_cv_worldwrite = yes; then
9532 cat >>confdefs.h <<\_ACEOF
9533 #define USE_DOTLOCK 1
9538 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9539 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9540 if test "${mutt_cv_groupwrite+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 if test "$cross_compiling" = yes; then
9544 mutt_cv_groupwrite=no
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549 #include <sys/types.h>
9550 #include <sys/stat.h>
9552 int main (int argc, char **argv)
9556 stat ("$mutt_cv_mailpath", &s);
9557 if (s.st_mode & S_IWGRP) exit (0);
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 mutt_cv_groupwrite=yes
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 mutt_cv_groupwrite=no
9580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9583 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9584 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9586 if test $mutt_cv_groupwrite = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define USE_DOTLOCK 1
9593 cat >>confdefs.h <<\_ACEOF
9594 #define USE_SETGID 1
9602 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9603 if test "${enable_external_dotlock+set}" = set; then
9604 enableval="$enable_external_dotlock"
9605 mutt_cv_external_dotlock="$enableval"
9608 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9609 || test "x$mutt_cv_external_dotlock" = "xyes"
9612 cat >>confdefs.h <<\_ACEOF
9613 #define DL_STANDALONE 1
9616 DOTLOCK_TARGET="muttng_dotlock"
9618 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9624 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9625 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9627 # Check whether --with-docdir or --without-docdir was given.
9628 if test "${with_docdir+set}" = set; then
9629 withval="$with_docdir"
9630 mutt_cv_docdir=$withval
9632 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
9634 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9635 echo "${ECHO_T}$mutt_cv_docdir" >&6
9637 docdir=$mutt_cv_docdir
9640 if test x$mutt_cv_setgid = xyes; then
9641 DOTLOCK_GROUP='mail'
9642 DOTLOCK_PERMISSION=2755
9645 DOTLOCK_PERMISSION=755
9651 # Check whether --with-domain or --without-domain was given.
9652 if test "${with_domain+set}" = set; then
9653 withval="$with_domain"
9654 if test $withval != yes; then
9656 cat >>confdefs.h <<_ACEOF
9657 #define DOMAIN "$withval"
9666 # Check whether --enable-pop or --disable-pop was given.
9667 if test "${enable_pop+set}" = set; then
9668 enableval="$enable_pop"
9669 if test x$enableval = xyes ; then
9671 cat >>confdefs.h <<\_ACEOF
9675 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9683 # Check whether --enable-imap or --disable-imap was given.
9684 if test "${enable_imap+set}" = set; then
9685 enableval="$enable_imap"
9686 if test x$enableval = xyes ; then
9688 cat >>confdefs.h <<\_ACEOF
9692 LIBIMAP="-Limap -limap"
9693 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9702 if test x$need_imap = xyes; then
9704 BUILD_IMAP_FALSE='#'
9710 # Check whether --enable-nntp or --disable-nntp was given.
9711 if test "${enable_nntp+set}" = set; then
9712 enableval="$enable_nntp"
9713 if test x$enableval = xyes ; then
9714 cat >>confdefs.h <<\_ACEOF
9718 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9725 if test "$need_socket" = "yes"
9727 echo "$as_me:$LINENO: checking for socklen_t" >&5
9728 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 #include <sys/socket.h>
9735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9736 egrep "socklen_t" >/dev/null 2>&1; then
9737 echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6
9740 echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9743 cat >>confdefs.h <<\_ACEOF
9744 #define socklen_t int
9750 echo "$as_me:$LINENO: checking for gethostent" >&5
9751 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9752 if test "${ac_cv_func_gethostent+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 #include "confdefs.h"
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char gethostent (); below. */
9761 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9770 #ifdef F77_DUMMY_MAIN
9774 int F77_DUMMY_MAIN() { return 1; }
9779 /* The GNU C library defines this for functions which it implements
9780 to always fail with ENOSYS. Some functions are actually named
9781 something starting with __ and the normal name is an alias. */
9782 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_func_gethostent=yes
9806 echo "$as_me: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 ac_cv_func_gethostent=no
9810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9813 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9814 if test $ac_cv_func_gethostent = yes; then
9818 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9819 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9820 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ac_check_lib_save_LIBS=$LIBS
9825 cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9827 #include "confdefs.h"
9829 /* Override any gcc2 internal prototype to avoid an error. */
9833 /* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9836 #ifdef F77_DUMMY_MAIN
9840 int F77_DUMMY_MAIN() { return 1; }
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 ac_cv_lib_nsl_gethostent=yes
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_cv_lib_nsl_gethostent=no
9868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9871 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9872 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9873 if test $ac_cv_lib_nsl_gethostent = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define HAVE_LIBNSL 1
9884 echo "$as_me:$LINENO: checking for setsockopt" >&5
9885 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9886 if test "${ac_cv_func_setsockopt+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 #include "confdefs.h"
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char setsockopt (); below. */
9895 /* Override any gcc2 internal prototype to avoid an error. */
9899 /* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9904 #ifdef F77_DUMMY_MAIN
9908 int F77_DUMMY_MAIN() { return 1; }
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_func_setsockopt=yes
9940 echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 ac_cv_func_setsockopt=no
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9947 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9948 if test $ac_cv_func_setsockopt = yes; then
9952 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9953 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9954 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-lsocket $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 #include "confdefs.h"
9963 /* Override any gcc2 internal prototype to avoid an error. */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9970 #ifdef F77_DUMMY_MAIN
9974 int F77_DUMMY_MAIN() { return 1; }
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_lib_socket_setsockopt=yes
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_cv_lib_socket_setsockopt=no
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10006 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10007 if test $ac_cv_lib_socket_setsockopt = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define HAVE_LIBSOCKET 1
10012 LIBS="-lsocket $LIBS"
10019 for ac_func in getaddrinfo
10021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10022 echo "$as_me:$LINENO: checking for $ac_func" >&5
10023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10024 if eval "test \"\${$as_ac_var+set}\" = set"; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 /* System header to define __stub macros and hopefully few prototypes,
10031 which can conflict with char $ac_func (); below. */
10032 #include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10042 #ifdef F77_DUMMY_MAIN
10043 # ifdef __cplusplus
10046 int F77_DUMMY_MAIN() { return 1; }
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 eval "$as_ac_var=yes"
10078 echo "$as_me: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 eval "$as_ac_var=no"
10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10086 if test `eval echo '${'$as_ac_var'}'` = yes; then
10087 cat >>confdefs.h <<_ACEOF
10088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10095 cat >>confdefs.h <<\_ACEOF
10096 #define USE_SOCKET 1
10099 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10104 # Check whether --with-gss or --without-gss was given.
10105 if test "${with_gss+set}" = set; then
10106 withval="$with_gss"
10107 gss_prefix="$withval"
10111 if test "$gss_prefix" != "no"
10113 if test "$need_imap" = "yes"
10116 GSSAPI_PREFIX=$gss_prefix
10118 saved_CPPFLAGS="$CPPFLAGS"
10119 saved_LDFLAGS="$LDFLAGS"
10121 if test "$GSSAPI_PREFIX" != "yes"
10123 krb5_path="$GSSAPI_PREFIX/bin"
10127 # Extract the first word of "krb5-config", so it can be a program name with args.
10128 set dummy krb5-config; ac_word=$2
10129 echo "$as_me:$LINENO: checking for $ac_word" >&5
10130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10131 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 case $KRB5CFGPATH in
10136 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $krb5_path
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10157 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10159 if test -n "$KRB5CFGPATH"; then
10160 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10161 echo "${ECHO_T}$KRB5CFGPATH" >&6
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10167 if test "$KRB5CFGPATH" != "none"
10169 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10170 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10171 case "`$KRB5CFGPATH --version`" in
10172 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10173 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10174 *) GSSAPI_IMPL="Unknown";;
10177 if test "$GSSAPI_PREFIX" != "yes"
10179 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10180 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10181 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10182 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10185 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10186 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10187 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10196 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10202 char gss_init_sec_context ();
10203 #ifdef F77_DUMMY_MAIN
10204 # ifdef __cplusplus
10207 int F77_DUMMY_MAIN() { return 1; }
10212 gss_init_sec_context ();
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10231 echo "$as_me: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10238 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10239 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10240 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10243 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10248 if test "$GSSAPI_IMPL" = "none"
10250 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10251 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10252 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_check_lib_save_LIBS=$LIBS
10256 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10257 cat >conftest.$ac_ext <<_ACEOF
10258 #line $LINENO "configure"
10259 #include "confdefs.h"
10261 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267 char gss_init_sec_context ();
10268 #ifdef F77_DUMMY_MAIN
10269 # ifdef __cplusplus
10272 int F77_DUMMY_MAIN() { return 1; }
10277 gss_init_sec_context ();
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } &&
10288 { ac_try='test -s conftest$ac_exeext'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_lib_gssapi_gss_init_sec_context=yes
10296 echo "$as_me: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 ac_cv_lib_gssapi_gss_init_sec_context=no
10300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10303 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10304 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10305 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10307 GSSAPI_IMPL="Heimdal"
10308 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10309 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10315 if test "$GSSAPI_IMPL" = "none"
10317 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10318 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10319 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10324 cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10326 #include "confdefs.h"
10328 /* Override any gcc2 internal prototype to avoid an error. */
10332 /* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334 char g_order_init ();
10335 #ifdef F77_DUMMY_MAIN
10336 # ifdef __cplusplus
10339 int F77_DUMMY_MAIN() { return 1; }
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -s conftest$ac_exeext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_lib_gssapi_krb5_g_order_init=yes
10363 echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 ac_cv_lib_gssapi_krb5_g_order_init=no
10367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10370 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10371 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10372 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10374 GSSAPI_IMPL="OldMIT",
10375 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10382 CPPFLAGS="$saved_CPPFLAGS"
10383 LDFLAGS="$saved_LDFLAGS"
10386 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10387 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10388 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10389 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10390 if test "$GSSAPI_IMPL" = "none"
10392 cat >confcache <<\_ACEOF
10393 # This file is a shell script that caches the results of configure
10394 # tests run on this system so they can be shared between configure
10395 # scripts and configure runs, see configure's option --config-cache.
10396 # It is not useful on other systems. If it contains results you don't
10397 # want to keep, you may remove or edit it.
10399 # config.status only pays attention to the cache file if you give it
10400 # the --recheck option to rerun configure.
10402 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10404 # following values.
10408 # The following way of writing the cache mishandles newlines in values,
10409 # but we know of no workaround that is simple, portable, and efficient.
10410 # So, don't put newlines in cache variables' values.
10411 # Ultrix sh set writes to stderr and can't be redirected directly,
10412 # and sets the high bit in the cache file unless we assign to the vars.
10415 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10417 # `set' does not quote correctly, so add quotes (double-quote
10418 # substitution turns \\\\ into \\, and sed turns \\ into \).
10421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10424 # `set' quotes correctly as required by POSIX, so do not add quotes.
10426 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10435 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10437 if cmp -s $cache_file confcache; then :; else
10438 if test -w $cache_file; then
10439 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10440 cat confcache >$cache_file
10442 echo "not updating unwritable cache $cache_file"
10446 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10447 echo "${ECHO_T}GSSAPI libraries not found" >&6
10449 if test "$GSSAPI_IMPL" = "Heimdal"
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_HEIMDAL 1
10457 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10458 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10460 cat >>confdefs.h <<\_ACEOF
10466 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10467 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10472 if test x$need_gss = xyes; then
10482 # Check whether --with-ssl or --without-ssl was given.
10483 if test "${with_ssl+set}" = set; then
10484 withval="$with_ssl"
10485 if test "$with_ssl" != "no"
10487 if test "$need_socket" != "yes"; then
10488 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10489 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10490 { (exit 1); exit 1; }; }
10493 if test "$with_ssl" != "yes"
10495 LDFLAGS="$LDFLAGS -L$withval/lib"
10496 CPPFLAGS="$CPPFLAGS -I$withval/include"
10501 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10502 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10503 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lcrypto $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10512 /* Override any gcc2 internal prototype to avoid an error. */
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10519 #ifdef F77_DUMMY_MAIN
10520 # ifdef __cplusplus
10523 int F77_DUMMY_MAIN() { return 1; }
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_lib_crypto_X509_new=yes
10547 echo "$as_me: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 ac_cv_lib_crypto_X509_new=no
10551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10555 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10556 if test $ac_cv_lib_crypto_X509_new = yes; then
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_LIBCRYPTO 1
10561 LIBS="-lcrypto $LIBS"
10564 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10565 echo "$as_me: error: Unable to find SSL library" >&2;}
10566 { (exit 1); exit 1; }; }
10570 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10571 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10572 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lssl -lcrypto $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10581 /* Override any gcc2 internal prototype to avoid an error. */
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10588 #ifdef F77_DUMMY_MAIN
10589 # ifdef __cplusplus
10592 int F77_DUMMY_MAIN() { return 1; }
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_ssl_SSL_new=yes
10616 echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 ac_cv_lib_ssl_SSL_new=no
10620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10624 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10625 if test $ac_cv_lib_ssl_SSL_new = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_LIBSSL 1
10633 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10634 echo "$as_me: error: Unable to find SSL library" >&2;}
10635 { (exit 1); exit 1; }; }
10641 for ac_func in RAND_status RAND_egd
10643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10644 echo "$as_me:$LINENO: checking for $ac_func" >&5
10645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10646 if eval "test \"\${$as_ac_var+set}\" = set"; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10650 #line $LINENO "configure"
10651 #include "confdefs.h"
10652 /* System header to define __stub macros and hopefully few prototypes,
10653 which can conflict with char $ac_func (); below. */
10654 #include <assert.h>
10655 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10664 #ifdef F77_DUMMY_MAIN
10665 # ifdef __cplusplus
10668 int F77_DUMMY_MAIN() { return 1; }
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 eval "$as_ac_var=yes"
10700 echo "$as_me: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 eval "$as_ac_var=no"
10704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10708 if test `eval echo '${'$as_ac_var'}'` = yes; then
10709 cat >>confdefs.h <<_ACEOF
10710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10718 cat >>confdefs.h <<\_ACEOF
10723 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10724 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10732 if test x$need_ssl = xyes; then
10741 # Check whether --with-gnutls or --without-gnutls was given.
10742 if test "${with_gnutls+set}" = set; then
10743 withval="$with_gnutls"
10744 if test "$need_ssl" = "yes"
10746 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10747 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10748 { (exit 1); exit 1; }; }
10750 if test "$with_gnutls" != "no"
10752 if test "$need_socket" != "yes"; then
10753 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10754 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10755 { (exit 1); exit 1; }; }
10757 if test "$with_gnutls" != "yes"
10759 LDFLAGS="$LDFLAGS -L$withval/lib"
10760 CPPFLAGS="$CPPFLAGS -I$withval/include"
10762 #saved_LIBS="$LIBS"
10765 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10766 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10767 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-lgnutls $LIBS"
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10776 /* Override any gcc2 internal prototype to avoid an error. */
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char gnutls_init ();
10783 #ifdef F77_DUMMY_MAIN
10784 # ifdef __cplusplus
10787 int F77_DUMMY_MAIN() { return 1; }
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10799 (eval $ac_link) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_lib_gnutls_gnutls_init=yes
10811 echo "$as_me: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 ac_cv_lib_gnutls_gnutls_init=no
10815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10819 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10820 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_LIBGNUTLS 1
10825 LIBS="-lgnutls $LIBS"
10828 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10829 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10830 { (exit 1); exit 1; }; }
10835 cat >>confdefs.h <<\_ACEOF
10836 #define USE_GNUTLS 1
10839 #LIBS="$saved_LIBS"
10840 #MUTTLIBS="$MUTTLIBS -lgnutls"
10841 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10848 if test x$need_gnutls = xyes; then
10850 USE_GNUTLS_FALSE='#'
10852 USE_GNUTLS_TRUE='#'
10857 # Check whether --with-nss or --without-nss was given.
10858 if test "${with_nss+set}" = set; then
10859 withval="$with_nss"
10860 if test "$with_nss" != no
10862 if test "$need_socket" != "yes"; then
10863 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10864 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10865 { (exit 1); exit 1; }; }
10868 if test "$with_nss" != "yes"
10870 LDFLAGS="$LDFLAGS -L$withval/lib"
10871 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10875 cat >>confdefs.h <<\_ACEOF
10879 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10880 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10881 MUTTLIBS="$MUTTLIBS -lnspr4"
10883 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10890 # Check whether --with-gnutls or --without-gnutls was given.
10891 if test "${with_gnutls+set}" = set; then
10892 withval="$with_gnutls"
10893 gnutls_prefix="$withval"
10897 if test "$gnutls_prefix" != "no"
10899 if test "$need_socket" != "yes"
10901 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10902 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10903 { (exit 1); exit 1; }; }
10905 libgnutls_config_prefix=$gnutls_prefix
10906 min_libgnutls_version=0.1.0
10908 if test x$libgnutls_config_prefix != x ; then
10909 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
10910 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
10914 # Extract the first word of "libgnutls-config", so it can be a program name with args.
10915 set dummy libgnutls-config; ac_word=$2
10916 echo "$as_me:$LINENO: checking for $ac_word" >&5
10917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10918 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 case $LIBGNUTLS_CONFIG in
10923 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
10944 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
10946 if test -n "$LIBGNUTLS_CONFIG"; then
10947 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
10948 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
10950 echo "$as_me:$LINENO: result: no" >&5
10951 echo "${ECHO_T}no" >&6
10954 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
10955 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
10957 if test "$LIBGNUTLS_CONFIG" = "no" ; then
10960 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
10961 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
10962 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
10965 ac_save_CFLAGS="$CFLAGS"
10966 ac_save_LIBS="$LIBS"
10967 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10968 LIBS="$LIBS $LIBGNUTLS_LIBS"
10970 rm -f conf.libgnutlstest
10971 if test "$cross_compiling" = yes; then
10972 echo $ac_n "cross compiling; assumed OK... $ac_c"
10974 cat >conftest.$ac_ext <<_ACEOF
10975 #line $LINENO "configure"
10976 #include "confdefs.h"
10979 #include <stdlib.h>
10980 #include <string.h>
10981 #include <gnutls/gnutls.h>
10986 system ("touch conf.libgnutlstest");
10988 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
10990 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
10991 "$libgnutls_config_version", gnutls_check_version(NULL) );
10992 printf("*** was found! If libgnutls-config was correct, then it is best\n");
10993 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
10994 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10995 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10996 printf("*** required on your system.\n");
10997 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
10998 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
10999 printf("*** before re-running configure\n");
11001 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11003 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11004 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11008 if ( gnutls_check_version( "$min_libgnutls_version" ) )
11014 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11015 gnutls_check_version(NULL) );
11016 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11017 "$min_libgnutls_version" );
11018 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11020 printf("*** If you have already installed a sufficiently new version, this error\n");
11021 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11022 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11023 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11024 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11025 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11026 printf("*** so that the correct libraries are found at run-time))\n");
11033 rm -f conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11046 echo "$as_me: program exited with status $ac_status" >&5
11047 echo "$as_me: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 ( exit $ac_status )
11052 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11054 CFLAGS="$ac_save_CFLAGS"
11055 LIBS="$ac_save_LIBS"
11058 if test "x$no_libgnutls" = x ; then
11059 echo "$as_me:$LINENO: result: yes" >&5
11060 echo "${ECHO_T}yes" >&6
11062 for ac_header in gnutls/openssl.h
11064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066 echo "$as_me:$LINENO: checking for $ac_header" >&5
11067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11074 # Is the header compilable?
11075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 #include "confdefs.h"
11080 $ac_includes_default
11081 #include <$ac_header>
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler=yes
11097 echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 ac_header_compiler=no
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103 echo "${ECHO_T}$ac_header_compiler" >&6
11105 # Is the header present?
11106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11108 cat >conftest.$ac_ext <<_ACEOF
11109 #line $LINENO "configure"
11110 #include "confdefs.h"
11111 #include <$ac_header>
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11116 egrep -v '^ *\+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11129 if test -z "$ac_cpp_err"; then
11130 ac_header_preproc=yes
11132 echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 ac_header_preproc=no
11136 rm -f conftest.err conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6
11140 # So? What about this header?
11141 case $ac_header_compiler:$ac_header_preproc in
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11155 echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 eval "$as_ac_Header=$ac_header_preproc"
11162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167 cat >>confdefs.h <<_ACEOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
11176 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
11178 cat >>confdefs.h <<\_ACEOF
11179 #define USE_GNUTLS 1
11183 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11186 if test -f conf.libgnutlstest ; then
11189 echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6
11192 if test "$LIBGNUTLS_CONFIG" = "no" ; then
11193 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
11194 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
11195 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
11196 echo "*** full path to libgnutls-config."
11198 if test -f conf.libgnutlstest ; then
11201 echo "*** Could not run libgnutls test program, checking why..."
11202 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11203 LIBS="$LIBS $LIBGNUTLS_LIBS"
11204 cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11209 #include <stdlib.h>
11210 #include <string.h>
11211 #include <gnutls/gnutls.h>
11213 #ifdef F77_DUMMY_MAIN
11214 # ifdef __cplusplus
11217 int F77_DUMMY_MAIN() { return 1; }
11222 return !!gnutls_check_version(NULL);
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 echo "*** The test program compiled, but did not run. This usually means"
11240 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
11241 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
11242 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11243 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11244 echo "*** is required on your system"
11246 echo "*** If you have an old version installed, it is best to remove it, although"
11247 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11250 echo "$as_me: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 echo "*** The test program failed to compile or link. See the file config.log for the"
11253 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
11254 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
11255 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
11257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11258 CFLAGS="$ac_save_CFLAGS"
11259 LIBS="$ac_save_LIBS"
11262 LIBGNUTLS_CFLAGS=""
11264 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
11265 echo "$as_me: error: could not find libgnutls" >&2;}
11266 { (exit 1); exit 1; }; }
11269 rm -f conf.libgnutlstest
11276 # Check whether --with-sasl or --without-sasl was given.
11277 if test "${with_sasl+set}" = set; then
11278 withval="$with_sasl"
11280 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11282 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
11283 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
11284 { (exit 1); exit 1; }; }
11287 if test "$with_sasl" != "no"
11289 if test "$with_sasl" != "yes"
11291 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
11292 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
11298 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
11299 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
11300 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lsasl $LIBS"
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11307 #include "confdefs.h"
11309 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char sasl_client_init ();
11316 #ifdef F77_DUMMY_MAIN
11317 # ifdef __cplusplus
11320 int F77_DUMMY_MAIN() { return 1; }
11325 sasl_client_init ();
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_lib_sasl_sasl_client_init=yes
11344 echo "$as_me: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 ac_cv_lib_sasl_sasl_client_init=no
11348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
11352 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
11353 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
11354 cat >>confdefs.h <<_ACEOF
11355 #define HAVE_LIBSASL 1
11358 LIBS="-lsasl $LIBS"
11361 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11362 echo "$as_me: error: could not find libsasl" >&2;}
11363 { (exit 1); exit 1; }; }
11367 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11368 MUTTLIBS="$MUTTLIBS -lsasl"
11371 cat >>confdefs.h <<\_ACEOF
11381 if test x$need_sasl = xyes; then
11390 # Check whether --with-sasl2 or --without-sasl2 was given.
11391 if test "${with_sasl2+set}" = set; then
11392 withval="$with_sasl2"
11394 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11396 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
11397 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
11398 { (exit 1); exit 1; }; }
11401 if test "$with_sasl2" != "no"
11403 if test "$with_sasl2" != "yes"
11405 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
11406 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
11412 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
11413 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
11414 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-lsasl2 $LIBS"
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 #include "confdefs.h"
11423 /* Override any gcc2 internal prototype to avoid an error. */
11427 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */
11429 char sasl_client_init ();
11430 #ifdef F77_DUMMY_MAIN
11431 # ifdef __cplusplus
11434 int F77_DUMMY_MAIN() { return 1; }
11439 sasl_client_init ();
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11446 (eval $ac_link) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -s conftest$ac_exeext'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_lib_sasl2_sasl_client_init=yes
11458 echo "$as_me: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11460 ac_cv_lib_sasl2_sasl_client_init=no
11462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11465 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11466 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11467 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_LIBSASL2 1
11472 LIBS="-lsasl2 $LIBS"
11475 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11476 echo "$as_me: error: could not find libsasl2" >&2;}
11477 { (exit 1); exit 1; }; }
11481 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11482 MUTTLIBS="$MUTTLIBS -lsasl2"
11485 cat >>confdefs.h <<\_ACEOF
11490 cat >>confdefs.h <<\_ACEOF
11491 #define USE_SASL2 1
11500 if test x$need_sasl = xyes; then
11509 # Check whether --with-idn or --without-idn was given.
11510 if test "${with_idn+set}" = set; then
11511 withval="$with_idn"
11513 if test "$with_idn" != "no" ; then
11514 if test "$with_idn" != "yes" ; then
11515 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11516 LDFLAGS="$LDFLAGS -L$with_idn/lib"
11523 if test "x$with_idn" != "xno"; then
11525 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11526 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11527 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 ac_check_lib_save_LIBS=$LIBS
11532 cat >conftest.$ac_ext <<_ACEOF
11533 #line $LINENO "configure"
11534 #include "confdefs.h"
11536 /* Override any gcc2 internal prototype to avoid an error. */
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11542 char stringprep_check_version ();
11543 #ifdef F77_DUMMY_MAIN
11544 # ifdef __cplusplus
11547 int F77_DUMMY_MAIN() { return 1; }
11552 stringprep_check_version ();
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -s conftest$ac_exeext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_cv_lib_idn_stringprep_check_version=yes
11571 echo "$as_me: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 ac_cv_lib_idn_stringprep_check_version=no
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11579 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11580 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define HAVE_LIBIDN 1
11591 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11594 echo "$as_me:$LINENO: checking for $ac_func" >&5
11595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11596 if eval "test \"\${$as_ac_var+set}\" = set"; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 cat >conftest.$ac_ext <<_ACEOF
11600 #line $LINENO "configure"
11601 #include "confdefs.h"
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below. */
11604 #include <assert.h>
11605 /* Override any gcc2 internal prototype to avoid an error. */
11609 /* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11614 #ifdef F77_DUMMY_MAIN
11615 # ifdef __cplusplus
11618 int F77_DUMMY_MAIN() { return 1; }
11623 /* The GNU C library defines this for functions which it implements
11624 to always fail with ENOSYS. Some functions are actually named
11625 something starting with __ and the normal name is an alias. */
11626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "$as_ac_var=yes"
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 eval "$as_ac_var=no"
11654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11658 if test `eval echo '${'$as_ac_var'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_var+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11678 #include "confdefs.h"
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below. */
11681 #include <assert.h>
11682 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11691 #ifdef F77_DUMMY_MAIN
11692 # ifdef __cplusplus
11695 int F77_DUMMY_MAIN() { return 1; }
11700 /* The GNU C library defines this for functions which it implements
11701 to always fail with ENOSYS. Some functions are actually named
11702 something starting with __ and the normal name is an alias. */
11703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 eval "$as_ac_var=yes"
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 eval "$as_ac_var=no"
11731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11748 echo "$as_me:$LINENO: checking for $ac_func" >&5
11749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11750 if eval "test \"\${$as_ac_var+set}\" = set"; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 cat >conftest.$ac_ext <<_ACEOF
11754 #line $LINENO "configure"
11755 #include "confdefs.h"
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below. */
11758 #include <assert.h>
11759 /* Override any gcc2 internal prototype to avoid an error. */
11763 /* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11768 #ifdef F77_DUMMY_MAIN
11769 # ifdef __cplusplus
11772 int F77_DUMMY_MAIN() { return 1; }
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 eval "$as_ac_var=no"
11808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11823 # Check whether --enable-debug or --disable-debug was given.
11824 if test "${enable_debug+set}" = set; then
11825 enableval="$enable_debug"
11826 if test x$enableval = xyes ; then
11828 cat >>confdefs.h <<\_ACEOF
11836 # Check whether --enable-flock or --disable-flock was given.
11837 if test "${enable_flock+set}" = set; then
11838 enableval="$enable_flock"
11839 if test $enableval = yes; then
11841 cat >>confdefs.h <<\_ACEOF
11842 #define USE_FLOCK 1
11849 # Check whether --enable-fcntl or --disable-fcntl was given.
11850 if test "${enable_fcntl+set}" = set; then
11851 enableval="$enable_fcntl"
11852 if test $enableval = no; then mutt_cv_fcntl=no; fi
11855 if test $mutt_cv_fcntl = yes; then
11857 cat >>confdefs.h <<\_ACEOF
11858 #define USE_FCNTL 1
11863 mutt_cv_inodesort=no
11864 # Check whether --enable-inodesort or --disable-inodesort was given.
11865 if test "${enable_inodesort+set}" = set; then
11866 enableval="$enable_inodesort"
11867 if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
11870 if test $mutt_cv_inodesort = yes; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define USE_INODESORT 1
11878 mutt_cv_warnings=yes
11879 # Check whether --enable-warnings or --disable-warnings was given.
11880 if test "${enable_warnings+set}" = set; then
11881 enableval="$enable_warnings"
11882 if test $enableval = no; then
11883 mutt_cv_warnings=no
11887 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11888 CFLAGS="-Wall -pedantic $CFLAGS"
11891 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11892 if test "${enable_nfs_fix+set}" = set; then
11893 enableval="$enable_nfs_fix"
11894 if test x$enableval = xyes; then
11896 cat >>confdefs.h <<\_ACEOF
11897 #define NFS_ATTRIBUTE_HACK 1
11903 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11904 if test "${enable_buffy_size+set}" = set; then
11905 enableval="$enable_buffy_size"
11906 if test x$enableval = xyes; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define BUFFY_SIZE 1
11915 # Check whether --enable-mailtool or --disable-mailtool was given.
11916 if test "${enable_mailtool+set}" = set; then
11917 enableval="$enable_mailtool"
11918 if test x$enableval = xyes; then
11920 cat >>confdefs.h <<\_ACEOF
11921 #define SUN_ATTACHMENT 1
11927 # Check whether --enable-compressed or --disable-compressed was given.
11928 if test "${enable_compressed+set}" = set; then
11929 enableval="$enable_compressed"
11930 if test x$enableval = xyes; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define USE_COMPRESSED 1
11938 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11939 if test "${enable_locales_fix+set}" = set; then
11940 enableval="$enable_locales_fix"
11941 if test x$enableval = xyes; then
11943 cat >>confdefs.h <<\_ACEOF
11944 #define LOCALES_HACK 1
11951 # Check whether --with-exec-shell or --without-exec-shell was given.
11952 if test "${with_exec_shell+set}" = set; then
11953 withval="$with_exec_shell"
11954 if test $withval != yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define EXECSHELL "$withval"
11961 cat >>confdefs.h <<_ACEOF
11962 #define EXECSHELL "/bin/sh"
11967 cat >>confdefs.h <<_ACEOF
11968 #define EXECSHELL "/bin/sh"
11973 # Check whether --enable-exact-address or --disable-exact-address was given.
11974 if test "${enable_exact_address+set}" = set; then
11975 enableval="$enable_exact_address"
11976 if test $enableval = yes; then
11978 cat >>confdefs.h <<\_ACEOF
11979 #define EXACT_ADDRESS 1
11986 # Check whether --enable-hcache or --disable-hcache was given.
11987 if test "${enable_hcache+set}" = set; then
11988 enableval="$enable_hcache"
11989 if test x$enableval = xyes; then
11991 cat >>confdefs.h <<\_ACEOF
11992 #define USE_HCACHE 1
11996 OLDCPPFLAGS="$CPPFLAGS"
12002 # Check whether --with-gdbm or --without-gdbm was given.
12003 if test "${with_gdbm+set}" = set; then
12004 withval="$with_gdbm"
12005 ac_prefer_gdbm=$withval
12007 if test x$ac_prefer_gdbm != xno; then
12008 CPPFLAGS="$OLDCPPFLAGS"
12009 LIBS="$OLDLIBS -lgdbm";
12010 echo "$as_me:$LINENO: checking for gdbm_open" >&5
12011 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12012 if test "${ac_cv_gdbmopen+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 #include "confdefs.h"
12021 #ifdef F77_DUMMY_MAIN
12022 # ifdef __cplusplus
12025 int F77_DUMMY_MAIN() { return 1; }
12030 gdbm_open(0,0,0,0,0);
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12049 echo "$as_me: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12056 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12061 # Check whether --with-bdb or --without-bdb was given.
12062 if test "${with_bdb+set}" = set; then
12063 withval="$with_bdb"
12064 ac_bdb_prefix=$withval
12066 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12067 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12068 for d in $ac_bdb_prefix; do
12069 bdbpfx="$bdbpfx $d"
12070 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12071 bdbpfx="$bdbpfx $d/$v"
12074 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12075 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12076 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12077 for d in $bdbpfx; do
12080 for v in / $BDB_VERSIONS; do
12081 if test -r "$d/include/$v/db.h"; then
12082 BDB_INCLUDE_DIR="$d/include/$v"
12083 if test -d "$d/lib/$v"; then
12084 BDB_LIB_DIR="$d/lib/$v"
12085 for l in `echo $BDB_VERSIONS`; do
12086 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12087 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12092 #include <stdlib.h>
12095 #ifdef F77_DUMMY_MAIN
12096 # ifdef __cplusplus
12099 int F77_DUMMY_MAIN() { return 1; }
12106 db->open(db,NULL,NULL,NULL,0,0,0);
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12135 test x$ac_dbcreate = xyes && break
12139 test x$BDB_LIB != x && break
12141 if test x$ac_cv_dbcreate = xyes; then
12142 echo "$as_me:$LINENO: result: yes" >&5
12143 echo "${ECHO_T}yes" >&6
12145 echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6
12150 if test x$ac_cv_gdbmopen = xyes; then
12151 CPPFLAGS="$OLDCPPFLAGS"
12152 LIBS="$OLDLIBS -lgdbm";
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_GDBM 1
12158 elif test x$ac_cv_dbcreate = xyes; then
12159 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12160 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12162 cat >>confdefs.h <<\_ACEOF
12167 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12168 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12169 { (exit 1); exit 1; }; }
12180 # Check whether --enable-iconv or --disable-iconv was given.
12181 if test "${enable_iconv+set}" = set; then
12182 enableval="$enable_iconv"
12183 if test x$enableval = xno ; then
12184 am_cv_func_iconv=no
12189 echo "$as_me:$LINENO: checking for off_t" >&5
12190 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12191 if test "${ac_cv_type_off_t+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 $ac_includes_default
12198 #ifdef F77_DUMMY_MAIN
12199 # ifdef __cplusplus
12202 int F77_DUMMY_MAIN() { return 1; }
12209 if (sizeof (off_t))
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_type_off_t=yes
12229 echo "$as_me: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 ac_cv_type_off_t=no
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12236 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12237 if test $ac_cv_type_off_t = yes; then
12241 cat >>confdefs.h <<_ACEOF
12247 echo "$as_me:$LINENO: checking for size_t" >&5
12248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12249 if test "${ac_cv_type_size_t+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255 $ac_includes_default
12256 #ifdef F77_DUMMY_MAIN
12257 # ifdef __cplusplus
12260 int F77_DUMMY_MAIN() { return 1; }
12267 if (sizeof (size_t))
12273 rm -f conftest.$ac_objext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275 (eval $ac_compile) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_type_size_t=yes
12287 echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 ac_cv_type_size_t=no
12291 rm -f conftest.$ac_objext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12295 if test $ac_cv_type_size_t = yes; then
12299 cat >>confdefs.h <<_ACEOF
12300 #define size_t unsigned
12305 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12306 # for constant arguments. Useless!
12307 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12308 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12309 if test "${ac_cv_working_alloca_h+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 #include "confdefs.h"
12315 #include <alloca.h>
12316 #ifdef F77_DUMMY_MAIN
12317 # ifdef __cplusplus
12320 int F77_DUMMY_MAIN() { return 1; }
12325 char *p = (char *) alloca (2 * sizeof (int));
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -s conftest$ac_exeext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_working_alloca_h=yes
12344 echo "$as_me: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 ac_cv_working_alloca_h=no
12348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12352 if test $ac_cv_working_alloca_h = yes; then
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_ALLOCA_H 1
12360 echo "$as_me:$LINENO: checking for alloca" >&5
12361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12362 if test "${ac_cv_func_alloca_works+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 cat >conftest.$ac_ext <<_ACEOF
12366 #line $LINENO "configure"
12367 #include "confdefs.h"
12369 # define alloca __builtin_alloca
12372 # include <malloc.h>
12373 # define alloca _alloca
12376 # include <alloca.h>
12381 # ifndef alloca /* predefined by HP cc +Olibcalls */
12389 #ifdef F77_DUMMY_MAIN
12390 # ifdef __cplusplus
12393 int F77_DUMMY_MAIN() { return 1; }
12398 char *p = (char *) alloca (1);
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_func_alloca_works=yes
12417 echo "$as_me: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 ac_cv_func_alloca_works=no
12421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12423 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12424 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12426 if test $ac_cv_func_alloca_works = yes; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_ALLOCA 1
12433 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12434 # that cause trouble. Some versions do not even contain alloca or
12435 # contain a buggy version. If you still want to use their alloca,
12436 # use ar to extract alloca.o from them instead of compiling alloca.c.
12438 ALLOCA=alloca.$ac_objext
12440 cat >>confdefs.h <<\_ACEOF
12445 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12446 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12447 if test "${ac_cv_os_cray+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12452 #include "confdefs.h"
12453 #if defined(CRAY) && ! defined(CRAY2)
12460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12461 egrep "webecray" >/dev/null 2>&1; then
12469 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12470 echo "${ECHO_T}$ac_cv_os_cray" >&6
12471 if test $ac_cv_os_cray = yes; then
12472 for ac_func in _getb67 GETB67 getb67; do
12473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12474 echo "$as_me:$LINENO: checking for $ac_func" >&5
12475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12476 if eval "test \"\${$as_ac_var+set}\" = set"; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12480 #line $LINENO "configure"
12481 #include "confdefs.h"
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below. */
12484 #include <assert.h>
12485 /* Override any gcc2 internal prototype to avoid an error. */
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12494 #ifdef F77_DUMMY_MAIN
12495 # ifdef __cplusplus
12498 int F77_DUMMY_MAIN() { return 1; }
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518 (eval $ac_link) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -s conftest$ac_exeext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 eval "$as_ac_var=yes"
12530 echo "$as_me: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 eval "$as_ac_var=no"
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12538 if test `eval echo '${'$as_ac_var'}'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define CRAY_STACKSEG_END $ac_func
12550 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12551 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12552 if test "${ac_cv_c_stack_direction+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 if test "$cross_compiling" = yes; then
12556 ac_cv_c_stack_direction=0
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12562 find_stack_direction ()
12564 static char *addr = 0;
12569 return find_stack_direction ();
12572 return (&dummy > addr) ? 1 : -1;
12578 exit (find_stack_direction () < 0);
12581 rm -f conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_c_stack_direction=1
12594 echo "$as_me: program exited with status $ac_status" >&5
12595 echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ( exit $ac_status )
12598 ac_cv_c_stack_direction=-1
12600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12603 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12604 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12606 cat >>confdefs.h <<_ACEOF
12607 #define STACK_DIRECTION $ac_cv_c_stack_direction
12615 for ac_header in stdlib.h unistd.h
12617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo "$as_me:$LINENO: checking for $ac_header" >&5
12620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627 # Is the header compilable?
12628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12630 cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12632 #include "confdefs.h"
12633 $ac_includes_default
12634 #include <$ac_header>
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_header_compiler=yes
12650 echo "$as_me: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 ac_header_compiler=no
12654 rm -f conftest.$ac_objext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12656 echo "${ECHO_T}$ac_header_compiler" >&6
12658 # Is the header present?
12659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12664 #include <$ac_header>
12666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12669 egrep -v '^ *\+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } >/dev/null; then
12674 if test -s conftest.err; then
12675 ac_cpp_err=$ac_c_preproc_warn_flag
12682 if test -z "$ac_cpp_err"; then
12683 ac_header_preproc=yes
12685 echo "$as_me: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 ac_header_preproc=no
12689 rm -f conftest.err conftest.$ac_ext
12690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12691 echo "${ECHO_T}$ac_header_preproc" >&6
12693 # So? What about this header?
12694 case $ac_header_compiler:$ac_header_preproc in
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12708 echo "$as_me:$LINENO: checking for $ac_header" >&5
12709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 eval "$as_ac_Header=$ac_header_preproc"
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12729 for ac_func in getpagesize
12731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12732 echo "$as_me:$LINENO: checking for $ac_func" >&5
12733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12734 if eval "test \"\${$as_ac_var+set}\" = set"; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 #include "confdefs.h"
12740 /* System header to define __stub macros and hopefully few prototypes,
12741 which can conflict with char $ac_func (); below. */
12742 #include <assert.h>
12743 /* Override any gcc2 internal prototype to avoid an error. */
12747 /* We use char because int might match the return type of a gcc2
12748 builtin and then its argument prototype would still apply. */
12752 #ifdef F77_DUMMY_MAIN
12753 # ifdef __cplusplus
12756 int F77_DUMMY_MAIN() { return 1; }
12761 /* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 eval "$as_ac_var=yes"
12788 echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 eval "$as_ac_var=no"
12792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12796 if test `eval echo '${'$as_ac_var'}'` = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12804 echo "$as_me:$LINENO: checking for working mmap" >&5
12805 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12806 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 if test "$cross_compiling" = yes; then
12810 ac_cv_func_mmap_fixed_mapped=no
12812 cat >conftest.$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 #include "confdefs.h"
12815 $ac_includes_default
12816 /* malloc might have been renamed as rpl_malloc. */
12819 /* Thanks to Mike Haertel and Jim Avera for this test.
12820 Here is a matrix of mmap possibilities:
12821 mmap private not fixed
12822 mmap private fixed at somewhere currently unmapped
12823 mmap private fixed at somewhere already mapped
12824 mmap shared not fixed
12825 mmap shared fixed at somewhere currently unmapped
12826 mmap shared fixed at somewhere already mapped
12827 For private mappings, we should verify that changes cannot be read()
12828 back from the file, nor mmap's back from the file at a different
12829 address. (There have been systems where private was not correctly
12830 implemented like the infamous i386 svr4.0, and systems where the
12831 VM page cache was not coherent with the file system buffer cache
12832 like early versions of FreeBSD and possibly contemporary NetBSD.)
12833 For shared mappings, we should conversely verify that changes get
12834 propagated back to all the places they're supposed to be.
12836 Grep wants private fixed already mapped.
12837 The main things grep needs to know about mmap are:
12838 * does it exist and is it safe to write into the mmap'd area
12839 * how to use it (BSD variants) */
12842 #include <sys/mman.h>
12844 #if !STDC_HEADERS && !HAVE_STDLIB_H
12848 /* This mess was copied from the GNU getpagesize.h. */
12849 #if !HAVE_GETPAGESIZE
12850 /* Assume that all systems that can run configure have sys/param.h. */
12851 # if !HAVE_SYS_PARAM_H
12852 # define HAVE_SYS_PARAM_H 1
12855 # ifdef _SC_PAGESIZE
12856 # define getpagesize() sysconf(_SC_PAGESIZE)
12857 # else /* no _SC_PAGESIZE */
12858 # if HAVE_SYS_PARAM_H
12859 # include <sys/param.h>
12860 # ifdef EXEC_PAGESIZE
12861 # define getpagesize() EXEC_PAGESIZE
12862 # else /* no EXEC_PAGESIZE */
12864 # define getpagesize() NBPG * CLSIZE
12867 # endif /* no CLSIZE */
12868 # else /* no NBPG */
12870 # define getpagesize() NBPC
12871 # else /* no NBPC */
12873 # define getpagesize() PAGESIZE
12874 # endif /* PAGESIZE */
12875 # endif /* no NBPC */
12876 # endif /* no NBPG */
12877 # endif /* no EXEC_PAGESIZE */
12878 # else /* no HAVE_SYS_PARAM_H */
12879 # define getpagesize() 8192 /* punt totally */
12880 # endif /* no HAVE_SYS_PARAM_H */
12881 # endif /* no _SC_PAGESIZE */
12883 #endif /* no HAVE_GETPAGESIZE */
12888 char *data, *data2, *data3;
12892 pagesize = getpagesize ();
12894 /* First, make a file with some known garbage in it. */
12895 data = (char *) malloc (pagesize);
12898 for (i = 0; i < pagesize; ++i)
12899 *(data + i) = rand ();
12901 fd = creat ("conftest.mmap", 0600);
12904 if (write (fd, data, pagesize) != pagesize)
12908 /* Next, try to mmap the file at a fixed address which already has
12909 something else allocated at it. If we can, also make sure that
12910 we see the same garbage. */
12911 fd = open ("conftest.mmap", O_RDWR);
12914 data2 = (char *) malloc (2 * pagesize);
12917 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12918 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12919 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12921 for (i = 0; i < pagesize; ++i)
12922 if (*(data + i) != *(data2 + i))
12925 /* Finally, make sure that changes to the mapped area do not
12926 percolate back to the file as seen by read(). (This is a bug on
12927 some variants of i386 svr4.0.) */
12928 for (i = 0; i < pagesize; ++i)
12929 *(data2 + i) = *(data2 + i) + 1;
12930 data3 = (char *) malloc (pagesize);
12933 if (read (fd, data3, pagesize) != pagesize)
12935 for (i = 0; i < pagesize; ++i)
12936 if (*(data + i) != *(data3 + i))
12942 rm -f conftest$ac_exeext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944 (eval $ac_link) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_func_mmap_fixed_mapped=yes
12955 echo "$as_me: program exited with status $ac_status" >&5
12956 echo "$as_me: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 ( exit $ac_status )
12959 ac_cv_func_mmap_fixed_mapped=no
12961 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12965 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12966 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_MMAP 1
12973 rm -f conftest.mmap
12976 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12977 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12978 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 #include "confdefs.h"
12985 #include <features.h>
12986 #ifdef __GNU_LIBRARY__
12987 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994 egrep "Lucky GNU user" >/dev/null 2>&1; then
12995 ac_cv_gnu_library_2_1=yes
12997 ac_cv_gnu_library_2_1=no
13004 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13005 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13007 GLIBC21="$ac_cv_gnu_library_2_1"
13021 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13022 stdlib.h string.h unistd.h sys/param.h
13024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13026 echo "$as_me:$LINENO: checking for $ac_header" >&5
13027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034 # Is the header compilable?
13035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13039 #include "confdefs.h"
13040 $ac_includes_default
13041 #include <$ac_header>
13043 rm -f conftest.$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 ac_header_compiler=yes
13057 echo "$as_me: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13059 ac_header_compiler=no
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13063 echo "${ECHO_T}$ac_header_compiler" >&6
13065 # Is the header present?
13066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 #include "confdefs.h"
13071 #include <$ac_header>
13073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13076 egrep -v '^ *\+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_c_preproc_warn_flag
13089 if test -z "$ac_cpp_err"; then
13090 ac_header_preproc=yes
13092 echo "$as_me: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 ac_header_preproc=no
13096 rm -f conftest.err conftest.$ac_ext
13097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13098 echo "${ECHO_T}$ac_header_preproc" >&6
13100 # So? What about this header?
13101 case $ac_header_compiler:$ac_header_preproc in
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 eval "$as_ac_Header=$ac_header_preproc"
13122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127 cat >>confdefs.h <<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
13157 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
13158 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13161 echo "$as_me:$LINENO: checking for $ac_func" >&5
13162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13163 if eval "test \"\${$as_ac_var+set}\" = set"; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 /* System header to define __stub macros and hopefully few prototypes,
13170 which can conflict with char $ac_func (); below. */
13171 #include <assert.h>
13172 /* Override any gcc2 internal prototype to avoid an error. */
13176 /* We use char because int might match the return type of a gcc2
13177 builtin and then its argument prototype would still apply. */
13181 #ifdef F77_DUMMY_MAIN
13182 # ifdef __cplusplus
13185 int F77_DUMMY_MAIN() { return 1; }
13190 /* The GNU C library defines this for functions which it implements
13191 to always fail with ENOSYS. Some functions are actually named
13192 something starting with __ and the normal name is an alias. */
13193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 eval "$as_ac_var=yes"
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 eval "$as_ac_var=no"
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13225 if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h <<_ACEOF
13227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13238 if test "${with_libiconv_prefix+set}" = set; then
13239 withval="$with_libiconv_prefix"
13241 for dir in `echo "$withval" | tr : ' '`; do
13242 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
13243 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
13248 echo "$as_me:$LINENO: checking for iconv" >&5
13249 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13250 if test "${am_cv_func_iconv+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 am_cv_func_iconv="no, consider installing GNU libiconv"
13256 cat >conftest.$ac_ext <<_ACEOF
13257 #line $LINENO "configure"
13258 #include "confdefs.h"
13259 #include <stdlib.h>
13261 #ifdef F77_DUMMY_MAIN
13262 # ifdef __cplusplus
13265 int F77_DUMMY_MAIN() { return 1; }
13270 iconv_t cd = iconv_open("","");
13271 iconv(cd,NULL,NULL,NULL,NULL);
13277 rm -f conftest.$ac_objext conftest$ac_exeext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13279 (eval $ac_link) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 am_cv_func_iconv=yes
13291 echo "$as_me: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13295 if test "$am_cv_func_iconv" != yes; then
13296 am_save_LIBS="$LIBS"
13297 LIBS="$LIBS -liconv"
13298 cat >conftest.$ac_ext <<_ACEOF
13299 #line $LINENO "configure"
13300 #include "confdefs.h"
13301 #include <stdlib.h>
13303 #ifdef F77_DUMMY_MAIN
13304 # ifdef __cplusplus
13307 int F77_DUMMY_MAIN() { return 1; }
13312 iconv_t cd = iconv_open("","");
13313 iconv(cd,NULL,NULL,NULL,NULL);
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 am_cv_lib_iconv=yes
13332 am_cv_func_iconv=yes
13334 echo "$as_me: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13338 LIBS="$am_save_LIBS"
13342 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13343 echo "${ECHO_T}$am_cv_func_iconv" >&6
13344 if test "$am_cv_func_iconv" = yes; then
13346 cat >>confdefs.h <<\_ACEOF
13347 #define HAVE_ICONV 1
13350 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13351 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13352 if test "${am_cv_proto_iconv+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 cat >conftest.$ac_ext <<_ACEOF
13357 #line $LINENO "configure"
13358 #include "confdefs.h"
13360 #include <stdlib.h>
13366 #if defined(__STDC__) || defined(__cplusplus)
13367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13372 #ifdef F77_DUMMY_MAIN
13373 # ifdef __cplusplus
13376 int F77_DUMMY_MAIN() { return 1; }
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388 (eval $ac_compile) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 am_cv_proto_iconv_arg1=""
13400 echo "$as_me: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 am_cv_proto_iconv_arg1="const"
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13405 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);"
13408 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13409 echo "$as_me:$LINENO: result: ${ac_t:-
13410 }$am_cv_proto_iconv" >&5
13411 echo "${ECHO_T}${ac_t:-
13412 }$am_cv_proto_iconv" >&6
13414 cat >>confdefs.h <<_ACEOF
13415 #define ICONV_CONST $am_cv_proto_iconv_arg1
13420 if test "$am_cv_lib_iconv" = yes; then
13426 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13427 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13428 if test "${am_cv_langinfo_codeset+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13432 #line $LINENO "configure"
13433 #include "confdefs.h"
13434 #include <langinfo.h>
13435 #ifdef F77_DUMMY_MAIN
13436 # ifdef __cplusplus
13439 int F77_DUMMY_MAIN() { return 1; }
13444 char* cs = nl_langinfo(CODESET);
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 am_cv_langinfo_codeset=yes
13463 echo "$as_me: failed program was:" >&5
13464 cat conftest.$ac_ext >&5
13465 am_cv_langinfo_codeset=no
13467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13470 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13471 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13472 if test $am_cv_langinfo_codeset = yes; then
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_LANGINFO_CODESET 1
13480 if test $ac_cv_header_locale_h = yes; then
13481 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 #include <locale.h>
13490 #ifdef F77_DUMMY_MAIN
13491 # ifdef __cplusplus
13494 int F77_DUMMY_MAIN() { return 1; }
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 am_cv_val_LC_MESSAGES=yes
13518 echo "$as_me: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 am_cv_val_LC_MESSAGES=no
13522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13524 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13525 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13526 if test $am_cv_val_LC_MESSAGES = yes; then
13528 cat >>confdefs.h <<\_ACEOF
13529 #define HAVE_LC_MESSAGES 1
13534 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13535 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13536 # Check whether --enable-nls or --disable-nls was given.
13537 if test "${enable_nls+set}" = set; then
13538 enableval="$enable_nls"
13543 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13544 echo "${ECHO_T}$USE_NLS" >&6
13547 BUILD_INCLUDED_LIBINTL=no
13548 USE_INCLUDED_LIBINTL=no
13551 if test "$USE_NLS" = "yes"; then
13553 cat >>confdefs.h <<\_ACEOF
13554 #define ENABLE_NLS 1
13557 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13558 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13560 # Check whether --with-included-gettext or --without-included-gettext was given.
13561 if test "${with_included_gettext+set}" = set; then
13562 withval="$with_included_gettext"
13563 nls_cv_force_use_gnu_gettext=$withval
13565 nls_cv_force_use_gnu_gettext=no
13567 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13568 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13570 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13571 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13577 if test "${ac_cv_header_libintl_h+set}" = set; then
13578 echo "$as_me:$LINENO: checking for libintl.h" >&5
13579 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13580 if test "${ac_cv_header_libintl_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13584 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13586 # Is the header compilable?
13587 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13588 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13589 cat >conftest.$ac_ext <<_ACEOF
13590 #line $LINENO "configure"
13591 #include "confdefs.h"
13592 $ac_includes_default
13593 #include <libintl.h>
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -s conftest.$ac_objext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_header_compiler=yes
13609 echo "$as_me: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 ac_header_compiler=no
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13615 echo "${ECHO_T}$ac_header_compiler" >&6
13617 # Is the header present?
13618 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13619 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 #include "confdefs.h"
13623 #include <libintl.h>
13625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13628 egrep -v '^ *\+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } >/dev/null; then
13633 if test -s conftest.err; then
13634 ac_cpp_err=$ac_c_preproc_warn_flag
13641 if test -z "$ac_cpp_err"; then
13642 ac_header_preproc=yes
13644 echo "$as_me: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 ac_header_preproc=no
13648 rm -f conftest.err conftest.$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13650 echo "${ECHO_T}$ac_header_preproc" >&6
13652 # So? What about this header?
13653 case $ac_header_compiler:$ac_header_preproc in
13655 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13656 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13658 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
13660 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13665 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
13667 echo "$as_me:$LINENO: checking for libintl.h" >&5
13668 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13669 if test "${ac_cv_header_libintl_h+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 ac_cv_header_libintl_h=$ac_header_preproc
13674 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13675 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13678 if test $ac_cv_header_libintl_h = yes; then
13679 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13680 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13681 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 #include <libintl.h>
13688 extern int _nl_msg_cat_cntr;
13689 #ifdef F77_DUMMY_MAIN
13690 # ifdef __cplusplus
13693 int F77_DUMMY_MAIN() { return 1; }
13698 bindtextdomain ("", "");
13699 return (int) gettext ("") + _nl_msg_cat_cntr
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706 (eval $ac_link) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -s conftest$ac_exeext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 gt_cv_func_gnugettext1_libc=yes
13718 echo "$as_me: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13720 gt_cv_func_gnugettext1_libc=no
13722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13724 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13725 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13727 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13728 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13729 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13730 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 gt_save_LIBS="$LIBS"
13734 LIBS="$LIBS -lintl $LIBICONV"
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 #include "confdefs.h"
13738 #include <libintl.h>
13739 extern int _nl_msg_cat_cntr;
13740 #ifdef F77_DUMMY_MAIN
13741 # ifdef __cplusplus
13744 int F77_DUMMY_MAIN() { return 1; }
13749 bindtextdomain ("", "");
13750 return (int) gettext ("") + _nl_msg_cat_cntr
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 gt_cv_func_gnugettext1_libintl=yes
13769 echo "$as_me: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 gt_cv_func_gnugettext1_libintl=no
13773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13774 LIBS="$gt_save_LIBS"
13776 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13777 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13780 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13781 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13782 && test "$PACKAGE" != gettext; }; then
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_GETTEXT 1
13789 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13790 INTLLIBS="-lintl $LIBICONV"
13793 gt_save_LIBS="$LIBS"
13794 LIBS="$LIBS $INTLLIBS"
13796 for ac_func in dcgettext
13798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13799 echo "$as_me:$LINENO: checking for $ac_func" >&5
13800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13801 if eval "test \"\${$as_ac_var+set}\" = set"; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 cat >conftest.$ac_ext <<_ACEOF
13805 #line $LINENO "configure"
13806 #include "confdefs.h"
13807 /* System header to define __stub macros and hopefully few prototypes,
13808 which can conflict with char $ac_func (); below. */
13809 #include <assert.h>
13810 /* Override any gcc2 internal prototype to avoid an error. */
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13819 #ifdef F77_DUMMY_MAIN
13820 # ifdef __cplusplus
13823 int F77_DUMMY_MAIN() { return 1; }
13828 /* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 eval "$as_ac_var=yes"
13855 echo "$as_me: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 eval "$as_ac_var=no"
13859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13863 if test `eval echo '${'$as_ac_var'}'` = yes; then
13864 cat >>confdefs.h <<_ACEOF
13865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13871 LIBS="$gt_save_LIBS"
13873 # Extract the first word of "msgfmt", so it can be a program name with args.
13874 set dummy msgfmt; ac_word=$2
13875 echo "$as_me:$LINENO: checking for $ac_word" >&5
13876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13877 if test "${ac_cv_path_MSGFMT+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13886 for ac_dir in $PATH; do
13887 test -z "$ac_dir" && ac_dir=.
13888 if test -f $ac_dir/$ac_word; then
13889 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13890 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13896 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13900 MSGFMT="$ac_cv_path_MSGFMT"
13901 if test "$MSGFMT" != ":"; then
13902 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13903 echo "${ECHO_T}$MSGFMT" >&6
13905 echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6
13909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13910 set dummy gmsgfmt; ac_word=$2
13911 echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13913 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13939 GMSGFMT=$ac_cv_path_GMSGFMT
13941 if test -n "$GMSGFMT"; then
13942 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13943 echo "${ECHO_T}$GMSGFMT" >&6
13945 echo "$as_me:$LINENO: result: no" >&5
13946 echo "${ECHO_T}no" >&6
13950 # Extract the first word of "xgettext", so it can be a program name with args.
13951 set dummy xgettext; ac_word=$2
13952 echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13954 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 case "$XGETTEXT" in
13959 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13963 for ac_dir in $PATH; do
13964 test -z "$ac_dir" && ac_dir=.
13965 if test -f $ac_dir/$ac_word; then
13966 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13967 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13973 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13977 XGETTEXT="$ac_cv_path_XGETTEXT"
13978 if test "$XGETTEXT" != ":"; then
13979 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13980 echo "${ECHO_T}$XGETTEXT" >&6
13982 echo "$as_me:$LINENO: result: no" >&5
13983 echo "${ECHO_T}no" >&6
13994 if test "$CATOBJEXT" = "NONE"; then
13995 nls_cv_use_gnu_gettext=yes
13999 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14000 INTLOBJS="\$(GETTOBJS)"
14001 # Extract the first word of "msgfmt", so it can be a program name with args.
14002 set dummy msgfmt; ac_word=$2
14003 echo "$as_me:$LINENO: checking for $ac_word" >&5
14004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14005 if test "${ac_cv_path_MSGFMT+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14014 for ac_dir in $PATH; do
14015 test -z "$ac_dir" && ac_dir=.
14016 if test -f $ac_dir/$ac_word; then
14017 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14018 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14024 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14028 MSGFMT="$ac_cv_path_MSGFMT"
14029 if test "$MSGFMT" != ":"; then
14030 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14031 echo "${ECHO_T}$MSGFMT" >&6
14033 echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6
14037 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14038 set dummy gmsgfmt; ac_word=$2
14039 echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14041 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14063 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14067 GMSGFMT=$ac_cv_path_GMSGFMT
14069 if test -n "$GMSGFMT"; then
14070 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14071 echo "${ECHO_T}$GMSGFMT" >&6
14073 echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6
14077 # Extract the first word of "xgettext", so it can be a program name with args.
14078 set dummy xgettext; ac_word=$2
14079 echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14081 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 case "$XGETTEXT" in
14086 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14090 for ac_dir in $PATH; do
14091 test -z "$ac_dir" && ac_dir=.
14092 if test -f $ac_dir/$ac_word; then
14093 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14094 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14100 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14104 XGETTEXT="$ac_cv_path_XGETTEXT"
14105 if test "$XGETTEXT" != ":"; then
14106 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14107 echo "${ECHO_T}$XGETTEXT" >&6
14109 echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6
14114 BUILD_INCLUDED_LIBINTL=yes
14115 USE_INCLUDED_LIBINTL=yes
14117 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
14118 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14121 if test "$GMSGFMT" != ":"; then
14122 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
14125 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
14126 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
14131 if test "$XGETTEXT" != ":"; then
14132 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
14135 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
14136 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
14143 ac_config_commands="$ac_config_commands default-2"
14147 if test "$PACKAGE" = gettext; then
14148 BUILD_INCLUDED_LIBINTL=yes
14151 for ac_prog in bison
14153 # Extract the first word of "$ac_prog", so it can be a program name with args.
14154 set dummy $ac_prog; ac_word=$2
14155 echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14157 if test "${ac_cv_prog_INTLBISON+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 if test -n "$INTLBISON"; then
14161 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14167 test -z "$as_dir" && as_dir=.
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14170 ac_cv_prog_INTLBISON="$ac_prog"
14171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 INTLBISON=$ac_cv_prog_INTLBISON
14180 if test -n "$INTLBISON"; then
14181 echo "$as_me:$LINENO: result: $INTLBISON" >&5
14182 echo "${ECHO_T}$INTLBISON" >&6
14184 echo "$as_me:$LINENO: result: no" >&5
14185 echo "${ECHO_T}no" >&6
14188 test -n "$INTLBISON" && break
14191 if test -z "$INTLBISON"; then
14194 echo "$as_me:$LINENO: checking version of bison" >&5
14195 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
14196 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14197 case $ac_prog_version in
14198 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14199 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14200 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14201 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14203 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
14204 echo "${ECHO_T}$ac_prog_version" >&6
14206 if test $ac_verc_fail = yes; then
14210 for lang in $ALL_LINGUAS; do
14211 GMOFILES="$GMOFILES $lang.gmo"
14212 POFILES="$POFILES $lang.po"
14225 nls_cv_header_intl=
14226 nls_cv_header_libgt=
14238 if test "x$CATOBJEXT" != "x"; then
14239 if test "x$ALL_LINGUAS" = "x"; then
14242 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14243 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
14245 for presentlang in $ALL_LINGUAS; do
14247 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
14248 # Use the presentlang catalog if desiredlang is
14249 # a. equal to presentlang, or
14250 # b. a variant of presentlang (because in this case,
14251 # presentlang can be used as a fallback for messages
14252 # which are not translated in the desiredlang catalog).
14253 case "$desiredlang" in
14254 "$presentlang"*) useit=yes;;
14257 if test $useit = yes; then
14258 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14261 LINGUAS=$NEW_LINGUAS
14262 echo "$as_me:$LINENO: result: $LINGUAS" >&5
14263 echo "${ECHO_T}$LINGUAS" >&6
14266 if test -n "$LINGUAS"; then
14267 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14272 if test -n "$ac_aux_dir"; then
14273 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14275 if test -z "$MKINSTALLDIRS"; then
14276 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14280 INTL_LIBTOOL_SUFFIX_PREFIX=
14284 if test "$am_cv_func_iconv" != "yes"
14286 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
14287 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
14291 for ac_header in iconv.h
14293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14303 # Is the header compilable?
14304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14308 #include "confdefs.h"
14309 $ac_includes_default
14310 #include <$ac_header>
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_header_compiler=yes
14326 echo "$as_me: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14328 ac_header_compiler=no
14330 rm -f conftest.$ac_objext conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332 echo "${ECHO_T}$ac_header_compiler" >&6
14334 # Is the header present?
14335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14338 #line $LINENO "configure"
14339 #include "confdefs.h"
14340 #include <$ac_header>
14342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14345 egrep -v '^ *\+' conftest.er1 >conftest.err
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } >/dev/null; then
14350 if test -s conftest.err; then
14351 ac_cpp_err=$ac_c_preproc_warn_flag
14358 if test -z "$ac_cpp_err"; then
14359 ac_header_preproc=yes
14361 echo "$as_me: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 ac_header_preproc=no
14365 rm -f conftest.err conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14367 echo "${ECHO_T}$ac_header_preproc" >&6
14369 # So? What about this header?
14370 case $ac_header_compiler:$ac_header_preproc in
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14384 echo "$as_me:$LINENO: checking for $ac_header" >&5
14385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 eval "$as_ac_Header=$ac_header_preproc"
14391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14396 cat >>confdefs.h <<_ACEOF
14397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14399 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14400 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14401 cat >conftest.$ac_ext <<_ACEOF
14402 #line $LINENO "configure"
14403 #include "confdefs.h"
14407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14408 egrep "typedef.*iconv_t" >/dev/null 2>&1; then
14409 echo "$as_me:$LINENO: result: yes" >&5
14410 echo "${ECHO_T}yes" >&6
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_ICONV_T_DEF 1
14417 echo "$as_me:$LINENO: result: no" >&5
14418 echo "${ECHO_T}no" >&6
14427 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14428 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14429 if test "${mutt_cv_iconv_good+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 mutt_save_LIBS="$LIBS"
14433 LIBS="$LIBS $LIBICONV"
14434 if test "$cross_compiling" = yes; then
14435 mutt_cv_iconv_good=yes
14437 cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14448 ob = buf, obl = sizeof(buf);
14449 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14450 (iconv(cd, 0, 0, &ob, &obl) ||
14451 !(ob == buf && obl == sizeof(buf)) ||
14456 rm -f conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 mutt_cv_iconv_good=yes
14469 echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14472 ( exit $ac_status )
14473 mutt_cv_iconv_good=no
14475 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14477 LIBS="$mutt_save_LIBS"
14479 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14480 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14481 if test "$mutt_cv_iconv_good" = no; then
14482 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14483 echo "$as_me: error: Try using libiconv instead" >&2;}
14484 { (exit 1); exit 1; }; }
14487 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14488 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14489 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 mutt_save_LIBS="$LIBS"
14493 LIBS="$LIBS $LIBICONV"
14494 if test "$cross_compiling" = yes; then
14495 mutt_cv_iconv_nontrans=no
14497 cat >conftest.$ac_ext <<_ACEOF
14498 #line $LINENO "configure"
14499 #include "confdefs.h"
14502 #include <string.h>
14509 const char *s = "\304\211";
14511 ib = s, ibl = 2, ob = t, obl = 3;
14512 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14513 iconv(cd, &ib, &ibl, &ob, &obl));
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 mutt_cv_iconv_nontrans=no
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 ( exit $ac_status )
14534 mutt_cv_iconv_nontrans=yes
14536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538 LIBS="$mutt_save_LIBS"
14540 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14541 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14542 if test "$mutt_cv_iconv_nontrans" = yes; then
14543 cat >>confdefs.h <<\_ACEOF
14544 #define ICONV_NONTRANS 1
14548 cat >>confdefs.h <<\_ACEOF
14549 #define ICONV_NONTRANS 0
14554 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14556 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14564 for ac_func in bind_textdomain_codeset
14566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14567 echo "$as_me:$LINENO: checking for $ac_func" >&5
14568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14569 if eval "test \"\${$as_ac_var+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 cat >conftest.$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 #include "confdefs.h"
14575 /* System header to define __stub macros and hopefully few prototypes,
14576 which can conflict with char $ac_func (); below. */
14577 #include <assert.h>
14578 /* Override any gcc2 internal prototype to avoid an error. */
14582 /* We use char because int might match the return type of a gcc2
14583 builtin and then its argument prototype would still apply. */
14587 #ifdef F77_DUMMY_MAIN
14588 # ifdef __cplusplus
14591 int F77_DUMMY_MAIN() { return 1; }
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611 (eval $ac_link) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 eval "$as_ac_var=yes"
14623 echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14631 if test `eval echo '${'$as_ac_var'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14645 for ac_header in wchar.h
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14649 echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14657 # Is the header compilable?
14658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14660 cat >conftest.$ac_ext <<_ACEOF
14661 #line $LINENO "configure"
14662 #include "confdefs.h"
14663 $ac_includes_default
14664 #include <$ac_header>
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_header_compiler=yes
14680 echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 ac_header_compiler=no
14684 rm -f conftest.$ac_objext conftest.$ac_ext
14685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6
14688 # Is the header present?
14689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 #include "confdefs.h"
14694 #include <$ac_header>
14696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14699 egrep -v '^ *\+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } >/dev/null; then
14704 if test -s conftest.err; then
14705 ac_cpp_err=$ac_c_preproc_warn_flag
14712 if test -z "$ac_cpp_err"; then
14713 ac_header_preproc=yes
14715 echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 ac_header_preproc=no
14719 rm -f conftest.err conftest.$ac_ext
14720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14721 echo "${ECHO_T}$ac_header_preproc" >&6
14723 # So? What about this header?
14724 case $ac_header_compiler:$ac_header_preproc in
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14738 echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 eval "$as_ac_Header=$ac_header_preproc"
14745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14750 cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14759 echo "$as_me:$LINENO: checking for wchar_t" >&5
14760 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14761 if test "${mutt_cv_wchar_t+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 cat >conftest.$ac_ext <<_ACEOF
14765 #line $LINENO "configure"
14766 #include "confdefs.h"
14768 #include <stddef.h>
14769 #include <stdlib.h>
14770 #ifdef HAVE_WCHAR_H
14774 #ifdef F77_DUMMY_MAIN
14775 # ifdef __cplusplus
14778 int F77_DUMMY_MAIN() { return 1; }
14783 wchar_t wc; return 0;
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -s conftest.$ac_objext'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 mutt_cv_wchar_t=yes
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14806 rm -f conftest.$ac_objext conftest.$ac_ext
14808 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14809 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14811 if test "$mutt_cv_wchar_t" = no; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define wchar_t int
14819 echo "$as_me:$LINENO: checking for wint_t" >&5
14820 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14821 if test "${mutt_cv_wint_t+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 cat >conftest.$ac_ext <<_ACEOF
14825 #line $LINENO "configure"
14826 #include "confdefs.h"
14828 #include <stddef.h>
14829 #include <stdlib.h>
14830 #ifdef HAVE_WCHAR_H
14834 #ifdef F77_DUMMY_MAIN
14835 # ifdef __cplusplus
14838 int F77_DUMMY_MAIN() { return 1; }
14843 wint_t wc; return 0;
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14862 echo "$as_me: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14869 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14871 if test "$mutt_cv_wint_t" = no; then
14873 cat >>confdefs.h <<\_ACEOF
14880 for ac_header in wctype.h
14882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14884 echo "$as_me:$LINENO: checking for $ac_header" >&5
14885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14892 # Is the header compilable?
14893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14895 cat >conftest.$ac_ext <<_ACEOF
14896 #line $LINENO "configure"
14897 #include "confdefs.h"
14898 $ac_includes_default
14899 #include <$ac_header>
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -s conftest.$ac_objext'
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_header_compiler=yes
14915 echo "$as_me: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14917 ac_header_compiler=no
14919 rm -f conftest.$ac_objext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14929 #include <$ac_header>
14931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14934 egrep -v '^ *\+' conftest.er1 >conftest.err
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } >/dev/null; then
14939 if test -s conftest.err; then
14940 ac_cpp_err=$ac_c_preproc_warn_flag
14947 if test -z "$ac_cpp_err"; then
14948 ac_header_preproc=yes
14950 echo "$as_me: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14952 ac_header_preproc=no
14954 rm -f conftest.err conftest.$ac_ext
14955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14956 echo "${ECHO_T}$ac_header_preproc" >&6
14958 # So? What about this header?
14959 case $ac_header_compiler:$ac_header_preproc in
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14973 echo "$as_me:$LINENO: checking for $ac_header" >&5
14974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 eval "$as_ac_Header=$ac_header_preproc"
14980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14997 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 echo "$as_me:$LINENO: checking for $ac_func" >&5
15001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_var+set}\" = set"; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 /* System header to define __stub macros and hopefully few prototypes,
15009 which can conflict with char $ac_func (); below. */
15010 #include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error. */
15015 /* We use char because int might match the return type of a gcc2
15016 builtin and then its argument prototype would still apply. */
15020 #ifdef F77_DUMMY_MAIN
15021 # ifdef __cplusplus
15024 int F77_DUMMY_MAIN() { return 1; }
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest$ac_exeext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 eval "$as_ac_var=yes"
15056 echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 eval "$as_ac_var=no"
15060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15064 if test `eval echo '${'$as_ac_var'}'` = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15078 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
15080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15081 echo "$as_me:$LINENO: checking for $ac_func" >&5
15082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15083 if eval "test \"\${$as_ac_var+set}\" = set"; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 cat >conftest.$ac_ext <<_ACEOF
15087 #line $LINENO "configure"
15088 #include "confdefs.h"
15089 /* System header to define __stub macros and hopefully few prototypes,
15090 which can conflict with char $ac_func (); below. */
15091 #include <assert.h>
15092 /* Override any gcc2 internal prototype to avoid an error. */
15096 /* We use char because int might match the return type of a gcc2
15097 builtin and then its argument prototype would still apply. */
15101 #ifdef F77_DUMMY_MAIN
15102 # ifdef __cplusplus
15105 int F77_DUMMY_MAIN() { return 1; }
15110 /* The GNU C library defines this for functions which it implements
15111 to always fail with ENOSYS. Some functions are actually named
15112 something starting with __ and the normal name is an alias. */
15113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 eval "$as_ac_var=yes"
15137 echo "$as_me: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 eval "$as_ac_var=no"
15141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15145 if test `eval echo '${'$as_ac_var'}'` = yes; then
15146 cat >>confdefs.h <<_ACEOF
15147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15156 for ac_func in iswxdigit towupper towlower
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 cat >conftest.$ac_ext <<_ACEOF
15165 #line $LINENO "configure"
15166 #include "confdefs.h"
15167 /* System header to define __stub macros and hopefully few prototypes,
15168 which can conflict with char $ac_func (); below. */
15169 #include <assert.h>
15170 /* Override any gcc2 internal prototype to avoid an error. */
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15179 #ifdef F77_DUMMY_MAIN
15180 # ifdef __cplusplus
15183 int F77_DUMMY_MAIN() { return 1; }
15188 /* The GNU C library defines this for functions which it implements
15189 to always fail with ENOSYS. Some functions are actually named
15190 something starting with __ and the normal name is an alias. */
15191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15203 (eval $ac_link) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 eval "$as_ac_var=yes"
15215 echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 eval "$as_ac_var=no"
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15223 if test `eval echo '${'$as_ac_var'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15232 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15233 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15234 if test "${mutt_cv_mbstate_t+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 #include "confdefs.h"
15241 #include <stddef.h>
15242 #include <stdlib.h>
15243 #ifdef HAVE_WCHAR_H
15247 #ifdef F77_DUMMY_MAIN
15248 # ifdef __cplusplus
15251 int F77_DUMMY_MAIN() { return 1; }
15256 mbstate_t s; return 0;
15261 rm -f conftest.$ac_objext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15263 (eval $ac_compile) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 mutt_cv_mbstate_t=yes
15275 echo "$as_me: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15277 mutt_cv_mbstate_t=no
15279 rm -f conftest.$ac_objext conftest.$ac_ext
15281 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15282 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15284 if test "$mutt_cv_mbstate_t" = no; then
15286 cat >>confdefs.h <<\_ACEOF
15287 #define mbstate_t int
15294 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15295 if test "${with_wc_funcs+set}" = set; then
15296 withval="$with_wc_funcs"
15300 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15301 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15302 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15303 if test "${mutt_cv_wc_funcs+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 mutt_cv_wc_funcs=no
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15311 #define _XOPEN_SOURCE 1
15312 #include <stddef.h>
15313 #include <stdlib.h>
15314 #ifdef HAVE_WCTYPE_H
15315 #include <wctype.h>
15317 #ifdef HAVE_WCHAR_H
15320 #ifdef F77_DUMMY_MAIN
15321 # ifdef __cplusplus
15324 int F77_DUMMY_MAIN() { return 1; }
15329 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15330 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 mutt_cv_wc_funcs=yes
15349 echo "$as_me: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15355 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15356 wc_funcs=$mutt_cv_wc_funcs
15359 if test $wc_funcs = yes; then
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_WC_FUNCS 1
15367 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15368 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15369 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15374 #include "confdefs.h"
15375 #include <langinfo.h>
15376 #ifdef F77_DUMMY_MAIN
15377 # ifdef __cplusplus
15380 int F77_DUMMY_MAIN() { return 1; }
15385 char* cs = nl_langinfo(CODESET);
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try='test -s conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 mutt_cv_langinfo_codeset=yes
15404 echo "$as_me: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 mutt_cv_langinfo_codeset=no
15408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15411 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15412 if test $mutt_cv_langinfo_codeset = yes; then
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_LANGINFO_CODESET 1
15420 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15421 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15422 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15427 #include "confdefs.h"
15428 #include <langinfo.h>
15429 #ifdef F77_DUMMY_MAIN
15430 # ifdef __cplusplus
15433 int F77_DUMMY_MAIN() { return 1; }
15438 char* cs = nl_langinfo(YESEXPR);
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15445 (eval $ac_link) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 mutt_cv_langinfo_yesexpr=yes
15457 echo "$as_me: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15459 mutt_cv_langinfo_yesexpr=no
15461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15463 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15464 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15465 if test $mutt_cv_langinfo_yesexpr = yes; then
15467 cat >>confdefs.h <<\_ACEOF
15468 #define HAVE_LANGINFO_YESEXPR 1
15475 # Check whether --with-libesmtp or --without-libesmtp was given.
15476 if test "${with_libesmtp+set}" = set; then
15477 withval="$with_libesmtp"
15478 if test "$with_libesmtp" != "no"
15480 mutt_libesmtp_check_path="$PATH"
15482 if test "$with_libesmtp" != "yes"
15484 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15487 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15488 set dummy libesmtp-config; ac_word=$2
15489 echo "$as_me:$LINENO: checking for $ac_word" >&5
15490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15491 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 case $mutt_libesmtp_config_path in
15496 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15500 for as_dir in $mutt_libesmtp_check_path
15503 test -z "$as_dir" && as_dir=.
15504 for ac_exec_ext in '' $ac_executable_extensions; do
15505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15506 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15513 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15517 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15519 if test -n "$mutt_libesmtp_config_path"; then
15520 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15521 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15523 echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6
15528 if test "$mutt_libesmtp_config_path" = "no"
15530 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15531 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15532 { (exit 1); exit 1; }; }
15535 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15536 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15538 temp_CFLAGS="$CFLAGS"
15539 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15540 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15541 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15542 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15543 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15547 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15549 # Is the header compilable?
15550 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15551 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 #include "confdefs.h"
15555 $ac_includes_default
15556 #include <libesmtp.h>
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560 (eval $ac_compile) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_header_compiler=yes
15572 echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 ac_header_compiler=no
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578 echo "${ECHO_T}$ac_header_compiler" >&6
15580 # Is the header present?
15581 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15582 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 #include "confdefs.h"
15586 #include <libesmtp.h>
15588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15591 egrep -v '^ *\+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15604 if test -z "$ac_cpp_err"; then
15605 ac_header_preproc=yes
15607 echo "$as_me: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 ac_header_preproc=no
15611 rm -f conftest.err conftest.$ac_ext
15612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6
15615 # So? What about this header?
15616 case $ac_header_compiler:$ac_header_preproc in
15618 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15619 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15621 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;};;
15623 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15624 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15626 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;};;
15630 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15631 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15632 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 ac_cv_header_libesmtp_h=$ac_header_preproc
15637 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15638 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15641 if test $ac_cv_header_libesmtp_h = yes; then
15644 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15645 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15646 { (exit 1); exit 1; }; }
15650 CFLAGS="$temp_CFLAGS"
15652 temp_CFLAGS="$CFLAGS"
15654 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15655 LIBS="$LIBS $mutt_libesmtp_libs"
15657 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15658 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15659 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15660 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 ac_check_lib_save_LIBS=$LIBS
15663 LIBS="-lesmtp $LIBS"
15664 cat >conftest.$ac_ext <<_ACEOF
15665 #line $LINENO "configure"
15666 #include "confdefs.h"
15668 /* Override any gcc2 internal prototype to avoid an error. */
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674 char smtp_create_session ();
15675 #ifdef F77_DUMMY_MAIN
15676 # ifdef __cplusplus
15679 int F77_DUMMY_MAIN() { return 1; }
15684 smtp_create_session ();
15689 rm -f conftest.$ac_objext conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691 (eval $ac_link) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -s conftest$ac_exeext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_cv_lib_esmtp_smtp_create_session=yes
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ac_cv_lib_esmtp_smtp_create_session=no
15707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15710 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15711 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15712 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 #define HAVE_LIBESMTP 1
15717 LIBS="-lesmtp $LIBS"
15720 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15721 echo "$as_me: error: Could not find libesmtp" >&2;}
15722 { (exit 1); exit 1; }; }
15725 CFLAGS="$temp_CFLAGS"
15734 if test x$use_libesmtp = xyes; then
15735 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15736 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15737 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15740 cat >>confdefs.h <<\_ACEOF
15741 #define USE_LIBESMTP 1
15746 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
15747 cat >confcache <<\_ACEOF
15748 # This file is a shell script that caches the results of configure
15749 # tests run on this system so they can be shared between configure
15750 # scripts and configure runs, see configure's option --config-cache.
15751 # It is not useful on other systems. If it contains results you don't
15752 # want to keep, you may remove or edit it.
15754 # config.status only pays attention to the cache file if you give it
15755 # the --recheck option to rerun configure.
15757 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15759 # following values.
15763 # The following way of writing the cache mishandles newlines in values,
15764 # but we know of no workaround that is simple, portable, and efficient.
15765 # So, don't put newlines in cache variables' values.
15766 # Ultrix sh set writes to stderr and can't be redirected directly,
15767 # and sets the high bit in the cache file unless we assign to the vars.
15770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15772 # `set' does not quote correctly, so add quotes (double-quote
15773 # substitution turns \\\\ into \\, and sed turns \\ into \).
15776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15779 # `set' quotes correctly as required by POSIX, so do not add quotes.
15781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15792 if cmp -s $cache_file confcache; then :; else
15793 if test -w $cache_file; then
15794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15795 cat confcache >$cache_file
15797 echo "not updating unwritable cache $cache_file"
15802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15803 # Let make expand exec_prefix.
15804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15808 # trailing colons and then remove the whole line if VPATH becomes empty
15809 # (actually we leave an empty line to preserve line numbers).
15810 if test "x$srcdir" = x.; then
15811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15812 s/:*\$(srcdir):*/:/;
15813 s/:*\${srcdir}:*/:/;
15815 s/^\([^=]*=[ ]*\):*/\1/;
15821 DEFS=-DHAVE_CONFIG_H
15824 : ${CONFIG_STATUS=./config.status}
15825 ac_clean_files_save=$ac_clean_files
15826 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15827 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15828 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15829 cat >$CONFIG_STATUS <<_ACEOF
15831 # Generated by $as_me.
15832 # Run this file to recreate the current configuration.
15833 # Compiler output produced by configure, useful for debugging
15834 # configure, is in config.log if it exists.
15837 SHELL=\${CONFIG_SHELL-$SHELL}
15840 cat >>$CONFIG_STATUS <<\_ACEOF
15842 ## --------------------- ##
15843 ## M4sh Initialization. ##
15844 ## --------------------- ##
15846 # Be Bourne compatible
15847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15850 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15855 # Support unset when possible.
15856 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15862 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15863 { $as_unset LANG || test "${LANG+set}" != set; } ||
15864 { LANG=C; export LANG; }
15865 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15866 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15867 { LC_ALL=C; export LC_ALL; }
15868 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15869 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15870 { LC_TIME=C; export LC_TIME; }
15871 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15872 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15873 { LC_CTYPE=C; export LC_CTYPE; }
15874 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15875 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15876 { LANGUAGE=C; export LANGUAGE; }
15877 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15878 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15879 { LC_COLLATE=C; export LC_COLLATE; }
15880 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15881 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15882 { LC_NUMERIC=C; export LC_NUMERIC; }
15883 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15884 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15885 { LC_MESSAGES=C; export LC_MESSAGES; }
15888 # Name of the executable.
15889 as_me=`(basename "$0") 2>/dev/null ||
15890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15891 X"$0" : 'X\(//\)$' \| \
15892 X"$0" : 'X\(/\)$' \| \
15893 . : '\(.\)' 2>/dev/null ||
15895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15896 /^X\/\(\/\/\)$/{ s//\1/; q; }
15897 /^X\/\(\/\).*/{ s//\1/; q; }
15900 # PATH needs CR, and LINENO needs CR and PATH.
15901 # Avoid depending upon Character Ranges.
15902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15905 as_cr_digits='0123456789'
15906 as_cr_alnum=$as_cr_Letters$as_cr_digits
15908 # The user is always right.
15909 if test "${PATH_SEPARATOR+set}" != set; then
15910 echo "#! /bin/sh" >conftest.sh
15911 echo "exit 0" >>conftest.sh
15912 chmod +x conftest.sh
15913 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15922 as_lineno_1=$LINENO
15923 as_lineno_2=$LINENO
15924 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15925 test "x$as_lineno_1" != "x$as_lineno_2" &&
15926 test "x$as_lineno_3" = "x$as_lineno_2" || {
15927 # Find who we are. Look in the path if we contain no path at all
15930 *[\\/]* ) as_myself=$0 ;;
15931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15935 test -z "$as_dir" && as_dir=.
15936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15941 # We did not find ourselves, most probably we were run as `sh COMMAND'
15942 # in which case we are not to be found in the path.
15943 if test "x$as_myself" = x; then
15946 if test ! -f "$as_myself"; then
15947 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15948 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15949 { (exit 1); exit 1; }; }
15951 case $CONFIG_SHELL in
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15957 test -z "$as_dir" && as_dir=.
15958 for as_base in sh bash ksh sh5; do
15961 if ("$as_dir/$as_base" -c '
15962 as_lineno_1=$LINENO
15963 as_lineno_2=$LINENO
15964 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15965 test "x$as_lineno_1" != "x$as_lineno_2" &&
15966 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15967 CONFIG_SHELL=$as_dir/$as_base
15968 export CONFIG_SHELL
15969 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15977 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15978 # uniformly replaced by the line number. The first 'sed' inserts a
15979 # line-number line before each line; the second 'sed' does the real
15980 # work. The second script uses 'N' to pair each line-number line
15981 # with the numbered line, and appends trailing '-' during
15982 # substitution so that $LINENO is not a special case at line end.
15983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15984 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15985 sed '=' <$as_myself |
15990 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15993 s,^['$as_cr_digits']*\n,,
15994 ' >$as_me.lineno &&
15995 chmod +x $as_me.lineno ||
15996 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15997 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15998 { (exit 1); exit 1; }; }
16000 # Don't try to exec as it changes $[0], causing all sort of problems
16001 # (the dirname of $[0] is not the place where we might find the
16002 # original and so on. Autoconf is especially sensible to this).
16004 # Exit status is that of the last command.
16009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16010 *c*,-n*) ECHO_N= ECHO_C='
16012 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16013 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16016 if expr a : '\(a\)' >/dev/null 2>&1; then
16022 rm -f conf$$ conf$$.exe conf$$.file
16024 if ln -s conf$$.file conf$$ 2>/dev/null; then
16025 # We could just check for DJGPP; but this test a) works b) is more generic
16026 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16027 if test -f conf$$.exe; then
16028 # Don't use ln at all; we don't have any links
16033 elif ln conf$$.file conf$$ 2>/dev/null; then
16038 rm -f conf$$ conf$$.exe conf$$.file
16040 as_executable_p="test -f"
16042 # Sed expression to map a string onto a valid CPP name.
16043 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16045 # Sed expression to map a string onto a valid variable name.
16046 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16050 # We need space, tab and new line, in precisely that order.
16056 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16060 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16061 # report actual input values of CONFIG_FILES etc. instead of their
16062 # values after options handling. Logging --version etc. is OK.
16066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16067 ## Running $as_me. ##
16072 This file was extended by $as_me, which was
16073 generated by GNU Autoconf 2.53. Invocation command line was
16075 CONFIG_FILES = $CONFIG_FILES
16076 CONFIG_HEADERS = $CONFIG_HEADERS
16077 CONFIG_LINKS = $CONFIG_LINKS
16078 CONFIG_COMMANDS = $CONFIG_COMMANDS
16082 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16086 # Files that config.status was made for.
16087 if test -n "$ac_config_files"; then
16088 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16091 if test -n "$ac_config_headers"; then
16092 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16095 if test -n "$ac_config_links"; then
16096 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16099 if test -n "$ac_config_commands"; then
16100 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16103 cat >>$CONFIG_STATUS <<\_ACEOF
16106 \`$as_me' instantiates files from templates according to the
16107 current configuration.
16109 Usage: $0 [OPTIONS] [FILE]...
16111 -h, --help print this help, then exit
16112 -V, --version print version number, then exit
16113 -d, --debug don't remove temporary files
16114 --recheck update $as_me by reconfiguring in the same conditions
16115 --file=FILE[:TEMPLATE]
16116 instantiate the configuration file FILE
16117 --header=FILE[:TEMPLATE]
16118 instantiate the configuration header FILE
16120 Configuration files:
16123 Configuration headers:
16126 Configuration commands:
16129 Report bugs to <bug-autoconf@gnu.org>."
16132 cat >>$CONFIG_STATUS <<_ACEOF
16135 configured by $0, generated by GNU Autoconf 2.53,
16136 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16139 Free Software Foundation, Inc.
16140 This config.status script is free software; the Free Software Foundation
16141 gives unlimited permission to copy, distribute and modify it."
16146 cat >>$CONFIG_STATUS <<\_ACEOF
16147 # If no file are specified by the user, then we need to provide default
16148 # value. By we need to know if files were specified by the user.
16154 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16155 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16157 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16161 *) # This is not an option, so the user has probably given explicit
16163 ac_need_defaults=false;;
16167 # Handling of the options.
16169 cat >>$CONFIG_STATUS <<_ACEOF
16170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16171 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16172 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16174 cat >>$CONFIG_STATUS <<\_ACEOF
16175 --version | --vers* | -V )
16176 echo "$ac_cs_version"; exit 0 ;;
16178 # Conflict between --help and --header
16179 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16180 Try \`$0 --help' for more information." >&5
16181 echo "$as_me: error: ambiguous option: $1
16182 Try \`$0 --help' for more information." >&2;}
16183 { (exit 1); exit 1; }; };;
16184 --help | --hel | -h )
16185 echo "$ac_cs_usage"; exit 0 ;;
16186 --debug | --d* | -d )
16188 --file | --fil | --fi | --f )
16190 CONFIG_FILES="$CONFIG_FILES $1"
16191 ac_need_defaults=false;;
16192 --header | --heade | --head | --hea )
16194 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16195 ac_need_defaults=false;;
16197 # This is an error.
16198 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16199 Try \`$0 --help' for more information." >&5
16200 echo "$as_me: error: unrecognized option: $1
16201 Try \`$0 --help' for more information." >&2;}
16202 { (exit 1); exit 1; }; } ;;
16204 *) ac_config_targets="$ac_config_targets $1" ;;
16212 cat >>$CONFIG_STATUS <<_ACEOF
16214 # INIT-COMMANDS section.
16224 cat >>$CONFIG_STATUS <<\_ACEOF
16225 for ac_config_target in $ac_config_targets
16227 case "$ac_config_target" in
16228 # Handling of arguments.
16229 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16230 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16231 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16232 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16233 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16234 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16235 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16236 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16237 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16238 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16239 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16240 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
16241 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16244 { (exit 1); exit 1; }; };;
16248 # If the user did not use the arguments to specify the items to instantiate,
16249 # then the envvar interface is used. Set only those that are not.
16250 # We use the long form for the default assignment because of an extremely
16251 # bizarre bug on SunOS 4.1.3.
16252 if $ac_need_defaults; then
16253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16254 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16255 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16258 # Create a temporary directory, and hook for its removal unless debugging.
16261 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16262 trap '{ (exit 1); exit 1; }' 1 2 13 15
16265 # Create a (secure) tmp directory for tmp files.
16268 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16269 test -n "$tmp" && test -d "$tmp"
16272 tmp=$TMPDIR/cs$$-$RANDOM
16273 (umask 077 && mkdir $tmp)
16276 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16277 { (exit 1); exit 1; }
16282 cat >>$CONFIG_STATUS <<_ACEOF
16285 # CONFIG_FILES section.
16288 # No need to generate the scripts if there are no CONFIG_FILES.
16289 # This happens for instance when ./config.status config.h
16290 if test -n "\$CONFIG_FILES"; then
16291 # Protect against being on the right side of a sed subst in config.status.
16292 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16293 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16294 s,@SHELL@,$SHELL,;t t
16295 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16296 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16297 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16298 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16299 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16300 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16301 s,@exec_prefix@,$exec_prefix,;t t
16302 s,@prefix@,$prefix,;t t
16303 s,@program_transform_name@,$program_transform_name,;t t
16304 s,@bindir@,$bindir,;t t
16305 s,@sbindir@,$sbindir,;t t
16306 s,@libexecdir@,$libexecdir,;t t
16307 s,@datadir@,$datadir,;t t
16308 s,@sysconfdir@,$sysconfdir,;t t
16309 s,@sharedstatedir@,$sharedstatedir,;t t
16310 s,@localstatedir@,$localstatedir,;t t
16311 s,@libdir@,$libdir,;t t
16312 s,@includedir@,$includedir,;t t
16313 s,@oldincludedir@,$oldincludedir,;t t
16314 s,@infodir@,$infodir,;t t
16315 s,@mandir@,$mandir,;t t
16316 s,@build_alias@,$build_alias,;t t
16317 s,@host_alias@,$host_alias,;t t
16318 s,@target_alias@,$target_alias,;t t
16319 s,@DEFS@,$DEFS,;t t
16320 s,@ECHO_C@,$ECHO_C,;t t
16321 s,@ECHO_N@,$ECHO_N,;t t
16322 s,@ECHO_T@,$ECHO_T,;t t
16323 s,@LIBS@,$LIBS,;t t
16324 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16325 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16326 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16327 s,@PACKAGE@,$PACKAGE,;t t
16328 s,@VERSION@,$VERSION,;t t
16329 s,@ACLOCAL@,$ACLOCAL,;t t
16330 s,@AUTOCONF@,$AUTOCONF,;t t
16331 s,@AUTOMAKE@,$AUTOMAKE,;t t
16332 s,@AUTOHEADER@,$AUTOHEADER,;t t
16333 s,@MAKEINFO@,$MAKEINFO,;t t
16334 s,@SET_MAKE@,$SET_MAKE,;t t
16335 s,@build@,$build,;t t
16336 s,@build_cpu@,$build_cpu,;t t
16337 s,@build_vendor@,$build_vendor,;t t
16338 s,@build_os@,$build_os,;t t
16339 s,@host@,$host,;t t
16340 s,@host_cpu@,$host_cpu,;t t
16341 s,@host_vendor@,$host_vendor,;t t
16342 s,@host_os@,$host_os,;t t
16344 s,@CFLAGS@,$CFLAGS,;t t
16345 s,@LDFLAGS@,$LDFLAGS,;t t
16346 s,@CPPFLAGS@,$CPPFLAGS,;t t
16347 s,@ac_ct_CC@,$ac_ct_CC,;t t
16348 s,@EXEEXT@,$EXEEXT,;t t
16349 s,@OBJEXT@,$OBJEXT,;t t
16352 s,@ANSI2KNR@,$ANSI2KNR,;t t
16353 s,@RANLIB@,$RANLIB,;t t
16354 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16356 s,@ac_ct_AR@,$ac_ct_AR,;t t
16360 s,@DEBUGGER@,$DEBUGGER,;t t
16361 s,@SENDMAIL@,$SENDMAIL,;t t
16362 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
16363 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
16364 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
16366 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16367 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16368 s,@SUBVERSION@,$SUBVERSION,;t t
16369 s,@ISPELL@,$ISPELL,;t t
16370 s,@LIBOBJS@,$LIBOBJS,;t t
16371 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16372 s,@docdir@,$docdir,;t t
16373 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16374 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16375 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16376 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16377 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16378 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16379 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16380 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16381 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16382 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16383 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16384 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
16385 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
16386 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
16387 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16388 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16389 s,@MUTTLIBS@,$MUTTLIBS,;t t
16390 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16391 s,@LIBIMAP@,$LIBIMAP,;t t
16392 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16393 s,@ALLOCA@,$ALLOCA,;t t
16394 s,@GLIBC21@,$GLIBC21,;t t
16395 s,@LIBICONV@,$LIBICONV,;t t
16396 s,@USE_NLS@,$USE_NLS,;t t
16397 s,@MSGFMT@,$MSGFMT,;t t
16398 s,@GMSGFMT@,$GMSGFMT,;t t
16399 s,@XGETTEXT@,$XGETTEXT,;t t
16400 s,@INTLBISON@,$INTLBISON,;t t
16401 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16402 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16403 s,@CATALOGS@,$CATALOGS,;t t
16404 s,@CATOBJEXT@,$CATOBJEXT,;t t
16405 s,@GMOFILES@,$GMOFILES,;t t
16406 s,@INTLLIBS@,$INTLLIBS,;t t
16407 s,@INTLOBJS@,$INTLOBJS,;t t
16408 s,@POFILES@,$POFILES,;t t
16409 s,@POSUB@,$POSUB,;t t
16410 s,@DATADIRNAME@,$DATADIRNAME,;t t
16411 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16412 s,@GENCAT@,$GENCAT,;t t
16413 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16414 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16415 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16420 cat >>$CONFIG_STATUS <<\_ACEOF
16421 # Split the substitutions into bite-sized pieces for seds with
16422 # small command number limits, like on Digital OSF/1 and HP-UX.
16423 ac_max_sed_lines=48
16424 ac_sed_frag=1 # Number of current file.
16425 ac_beg=1 # First line for current file.
16426 ac_end=$ac_max_sed_lines # Line after last line for current file.
16429 while $ac_more_lines; do
16430 if test $ac_beg -gt 1; then
16431 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16433 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16435 if test ! -s $tmp/subs.frag; then
16436 ac_more_lines=false
16438 # The purpose of the label and of the branching condition is to
16439 # speed up the sed processing (if there are no `@' at all, there
16440 # is no need to browse any of the substitutions).
16441 # These are the two extra sed commands mentioned above.
16443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16444 if test -z "$ac_sed_cmds"; then
16445 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16447 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16449 ac_sed_frag=`expr $ac_sed_frag + 1`
16451 ac_end=`expr $ac_end + $ac_max_sed_lines`
16454 if test -z "$ac_sed_cmds"; then
16457 fi # test -n "$CONFIG_FILES"
16460 cat >>$CONFIG_STATUS <<\_ACEOF
16461 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16464 - | *:- | *:-:* ) # input from stdin
16466 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16468 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16470 * ) ac_file_in=$ac_file.in ;;
16473 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16476 X"$ac_file" : 'X\(//\)[^/]' \| \
16477 X"$ac_file" : 'X\(//\)$' \| \
16478 X"$ac_file" : 'X\(/\)' \| \
16479 . : '\(.\)' 2>/dev/null ||
16481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16483 /^X\(\/\/\)$/{ s//\1/; q; }
16484 /^X\(\/\).*/{ s//\1/; q; }
16486 { case "$ac_dir" in
16487 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16491 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16492 case $as_mkdir_dir in
16493 # Skip DOS drivespec
16494 ?:) as_incr_dir=$as_mkdir_dir ;;
16496 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16497 test -d "$as_incr_dir" ||
16498 mkdir "$as_incr_dir" ||
16499 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16500 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16501 { (exit 1); exit 1; }; }
16508 if test "$ac_dir" != .; then
16509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16510 # A "../" for each directory in $ac_dir_suffix.
16511 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16513 ac_dir_suffix= ac_top_builddir=
16517 .) # No --srcdir option. We are building in place.
16519 if test -z "$ac_top_builddir"; then
16522 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16524 [\\/]* | ?:[\\/]* ) # Absolute path.
16525 ac_srcdir=$srcdir$ac_dir_suffix;
16526 ac_top_srcdir=$srcdir ;;
16527 *) # Relative path.
16528 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16529 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16531 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16533 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16534 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16535 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16536 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16541 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16544 if test x"$ac_file" != x-; then
16545 { echo "$as_me:$LINENO: creating $ac_file" >&5
16546 echo "$as_me: creating $ac_file" >&6;}
16549 # Let's still pretend it is `configure' which instantiates (i.e., don't
16550 # use $as_me), people would be surprised to read:
16551 # /* config.h. Generated by config.status. */
16552 if test x"$ac_file" = x-; then
16555 configure_input="$ac_file. "
16557 configure_input=$configure_input"Generated from `echo $ac_file_in |
16558 sed 's,.*/,,'` by configure."
16560 # First look for the input files in the build tree, otherwise in the
16562 ac_file_inputs=`IFS=:
16563 for f in $ac_file_in; do
16565 -) echo $tmp/stdin ;;
16567 # Absolute (can't be DOS-style, as IFS=:)
16568 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16569 echo "$as_me: error: cannot find input file: $f" >&2;}
16570 { (exit 1); exit 1; }; }
16573 if test -f "$f"; then
16576 elif test -f "$srcdir/$f"; then
16581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16582 echo "$as_me: error: cannot find input file: $f" >&2;}
16583 { (exit 1); exit 1; }; }
16586 done` || { (exit 1); exit 1; }
16588 cat >>$CONFIG_STATUS <<_ACEOF
16592 cat >>$CONFIG_STATUS <<\_ACEOF
16594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16595 s,@configure_input@,$configure_input,;t t
16596 s,@srcdir@,$ac_srcdir,;t t
16597 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16598 s,@top_srcdir@,$ac_top_srcdir,;t t
16599 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16600 s,@builddir@,$ac_builddir,;t t
16601 s,@abs_builddir@,$ac_abs_builddir,;t t
16602 s,@top_builddir@,$ac_top_builddir,;t t
16603 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16604 s,@INSTALL@,$ac_INSTALL,;t t
16605 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16607 if test x"$ac_file" != x-; then
16608 mv $tmp/out $ac_file
16616 cat >>$CONFIG_STATUS <<\_ACEOF
16619 # CONFIG_HEADER section.
16622 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16623 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16625 # ac_d sets the value in "#define NAME VALUE" lines.
16626 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16627 ac_dB='[ ].*$,\1#\2'
16630 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16631 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16632 ac_uB='$,\1#\2define\3'
16636 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16637 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16639 - | *:- | *:-:* ) # input from stdin
16641 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16643 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16645 * ) ac_file_in=$ac_file.in ;;
16648 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16649 echo "$as_me: creating $ac_file" >&6;}
16651 # First look for the input files in the build tree, otherwise in the
16653 ac_file_inputs=`IFS=:
16654 for f in $ac_file_in; do
16656 -) echo $tmp/stdin ;;
16658 # Absolute (can't be DOS-style, as IFS=:)
16659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16660 echo "$as_me: error: cannot find input file: $f" >&2;}
16661 { (exit 1); exit 1; }; }
16664 if test -f "$f"; then
16667 elif test -f "$srcdir/$f"; then
16672 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16673 echo "$as_me: error: cannot find input file: $f" >&2;}
16674 { (exit 1); exit 1; }; }
16677 done` || { (exit 1); exit 1; }
16678 # Remove the trailing spaces.
16679 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16683 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16684 # `conftest.undefs', that substitutes the proper values into
16685 # config.h.in to produce config.h. The first handles `#define'
16686 # templates, and the second `#undef' templates.
16687 # And first: Protect against being on the right side of a sed subst in
16688 # config.status. Protect against being in an unquoted here document
16689 # in config.status.
16690 rm -f conftest.defines conftest.undefs
16691 # Using a here document instead of a string reduces the quoting nightmare.
16692 # Putting comments in sed scripts is not portable.
16694 # `end' is used to avoid that the second main sed command (meant for
16695 # 0-ary CPP macros) applies to n-ary macro definitions.
16696 # See the Autoconf documentation for `clear'.
16697 cat >confdef2sed.sed <<\_ACEOF
16702 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16704 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16707 # If some macros were called several times there might be several times
16708 # the same #defines, which is useless. Nevertheless, we may not want to
16709 # sort them, since we want the *last* AC-DEFINE to be honored.
16710 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16711 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16712 rm -f confdef2sed.sed
16714 # This sed command replaces #undef with comments. This is necessary, for
16715 # example, in the case of _POSIX_SOURCE, which is predefined and required
16716 # on some systems where configure will not decide to define it.
16717 cat >>conftest.undefs <<\_ACEOF
16718 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16721 # Break up conftest.defines because some shells have a limit on the size
16722 # of here documents, and old seds have small limits too (100 cmds).
16723 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16724 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16725 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16726 echo ' :' >>$CONFIG_STATUS
16727 rm -f conftest.tail
16728 while grep . conftest.defines >/dev/null
16730 # Write a limited-size here document to $tmp/defines.sed.
16731 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16732 # Speed up: don't consider the non `#define' lines.
16733 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16734 # Work around the forget-to-reset-the-flag bug.
16735 echo 't clr' >>$CONFIG_STATUS
16736 echo ': clr' >>$CONFIG_STATUS
16737 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16739 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16741 mv $tmp/out $tmp/in
16743 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16744 rm -f conftest.defines
16745 mv conftest.tail conftest.defines
16747 rm -f conftest.defines
16748 echo ' fi # egrep' >>$CONFIG_STATUS
16749 echo >>$CONFIG_STATUS
16751 # Break up conftest.undefs because some shells have a limit on the size
16752 # of here documents, and old seds have small limits too (100 cmds).
16753 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16754 rm -f conftest.tail
16755 while grep . conftest.undefs >/dev/null
16757 # Write a limited-size here document to $tmp/undefs.sed.
16758 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16759 # Speed up: don't consider the non `#undef'
16760 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16761 # Work around the forget-to-reset-the-flag bug.
16762 echo 't clr' >>$CONFIG_STATUS
16763 echo ': clr' >>$CONFIG_STATUS
16764 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16766 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16768 mv $tmp/out $tmp/in
16770 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16771 rm -f conftest.undefs
16772 mv conftest.tail conftest.undefs
16774 rm -f conftest.undefs
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777 # Let's still pretend it is `configure' which instantiates (i.e., don't
16778 # use $as_me), people would be surprised to read:
16779 # /* config.h. Generated by config.status. */
16780 if test x"$ac_file" = x-; then
16781 echo "/* Generated by configure. */" >$tmp/config.h
16783 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16785 cat $tmp/in >>$tmp/config.h
16787 if test x"$ac_file" != x-; then
16788 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16789 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16790 echo "$as_me: $ac_file is unchanged" >&6;}
16792 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794 X"$ac_file" : 'X\(//\)[^/]' \| \
16795 X"$ac_file" : 'X\(//\)$' \| \
16796 X"$ac_file" : 'X\(/\)' \| \
16797 . : '\(.\)' 2>/dev/null ||
16799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16801 /^X\(\/\/\)$/{ s//\1/; q; }
16802 /^X\(\/\).*/{ s//\1/; q; }
16804 { case "$ac_dir" in
16805 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16809 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16810 case $as_mkdir_dir in
16811 # Skip DOS drivespec
16812 ?:) as_incr_dir=$as_mkdir_dir ;;
16814 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16815 test -d "$as_incr_dir" ||
16816 mkdir "$as_incr_dir" ||
16817 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16818 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16819 { (exit 1); exit 1; }; }
16825 mv $tmp/config.h $ac_file
16829 rm -f $tmp/config.h
16833 cat >>$CONFIG_STATUS <<\_ACEOF
16836 # CONFIG_COMMANDS section.
16838 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16839 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16840 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16841 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16842 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16843 X"$ac_dest" : 'X\(//\)[^/]' \| \
16844 X"$ac_dest" : 'X\(//\)$' \| \
16845 X"$ac_dest" : 'X\(/\)' \| \
16846 . : '\(.\)' 2>/dev/null ||
16848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16850 /^X\(\/\/\)$/{ s//\1/; q; }
16851 /^X\(\/\).*/{ s//\1/; q; }
16855 if test "$ac_dir" != .; then
16856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16857 # A "../" for each directory in $ac_dir_suffix.
16858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16860 ac_dir_suffix= ac_top_builddir=
16864 .) # No --srcdir option. We are building in place.
16866 if test -z "$ac_top_builddir"; then
16869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16871 [\\/]* | ?:[\\/]* ) # Absolute path.
16872 ac_srcdir=$srcdir$ac_dir_suffix;
16873 ac_top_srcdir=$srcdir ;;
16874 *) # Relative path.
16875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16886 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16887 echo "$as_me: executing $ac_dest commands" >&6;}
16889 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
16890 default-2 ) for ac_file in $CONFIG_FILES; do
16891 # Support "outfile[:infile[:infile...]]"
16893 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16895 # PO directories have a Makefile.in generated from Makefile.in.in.
16896 case "$ac_file" in */Makefile.in)
16897 # Adjust a relative srcdir.
16898 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16899 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16900 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16901 # In autoconf-2.13 it is called $ac_given_srcdir.
16902 # In autoconf-2.50 it is called $srcdir.
16903 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16904 case "$ac_given_srcdir" in
16905 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16906 /*) top_srcdir="$ac_given_srcdir" ;;
16907 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16909 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16910 rm -f "$ac_dir/POTFILES"
16911 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16912 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16913 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16914 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16923 cat >>$CONFIG_STATUS <<\_ACEOF
16925 { (exit 0); exit 0; }
16927 chmod +x $CONFIG_STATUS
16928 ac_clean_files=$ac_clean_files_save
16931 # configure is writing to config.log, and then calls config.status.
16932 # config.status does its own redirection, appending to config.log.
16933 # Unfortunately, on DOS this fails, as config.log is still kept open
16934 # by configure, so config.status won't be able to write to it; its
16935 # output is simply discarded. So we exec the FD to /dev/null,
16936 # effectively closing config.log, so it can be properly (re)opened and
16937 # appended to by config.status. When coming back to configure, we
16938 # need to make the FD available again.
16939 if test "$no_create" != yes; then
16942 $SHELL $CONFIG_STATUS || ac_cs_success=false
16944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16945 # would make configure fail if this is the last instruction.
16946 $ac_cs_success || { (exit 1); exit 1; }