2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-pgp Disable PGP support
854 --disable-smime Disable SMIME support
855 --enable-external-dotlock Force use of an external dotlock program
856 --enable-pop Enable POP3 support
857 --enable-imap Enable IMAP support
858 --enable-nntp Enable NNTP support
859 --enable-debug Enable debugging support
860 --enable-flock Use flock() to lock files
861 --disable-fcntl Do NOT use fcntl() to lock files
862 --disable-warnings Turn off compiler warnings (not recommended)
863 --enable-nfs-fix Work around an NFS with broken attributes caching
864 --enable-buffy-size Use file size attribute instead of access time
865 --enable-mailtool Enable Sun mailtool attachments support
866 --enable-compressed Enable compressed folders support
867 --enable-locales-fix The result of isprint() is unreliable
868 --enable-exact-address Enable regeneration of email addresses
869 --enable-hcache Enable header caching
870 --disable-iconv Disable iconv support
871 --disable-nls Do not use Native Language Support
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-mixmaster=PATH Include Mixmaster support
877 --with-slang=DIR Use S-Lang instead of ncurses
878 --with-curses=DIR Where ncurses is installed
879 --with-regex Use the GNU regex library
880 --with-homespool=FILE File in user's directory where new mail is spooled
881 --with-mailpath=DIR Directory where spool mailboxes are located
882 --with-docdir=PATH Specify where to put the documentation
883 --with-domain=DOMAIN Specify your DNS domain name
884 --with-gss=PFX Compile in GSSAPI authentication for IMAP
885 --with-ssl=PFX Compile in SSL support for POP/IMAP
886 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
887 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
888 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
889 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
890 --with-idn=PFX Use GNU libidn for domain names
891 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
892 --without-gdbm Get rid of gdbm even if it is available
893 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
894 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
895 --with-included-gettext Use the GNU gettext library included here
896 --without-wc-funcs Do not use the system's wchar_t functions
897 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
914 if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
921 if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926 ac_dir_suffix= ac_top_builddir=
930 .) # No --srcdir option. We are building in place.
932 if test -z "$ac_top_builddir"; then
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.57. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core core.* *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_config_headers="$ac_config_headers config.h"
1317 mutt_cv_version=`cat $srcdir/VERSION`
1320 am__api_version="1.7"
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 elif test -f $ac_dir/install.sh; then
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 elif test -f $ac_dir/shtool; then
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AmigaOS /C/install, which installs bootblocks on floppy discs
1354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1357 # ./install, which can be erroneously created by make from ./install.sh.
1358 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1359 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1360 if test -z "$INSTALL"; then
1361 if test "${ac_cv_path_install+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 # Account for people who put trailing slashes in PATH elements.
1371 ./ | .// | /cC/* | \
1372 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1375 # OSF1 and SCO ODT 3.0 have their own names for install.
1376 # Don't use installbsd from OSF since it installs stuff as root
1378 for ac_prog in ginstall scoinst install; do
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381 if test $ac_prog = install &&
1382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1385 elif test $ac_prog = install &&
1386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387 # program-specific install script used by HP pwplus--don't use.
1390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1402 if test "${ac_cv_path_install+set}" = set; then
1403 INSTALL=$ac_cv_path_install
1405 # As a last resort, use the slow shell script. We don't cache a
1406 # path for INSTALL within a source directory, because that will
1407 # break other packages using the cache if that directory is
1408 # removed, or if the path is relative.
1409 INSTALL=$ac_install_sh
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments. Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1434 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435 if test "$*" = "X"; then
1437 set X `ls -t $srcdir/configure conftest.file`
1440 if test "$*" != "X $srcdir/configure conftest.file" \
1441 && test "$*" != "X conftest.file $srcdir/configure"; then
1443 # If neither matched, then we have a broken ls. This can happen
1444 # if, for instance, CONFIG_SHELL is bash and it inherits a
1445 # broken ls alias from the environment. This has actually
1446 # happened. Such a system could not be considered "sane".
1447 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1450 alias in your environment" >&2;}
1451 { (exit 1); exit 1; }; }
1454 test "$2" = conftest.file
1460 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $. echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482 # expand $ac_aux_dir to an absolute path
1483 am_aux_dir=`cd $ac_aux_dir && pwd`
1485 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1486 # Use eval to expand $SHELL
1487 if eval "$MISSING --run true"; then
1488 am_missing_run="$MISSING --run "
1491 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1492 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1495 for ac_prog in gawk mawk nawk awk
1497 # Extract the first word of "$ac_prog", so it can be a program name with args.
1498 set dummy $ac_prog; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_AWK+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 if test -n "$AWK"; then
1505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_AWK="$ac_prog"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 if test -n "$AWK"; then
1525 echo "$as_me:$LINENO: result: $AWK" >&5
1526 echo "${ECHO_T}$AWK" >&6
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1532 test -n "$AWK" && break
1535 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1536 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1537 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1538 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 cat >conftest.make <<\_ACEOF
1543 @echo 'ac_maketemp="$(MAKE)"'
1545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1546 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1547 if test -n "$ac_maketemp"; then
1548 eval ac_cv_prog_make_${ac_make}_set=yes
1550 eval ac_cv_prog_make_${ac_make}_set=no
1554 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1555 echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 SET_MAKE="MAKE=${MAKE-make}"
1564 rm -rf .tst 2>/dev/null
1565 mkdir .tst 2>/dev/null
1566 if test -d .tst; then
1571 rmdir .tst 2>/dev/null
1573 # test to see if srcdir already configured
1574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1575 test -f $srcdir/config.status; then
1576 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1577 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1578 { (exit 1); exit 1; }; }
1581 # test whether we have cygpath
1582 if test -z "$CYGPATH_W"; then
1583 if (cygpath --version) >/dev/null 2>/dev/null; then
1584 CYGPATH_W='cygpath -w'
1591 # Define the identity of the package.
1593 VERSION=$mutt_cv_version
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE "$PACKAGE"
1601 cat >>confdefs.h <<_ACEOF
1602 #define VERSION "$VERSION"
1605 # Some tools Automake needs.
1607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1622 AMTAR=${AMTAR-"${am_missing_run}tar"}
1624 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1626 # Installed binaries are usually stripped using `strip' when the user
1627 # run `make install-strip'. However `strip' might not be the right
1628 # tool to use in cross-compilation environments, therefore Automake
1629 # will honor the `STRIP' environment variable to overrule this program.
1630 if test "$cross_compiling" != no; then
1631 if test -n "$ac_tool_prefix"; then
1632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1633 set dummy ${ac_tool_prefix}strip; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_STRIP+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$STRIP"; then
1640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 STRIP=$ac_cv_prog_STRIP
1659 if test -n "$STRIP"; then
1660 echo "$as_me:$LINENO: result: $STRIP" >&5
1661 echo "${ECHO_T}$STRIP" >&6
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1668 if test -z "$ac_cv_prog_STRIP"; then
1670 # Extract the first word of "strip", so it can be a program name with args.
1671 set dummy strip; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$ac_ct_STRIP"; then
1678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_ac_ct_STRIP="strip"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1698 if test -n "$ac_ct_STRIP"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1700 echo "${ECHO_T}$ac_ct_STRIP" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1708 STRIP="$ac_cv_prog_STRIP"
1712 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1714 # We need awk for the "check" target. The system "awk" is bad on
1722 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"
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728 { (exit 1); exit 1; }; }
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737 ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741 { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763 ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779 echo "$as_me:$LINENO: checking for prefix" >&5
1780 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1781 if test x$prefix = xNONE; then
1782 mutt_cv_prefix=$ac_default_prefix
1784 mutt_cv_prefix=$prefix
1786 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1787 echo "${ECHO_T}$mutt_cv_prefix" >&6
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test -n "$CC"; then
1823 echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1831 if test -z "$ac_cv_prog_CC"; then
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; 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_ac_ct_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$ac_ct_CC"; then
1841 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1873 if test -z "$CC"; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 if test -n "$CC"; then
1903 echo "$as_me:$LINENO: result: $CC" >&5
1904 echo "${ECHO_T}$CC" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1911 if test -z "$ac_cv_prog_CC"; then
1913 # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_CC="cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1954 if test -z "$CC"; then
1955 # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974 ac_prog_rejected=yes
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test $ac_prog_rejected = yes; then
1985 # We found a bogon in the path, so make sure we never use it.
1986 set dummy $ac_cv_prog_CC
1988 if test $# != 0; then
1989 # We chose a different compiler from the bogus one.
1990 # However, it has the same basename, so the bogon will be chosen
1991 # first if we set CC to just the basename; use the full file name.
1993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2047 test -n "$CC" && break
2050 if test -z "$CC"; then
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_ac_ct_CC="$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2089 test -n "$ac_ct_CC" && break
2098 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
2104 # Provide some information about the compiler.
2105 echo "$as_me:$LINENO:" \
2106 "checking for C compiler version" >&5
2107 ac_compiler=`set X $ac_compile; echo $2`
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2109 (eval $ac_compiler --version </dev/null >&5) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2114 (eval $ac_compiler -v </dev/null >&5) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2119 (eval $ac_compiler -V </dev/null >&5) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2145 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2146 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149 (eval $ac_link_default) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Find the output, starting from the most likely. This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168 # This is the source file.
2171 # We found the default executable, but exeext='' is most
2175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # FIXME: I believe we export ac_cv_exeext for Libtool,
2177 # but it would be cool to find out if it's true. Does anybody
2178 # maintain Libtool? --akim.
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2200 # Check the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2215 if test "$cross_compiling" = maybe; then
2218 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243 (eval $ac_link) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 for ac_file in conftest.exe conftest conftest.*; do
2252 test -f "$ac_file" || continue
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2376 GCC=`test $ac_compiler_gnu = yes && echo yes`
2377 ac_test_CFLAGS=${CFLAGS+set}
2378 ac_save_CFLAGS=$CFLAGS
2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_g+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.$ac_objext conftest.$ac_ext
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2423 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2424 if test "$ac_test_CFLAGS" = set; then
2425 CFLAGS=$ac_save_CFLAGS
2426 elif test $ac_cv_prog_cc_g = yes; then
2427 if test "$GCC" = yes; then
2433 if test "$GCC" = yes; then
2439 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2440 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 ac_cv_prog_cc_stdc=no
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2471 s = g (p, va_arg (v,int));
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX -qlanglvl=ansi
2492 # Ultrix and OSF/1 -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions -Aa -D_HPUX_SOURCE
2495 # SVR4 -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2498 CC="$ac_save_CC $ac_arg"
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_prog_cc_stdc=$ac_arg
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 rm -f conftest.$ac_objext
2520 rm -f conftest.$ac_ext conftest.$ac_objext
2525 case "x$ac_cv_prog_cc_stdc" in
2527 echo "$as_me:$LINENO: result: none needed" >&5
2528 echo "${ECHO_T}none needed" >&6 ;;
2530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532 CC="$CC $ac_cv_prog_cc_stdc" ;;
2535 # Some people use a C++ compiler to compile C. Since we use `exit',
2536 # in C++ we need to declare it. In case someone uses the same compiler
2537 # for both compiling C and C++ we need to have the C++ compiler decide
2538 # the declaration of exit, since it's the most demanding environment.
2539 cat >conftest.$ac_ext <<_ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 for ac_declaration in \
2558 '#include <stdlib.h>' \
2559 'extern "C" void std::exit (int) throw (); using std::exit;' \
2560 'extern "C" void std::exit (int); using std::exit;' \
2561 'extern "C" void exit (int) throw ();' \
2562 'extern "C" void exit (int);' \
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2639 if test -n "$ac_declaration"; then
2640 echo '#ifdef __cplusplus' >>confdefs.h
2641 echo $ac_declaration >>confdefs.h
2642 echo '#endif' >>confdefs.h
2646 echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 DEPDIR="${am__leading_dot}deps"
2658 ac_config_commands="$ac_config_commands depfiles"
2661 am_make=${MAKE-make}
2662 cat > confinc << 'END'
2667 # If we don't find an include directive, just comment out the code.
2668 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2673 # First try GNU make style include.
2674 echo "include confinc" > confmf
2675 # We grep out `Entering directory' and `Leaving directory'
2676 # messages which can occur if `w' ends up in MAKEFLAGS.
2677 # In particular we don't look at `^make:' because GNU make might
2678 # be invoked under some other name (usually "gmake"), in which
2679 # case it prints its new name instead of `make'.
2680 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2685 # Now try BSD make style include.
2686 if test "$am__include" = "#"; then
2687 echo '.include "confinc"' > confmf
2688 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689 am__include=.include
2696 echo "$as_me:$LINENO: result: $_am_result" >&5
2697 echo "${ECHO_T}$_am_result" >&6
2698 rm -f confinc confmf
2700 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2701 if test "${enable_dependency_tracking+set}" = set; then
2702 enableval="$enable_dependency_tracking"
2705 if test "x$enable_dependency_tracking" != xno; then
2706 am_depcomp="$ac_aux_dir/depcomp"
2711 if test "x$enable_dependency_tracking" != xno; then
2722 depcc="$CC" am_compiler_list=
2724 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2730 # We make a subdir and do the tests there. Otherwise we can end up
2731 # making bogus files that we don't know about and never remove. For
2732 # instance it was reported that on HP-UX the gcc test will end up
2733 # making a dummy file named `D' -- because `-MD' means `put the output
2736 # Copy depcomp to subdir because otherwise we won't find it if we're
2737 # using a relative directory.
2738 cp "$am_depcomp" conftest.dir
2740 # We will build objects and dependencies in a subdirectory because
2741 # it helps to detect inapplicable dependency modes. For instance
2742 # both Tru64's cc and ICC support -MD to output dependencies as a
2743 # side effect of compilation, but ICC will put the dependencies in
2744 # the current directory while Tru64 will put them in the object
2748 am_cv_CC_dependencies_compiler_type=none
2749 if test "$am_compiler_list" = ""; then
2750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2752 for depmode in $am_compiler_list; do
2753 # Setup a source with many dependencies, because some compilers
2754 # like to wrap large dependency lists on column 80 (with \), and
2755 # we should not choose a depcomp mode which is confused by this.
2757 # We need to recreate these files for each test, as the compiler may
2758 # overwrite some of them when testing with obscure command lines.
2759 # This happens at least with the AIX C compiler.
2761 for i in 1 2 3 4 5 6; do
2762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2769 # after this tag, mechanisms are not by side-effect, so they'll
2770 # only be used when explicitly requested
2771 if test "x$enable_dependency_tracking" = xyes; then
2779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2780 # mode. It turns out that the SunPro C++ compiler does not properly
2781 # handle `-M -o', and we need to detect this.
2782 if depmode=$depmode \
2783 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2785 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2786 >/dev/null 2>conftest.err &&
2787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2788 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 # icc doesn't choke on unknown options, it will just issue warnings
2791 # (even with -Werror). So we grep stderr for any message
2792 # that says an option was ignored.
2793 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2794 am_cv_CC_dependencies_compiler_type=$depmode
2803 am_cv_CC_dependencies_compiler_type=none
2807 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2808 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2814 test "x$enable_dependency_tracking" != xno \
2815 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2817 am__fastdepCC_FALSE='#'
2819 am__fastdepCC_TRUE='#'
2820 am__fastdepCC_FALSE=
2826 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2827 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2828 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lcposix $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2841 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2856 rm -f conftest.$ac_objext conftest$ac_exeext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858 (eval $ac_link) 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_cv_lib_cposix_strerror=yes
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_cv_lib_cposix_strerror=no
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS=$ac_check_lib_save_LIBS
2878 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2879 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2880 if test $ac_cv_lib_cposix_strerror = yes; then
2881 LIBS="$LIBS -lcposix"
2889 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2890 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2891 if test "${am_cv_prog_cc_stdc+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 am_cv_prog_cc_stdc=no
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX -qlanglvl=ansi
2899 # Ultrix and OSF/1 -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions -Aa -D_HPUX_SOURCE
2902 # SVR4 -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 CC="$ac_save_CC $ac_arg"
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2931 s = g (p, va_arg (v,int));
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 am_cv_prog_cc_stdc="$ac_arg"; break
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f conftest.$ac_objext conftest.$ac_ext
2976 if test -z "$am_cv_prog_cc_stdc"; then
2977 echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6
2980 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2983 case "x$am_cv_prog_cc_stdc" in
2985 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3023 # include <limits.h>
3025 # include <assert.h>
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3045 if test -z "$ac_cpp_err"; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Broken: fails on valid input.
3054 rm -f conftest.err conftest.$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #include <ac_nonexistent.h>
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } >/dev/null; then
3075 if test -s conftest.err; then
3076 ac_cpp_err=$ac_c_preproc_warn_flag
3083 if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 # Passes both tests.
3094 rm -f conftest.err conftest.$ac_ext
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3114 for ac_c_preproc_warn_flag in '' yes
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3130 # include <limits.h>
3132 # include <assert.h>
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3152 if test -z "$ac_cpp_err"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 # Broken: fails on valid input.
3161 rm -f conftest.err conftest.$ac_ext
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <ac_nonexistent.h>
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 # Passes both tests.
3201 rm -f conftest.err conftest.$ac_ext
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3209 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229 then ac_cv_prog_egrep='grep -E'
3230 else ac_cv_prog_egrep='egrep'
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP=$ac_cv_prog_egrep
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249 inttypes.h stdint.h unistd.h
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line $LINENO "configure"
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 $ac_includes_default
3266 #include <$ac_header>
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 eval "$as_ac_Header=yes"
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 eval "$as_ac_Header=no"
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292 cat >>confdefs.h <<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3303 echo "$as_me:$LINENO: checking for function prototypes" >&5
3304 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3305 if test "$am_cv_prog_cc_stdc" != no; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3309 cat >>confdefs.h <<\_ACEOF
3310 #define PROTOTYPES 1
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 U=_ ANSI2KNR=./ansi2knr
3319 # Ensure some checks needed by ansi2knr itself.
3320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3322 if test "${ac_cv_header_stdc+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_header_stdc=yes
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ac_cv_header_stdc=no
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3366 if test $ac_cv_header_stdc = yes; then
3367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 $EGREP "memchr" >/dev/null 2>&1; then
3382 ac_cv_header_stdc=no
3388 if test $ac_cv_header_stdc = yes; then
3389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line $LINENO "configure"
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401 $EGREP "free" >/dev/null 2>&1; then
3404 ac_cv_header_stdc=no
3410 if test $ac_cv_header_stdc = yes; then
3411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3412 if test "$cross_compiling" = yes; then
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427 # define ISLOWER(c) \
3428 (('a' <= (c) && (c) <= 'i') \
3429 || ('j' <= (c) && (c) <= 'r') \
3430 || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439 for (i = 0; i < 256; i++)
3440 if (XOR (islower (i), ISLOWER (i))
3441 || toupper (i) != TOUPPER (i))
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448 (eval $ac_link) 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_cv_header_stdc=no
3466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3481 for ac_header in string.h
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3493 # Is the header compilable?
3494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 $ac_includes_default
3504 #include <$ac_header>
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_header_compiler=yes
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_header_compiler=no
3525 rm -f conftest.$ac_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3527 echo "${ECHO_T}$ac_header_compiler" >&6
3529 # Is the header present?
3530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <$ac_header>
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null; then
3549 if test -s conftest.err; then
3550 ac_cpp_err=$ac_c_preproc_warn_flag
3557 if test -z "$ac_cpp_err"; then
3558 ac_header_preproc=yes
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 ac_header_preproc=no
3565 rm -f conftest.err conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567 echo "${ECHO_T}$ac_header_preproc" >&6
3569 # So? What about this header?
3570 case $ac_header_compiler:$ac_header_preproc in
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3583 sed "s/^/$as_me: WARNING: /" >&2
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3594 ## ------------------------------------ ##
3595 ## Report this to bug-autoconf@gnu.org. ##
3596 ## ------------------------------------ ##
3599 sed "s/^/$as_me: WARNING: /" >&2
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 eval "$as_ac_Header=$ac_header_preproc"
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614 cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 if test "x$U" != "x"; then
3624 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3625 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3626 { (exit 1); exit 1; }; }
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3634 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3639 if test -z "$CPP"; then
3640 if test "${ac_cv_prog_CPP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 # Double quotes because CPP needs to be expanded
3644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3663 # include <limits.h>
3665 # include <assert.h>
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null; then
3677 if test -s conftest.err; then
3678 ac_cpp_err=$ac_c_preproc_warn_flag
3685 if test -z "$ac_cpp_err"; then
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether non-existent headers
3697 # can be detected and how.
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null; then
3715 if test -s conftest.err; then
3716 ac_cpp_err=$ac_c_preproc_warn_flag
3723 if test -z "$ac_cpp_err"; then
3724 # Broken: success on invalid input.
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 # Passes both tests.
3734 rm -f conftest.err conftest.$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3751 echo "$as_me:$LINENO: result: $CPP" >&5
3752 echo "${ECHO_T}$CPP" >&6
3754 for ac_c_preproc_warn_flag in '' yes
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3770 # include <limits.h>
3772 # include <assert.h>
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null; then
3784 if test -s conftest.err; then
3785 ac_cpp_err=$ac_c_preproc_warn_flag
3792 if test -z "$ac_cpp_err"; then
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 # Broken: fails on valid input.
3801 rm -f conftest.err conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether non-existent headers
3804 # can be detected and how.
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3830 if test -z "$ac_cpp_err"; then
3831 # Broken: success on invalid input.
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Passes both tests.
3841 rm -f conftest.err conftest.$ac_ext
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then
3849 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3850 See \`config.log' for more details." >&5
3851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3852 See \`config.log' for more details." >&2;}
3853 { (exit 1); exit 1; }; }
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.make <<\_ACEOF
3870 @echo 'ac_maketemp="$(MAKE)"'
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3874 if test -n "$ac_maketemp"; then
3875 eval ac_cv_prog_make_${ac_make}_set=yes
3877 eval ac_cv_prog_make_${ac_make}_set=no
3881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888 SET_MAKE="MAKE=${MAKE-make}"
3891 # Find a good install program. We prefer a C program (faster),
3892 # so one script is as good as another. But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968 if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_RANLIB+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$RANLIB"; then
3977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 RANLIB=$ac_cv_prog_RANLIB
3996 if test -n "$RANLIB"; then
3997 echo "$as_me:$LINENO: result: $RANLIB" >&5
3998 echo "${ECHO_T}$RANLIB" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4005 if test -z "$ac_cv_prog_RANLIB"; then
4006 ac_ct_RANLIB=$RANLIB
4007 # Extract the first word of "ranlib", so it can be a program name with args.
4008 set dummy ranlib; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$ac_ct_RANLIB"; then
4015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_ac_ct_RANLIB="ranlib"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035 if test -n "$ac_ct_RANLIB"; then
4036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 RANLIB=$ac_ct_RANLIB
4045 RANLIB="$ac_cv_prog_RANLIB"
4048 if test -n "$ac_tool_prefix"; then
4049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4050 set dummy ${ac_tool_prefix}ar; ac_word=$2
4051 echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053 if test "${ac_cv_prog_AR+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test -n "$AR"; then
4057 ac_cv_prog_AR="$AR" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_AR="${ac_tool_prefix}ar"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test -n "$AR"; then
4077 echo "$as_me:$LINENO: result: $AR" >&5
4078 echo "${ECHO_T}$AR" >&6
4080 echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4085 if test -z "$ac_cv_prog_AR"; then
4087 # Extract the first word of "ar", so it can be a program name with args.
4088 set dummy ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -n "$ac_ct_AR"; then
4095 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_AR="ar"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4117 echo "${ECHO_T}$ac_ct_AR" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4129 echo "$as_me:$LINENO: checking for inline" >&5
4130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4131 if test "${ac_cv_c_inline+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 for ac_kw in inline __inline__ __inline; do
4136 cat >conftest.$ac_ext <<_ACEOF
4137 #line $LINENO "configure"
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4145 static $ac_kw foo_t static_foo () {return 0; }
4146 $ac_kw foo_t foo () {return 0; }
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_inline=$ac_kw; break
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4173 echo "${ECHO_T}$ac_cv_c_inline" >&6
4174 case $ac_cv_c_inline in
4177 cat >>confdefs.h <<\_ACEOF
4181 *) cat >>confdefs.h <<_ACEOF
4182 #define inline $ac_cv_c_inline
4187 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4188 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4189 if test "${ac_cv_c_const+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4203 /* FIXME: Include the comments suggested by Paul. */
4205 /* Ultrix mips cc rejects this. */
4206 typedef int charset[2];
4208 /* SunOS 4.1.1 cc rejects this. */
4209 char const *const *ccp;
4211 /* NEC SVR4.0.2 mips cc rejects this. */
4212 struct point {int x, y;};
4213 static struct point const zero = {0,0};
4214 /* AIX XL C 1.02.0.0 rejects this.
4215 It does not let you subtract one const X* pointer from another in
4216 an arm of an if-expression whose if-part is not a constant
4218 const char *g = "string";
4219 ccp = &g + (g ? g-g : 0);
4220 /* HPUX 7.0 cc rejects these. */
4223 ccp = (char const *const *) p;
4224 { /* SCO 3.2v4 cc rejects this. */
4226 char const *s = 0 ? (char *) 0 : (char const *) 0;
4230 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4232 const int *foo = &x[0];
4235 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4236 typedef const int *iptr;
4240 { /* AIX XL C 1.02.0.0 rejects this saying
4241 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4242 struct s { int j; const int *ap[3]; };
4243 struct s *b; b->j = 5;
4245 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4273 rm -f conftest.$ac_objext conftest.$ac_ext
4275 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4276 echo "${ECHO_T}$ac_cv_c_const" >&6
4277 if test $ac_cv_c_const = no; then
4279 cat >>confdefs.h <<\_ACEOF
4286 # Extract the first word of "dbx", so it can be a program name with args.
4287 set dummy dbx; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_DBX+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4318 if test -n "$DBX"; then
4319 echo "$as_me:$LINENO: result: $DBX" >&5
4320 echo "${ECHO_T}$DBX" >&6
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4326 # Extract the first word of "gdb", so it can be a program name with args.
4327 set dummy gdb; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GDB+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4358 if test -n "$GDB"; then
4359 echo "$as_me:$LINENO: result: $GDB" >&5
4360 echo "${ECHO_T}$GDB" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4366 # Extract the first word of "sdb", so it can be a program name with args.
4367 set dummy sdb; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_SDB+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4398 if test -n "$SDB"; then
4399 echo "$as_me:$LINENO: result: $SDB" >&5
4400 echo "${ECHO_T}$SDB" >&6
4402 echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4407 if test $GDB != no ; then
4409 elif test $DBX != no ; then
4411 elif test $SDB != no ; then
4419 # The following templates should be used with newer automakes
4420 # instead of acconfig.h
4422 #AH_TEMPLATE([sig_atomic_t],
4423 # [/* Define to `int' if <signal.h> doesn't define.])
4424 #AH_TEMPLATE([HAVE_START_COLOR],
4425 # [Define if you have start_color, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4427 # [Define if you have typeahead, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_BKGDSET],
4429 # [Define if you have bkgdset, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_CURS_SET],
4431 # [Define if you have curs_set, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_META],
4433 # [Define if you have meta, as a function or macro.])
4434 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4435 # [Define if you have use_default_colors, as a function or macro.])
4436 #AH_TEMPLATE([HAVE_RESIZETERM],
4437 # [Define if you have resizeterm, as a function or macro.])
4438 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4439 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4440 # This define will have value `sig_atomic_t' or
4441 # `volatile sig_atomic_t' accordingly.])
4442 #AH_TEMPLATE([ICONV_NONTRANS],
4443 # [Define as 1 if iconv() only converts exactly and we should treat
4444 # all return values other than (size_t)(-1) as equivalent.])
4447 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4448 # Extract the first word of "sendmail", so it can be a program name with args.
4449 set dummy sendmail; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 as_dummy="$PATH:$ac_aux_path_sendmail"
4462 for as_dir in $as_dummy
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4479 SENDMAIL=$ac_cv_path_SENDMAIL
4481 if test -n "$SENDMAIL"; then
4482 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4483 echo "${ECHO_T}$SENDMAIL" >&6
4485 echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4490 cat >>confdefs.h <<_ACEOF
4491 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4496 if test -f $srcdir/EXPORTABLE ; then
4501 # Check whether --enable-pgp or --disable-pgp was given.
4502 if test "${enable_pgp+set}" = set; then
4503 enableval="$enable_pgp"
4504 if test x$enableval = xno ; then
4510 if test x$have_pgp != xno ; then
4512 cat >>confdefs.h <<\_ACEOF
4513 #define CRYPT_BACKEND_CLASSIC_PGP 1
4516 PGPAUX_TARGET="pgpring pgpewrap"
4517 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4520 # Check whether --enable-smime or --disable-smime was given.
4521 if test "${enable_smime+set}" = set; then
4522 enableval="$enable_smime"
4523 if test x$enableval = xno ; then
4529 if test x$have_smime != xno ; then
4531 cat >>confdefs.h <<\_ACEOF
4532 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4535 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4536 SMIMEAUX_TARGET="smime_keys"
4540 # Check whether --with-mixmaster or --without-mixmaster was given.
4541 if test "${with_mixmaster+set}" = set; then
4542 withval="$with_mixmaster"
4543 if test -x "$withval" ; then
4544 MIXMASTER="$withval"
4546 MIXMASTER="mixmaster"
4548 OPS="$OPS \$(srcdir)/OPS.MIX"
4549 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4551 cat >>confdefs.h <<_ACEOF
4552 #define MIXMASTER "$MIXMASTER"
4559 # We now require all OPS
4560 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4568 cat >>confdefs.h <<_ACEOF
4569 #define SUBVERSION "$SUBVERSION"
4574 # Extract the first word of "ispell", so it can be a program name with args.
4575 set dummy ispell; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_ISPELL+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4604 ISPELL=$ac_cv_path_ISPELL
4606 if test -n "$ISPELL"; then
4607 echo "$as_me:$LINENO: result: $ISPELL" >&5
4608 echo "${ECHO_T}$ISPELL" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 if test $ISPELL != no; then
4616 cat >>confdefs.h <<_ACEOF
4617 #define ISPELL "$ISPELL"
4623 # Check whether --with-slang or --without-slang was given.
4624 if test "${with_slang+set}" = set; then
4625 withval="$with_slang"
4626 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4627 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4628 if test "${mutt_cv_bsdish+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if test "$cross_compiling" = yes; then
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <sys/param.h>
4652 rm -f conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4676 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4678 echo "$as_me:$LINENO: checking for S-Lang" >&5
4679 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4680 if test $withval = yes; then
4681 if test -d $srcdir/../slang; then
4682 mutt_cv_slang=$srcdir/../slang/src
4683 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4684 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4686 if test -d $mutt_cv_prefix/include/slang; then
4687 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4688 elif test -d /usr/include/slang; then
4689 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4694 if test -f $withval/src/slang.h; then
4695 mutt_cv_slang=$withval/src
4696 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4697 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4699 mutt_cv_slang=$withval
4700 if test -d $withval/include/slang; then
4701 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4702 elif test -d $withval/include; then
4703 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4705 LDFLAGS="$LDFLAGS -L${withval}/lib"
4708 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4709 echo "${ECHO_T}$mutt_cv_slang" >&6
4710 if test $mutt_cv_bsdish = yes; then
4712 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4713 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4714 if test "${ac_cv_lib_termlib_main+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ltermlib $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738 (eval $ac_link) 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_lib_termlib_main=yes
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 ac_cv_lib_termlib_main=no
4755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4758 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4759 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4760 if test $ac_cv_lib_termlib_main = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762 #define HAVE_LIBTERMLIB 1
4765 LIBS="-ltermlib $LIBS"
4771 cat >>confdefs.h <<\_ACEOF
4772 #define USE_SLANG_CURSES 1
4776 cat >>confdefs.h <<\_ACEOF
4777 #define HAVE_COLOR 1
4780 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4783 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4784 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4785 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_check_lib_save_LIBS=$LIBS
4789 LIBS="-lslang -lm $LIBS"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4798 /* Override any gcc2 internal prototype to avoid an error. */
4802 /* We use char because int might match the return type of a gcc2
4803 builtin and then its argument prototype would still apply. */
4804 char SLtt_get_terminfo ();
4808 SLtt_get_terminfo ();
4813 rm -f conftest.$ac_objext conftest$ac_exeext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815 (eval $ac_link) 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -s conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_cv_lib_slang_SLtt_get_terminfo=yes
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ac_cv_lib_slang_SLtt_get_terminfo=no
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4836 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4837 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4838 MUTTLIBS="$MUTTLIBS -lslang -lm"
4840 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4841 echo "$as_me: error: unable to compile. check config.log" >&2;}
4842 { (exit 1); exit 1; }; }
4850 # Check whether --with-curses or --without-curses was given.
4851 if test "${with_curses+set}" = set; then
4852 withval="$with_curses"
4853 if test $withval != yes; then