3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-pgp Disable PGP support"
17 --disable-smime Disable SMIME support"
19 --with-mixmaster[=PATH] Include Mixmaster support"
21 --with-slang[=DIR] Use S-Lang instead of ncurses"
23 --with-curses=DIR Where ncurses is installed "
25 --with-regex Use the GNU regex library "
27 --with-homespool[=FILE] File in user's directory where new mail is spooled"
29 --with-mailpath=DIR Directory where spool mailboxes are located"
31 --enable-external-dotlock Force use of an external dotlock program"
33 --with-docdir=PATH Specify where to put the documentation"
35 --with-domain=DOMAIN Specify your DNS domain name"
37 --enable-pop Enable POP3 support"
39 --enable-imap Enable IMAP support"
41 --enable-nntp Enable NNTP support"
43 --with-gss[=PFX] Compile in GSSAPI authentication for IMAP"
45 --with-ssl[=PFX] Compile in SSL support for POP/IMAP"
47 --with-gnutls[=PFX] Compile in GNU TLS support for POP/IMAP"
49 --with-nss[=PFX] Compile in SSL support for POP/IMAP via NSS"
51 --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication"
53 --with-sasl2[=PFX] Use Cyrus SASL library version 2 for POP/IMAP authentication"
55 --with-idn=[PFX] Use GNU libidn for domain names"
57 --enable-debug Enable debugging support"
59 --enable-flock Use flock() to lock files"
61 --disable-fcntl Do NOT use fcntl() to lock files "
63 --disable-warnings Turn off compiler warnings (not recommended)"
65 --enable-nfs-fix Work around an NFS with broken attributes caching "
67 --enable-buffy-size Use file size attribute instead of access time "
69 --enable-mailtool Enable Sun mailtool attachments support "
71 --enable-compressed Enable compressed folders support "
73 --enable-locales-fix The result of isprint() is unreliable "
75 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
77 --enable-exact-address Enable regeneration of email addresses"
79 --disable-iconv Disable iconv support"
81 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
83 --disable-nls Do not use Native Language Support"
85 --with-included-gettext Use the GNU gettext library included here"
87 --without-wc-funcs Do not use the system's wchar_t functions"
89 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file=./config.cache
104 program_transform_name=s,x,x,
112 bindir='${exec_prefix}/bin'
113 sbindir='${exec_prefix}/sbin'
114 libexecdir='${exec_prefix}/libexec'
115 datadir='${prefix}/share'
116 sysconfdir='${prefix}/etc'
117 sharedstatedir='${prefix}/com'
118 localstatedir='${prefix}/var'
119 libdir='${exec_prefix}/lib'
120 includedir='${prefix}/include'
121 oldincludedir='/usr/include'
122 infodir='${prefix}/info'
123 mandir='${prefix}/man'
125 # Initialize some other variables.
128 SHELL=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
155 bindir="$ac_optarg" ;;
157 -build | --build | --buil | --bui | --bu)
159 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
160 build="$ac_optarg" ;;
162 -cache-file | --cache-file | --cache-fil | --cache-fi \
163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
164 ac_prev=cache_file ;;
165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
167 cache_file="$ac_optarg" ;;
169 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 datadir="$ac_optarg" ;;
175 -disable-* | --disable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* | --enable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
199 | --exec | --exe | --ex)
200 ac_prev=exec_prefix ;;
201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
203 | --exec=* | --exe=* | --ex=*)
204 exec_prefix="$ac_optarg" ;;
206 -gas | --gas | --ga | --g)
207 # Obsolete; use --with-gas.
210 -help | --help | --hel | --he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host | --host | --hos | --ho)
267 -host=* | --host=* | --hos=* | --ho=*)
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev=includedir ;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir="$ac_optarg" ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir="$ac_optarg" ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
285 libdir="$ac_optarg" ;;
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev=libexecdir ;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir="$ac_optarg" ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev=localstatedir ;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir="$ac_optarg" ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
306 mandir="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev=oldincludedir ;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir="$ac_optarg" ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
332 prefix="$ac_optarg" ;;
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev=program_prefix ;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix="$ac_optarg" ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev=program_suffix ;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix="$ac_optarg" ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev=program_transform_name ;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name="$ac_optarg" ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir="$ac_optarg" ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev=sharedstatedir ;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir="$ac_optarg" ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
394 srcdir="$ac_optarg" ;;
396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
397 | --syscon | --sysco | --sysc | --sys | --sy)
398 ac_prev=sysconfdir ;;
399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
401 sysconfdir="$ac_optarg" ;;
403 -target | --target | --targe | --targ | --tar | --ta | --t)
405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
406 target="$ac_optarg" ;;
408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 -version | --version | --versio | --versi | --vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* | --without-*)
429 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
442 | --x-incl | --x-inc | --x-in | --x-i)
443 ac_prev=x_includes ;;
444 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
445 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
446 x_includes="$ac_optarg" ;;
448 -x-libraries | --x-libraries | --x-librarie | --x-librari \
449 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
450 ac_prev=x_libraries ;;
451 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
452 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
453 x_libraries="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) ;;
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file=mutt.h
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE; then
558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp='$CPP $CPPFLAGS'
581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
596 ac_n= ac_c='\c' ac_t=
604 mutt_cv_version=`cat $srcdir/VERSION`
608 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
609 if test -f $ac_dir/install-sh; then
611 ac_install_sh="$ac_aux_dir/install-sh -c"
613 elif test -f $ac_dir/install.sh; then
615 ac_install_sh="$ac_aux_dir/install.sh -c"
619 if test -z "$ac_aux_dir"; then
620 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
622 ac_config_guess=$ac_aux_dir/config.guess
623 ac_config_sub=$ac_aux_dir/config.sub
624 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
626 # Find a good install program. We prefer a C program (faster),
627 # so one script is as good as another. But avoid the broken or
628 # incompatible versions:
629 # SysV /etc/install, /usr/sbin/install
630 # SunOS /usr/etc/install
633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
636 # ./install, which can be erroneously created by make from ./install.sh.
637 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
638 echo "configure:639: checking for a BSD compatible install" >&5
639 if test -z "$INSTALL"; then
640 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
644 for ac_dir in $PATH; do
645 # Account for people who put trailing slashes in PATH elements.
647 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
649 # OSF1 and SCO ODT 3.0 have their own names for install.
650 # Don't use installbsd from OSF since it installs stuff as root
652 for ac_prog in ginstall scoinst install; do
653 if test -f $ac_dir/$ac_prog; then
654 if test $ac_prog = install &&
655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
656 # AIX install. It has an incompatible calling convention.
659 ac_cv_path_install="$ac_dir/$ac_prog -c"
670 if test "${ac_cv_path_install+set}" = set; then
671 INSTALL="$ac_cv_path_install"
673 # As a last resort, use the slow shell script. We don't cache a
674 # path for INSTALL within a source directory, because that will
675 # break other packages using the cache if that directory is
676 # removed, or if the path is relative.
677 INSTALL="$ac_install_sh"
680 echo "$ac_t""$INSTALL" 1>&6
682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
683 # It thinks the first close brace ends the variable substitution.
684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
690 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
691 echo "configure:692: checking whether build environment is sane" >&5
694 echo timestamp > conftestfile
695 # Do `set' in a subshell so we don't clobber the current shell's
696 # arguments. Must try -L first in case configure is actually a
697 # symlink; some systems play weird games with the mod time of symlinks
698 # (eg FreeBSD returns the mod time of the symlink's containing
701 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
702 if test "$*" = "X"; then
704 set X `ls -t $srcdir/configure conftestfile`
706 if test "$*" != "X $srcdir/configure conftestfile" \
707 && test "$*" != "X conftestfile $srcdir/configure"; then
709 # If neither matched, then we have a broken ls. This can happen
710 # if, for instance, CONFIG_SHELL is bash and it inherits a
711 # broken ls alias from the environment. This has actually
712 # happened. Such a system could not be considered "sane".
713 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
714 alias in your environment" 1>&2; exit 1; }
717 test "$2" = conftestfile
723 { echo "configure: error: newly created file is older than distributed files!
724 Check your system clock" 1>&2; exit 1; }
727 echo "$ac_t""yes" 1>&6
728 if test "$program_transform_name" = s,x,x,; then
729 program_transform_name=
731 # Double any \ or $. echo might interpret backslashes.
732 cat <<\EOF_SED > conftestsed
733 s,\\,\\\\,g; s,\$,$$,g
735 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
738 test "$program_prefix" != NONE &&
739 program_transform_name="s,^,${program_prefix},; $program_transform_name"
740 # Use a double $ so make ignores it.
741 test "$program_suffix" != NONE &&
742 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
744 # sed with no file args requires a program.
745 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
747 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
748 echo "configure:749: checking whether ${MAKE-make} sets \${MAKE}" >&5
749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
750 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 cat > conftestmake <<\EOF
755 @echo 'ac_maketemp="${MAKE}"'
757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
758 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
759 if test -n "$ac_maketemp"; then
760 eval ac_cv_prog_make_${ac_make}_set=yes
762 eval ac_cv_prog_make_${ac_make}_set=no
766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
767 echo "$ac_t""yes" 1>&6
770 echo "$ac_t""no" 1>&6
771 SET_MAKE="MAKE=${MAKE-make}"
777 VERSION=$mutt_cv_version
779 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
780 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
782 cat >> confdefs.h <<EOF
783 #define PACKAGE "$PACKAGE"
786 cat >> confdefs.h <<EOF
787 #define VERSION "$VERSION"
792 missing_dir=`cd $ac_aux_dir && pwd`
793 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
794 echo "configure:795: checking for working aclocal" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf. Sigh.
798 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
800 echo "$ac_t""found" 1>&6
802 ACLOCAL="$missing_dir/missing aclocal"
803 echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
807 echo "configure:808: checking for working autoconf" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf. Sigh.
811 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
813 echo "$ac_t""found" 1>&6
815 AUTOCONF="$missing_dir/missing autoconf"
816 echo "$ac_t""missing" 1>&6
819 echo $ac_n "checking for working automake""... $ac_c" 1>&6
820 echo "configure:821: checking for working automake" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (automake --version) < /dev/null > /dev/null 2>&1; then
826 echo "$ac_t""found" 1>&6
828 AUTOMAKE="$missing_dir/missing automake"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
833 echo "configure:834: checking for working autoheader" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
838 AUTOHEADER=autoheader
839 echo "$ac_t""found" 1>&6
841 AUTOHEADER="$missing_dir/missing autoheader"
842 echo "$ac_t""missing" 1>&6
845 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
846 echo "configure:847: checking for working makeinfo" >&5
847 # Run test in a subshell; some versions of sh will print an error if
848 # an executable is not found, even if stderr is redirected.
849 # Redirect stdin to placate older versions of autoconf. Sigh.
850 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
852 echo "$ac_t""found" 1>&6
854 MAKEINFO="$missing_dir/missing makeinfo"
855 echo "$ac_t""missing" 1>&6
862 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"
865 # Make sure we can run config.sub.
866 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
867 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
870 echo $ac_n "checking host system type""... $ac_c" 1>&6
871 echo "configure:872: checking host system type" >&5
874 case "$host_alias" in
878 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
879 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
881 *) host_alias=$nonopt ;;
885 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
886 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889 echo "$ac_t""$host" 1>&6
892 echo $ac_n "checking for prefix""... $ac_c" 1>&6
893 echo "configure:894: checking for prefix" >&5
894 if test x$prefix = xNONE; then
895 mutt_cv_prefix=$ac_default_prefix
897 mutt_cv_prefix=$prefix
899 echo "$ac_t""$mutt_cv_prefix" 1>&6
901 # Extract the first word of "gcc", so it can be a program name with args.
902 set dummy gcc; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
930 if test -z "$CC"; then
931 # Extract the first word of "cc", so it can be a program name with args.
932 set dummy cc; ac_word=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 if test -n "$CC"; then
939 ac_cv_prog_CC="$CC" # Let the user override the test.
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
956 if test $ac_prog_rejected = yes; then
957 # We found a bogon in the path, so make sure we never use it.
958 set dummy $ac_cv_prog_CC
960 if test $# -gt 0; then
961 # We chose a different compiler from the bogus one.
962 # However, it has the same basename, so the bogon will be chosen
963 # first if we set CC to just the basename; use the full file name.
965 set dummy "$ac_dir/$ac_word" "$@"
973 if test -n "$CC"; then
974 echo "$ac_t""$CC" 1>&6
976 echo "$ac_t""no" 1>&6
979 if test -z "$CC"; then
982 # Extract the first word of "cl", so it can be a program name with args.
983 set dummy cl; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 if test -n "$CC"; then
990 ac_cv_prog_CC="$CC" # Let the user override the test.
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
994 for ac_dir in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir=.
996 if test -f $ac_dir/$ac_word; then
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1008 echo "$ac_t""no" 1>&6
1013 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1016 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1017 echo "configure:1018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1021 ac_cpp='$CPP $CPPFLAGS'
1022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1024 cross_compiling=$ac_cv_prog_cc_cross
1026 cat > conftest.$ac_ext << EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1033 if { (eval echo configure:1034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1034 ac_cv_prog_cc_works=yes
1035 # If we can't run a trivial program, we are probably using a cross compiler.
1036 if (./conftest; exit) 2>/dev/null; then
1037 ac_cv_prog_cc_cross=no
1039 ac_cv_prog_cc_cross=yes
1042 echo "configure: failed program was:" >&5
1043 cat conftest.$ac_ext >&5
1044 ac_cv_prog_cc_works=no
1048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1049 ac_cpp='$CPP $CPPFLAGS'
1050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1052 cross_compiling=$ac_cv_prog_cc_cross
1054 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1055 if test $ac_cv_prog_cc_works = no; then
1056 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1058 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1060 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1061 cross_compiling=$ac_cv_prog_cc_cross
1063 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether we are using GNU C" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 cat > conftest.c <<EOF
1073 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1080 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1082 if test $ac_cv_prog_gcc = yes; then
1088 ac_test_CFLAGS="${CFLAGS+set}"
1089 ac_save_CFLAGS="$CFLAGS"
1091 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ${CC-cc} accepts -g" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 echo 'void f(){}' > conftest.c
1097 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1106 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1107 if test "$ac_test_CFLAGS" = set; then
1108 CFLAGS="$ac_save_CFLAGS"
1109 elif test $ac_cv_prog_cc_g = yes; then
1110 if test "$GCC" = yes; then
1116 if test "$GCC" = yes; then
1124 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1125 echo "configure:1126: checking for strerror in -lcposix" >&5
1126 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 ac_save_LIBS="$LIBS"
1131 LIBS="-lcposix $LIBS"
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 /* Override any gcc2 internal prototype to avoid an error. */
1136 /* We use char because int might match the return type of a gcc2
1137 builtin and then its argument prototype would still apply. */
1144 if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1146 eval "ac_cv_lib_$ac_lib_var=yes"
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1151 eval "ac_cv_lib_$ac_lib_var=no"
1154 LIBS="$ac_save_LIBS"
1157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 LIBS="$LIBS -lcposix"
1161 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1170 echo "configure:1171: checking for ${CC-cc} option to accept ANSI C" >&5
1171 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 am_cv_prog_cc_stdc=no
1176 # Don't try gcc -ansi; that turns off useful extensions and
1177 # breaks some systems' header files.
1178 # AIX -qlanglvl=ansi
1179 # Ultrix and OSF/1 -std1
1180 # HP-UX -Aa -D_HPUX_SOURCE
1181 # SVR4 -Xc -D__EXTENSIONS__
1182 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1184 CC="$ac_save_CC $ac_arg"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1190 #include <sys/types.h>
1191 #include <sys/stat.h>
1192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1193 struct buf { int x; };
1194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1195 static char *e (p, i)
1201 static char *f (char * (*g) (char **, int), char **p, ...)
1206 s = g (p, va_arg (v,int));
1210 int test (int i, double x);
1211 struct s1 {int (*f) (int a);};
1212 struct s2 {int (*f) (double a);};
1213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1223 if { (eval echo configure:1224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1225 am_cv_prog_cc_stdc="$ac_arg"; break
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1236 if test -z "$am_cv_prog_cc_stdc"; then
1237 echo "$ac_t""none needed" 1>&6
1239 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1241 case "x$am_cv_prog_cc_stdc" in
1243 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1246 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1247 echo "configure:1248: checking how to run the C preprocessor" >&5
1248 # On Suns, sometimes $CPP names a directory.
1249 if test -n "$CPP" && test -d "$CPP"; then
1252 if test -z "$CPP"; then
1253 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 # This must be in double quotes, not single quotes, because CPP may get
1257 # substituted into the Makefile and "${CC-cc}" will confuse make.
1259 # On the NeXT, cc -E runs the code through the compiler's parser,
1260 # not just through cpp.
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1270 if test -z "$ac_err"; then
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1277 CPP="${CC-cc} -E -traditional-cpp"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285 { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287 if test -z "$ac_err"; then
1291 echo "configure: failed program was:" >&5
1292 cat conftest.$ac_ext >&5
1294 CPP="${CC-cc} -nologo -E"
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1302 { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1304 if test -z "$ac_err"; then
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1318 ac_cv_prog_CPP="$CPP"
1320 CPP="$ac_cv_prog_CPP"
1322 ac_cv_prog_CPP="$CPP"
1324 echo "$ac_t""$CPP" 1>&6
1328 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1329 echo "configure:1330: checking for function prototypes" >&5
1330 if test "$am_cv_prog_cc_stdc" != no; then
1331 echo "$ac_t""yes" 1>&6
1332 cat >> confdefs.h <<\EOF
1333 #define PROTOTYPES 1
1338 echo "$ac_t""no" 1>&6
1339 U=_ ANSI2KNR=./ansi2knr
1340 # Ensure some checks needed by ansi2knr itself.
1341 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1342 echo "configure:1343: checking for ANSI C header files" >&5
1343 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1357 if test -z "$ac_err"; then
1359 ac_cv_header_stdc=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 ac_cv_header_stdc=no
1369 if test $ac_cv_header_stdc = yes; then
1370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1377 egrep "memchr" >/dev/null 2>&1; then
1381 ac_cv_header_stdc=no
1387 if test $ac_cv_header_stdc = yes; then
1388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "free" >/dev/null 2>&1; then
1399 ac_cv_header_stdc=no
1405 if test $ac_cv_header_stdc = yes; then
1406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1407 if test "$cross_compiling" = yes; then
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1414 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1415 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1417 int main () { int i; for (i = 0; i < 256; i++)
1418 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1422 if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1429 ac_cv_header_stdc=no
1437 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1438 if test $ac_cv_header_stdc = yes; then
1439 cat >> confdefs.h <<\EOF
1440 #define STDC_HEADERS 1
1445 for ac_hdr in string.h
1447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1449 echo "configure:1450: checking for $ac_hdr" >&5
1450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1459 { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1461 if test -z "$ac_err"; then
1463 eval "ac_cv_header_$ac_safe=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_header_$ac_safe=no"
1473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1476 cat >> confdefs.h <<EOF
1477 #define $ac_tr_hdr 1
1481 echo "$ac_t""no" 1>&6
1487 if test "x$U" != "x"; then
1488 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1490 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1491 echo "configure:1492: checking how to run the C preprocessor" >&5
1492 # On Suns, sometimes $CPP names a directory.
1493 if test -n "$CPP" && test -d "$CPP"; then
1496 if test -z "$CPP"; then
1497 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 # This must be in double quotes, not single quotes, because CPP may get
1501 # substituted into the Makefile and "${CC-cc}" will confuse make.
1503 # On the NeXT, cc -E runs the code through the compiler's parser,
1504 # not just through cpp.
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1512 { (eval echo configure:1513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1514 if test -z "$ac_err"; then
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 CPP="${CC-cc} -E -traditional-cpp"
1522 cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 CPP="${CC-cc} -nologo -E"
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1562 ac_cv_prog_CPP="$CPP"
1564 CPP="$ac_cv_prog_CPP"
1566 ac_cv_prog_CPP="$CPP"
1568 echo "$ac_t""$CPP" 1>&6
1570 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether ${MAKE-make} sets \${MAKE}" >&5
1572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1573 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftestmake <<\EOF
1578 @echo 'ac_maketemp="${MAKE}"'
1580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1581 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1582 if test -n "$ac_maketemp"; then
1583 eval ac_cv_prog_make_${ac_make}_set=yes
1585 eval ac_cv_prog_make_${ac_make}_set=no
1589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1593 echo "$ac_t""no" 1>&6
1594 SET_MAKE="MAKE=${MAKE-make}"
1597 # Find a good install program. We prefer a C program (faster),
1598 # so one script is as good as another. But avoid the broken or
1599 # incompatible versions:
1600 # SysV /etc/install, /usr/sbin/install
1601 # SunOS /usr/etc/install
1602 # IRIX /sbin/install
1604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1607 # ./install, which can be erroneously created by make from ./install.sh.
1608 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1609 echo "configure:1610: checking for a BSD compatible install" >&5
1610 if test -z "$INSTALL"; then
1611 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1615 for ac_dir in $PATH; do
1616 # Account for people who put trailing slashes in PATH elements.
1618 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1620 # OSF1 and SCO ODT 3.0 have their own names for install.
1621 # Don't use installbsd from OSF since it installs stuff as root
1623 for ac_prog in ginstall scoinst install; do
1624 if test -f $ac_dir/$ac_prog; then
1625 if test $ac_prog = install &&
1626 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1627 # AIX install. It has an incompatible calling convention.
1630 ac_cv_path_install="$ac_dir/$ac_prog -c"
1641 if test "${ac_cv_path_install+set}" = set; then
1642 INSTALL="$ac_cv_path_install"
1644 # As a last resort, use the slow shell script. We don't cache a
1645 # path for INSTALL within a source directory, because that will
1646 # break other packages using the cache if that directory is
1647 # removed, or if the path is relative.
1648 INSTALL="$ac_install_sh"
1651 echo "$ac_t""$INSTALL" 1>&6
1653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1654 # It thinks the first close brace ends the variable substitution.
1655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661 # Extract the first word of "ranlib", so it can be a program name with args.
1662 set dummy ranlib; ac_word=$2
1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_word" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 if test -n "$RANLIB"; then
1669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_prog_RANLIB="ranlib"
1681 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1684 RANLIB="$ac_cv_prog_RANLIB"
1685 if test -n "$RANLIB"; then
1686 echo "$ac_t""$RANLIB" 1>&6
1688 echo "$ac_t""no" 1>&6
1691 echo $ac_n "checking build system type""... $ac_c" 1>&6
1692 echo "configure:1693: checking build system type" >&5
1695 case "$build_alias" in
1698 NONE) build_alias=$host_alias ;;
1699 *) build_alias=$nonopt ;;
1703 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1704 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707 echo "$ac_t""$build" 1>&6
1709 if test $host != $build; then
1710 ac_tool_prefix=${host_alias}-
1715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}ar; ac_word=$2
1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_word" >&5
1719 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 if test -n "$AR"; then
1723 ac_cv_prog_AR="$AR" # Let the user override the test.
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1727 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 if test -f $ac_dir/$ac_word; then
1730 ac_cv_prog_AR="${ac_tool_prefix}ar"
1738 if test -n "$AR"; then
1739 echo "$ac_t""$AR" 1>&6
1741 echo "$ac_t""no" 1>&6
1745 if test -z "$ac_cv_prog_AR"; then
1746 if test -n "$ac_tool_prefix"; then
1747 # Extract the first word of "ar", so it can be a program name with args.
1748 set dummy ar; ac_word=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1751 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 if test -n "$AR"; then
1755 ac_cv_prog_AR="$AR" # Let the user override the test.
1757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1759 for ac_dir in $ac_dummy; do
1760 test -z "$ac_dir" && ac_dir=.
1761 if test -f $ac_dir/$ac_word; then
1767 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1771 if test -n "$AR"; then
1772 echo "$ac_t""$AR" 1>&6
1774 echo "$ac_t""no" 1>&6
1783 echo $ac_n "checking for inline""... $ac_c" 1>&6
1784 echo "configure:1785: checking for inline" >&5
1785 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1789 for ac_kw in inline __inline__ __inline; do
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 ac_cv_c_inline=$ac_kw; break
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1810 echo "$ac_t""$ac_cv_c_inline" 1>&6
1811 case "$ac_cv_c_inline" in
1813 no) cat >> confdefs.h <<\EOF
1817 *) cat >> confdefs.h <<EOF
1818 #define inline $ac_cv_c_inline
1823 echo $ac_n "checking for working const""... $ac_c" 1>&6
1824 echo "configure:1825: checking for working const" >&5
1825 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 /* Ultrix mips cc rejects this. */
1835 typedef int charset[2]; const charset x;
1836 /* SunOS 4.1.1 cc rejects this. */
1837 char const *const *ccp;
1839 /* NEC SVR4.0.2 mips cc rejects this. */
1840 struct point {int x, y;};
1841 static struct point const zero = {0,0};
1842 /* AIX XL C 1.02.0.0 rejects this.
1843 It does not let you subtract one const X* pointer from another in an arm
1844 of an if-expression whose if-part is not a constant expression */
1845 const char *g = "string";
1846 ccp = &g + (g ? g-g : 0);
1847 /* HPUX 7.0 cc rejects these. */
1850 ccp = (char const *const *) p;
1851 { /* SCO 3.2v4 cc rejects this. */
1853 char const *s = 0 ? (char *) 0 : (char const *) 0;
1857 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1859 const int *foo = &x[0];
1862 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1863 typedef const int *iptr;
1867 { /* AIX XL C 1.02.0.0 rejects this saying
1868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1869 struct s { int j; const int *ap[3]; };
1870 struct s *b; b->j = 5;
1872 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1878 if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1890 echo "$ac_t""$ac_cv_c_const" 1>&6
1891 if test $ac_cv_c_const = no; then
1892 cat >> confdefs.h <<\EOF
1899 # Extract the first word of "dbx", so it can be a program name with args.
1900 set dummy dbx; ac_word=$2
1901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1902 echo "configure:1903: checking for $ac_word" >&5
1903 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1911 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_path_DBX="$ac_dir/$ac_word"
1924 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1928 DBX="$ac_cv_path_DBX"
1929 if test -n "$DBX"; then
1930 echo "$ac_t""$DBX" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 # Extract the first word of "gdb", so it can be a program name with args.
1936 set dummy gdb; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1944 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1947 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_path_GDB="$ac_dir/$ac_word"
1960 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1964 GDB="$ac_cv_path_GDB"
1965 if test -n "$GDB"; then
1966 echo "$ac_t""$GDB" 1>&6
1968 echo "$ac_t""no" 1>&6
1971 # Extract the first word of "sdb", so it can be a program name with args.
1972 set dummy sdb; ac_word=$2
1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_word" >&5
1975 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1980 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1983 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 for ac_dir in $ac_dummy; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$ac_word; then
1991 ac_cv_path_SDB="$ac_dir/$ac_word"
1996 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
2000 SDB="$ac_cv_path_SDB"
2001 if test -n "$SDB"; then
2002 echo "$ac_t""$SDB" 1>&6
2004 echo "$ac_t""no" 1>&6
2008 if test $GDB != no ; then
2010 elif test $DBX != no ; then
2012 elif test $SDB != no ; then
2020 # The following templates should be used with newer automakes
2021 # instead of acconfig.h
2023 #AH_TEMPLATE([sig_atomic_t],
2024 # [/* Define to `int' if <signal.h> doesn't define.])
2025 #AH_TEMPLATE([HAVE_START_COLOR],
2026 # [Define if you have start_color, as a function or macro.])
2027 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2028 # [Define if you have typeahead, as a function or macro.])
2029 #AH_TEMPLATE([HAVE_BKGDSET],
2030 # [Define if you have bkgdset, as a function or macro.])
2031 #AH_TEMPLATE([HAVE_CURS_SET],
2032 # [Define if you have curs_set, as a function or macro.])
2033 #AH_TEMPLATE([HAVE_META],
2034 # [Define if you have meta, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2036 # [Define if you have use_default_colors, as a function or macro.])
2037 #AH_TEMPLATE([HAVE_RESIZETERM],
2038 # [Define if you have resizeterm, as a function or macro.])
2039 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2040 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2041 # This define will have value `sig_atomic_t' or
2042 # `volatile sig_atomic_t' accordingly.])
2043 #AH_TEMPLATE([ICONV_NONTRANS],
2044 # [Define as 1 if iconv() only converts exactly and we should treat
2045 # all return values other than (size_t)(-1) as equivalent.])
2048 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2049 # Extract the first word of "sendmail", so it can be a program name with args.
2050 set dummy sendmail; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2058 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2061 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 ac_dummy="$PATH:$ac_aux_path_sendmail"
2066 for ac_dir in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2069 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2074 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2078 SENDMAIL="$ac_cv_path_SENDMAIL"
2079 if test -n "$SENDMAIL"; then
2080 echo "$ac_t""$SENDMAIL" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 cat >> confdefs.h <<EOF
2086 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2091 if test -f $srcdir/EXPORTABLE ; then
2096 # Check whether --enable-pgp or --disable-pgp was given.
2097 if test "${enable_pgp+set}" = set; then
2098 enableval="$enable_pgp"
2099 if test x$enableval = xno ; then
2106 if test x$have_pgp != xno ; then
2107 cat >> confdefs.h <<\EOF
2108 #define CRYPT_BACKEND_CLASSIC_PGP 1
2111 PGPAUX_TARGET="pgpring pgpewrap"
2112 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
2115 # Check whether --enable-smime or --disable-smime was given.
2116 if test "${enable_smime+set}" = set; then
2117 enableval="$enable_smime"
2118 if test x$enableval = xno ; then
2125 if test x$have_smime != xno ; then
2126 cat >> confdefs.h <<\EOF
2127 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2130 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
2131 SMIMEAUX_TARGET="smime_keys"
2134 # Check whether --with-mixmaster or --without-mixmaster was given.
2135 if test "${with_mixmaster+set}" = set; then
2136 withval="$with_mixmaster"
2137 if test -x "$withval" ; then
2138 MIXMASTER="$withval"
2140 MIXMASTER="mixmaster"
2142 OPS="$OPS \$(srcdir)/OPS.MIX"
2143 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2144 cat >> confdefs.h <<EOF
2145 #define MIXMASTER "$MIXMASTER"
2153 # We now require all OPS
2154 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2161 cat >> confdefs.h <<EOF
2162 #define SUBVERSION "$SUBVERSION"
2167 # Extract the first word of "ispell", so it can be a program name with args.
2168 set dummy ispell; ac_word=$2
2169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_word" >&5
2171 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2176 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2179 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/$ac_word; then
2187 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2192 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2196 ISPELL="$ac_cv_path_ISPELL"
2197 if test -n "$ISPELL"; then
2198 echo "$ac_t""$ISPELL" 1>&6
2200 echo "$ac_t""no" 1>&6
2203 if test $ISPELL != no; then
2204 cat >> confdefs.h <<EOF
2205 #define ISPELL "$ISPELL"
2210 # Check whether --with-slang or --without-slang was given.
2211 if test "${with_slang+set}" = set; then
2212 withval="$with_slang"
2213 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2214 echo "configure:2215: checking if this is a BSD system" >&5
2215 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 if test "$cross_compiling" = yes; then
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <sys/param.h>
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2249 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2251 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2252 echo "configure:2253: checking for S-Lang" >&5
2253 if test $withval = yes; then
2254 if test -d $srcdir/../slang; then
2255 mutt_cv_slang=$srcdir/../slang/src
2256 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2257 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2259 if test -d $mutt_cv_prefix/include/slang; then
2260 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2261 elif test -d /usr/include/slang; then
2262 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2267 if test -f $withval/src/slang.h; then
2268 mutt_cv_slang=$withval/src
2269 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2270 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2272 mutt_cv_slang=$withval
2273 if test -d $withval/include/slang; then
2274 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2275 elif test -d $withval/include; then
2276 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2278 LDFLAGS="$LDFLAGS -L${withval}/lib"
2281 echo "$ac_t""$mutt_cv_slang" 1>&6
2282 if test $mutt_cv_bsdish = yes; then
2283 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2284 echo "configure:2285: checking for main in -ltermlib" >&5
2285 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_save_LIBS="$LIBS"
2290 LIBS="-ltermlib $LIBS"
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 eval "ac_cv_lib_$ac_lib_var=yes"
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 eval "ac_cv_lib_$ac_lib_var=no"
2309 LIBS="$ac_save_LIBS"
2312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2314 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2316 cat >> confdefs.h <<EOF
2317 #define $ac_tr_lib 1
2320 LIBS="-ltermlib $LIBS"
2323 echo "$ac_t""no" 1>&6
2327 cat >> confdefs.h <<\EOF
2328 #define USE_SLANG_CURSES 1
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_COLOR 1
2335 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2338 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2339 echo "configure:2340: checking for SLtt_get_terminfo in -lslang" >&5
2340 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 ac_save_LIBS="$LIBS"
2345 LIBS="-lslang -lm $LIBS"
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* Override any gcc2 internal prototype to avoid an error. */
2350 /* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2352 char SLtt_get_terminfo();
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360 eval "ac_cv_lib_$ac_lib_var=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 eval "ac_cv_lib_$ac_lib_var=no"
2368 LIBS="$ac_save_LIBS"
2371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 MUTTLIBS="$MUTTLIBS -lslang -lm"
2375 echo "$ac_t""no" 1>&6
2376 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2383 # Check whether --with-curses or --without-curses was given.
2384 if test "${with_curses+set}" = set; then
2385 withval="$with_curses"
2386 if test $withval != yes; then
2387 mutt_cv_curses=$withval
2389 if test x$mutt_cv_curses != x/usr; then
2390 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2391 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2396 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2397 echo "configure:2398: checking for initscr" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char initscr(); below. */
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_initscr) || defined (__stub___initscr)
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2427 eval "ac_cv_func_initscr=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 eval "ac_cv_func_initscr=no"
2437 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2441 echo "$ac_t""no" 1>&6
2443 cf_ncurses="ncurses"
2444 for lib in ncurses ncursesw
2446 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2447 echo "configure:2448: checking for waddnwstr in -l$lib" >&5
2448 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_save_LIBS="$LIBS"
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 /* Override any gcc2 internal prototype to avoid an error. */
2458 /* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 eval "ac_cv_lib_$ac_lib_var=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 eval "ac_cv_lib_$ac_lib_var=no"
2476 LIBS="$ac_save_LIBS"
2479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 cf_ncurses="$lib"; break
2483 echo "$ac_t""no" 1>&6
2487 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2488 echo "configure:2489: checking for initscr in -l$cf_ncurses" >&5
2489 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 ac_save_LIBS="$LIBS"
2494 LIBS="-l$cf_ncurses $LIBS"
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 /* Override any gcc2 internal prototype to avoid an error. */
2499 /* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 eval "ac_cv_lib_$ac_lib_var=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_lib_$ac_lib_var=no"
2517 LIBS="$ac_save_LIBS"
2520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2523 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2524 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2527 if test "$cf_ncurses" = ncursesw; then
2528 for ac_hdr in ncursesw/ncurses.h
2530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_hdr 1
2562 cf_cv_ncurses_header="ncursesw/ncurses.h"
2564 echo "$ac_t""no" 1>&6
2569 for ac_hdr in ncurses.h
2571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_hdr" >&5
2574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2583 { (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2585 if test -z "$ac_err"; then
2587 eval "ac_cv_header_$ac_safe=yes"
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 eval "ac_cv_header_$ac_safe=no"
2597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2600 cat >> confdefs.h <<EOF
2601 #define $ac_tr_hdr 1
2603 cf_cv_ncurses_header="ncurses.h"
2605 echo "$ac_t""no" 1>&6
2611 echo "$ac_t""no" 1>&6
2613 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for initscr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 /* System header to define __stub macros and hopefully few prototypes,
2622 which can conflict with char initscr(); below. */
2624 /* Override any gcc2 internal prototype to avoid an error. */
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2631 /* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634 #if defined (__stub_initscr) || defined (__stub___initscr)
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644 eval "ac_cv_func_initscr=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "ac_cv_func_initscr=no"
2654 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2658 echo "$ac_t""no" 1>&6
2660 case $host_os in #(vi
2662 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2663 echo "configure:2664: checking for tgoto in -lmytinfo" >&5
2664 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 ac_save_LIBS="$LIBS"
2669 LIBS="-lmytinfo $LIBS"
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 /* We use char because int might match the return type of a gcc2
2675 builtin and then its argument prototype would still apply. */
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2684 eval "ac_cv_lib_$ac_lib_var=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2689 eval "ac_cv_lib_$ac_lib_var=no"
2692 LIBS="$ac_save_LIBS"
2695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 LIBS="-lmytinfo $LIBS"
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for initscr in -lcur_colr" >&5
2706 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 ac_save_LIBS="$LIBS"
2711 LIBS="-lcur_colr $LIBS"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 /* Override any gcc2 internal prototype to avoid an error. */
2716 /* We use char because int might match the return type of a gcc2
2717 builtin and then its argument prototype would still apply. */
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_lib_$ac_lib_var=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_lib_$ac_lib_var=no"
2734 LIBS="$ac_save_LIBS"
2737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2740 LIBS="-lcur_colr $LIBS"
2741 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2742 ac_cv_func_initscr=yes
2745 echo "$ac_t""no" 1>&6
2747 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2748 echo "configure:2749: checking for initscr in -lHcurses" >&5
2749 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 ac_save_LIBS="$LIBS"
2754 LIBS="-lHcurses $LIBS"
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 /* Override any gcc2 internal prototype to avoid an error. */
2759 /* We use char because int might match the return type of a gcc2
2760 builtin and then its argument prototype would still apply. */
2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769 eval "ac_cv_lib_$ac_lib_var=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2774 eval "ac_cv_lib_$ac_lib_var=no"
2777 LIBS="$ac_save_LIBS"
2780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2783 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2784 LIBS="-lHcurses $LIBS"
2785 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2786 ac_cv_func_initscr=yes
2789 echo "$ac_t""no" 1>&6
2795 linux*) # Suse Linux does not follow /usr/lib convention
2800 if test ".$With5lib" != ".no" ; then
2801 if test -d /usr/5lib ; then
2803 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2804 LIBS="$LIBS -L/usr/5lib"
2808 if test ".$ac_cv_func_initscr" != .yes ; then
2809 cf_save_LIBS="$LIBS"
2813 # Check for library containing tgoto. Do this before curses library
2814 # because it may be needed to link the test-case for initscr.
2815 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2816 echo "configure:2817: checking for tgoto" >&5
2817 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 /* System header to define __stub macros and hopefully few prototypes,
2824 which can conflict with char tgoto(); below. */
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 /* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2833 /* The GNU C library defines this for functions which it implements
2834 to always fail with ENOSYS. Some functions are actually named
2835 something starting with __ and the normal name is an alias. */
2836 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 eval "ac_cv_func_tgoto=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_func_tgoto=no"
2856 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 cf_term_lib=predefined
2860 echo "$ac_t""no" 1>&6
2862 for cf_term_lib in termcap termlib unknown
2864 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2865 echo "configure:2866: checking for tgoto in -l$cf_term_lib" >&5
2866 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 ac_save_LIBS="$LIBS"
2871 LIBS="-l$cf_term_lib $LIBS"
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 eval "ac_cv_lib_$ac_lib_var=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_lib_$ac_lib_var=no"
2894 LIBS="$ac_save_LIBS"
2897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2901 echo "$ac_t""no" 1>&6
2909 # Check for library containing initscr
2910 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2911 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2913 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2914 echo "configure:2915: checking for initscr in -l$cf_curs_lib" >&5
2915 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 ac_save_LIBS="$LIBS"
2920 LIBS="-l$cf_curs_lib $LIBS"
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 eval "ac_cv_lib_$ac_lib_var=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 eval "ac_cv_lib_$ac_lib_var=no"
2943 LIBS="$ac_save_LIBS"
2946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2950 echo "$ac_t""no" 1>&6
2954 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2956 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2957 if test "$cf_term_lib" = unknown ; then
2958 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2959 echo "configure:2960: checking if we can link with $cf_curs_lib library" >&5
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <${cf_cv_ncurses_header-curses.h}>
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2978 echo "$ac_t""$cf_result" 1>&6
2979 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2980 elif test "$cf_term_lib" != predefined ; then
2981 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2982 echo "configure:2983: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 #include <${cf_cv_ncurses_header-curses.h}>
2988 initscr(); tgoto((char *)0, 0, 0);
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2999 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 #include <${cf_cv_ncurses_header-curses.h}>
3008 if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3021 echo "$ac_t""$cf_result" 1>&6
3035 LIBS="$LIBS $MUTTLIBS"
3036 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3039 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_func declaration" >&5
3041 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <${cf_cv_ncurses_header-curses.h}>
3050 extern int ${ac_func}();
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <${cf_cv_ncurses_header-curses.h}>
3063 int (*p)() = ${ac_func};
3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 eval "ac_cv_func_decl_$ac_func=yes"
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3076 eval "ac_cv_func_decl_$ac_func=no"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_decl_$ac_func=yes"
3089 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3093 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3095 cat >> confdefs.h <<EOF
3096 #define $ac_tr_func 1
3100 echo "$ac_t""no" 1>&6
3104 if test "$ac_cv_func_decl_start_color" = yes; then
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_COLOR 1
3110 if test "$ac_cv_func_decl_resizeterm" = yes; then
3111 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3118 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3119 echo "configure:3120: checking for ANSI C header files" >&5
3120 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3136 ac_cv_header_stdc=yes
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 ac_cv_header_stdc=no
3146 if test $ac_cv_header_stdc = yes; then
3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "memchr" >/dev/null 2>&1; then
3158 ac_cv_header_stdc=no
3164 if test $ac_cv_header_stdc = yes; then
3165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "free" >/dev/null 2>&1; then
3176 ac_cv_header_stdc=no
3182 if test $ac_cv_header_stdc = yes; then
3183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3184 if test "$cross_compiling" = yes; then
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3191 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3192 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3194 int main () { int i; for (i = 0; i < 256; i++)
3195 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 ac_cv_header_stdc=no
3214 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3215 if test $ac_cv_header_stdc = yes; then
3216 cat >> confdefs.h <<\EOF
3217 #define STDC_HEADERS 1
3223 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_hdr" >&5
3228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3237 { (eval echo configure:3238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3239 if test -z "$ac_err"; then
3241 eval "ac_cv_header_$ac_safe=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 eval "ac_cv_header_$ac_safe=no"
3251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3252 echo "$ac_t""yes" 1>&6
3253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3254 cat >> confdefs.h <<EOF
3255 #define $ac_tr_hdr 1
3259 echo "$ac_t""no" 1>&6
3263 for ac_hdr in sys/time.h sys/resource.h
3265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_hdr" >&5
3268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3277 { (eval echo configure:3278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3279 if test -z "$ac_err"; then
3281 eval "ac_cv_header_$ac_safe=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_header_$ac_safe=no"
3291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3294 cat >> confdefs.h <<EOF
3295 #define $ac_tr_hdr 1
3299 echo "$ac_t""no" 1>&6
3303 for ac_hdr in unix.h
3305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_hdr" >&5
3308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317 { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3319 if test -z "$ac_err"; then
3321 eval "ac_cv_header_$ac_safe=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_header_$ac_safe=no"
3331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h <<EOF
3335 #define $ac_tr_hdr 1
3339 echo "$ac_t""no" 1>&6
3344 for ac_func in setrlimit getsid isctype
3346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_func" >&5
3348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 /* System header to define __stub macros and hopefully few prototypes,
3355 which can conflict with char $ac_func(); below. */
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3364 /* The GNU C library defines this for functions which it implements
3365 to always fail with ENOSYS. Some functions are actually named
3366 something starting with __ and the normal name is an alias. */
3367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3375 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3377 eval "ac_cv_func_$ac_func=yes"
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 eval "ac_cv_func_$ac_func=no"
3387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3388 echo "$ac_t""yes" 1>&6
3389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_func 1
3395 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3401 echo "configure:3402: checking return type of signal handlers" >&5
3402 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 #include <sys/types.h>
3414 extern "C" void (*signal (int, void (*)(int)))(int);
3416 void (*signal ()) ();
3423 if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 ac_cv_type_signal=void
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 ac_cv_type_signal=int
3435 echo "$ac_t""$ac_cv_type_signal" 1>&6
3436 cat >> confdefs.h <<EOF
3437 #define RETSIGTYPE $ac_cv_type_signal
3442 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3443 echo "configure:3444: checking for sig_atomic_t in signal.h" >&5
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "sig_atomic_t" >/dev/null 2>&1; then
3453 ac_cv_type_sig_atomic_t=yes;
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3463 is_sig_atomic_t_volatile=yes;
3464 echo "$ac_t""yes, volatile" 1>&6
3469 is_sig_atomic_t_volatile=no;
3470 echo "$ac_t""yes, non volatile" 1>&6
3479 echo "$ac_t""no" 1>&6
3480 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3481 echo "configure:3482: checking for sig_atomic_t" >&5
3482 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3497 ac_cv_type_sig_atomic_t=yes
3500 ac_cv_type_sig_atomic_t=no
3505 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3506 if test $ac_cv_type_sig_atomic_t = no; then
3507 cat >> confdefs.h <<\EOF
3508 #define sig_atomic_t int
3513 is_sig_atomic_t_volatile=no
3518 if test $is_sig_atomic_t_volatile = 'yes'
3520 cat >> confdefs.h <<\EOF
3521 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3525 cat >> confdefs.h <<\EOF
3526 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3531 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3532 echo "configure:3533: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3533 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <sys/types.h>
3541 /* NetBSD declares sys_siglist in unistd.h. */
3542 #ifdef HAVE_UNISTD_H
3546 char *msg = *(sys_siglist + 1);
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 ac_cv_decl_sys_siglist=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 ac_cv_decl_sys_siglist=no
3561 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3562 if test $ac_cv_decl_sys_siglist = yes; then
3563 cat >> confdefs.h <<\EOF
3564 #define SYS_SIGLIST_DECLARED 1
3570 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3571 echo "configure:3572: checking whether byte ordering is bigendian" >&5
3572 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_cv_c_bigendian=unknown
3576 # See if sys/param.h defines the BYTE_ORDER macro.
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3581 #include <sys/param.h>
3584 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 # It does; now see whether it defined to BIG_ENDIAN or not.
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3599 #if BYTE_ORDER != BIG_ENDIAN
3604 if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606 ac_cv_c_bigendian=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 ac_cv_c_bigendian=no
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3619 if test $ac_cv_c_bigendian = unknown; then
3620 if test "$cross_compiling" = yes; then
3621 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3627 /* Are we little or big endian? From Harbison&Steele. */
3631 char c[sizeof (long)];
3634 exit (u.c[sizeof (long) - 1] == 1);
3637 if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3639 ac_cv_c_bigendian=no
3641 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3644 ac_cv_c_bigendian=yes
3652 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3653 if test $ac_cv_c_bigendian = yes; then
3654 cat >> confdefs.h <<\EOF
3655 #define WORDS_BIGENDIAN 1
3660 for ac_hdr in inttypes.h stdint.h
3662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3664 echo "configure:3665: checking for $ac_hdr" >&5
3665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3674 { (eval echo configure:3675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3676 if test -z "$ac_err"; then
3678 eval "ac_cv_header_$ac_safe=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_header_$ac_safe=no"
3688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_hdr 1
3696 echo "$ac_t""no" 1>&6
3700 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for uint32_t" >&5
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3706 #include <sys/types.h>
3708 #include <inttypes.h>
3717 if (sizeof (uint32_t))
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_UINT32_T 1
3729 echo "$ac_t""yes" 1>&6
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking size of int""... $ac_c" 1>&6
3740 echo "configure:3741: checking size of int" >&5
3741 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 if test "$cross_compiling" = yes; then
3745 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3751 #include <sys/types.h>
3754 FILE *f=fopen("conftestval", "w");
3756 fprintf(f, "%d\n", sizeof(int));
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3762 ac_cv_sizeof_int=`cat conftestval`
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3773 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3774 cat >> confdefs.h <<EOF
3775 #define SIZEOF_INT $ac_cv_sizeof_int
3779 echo $ac_n "checking size of long""... $ac_c" 1>&6
3780 echo "configure:3781: checking size of long" >&5
3781 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 if test "$cross_compiling" = yes; then
3785 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3791 #include <sys/types.h>
3794 FILE *f=fopen("conftestval", "w");
3796 fprintf(f, "%d\n", sizeof(long));
3800 if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3802 ac_cv_sizeof_long=`cat conftestval`
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3813 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3814 cat >> confdefs.h <<EOF
3815 #define SIZEOF_LONG $ac_cv_sizeof_long
3820 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3821 echo "configure:3822: checking for pid_t" >&5
3822 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <sys/types.h>
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3837 ac_cv_type_pid_t=yes
3845 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3846 if test $ac_cv_type_pid_t = no; then
3847 cat >> confdefs.h <<\EOF
3854 for ac_func in fgetpos memmove setegid srand48 strerror
3856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_func" >&5
3858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* System header to define __stub macros and hopefully few prototypes,
3865 which can conflict with char $ac_func(); below. */
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3874 /* The GNU C library defines this for functions which it implements
3875 to always fail with ENOSYS. Some functions are actually named
3876 something starting with __ and the normal name is an alias. */
3877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887 eval "ac_cv_func_$ac_func=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_func_$ac_func=no"
3897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3900 cat >> confdefs.h <<EOF
3901 #define $ac_tr_func 1
3905 echo "$ac_t""no" 1>&6
3910 for ac_func in strcasecmp strdup
3912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3913 echo "configure:3914: checking for $ac_func" >&5
3914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 /* System header to define __stub macros and hopefully few prototypes,
3921 which can conflict with char $ac_func(); below. */
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3930 /* The GNU C library defines this for functions which it implements
3931 to always fail with ENOSYS. Some functions are actually named
3932 something starting with __ and the normal name is an alias. */
3933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 eval "ac_cv_func_$ac_func=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 eval "ac_cv_func_$ac_func=no"
3953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3956 cat >> confdefs.h <<EOF
3957 #define $ac_tr_func 1
3961 echo "$ac_t""no" 1>&6
3962 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3968 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3969 echo "configure:3970: checking for getopt" >&5
3970 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char getopt(); below. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_getopt) || defined (__stub___getopt)
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_func_getopt=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_func_getopt=no"
4009 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4013 echo "$ac_t""no" 1>&6
4016 if test $ac_cv_func_getopt = yes; then
4017 for ac_hdr in getopt.h
4019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_hdr" >&5
4022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4031 { (eval echo configure:4032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4033 if test -z "$ac_err"; then
4035 eval "ac_cv_header_$ac_safe=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_header_$ac_safe=no"
4045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4048 cat >> confdefs.h <<EOF
4049 #define $ac_tr_hdr 1
4053 echo "$ac_t""no" 1>&6
4061 for ac_func in snprintf
4063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_func" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094 eval "ac_cv_func_$ac_func=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_func_$ac_func=no"
4104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4107 cat >> confdefs.h <<EOF
4108 #define $ac_tr_func 1
4112 echo "$ac_t""no" 1>&6
4113 mutt_cv_snprintf=yes
4117 for ac_func in vsnprintf
4119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_func" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* System header to define __stub macros and hopefully few prototypes,
4128 which can conflict with char $ac_func(); below. */
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150 eval "ac_cv_func_$ac_func=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 eval "ac_cv_func_$ac_func=no"
4160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4163 cat >> confdefs.h <<EOF
4164 #define $ac_tr_func 1
4168 echo "$ac_t""no" 1>&6
4169 mutt_cv_snprintf=yes
4173 if test $mutt_cv_snprintf = yes; then
4174 LIBOBJS="$LIBOBJS snprintf.o"
4177 for ac_func in ftruncate
4179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_func" >&5
4181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* System header to define __stub macros and hopefully few prototypes,
4188 which can conflict with char $ac_func(); below. */
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4197 /* The GNU C library defines this for functions which it implements
4198 to always fail with ENOSYS. Some functions are actually named
4199 something starting with __ and the normal name is an alias. */
4200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210 eval "ac_cv_func_$ac_func=yes"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 eval "ac_cv_func_$ac_func=no"
4220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_func 1
4228 echo "$ac_t""no" 1>&6
4229 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4230 echo "configure:4231: checking for chsize in -lx" >&5
4231 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_save_LIBS="$LIBS"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251 eval "ac_cv_lib_$ac_lib_var=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_lib_$ac_lib_var=no"
4259 LIBS="$ac_save_LIBS"
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4264 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4266 cat >> confdefs.h <<EOF
4267 #define $ac_tr_lib 1
4273 echo "$ac_t""no" 1>&6
4280 for ac_func in strftime
4282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4283 echo "configure:4284: checking for $ac_func" >&5
4284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* System header to define __stub macros and hopefully few prototypes,
4291 which can conflict with char $ac_func(); below. */
4293 /* Override any gcc2 internal prototype to avoid an error. */
4294 /* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4300 /* The GNU C library defines this for functions which it implements
4301 to always fail with ENOSYS. Some functions are actually named
4302 something starting with __ and the normal name is an alias. */
4303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 eval "ac_cv_func_$ac_func=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_func_$ac_func=no"
4323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4326 cat >> confdefs.h <<EOF
4327 #define $ac_tr_func 1
4331 echo "$ac_t""no" 1>&6
4332 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4333 echo "configure:4334: checking for strftime in -lintl" >&5
4334 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 ac_save_LIBS="$LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 eval "ac_cv_lib_$ac_lib_var=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4359 eval "ac_cv_lib_$ac_lib_var=no"
4362 LIBS="$ac_save_LIBS"
4365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4367 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4369 cat >> confdefs.h <<EOF
4370 #define $ac_tr_lib 1
4376 echo "$ac_t""no" 1>&6
4383 for ac_func in fchdir
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func(); below. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 eval "ac_cv_func_$ac_func=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 eval "ac_cv_func_$ac_func=no"
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429 cat >> confdefs.h <<EOF
4430 #define $ac_tr_func 1
4434 echo "$ac_t""no" 1>&6
4440 # Check whether --with-regex or --without-regex was given.
4441 if test "${with_regex+set}" = set; then
4442 withval="$with_regex"
4445 for ac_func in regcomp
4447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_func" >&5
4449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* System header to define __stub macros and hopefully few prototypes,
4456 which can conflict with char $ac_func(); below. */
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4465 /* The GNU C library defines this for functions which it implements
4466 to always fail with ENOSYS. Some functions are actually named
4467 something starting with __ and the normal name is an alias. */
4468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 eval "ac_cv_func_$ac_func=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_func_$ac_func=no"
4488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4491 cat >> confdefs.h <<EOF
4492 #define $ac_tr_func 1
4496 echo "$ac_t""no" 1>&6
4504 if test $mutt_cv_regex = no ; then
4505 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4506 echo "configure:4507: checking whether your system's regexp library is completely broken" >&5
4507 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 if test "$cross_compiling" = yes; then
4511 mutt_cv_regex_broken=yes
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4519 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4523 mutt_cv_regex_broken=no
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 mutt_cv_regex_broken=yes
4535 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4536 if test $mutt_cv_regex_broken = yes ; then
4537 echo "Using the included GNU regex instead." >&6
4542 if test $mutt_cv_regex = yes; then
4543 cat >> confdefs.h <<\EOF
4544 #define USE_GNU_REGEX 1
4547 LIBOBJS="$LIBOBJS regex.o"
4551 # Check whether --with-homespool or --without-homespool was given.
4552 if test "${with_homespool+set}" = set; then
4553 withval="$with_homespool"
4554 with_homespool=${withval}
4557 if test x$with_homespool != x; then
4558 if test $with_homespool = yes; then
4559 with_homespool=mailbox
4561 cat >> confdefs.h <<EOF
4562 #define MAILPATH "$with_homespool"
4565 cat >> confdefs.h <<\EOF
4569 cat >> confdefs.h <<\EOF
4570 #define USE_DOTLOCK 1
4575 # Check whether --with-mailpath or --without-mailpath was given.
4576 if test "${with_mailpath+set}" = set; then
4577 withval="$with_mailpath"
4578 mutt_cv_mailpath=$withval
4580 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4581 echo "configure:4582: checking where new mail is stored" >&5
4582 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4586 if test -d /var/mail; then
4587 mutt_cv_mailpath=/var/mail
4588 elif test -d /var/spool/mail; then
4589 mutt_cv_mailpath=/var/spool/mail
4590 elif test -d /usr/spool/mail; then
4591 mutt_cv_mailpath=/usr/spool/mail
4592 elif test -d /usr/mail; then
4593 mutt_cv_mailpath=/usr/mail
4597 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4601 if test "$mutt_cv_mailpath" = no; then
4602 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4604 cat >> confdefs.h <<EOF
4605 #define MAILPATH "$mutt_cv_mailpath"
4609 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4610 echo "configure:4611: checking if $mutt_cv_mailpath is world writable" >&5
4611 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 if test "$cross_compiling" = yes; then
4615 mutt_cv_worldwrite=no
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 #include <sys/types.h>
4621 #include <sys/stat.h>
4623 int main (int argc, char **argv)
4627 stat ("$mutt_cv_mailpath", &s);
4628 if (s.st_mode & S_IWOTH) exit (0);
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4634 mutt_cv_worldwrite=yes
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 mutt_cv_worldwrite=no
4646 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4649 if test $mutt_cv_worldwrite = yes; then
4650 cat >> confdefs.h <<\EOF
4651 #define USE_DOTLOCK 1
4656 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4657 echo "configure:4658: checking if $mutt_cv_mailpath is group writable" >&5
4658 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 if test "$cross_compiling" = yes; then
4662 mutt_cv_groupwrite=no
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <sys/types.h>
4668 #include <sys/stat.h>
4670 int main (int argc, char **argv)
4674 stat ("$mutt_cv_mailpath", &s);
4675 if (s.st_mode & S_IWGRP) exit (0);
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4681 mutt_cv_groupwrite=yes
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4686 mutt_cv_groupwrite=no
4693 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4695 if test $mutt_cv_groupwrite = yes; then
4696 cat >> confdefs.h <<\EOF
4697 #define USE_DOTLOCK 1
4700 cat >> confdefs.h <<\EOF
4701 #define USE_SETGID 1
4709 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4710 if test "${enable_external_dotlock+set}" = set; then
4711 enableval="$enable_external_dotlock"
4712 mutt_cv_external_dotlock="$enableval"
4716 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4717 || test "x$mutt_cv_external_dotlock" = "xyes"
4719 cat >> confdefs.h <<\EOF
4720 #define DL_STANDALONE 1
4723 DOTLOCK_TARGET="mutt_dotlock"
4725 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4731 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4732 echo "configure:4733: checking where to put the documentation" >&5
4733 # Check whether --with-docdir or --without-docdir was given.
4734 if test "${with_docdir+set}" = set; then
4735 withval="$with_docdir"
4736 mutt_cv_docdir=$withval
4738 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
4741 echo "$ac_t""$mutt_cv_docdir" 1>&6
4743 docdir=$mutt_cv_docdir
4746 if test x$mutt_cv_setgid = xyes; then
4747 DOTLOCK_GROUP='mail'
4748 DOTLOCK_PERMISSION=2755
4751 DOTLOCK_PERMISSION=755
4756 # Check whether --with-domain or --without-domain was given.
4757 if test "${with_domain+set}" = set; then
4758 withval="$with_domain"
4759 if test $withval != yes; then
4760 cat >> confdefs.h <<EOF
4761 #define DOMAIN "$withval"
4771 # Check whether --enable-pop or --disable-pop was given.
4772 if test "${enable_pop+set}" = set; then
4773 enableval="$enable_pop"
4774 if test x$enableval = xyes ; then
4775 cat >> confdefs.h <<\EOF
4779 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4787 # Check whether --enable-imap or --disable-imap was given.
4788 if test "${enable_imap+set}" = set; then
4789 enableval="$enable_imap"
4790 if test x$enableval = xyes ; then
4791 cat >> confdefs.h <<\EOF
4795 LIBIMAP="-Limap -limap"
4796 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4806 if test x$need_imap = xyes; then
4808 BUILD_IMAP_FALSE='#'
4814 # Check whether --enable-nntp or --disable-nntp was given.
4815 if test "${enable_nntp+set}" = set; then
4816 enableval="$enable_nntp"
4817 if test x$enableval = xyes ; then
4818 cat >> confdefs.h <<\EOF
4822 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4830 if test "$need_socket" = "yes"
4832 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4833 echo "configure:4834: checking for socklen_t" >&5
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 #include <sys/socket.h>
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 egrep "socklen_t" >/dev/null 2>&1; then
4842 echo "$ac_t""yes" 1>&6
4845 echo "$ac_t""no" 1>&6
4846 cat >> confdefs.h <<\EOF
4847 #define socklen_t int
4853 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
4854 echo "configure:4855: checking for gethostent" >&5
4855 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* System header to define __stub macros and hopefully few prototypes,
4862 which can conflict with char gethostent(); below. */
4864 /* Override any gcc2 internal prototype to avoid an error. */
4865 /* We use char because int might match the return type of a gcc2
4866 builtin and then its argument prototype would still apply. */
4871 /* The GNU C library defines this for functions which it implements
4872 to always fail with ENOSYS. Some functions are actually named
4873 something starting with __ and the normal name is an alias. */
4874 #if defined (__stub_gethostent) || defined (__stub___gethostent)
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 eval "ac_cv_func_gethostent=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_func_gethostent=no"
4894 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4898 echo "$ac_t""no" 1>&6
4899 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
4900 echo "configure:4901: checking for gethostent in -lnsl" >&5
4901 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
4902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 ac_save_LIBS="$LIBS"
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 eval "ac_cv_lib_$ac_lib_var=yes"
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4926 eval "ac_cv_lib_$ac_lib_var=no"
4929 LIBS="$ac_save_LIBS"
4932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
4935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4936 cat >> confdefs.h <<EOF
4937 #define $ac_tr_lib 1
4943 echo "$ac_t""no" 1>&6
4948 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
4949 echo "configure:4950: checking for setsockopt" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char setsockopt(); below. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_func_setsockopt=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_func_setsockopt=no"
4989 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4993 echo "$ac_t""no" 1>&6
4994 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
4995 echo "configure:4996: checking for setsockopt in -lsocket" >&5
4996 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
4997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 ac_save_LIBS="$LIBS"
5001 LIBS="-lsocket $LIBS"
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5016 eval "ac_cv_lib_$ac_lib_var=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_lib_$ac_lib_var=no"
5024 LIBS="$ac_save_LIBS"
5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
5030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5031 cat >> confdefs.h <<EOF
5032 #define $ac_tr_lib 1
5035 LIBS="-lsocket $LIBS"
5038 echo "$ac_t""no" 1>&6
5043 for ac_func in getaddrinfo
5045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5046 echo "configure:5047: checking for $ac_func" >&5
5047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* System header to define __stub macros and hopefully few prototypes,
5054 which can conflict with char $ac_func(); below. */
5056 /* Override any gcc2 internal prototype to avoid an error. */
5057 /* We use char because int might match the return type of a gcc2
5058 builtin and then its argument prototype would still apply. */
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5076 eval "ac_cv_func_$ac_func=yes"
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 eval "ac_cv_func_$ac_func=no"
5086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5087 echo "$ac_t""yes" 1>&6
5088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5089 cat >> confdefs.h <<EOF
5090 #define $ac_tr_func 1
5094 echo "$ac_t""no" 1>&6
5098 cat >> confdefs.h <<\EOF
5099 #define USE_SOCKET 1
5102 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
5106 # Check whether --with-gss or --without-gss was given.
5107 if test "${with_gss+set}" = set; then
5109 gss_prefix="$withval"
5114 if test "$gss_prefix" != "no"
5116 if test "$need_imap" = "yes"
5119 GSSAPI_PREFIX=$gss_prefix
5121 saved_CPPFLAGS="$CPPFLAGS"
5122 saved_LDFLAGS="$LDFLAGS"
5124 if test "$GSSAPI_PREFIX" != "yes"
5126 krb5_path="$GSSAPI_PREFIX/bin"
5130 # Extract the first word of "krb5-config", so it can be a program name with args.
5131 set dummy krb5-config; ac_word=$2
5132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5133 echo "configure:5134: checking for $ac_word" >&5
5134 if eval "test \"`echo '$''{'ac_cv_path_KRB5CFGPATH'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 case "$KRB5CFGPATH" in
5139 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
5142 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a dos path.
5145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5146 ac_dummy="$krb5_path"
5147 for ac_dir in $ac_dummy; do
5148 test -z "$ac_dir" && ac_dir=.
5149 if test -f $ac_dir/$ac_word; then
5150 ac_cv_path_KRB5CFGPATH="$ac_dir/$ac_word"
5155 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
5159 KRB5CFGPATH="$ac_cv_path_KRB5CFGPATH"
5160 if test -n "$KRB5CFGPATH"; then
5161 echo "$ac_t""$KRB5CFGPATH" 1>&6
5163 echo "$ac_t""no" 1>&6
5166 if test "$KRB5CFGPATH" != "none"
5168 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
5169 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
5170 case "`$KRB5CFGPATH --version`" in
5171 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
5172 ?eimdal*) GSSAPI_IMPL="Heimdal";;
5173 *) GSSAPI_IMPL="Unknown";;
5176 if test "$GSSAPI_PREFIX" != "yes"
5178 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
5179 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
5180 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5181 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
5184 echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
5185 echo "configure:5186: checking for gss_init_sec_context in -lgssapi_krb5" >&5
5186 ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS="$LIBS"
5191 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char gss_init_sec_context();
5201 gss_init_sec_context()
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5221 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
5224 echo "$ac_t""no" 1>&6
5228 if test "$GSSAPI_IMPL" = "none"
5230 echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
5231 echo "configure:5232: checking for gss_init_sec_context in -lgssapi" >&5
5232 ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 ac_save_LIBS="$LIBS"
5237 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* Override any gcc2 internal prototype to avoid an error. */
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5244 char gss_init_sec_context();
5247 gss_init_sec_context()
5250 if { (eval echo configure:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 eval "ac_cv_lib_$ac_lib_var=yes"
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5257 eval "ac_cv_lib_$ac_lib_var=no"
5260 LIBS="$ac_save_LIBS"
5263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5266 GSSAPI_IMPL="Heimdal"
5267 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
5268 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
5271 echo "$ac_t""no" 1>&6
5276 if test "$GSSAPI_IMPL" = "none"
5278 echo $ac_n "checking for g_order_init in -lgssapi_krb5""... $ac_c" 1>&6
5279 echo "configure:5280: checking for g_order_init in -lgssapi_krb5" >&5
5280 ac_lib_var=`echo gssapi_krb5'_'g_order_init | sed 'y%./+-%__p_%'`
5281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 ac_save_LIBS="$LIBS"
5285 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char g_order_init();
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 eval "ac_cv_lib_$ac_lib_var=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 eval "ac_cv_lib_$ac_lib_var=no"
5308 LIBS="$ac_save_LIBS"
5311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5314 GSSAPI_IMPL="OldMIT",
5315 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
5318 echo "$ac_t""no" 1>&6
5324 CPPFLAGS="$saved_CPPFLAGS"
5325 LDFLAGS="$saved_LDFLAGS"
5328 echo $ac_n "checking GSSAPI implementation""... $ac_c" 1>&6
5329 echo "configure:5330: checking GSSAPI implementation" >&5
5330 echo "$ac_t""$GSSAPI_IMPL" 1>&6
5331 if test "$GSSAPI_IMPL" = "none"
5333 cat > confcache <<\EOF
5334 # This file is a shell script that caches the results of configure
5335 # tests run on this system so they can be shared between configure
5336 # scripts and configure runs. It is not useful on other systems.
5337 # If it contains results you don't want to keep, you may remove or edit it.
5339 # By default, configure uses ./config.cache as the cache file,
5340 # creating it if it does not exist already. You can give configure
5341 # the --cache-file=FILE option to use a different cache file; that is
5342 # what configure does when it calls configure scripts in
5343 # subdirectories, so they share the cache.
5344 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5345 # config.status only pays attention to the cache file if you give it the
5346 # --recheck option to rerun configure.
5349 # The following way of writing the cache mishandles newlines in values,
5350 # but we know of no workaround that is simple, portable, and efficient.
5351 # So, don't put newlines in cache variables' values.
5352 # Ultrix sh set writes to stderr and can't be redirected directly,
5353 # and sets the high bit in the cache file unless we assign to the vars.
5355 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5357 # `set' does not quote correctly, so add quotes (double-quote substitution
5358 # turns \\\\ into \\, and sed turns \\ into \).
5360 -e "s/'/'\\\\''/g" \
5361 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5364 # `set' quotes correctly as required by POSIX, so do not add quotes.
5365 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5368 if cmp -s $cache_file confcache; then
5371 if test -w $cache_file; then
5372 echo "updating cache $cache_file"
5373 cat confcache > $cache_file
5375 echo "not updating unwritable cache $cache_file"
5380 echo "$ac_t""GSSAPI libraries not found" 1>&6
5382 if test "$GSSAPI_IMPL" = "Heimdal"
5384 cat >> confdefs.h <<\EOF
5385 #define HAVE_HEIMDAL 1
5389 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5390 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
5391 cat >> confdefs.h <<\EOF
5397 echo "configure: warning: GSS was requested but IMAP is not enabled" 1>&2
5402 if test x$need_gss = xyes; then
5411 # Check whether --with-ssl or --without-ssl was given.
5412 if test "${with_ssl+set}" = set; then
5414 if test "$with_ssl" != "no"
5416 if test "$need_socket" != "yes"; then
5417 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5420 if test "$with_ssl" != "yes"
5422 LDFLAGS="$LDFLAGS -L$withval/lib"
5423 CPPFLAGS="$CPPFLAGS -I$withval/include"
5427 echo $ac_n "checking for X509_new in -lcrypto""... $ac_c" 1>&6
5428 echo "configure:5429: checking for X509_new in -lcrypto" >&5
5429 ac_lib_var=`echo crypto'_'X509_new | sed 'y%./+-%__p_%'`
5430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 ac_save_LIBS="$LIBS"
5434 LIBS="-lcrypto $LIBS"
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 eval "ac_cv_lib_$ac_lib_var=yes"
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 eval "ac_cv_lib_$ac_lib_var=no"
5457 LIBS="$ac_save_LIBS"
5460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5461 echo "$ac_t""yes" 1>&6
5462 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5464 cat >> confdefs.h <<EOF
5465 #define $ac_tr_lib 1
5468 LIBS="-lcrypto $LIBS"
5471 echo "$ac_t""no" 1>&6
5472 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5475 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
5476 echo "configure:5477: checking for SSL_new in -lssl" >&5
5477 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
5478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 ac_save_LIBS="$LIBS"
5482 LIBS="-lssl -lcrypto $LIBS"
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5497 eval "ac_cv_lib_$ac_lib_var=yes"
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 eval "ac_cv_lib_$ac_lib_var=no"
5505 LIBS="$ac_save_LIBS"
5508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5510 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5512 cat >> confdefs.h <<EOF
5513 #define $ac_tr_lib 1
5519 echo "$ac_t""no" 1>&6
5520 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5524 for ac_func in RAND_status RAND_egd
5526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5527 echo "configure:5528: checking for $ac_func" >&5
5528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char $ac_func(); below. */
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5544 /* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 eval "ac_cv_func_$ac_func=yes"
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 eval "ac_cv_func_$ac_func=no"
5567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5570 cat >> confdefs.h <<EOF
5571 #define $ac_tr_func 1
5575 echo "$ac_t""no" 1>&6
5580 cat >> confdefs.h <<\EOF
5585 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
5586 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
5595 if test x$need_ssl = xyes; then
5603 # Check whether --with-gnutls or --without-gnutls was given.
5604 if test "${with_gnutls+set}" = set; then
5605 withval="$with_gnutls"
5606 if test "$need_ssl" = "yes"
5608 { echo "configure: error: In order to compile in GNU TLS support, you must first disable SSL support" 1>&2; exit 1; }
5610 if test "$with_gnutls" != "no"
5612 if test "$need_socket" != "yes"; then
5613 { echo "configure: error: GNU TLS support is only useful with POP or IMAP support" 1>&2; exit 1; }
5615 if test "$with_gnutls" != "yes"
5617 LDFLAGS="$LDFLAGS -L$withval/lib"
5618 CPPFLAGS="$CPPFLAGS -I$withval/include"
5622 echo $ac_n "checking for gnutls_init in -lgnutls""... $ac_c" 1>&6
5623 echo "configure:5624: checking for gnutls_init in -lgnutls" >&5
5624 ac_lib_var=`echo gnutls'_'gnutls_init | sed 'y%./+-%__p_%'`
5625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 ac_save_LIBS="$LIBS"
5629 LIBS="-lgnutls $LIBS"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5644 eval "ac_cv_lib_$ac_lib_var=yes"
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5649 eval "ac_cv_lib_$ac_lib_var=no"
5652 LIBS="$ac_save_LIBS"
5655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_tr_lib=HAVE_LIB`echo gnutls | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5659 cat >> confdefs.h <<EOF
5660 #define $ac_tr_lib 1
5663 LIBS="-lgnutls $LIBS"
5666 echo "$ac_t""no" 1>&6
5667 { echo "configure: error: Unable to find GNU TLS library" 1>&2; exit 1; }
5671 cat >> confdefs.h <<\EOF
5672 #define USE_GNUTLS 1
5676 #MUTTLIBS="$MUTTLIBS -lgnutls"
5677 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
5685 if test x$need_gnutls = xyes; then
5687 USE_GNUTLS_FALSE='#'
5693 # Check whether --with-nss or --without-nss was given.
5694 if test "${with_nss+set}" = set; then
5696 if test "$with_nss" != no
5698 if test "$need_socket" != "yes"; then
5699 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5702 if test "$with_nss" != "yes"
5704 LDFLAGS="$LDFLAGS -L$withval/lib"
5705 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
5708 cat >> confdefs.h <<\EOF
5712 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
5713 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
5714 MUTTLIBS="$MUTTLIBS -lnspr4"
5716 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
5723 # Check whether --with-sasl or --without-sasl was given.
5724 if test "${with_sasl+set}" = set; then
5725 withval="$with_sasl"
5727 if test "$need_socket" != "yes"
5729 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5732 if test "$with_sasl" != "no"
5734 if test "$with_sasl" != "yes"
5736 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
5737 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
5742 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
5743 echo "configure:5744: checking for sasl_client_init in -lsasl" >&5
5744 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
5745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 ac_save_LIBS="$LIBS"
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5756 char sasl_client_init();
5762 if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5764 eval "ac_cv_lib_$ac_lib_var=yes"
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5769 eval "ac_cv_lib_$ac_lib_var=no"
5772 LIBS="$ac_save_LIBS"
5775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_lib=HAVE_LIB`echo sasl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5779 cat >> confdefs.h <<EOF
5780 #define $ac_tr_lib 1
5786 echo "$ac_t""no" 1>&6
5787 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5791 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5792 MUTTLIBS="$MUTTLIBS -lsasl"
5794 cat >> confdefs.h <<\EOF
5805 if test x$need_sasl = xyes; then
5813 # Check whether --with-sasl2 or --without-sasl2 was given.
5814 if test "${with_sasl2+set}" = set; then
5815 withval="$with_sasl2"
5817 if test "$need_socket" != "yes"
5819 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5822 if test "$with_sasl2" != "no"
5824 if test "$with_sasl2" != "yes"
5826 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
5827 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
5832 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
5833 echo "configure:5834: checking for sasl_client_init in -lsasl2" >&5
5834 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'`
5835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5838 ac_save_LIBS="$LIBS"
5839 LIBS="-lsasl2 $LIBS"
5840 cat > conftest.$ac_ext <<EOF
5841 #line 5842 "configure"
5842 #include "confdefs.h"
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5846 char sasl_client_init();
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5854 eval "ac_cv_lib_$ac_lib_var=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_lib_$ac_lib_var=no"
5862 LIBS="$ac_save_LIBS"
5865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_lib=HAVE_LIB`echo sasl2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5869 cat >> confdefs.h <<EOF
5870 #define $ac_tr_lib 1
5873 LIBS="-lsasl2 $LIBS"
5876 echo "$ac_t""no" 1>&6
5877 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5881 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5882 MUTTLIBS="$MUTTLIBS -lsasl2"
5884 cat >> confdefs.h <<\EOF
5888 cat >> confdefs.h <<\EOF
5899 if test x$need_sasl = xyes; then
5907 # Check whether --with-idn or --without-idn was given.
5908 if test "${with_idn+set}" = set; then
5911 if test "$with_idn" != "no" ; then
5912 if test "$with_idn" != "yes" ; then
5913 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
5914 LDFLAGS="$LDFLAGS -L$with_idn/lib"
5922 if test "x$with_idn" != "xno"; then
5923 echo $ac_n "checking for stringprep_check_version in -lidn""... $ac_c" 1>&6
5924 echo "configure:5925: checking for stringprep_check_version in -lidn" >&5
5925 ac_lib_var=`echo idn'_'stringprep_check_version | sed 'y%./+-%__p_%'`
5926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 ac_save_LIBS="$LIBS"
5931 cat > conftest.$ac_ext <<EOF
5932 #line 5933 "configure"
5933 #include "confdefs.h"
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5937 char stringprep_check_version();
5940 stringprep_check_version()
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_lib_$ac_lib_var=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_lib_$ac_lib_var=no"
5953 LIBS="$ac_save_LIBS"
5956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_lib=HAVE_LIB`echo idn | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5960 cat >> confdefs.h <<EOF
5961 #define $ac_tr_lib 1
5967 echo "$ac_t""no" 1>&6
5970 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
5972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_func" >&5
5974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func(); below. */
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5990 /* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6003 eval "ac_cv_func_$ac_func=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_func_$ac_func=no"
6013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_func 1
6021 echo "$ac_t""no" 1>&6
6025 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
6027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_func" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func(); below. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 eval "ac_cv_func_$ac_func=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 eval "ac_cv_func_$ac_func=no"
6068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6071 cat >> confdefs.h <<EOF
6072 #define $ac_tr_func 1
6076 echo "$ac_t""no" 1>&6
6080 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 eval "ac_cv_func_$ac_func=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6118 eval "ac_cv_func_$ac_func=no"
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_func 1
6131 echo "$ac_t""no" 1>&6
6137 if test "$need_md5" = "yes"
6139 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
6143 # Check whether --enable-debug or --disable-debug was given.
6144 if test "${enable_debug+set}" = set; then
6145 enableval="$enable_debug"
6146 if test x$enableval = xyes ; then
6147 cat >> confdefs.h <<\EOF
6156 # Check whether --enable-flock or --disable-flock was given.
6157 if test "${enable_flock+set}" = set; then
6158 enableval="$enable_flock"
6159 if test $enableval = yes; then
6160 cat >> confdefs.h <<\EOF
6169 # Check whether --enable-fcntl or --disable-fcntl was given.
6170 if test "${enable_fcntl+set}" = set; then
6171 enableval="$enable_fcntl"
6172 if test $enableval = no; then mutt_cv_fcntl=no; fi
6176 if test $mutt_cv_fcntl = yes; then
6177 cat >> confdefs.h <<\EOF
6183 mutt_cv_warnings=yes
6184 # Check whether --enable-warnings or --disable-warnings was given.
6185 if test "${enable_warnings+set}" = set; then
6186 enableval="$enable_warnings"
6187 if test $enableval = no; then
6193 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
6194 CFLAGS="-Wall -pedantic $CFLAGS"
6197 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
6198 if test "${enable_nfs_fix+set}" = set; then
6199 enableval="$enable_nfs_fix"
6200 if test x$enableval = xyes; then
6201 cat >> confdefs.h <<\EOF
6202 #define NFS_ATTRIBUTE_HACK 1
6209 # Check whether --enable-buffy-size or --disable-buffy-size was given.
6210 if test "${enable_buffy_size+set}" = set; then
6211 enableval="$enable_buffy_size"
6212 if test x$enableval = xyes; then
6213 cat >> confdefs.h <<\EOF
6214 #define BUFFY_SIZE 1
6221 # Check whether --enable-mailtool or --disable-mailtool was given.
6222 if test "${enable_mailtool+set}" = set; then
6223 enableval="$enable_mailtool"
6224 if test x$enableval = xyes; then
6225 cat >> confdefs.h <<\EOF
6226 #define SUN_ATTACHMENT 1
6233 # Check whether --enable-compressed or --disable-compressed was given.
6234 if test "${enable_compressed+set}" = set; then
6235 enableval="$enable_compressed"
6236 if test x$enableval = xyes; then
6237 cat >> confdefs.h <<\EOF
6238 #define USE_COMPRESSED 1
6245 # Check whether --enable-locales-fix or --disable-locales-fix was given.
6246 if test "${enable_locales_fix+set}" = set; then
6247 enableval="$enable_locales_fix"
6248 if test x$enableval = xyes; then
6249 cat >> confdefs.h <<\EOF
6250 #define LOCALES_HACK 1
6257 # Check whether --with-exec-shell or --without-exec-shell was given.
6258 if test "${with_exec_shell+set}" = set; then
6259 withval="$with_exec_shell"
6260 if test $withval != yes; then
6261 cat >> confdefs.h <<EOF
6262 #define EXECSHELL "$withval"
6266 cat >> confdefs.h <<EOF
6267 #define EXECSHELL "/bin/sh"
6272 cat >> confdefs.h <<EOF
6273 #define EXECSHELL "/bin/sh"
6279 # Check whether --enable-exact-address or --disable-exact-address was given.
6280 if test "${enable_exact_address+set}" = set; then
6281 enableval="$enable_exact_address"
6282 if test $enableval = yes; then
6283 cat >> confdefs.h <<\EOF
6284 #define EXACT_ADDRESS 1
6298 # Check whether --enable-iconv or --disable-iconv was given.
6299 if test "${enable_iconv+set}" = set; then
6300 enableval="$enable_iconv"
6301 if test x$enableval = xno ; then
6308 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6309 echo "configure:6310: checking for off_t" >&5
6310 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 #include <sys/types.h>
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6325 ac_cv_type_off_t=yes
6333 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6334 if test $ac_cv_type_off_t = no; then
6335 cat >> confdefs.h <<\EOF
6341 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6342 echo "configure:6343: checking for size_t" >&5
6343 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 #include <sys/types.h>
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6358 ac_cv_type_size_t=yes
6361 ac_cv_type_size_t=no
6366 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6367 if test $ac_cv_type_size_t = no; then
6368 cat >> confdefs.h <<\EOF
6369 #define size_t unsigned
6374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6375 # for constant arguments. Useless!
6376 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6377 echo "configure:6378: checking for working alloca.h" >&5
6378 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6386 char *p = alloca(2 * sizeof(int));
6389 if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6391 ac_cv_header_alloca_h=yes
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 ac_cv_header_alloca_h=no
6401 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6402 if test $ac_cv_header_alloca_h = yes; then
6403 cat >> confdefs.h <<\EOF
6404 #define HAVE_ALLOCA_H 1
6409 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6410 echo "configure:6411: checking for alloca" >&5
6411 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6419 # define alloca __builtin_alloca
6422 # include <malloc.h>
6423 # define alloca _alloca
6426 # include <alloca.h>
6431 # ifndef alloca /* predefined by HP cc +Olibcalls */
6440 char *p = (char *) alloca(1);
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 ac_cv_func_alloca_works=yes
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 ac_cv_func_alloca_works=no
6455 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6456 if test $ac_cv_func_alloca_works = yes; then
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_ALLOCA 1
6463 if test $ac_cv_func_alloca_works = no; then
6464 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6465 # that cause trouble. Some versions do not even contain alloca or
6466 # contain a buggy version. If you still want to use their alloca,
6467 # use ar to extract alloca.o from them instead of compiling alloca.c.
6468 ALLOCA=alloca.${ac_objext}
6469 cat >> confdefs.h <<\EOF
6474 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6475 echo "configure:6476: checking whether alloca needs Cray hooks" >&5
6476 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 #if defined(CRAY) && ! defined(CRAY2)
6489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 egrep "webecray" >/dev/null 2>&1; then
6501 echo "$ac_t""$ac_cv_os_cray" 1>&6
6502 if test $ac_cv_os_cray = yes; then
6503 for ac_func in _getb67 GETB67 getb67; do
6504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6505 echo "configure:6506: checking for $ac_func" >&5
6506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 /* System header to define __stub macros and hopefully few prototypes,
6513 which can conflict with char $ac_func(); below. */
6515 /* Override any gcc2 internal prototype to avoid an error. */
6516 /* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */
6522 /* The GNU C library defines this for functions which it implements
6523 to always fail with ENOSYS. Some functions are actually named
6524 something starting with __ and the normal name is an alias. */
6525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 eval "ac_cv_func_$ac_func=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_func_$ac_func=no"
6545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 cat >> confdefs.h <<EOF
6548 #define CRAY_STACKSEG_END $ac_func
6553 echo "$ac_t""no" 1>&6
6559 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6560 echo "configure:6561: checking stack direction for C alloca" >&5
6561 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 if test "$cross_compiling" = yes; then
6565 ac_cv_c_stack_direction=0
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 find_stack_direction ()
6572 static char *addr = 0;
6577 return find_stack_direction ();
6580 return (&dummy > addr) ? 1 : -1;
6584 exit (find_stack_direction() < 0);
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6589 ac_cv_c_stack_direction=1
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 ac_cv_c_stack_direction=-1
6601 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6602 cat >> confdefs.h <<EOF
6603 #define STACK_DIRECTION $ac_cv_c_stack_direction
6608 for ac_hdr in unistd.h
6610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6612 echo "configure:6613: checking for $ac_hdr" >&5
6613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6622 { (eval echo configure:6623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6624 if test -z "$ac_err"; then
6626 eval "ac_cv_header_$ac_safe=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_header_$ac_safe=no"
6636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6639 cat >> confdefs.h <<EOF
6640 #define $ac_tr_hdr 1
6644 echo "$ac_t""no" 1>&6
6648 for ac_func in getpagesize
6650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_func" >&5
6652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char $ac_func(); below. */
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6668 /* The GNU C library defines this for functions which it implements
6669 to always fail with ENOSYS. Some functions are actually named
6670 something starting with __ and the normal name is an alias. */
6671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 eval "ac_cv_func_$ac_func=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_func_$ac_func=no"
6691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6694 cat >> confdefs.h <<EOF
6695 #define $ac_tr_func 1
6699 echo "$ac_t""no" 1>&6
6703 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6704 echo "configure:6705: checking for working mmap" >&5
6705 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 if test "$cross_compiling" = yes; then
6709 ac_cv_func_mmap_fixed_mapped=no
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6715 /* Thanks to Mike Haertel and Jim Avera for this test.
6716 Here is a matrix of mmap possibilities:
6717 mmap private not fixed
6718 mmap private fixed at somewhere currently unmapped
6719 mmap private fixed at somewhere already mapped
6720 mmap shared not fixed
6721 mmap shared fixed at somewhere currently unmapped
6722 mmap shared fixed at somewhere already mapped
6723 For private mappings, we should verify that changes cannot be read()
6724 back from the file, nor mmap's back from the file at a different
6725 address. (There have been systems where private was not correctly
6726 implemented like the infamous i386 svr4.0, and systems where the
6727 VM page cache was not coherent with the filesystem buffer cache
6728 like early versions of FreeBSD and possibly contemporary NetBSD.)
6729 For shared mappings, we should conversely verify that changes get
6730 propogated back to all the places they're supposed to be.
6732 Grep wants private fixed already mapped.
6733 The main things grep needs to know about mmap are:
6734 * does it exist and is it safe to write into the mmap'd area
6735 * how to use it (BSD variants) */
6736 #include <sys/types.h>
6738 #include <sys/mman.h>
6740 /* This mess was copied from the GNU getpagesize.h. */
6741 #ifndef HAVE_GETPAGESIZE
6742 # ifdef HAVE_UNISTD_H
6743 # include <unistd.h>
6746 /* Assume that all systems that can run configure have sys/param.h. */
6747 # ifndef HAVE_SYS_PARAM_H
6748 # define HAVE_SYS_PARAM_H 1
6751 # ifdef _SC_PAGESIZE
6752 # define getpagesize() sysconf(_SC_PAGESIZE)
6753 # else /* no _SC_PAGESIZE */
6754 # ifdef HAVE_SYS_PARAM_H
6755 # include <sys/param.h>
6756 # ifdef EXEC_PAGESIZE
6757 # define getpagesize() EXEC_PAGESIZE
6758 # else /* no EXEC_PAGESIZE */
6760 # define getpagesize() NBPG * CLSIZE
6763 # endif /* no CLSIZE */
6764 # else /* no NBPG */
6766 # define getpagesize() NBPC
6767 # else /* no NBPC */
6769 # define getpagesize() PAGESIZE
6770 # endif /* PAGESIZE */
6771 # endif /* no NBPC */
6772 # endif /* no NBPG */
6773 # endif /* no EXEC_PAGESIZE */
6774 # else /* no HAVE_SYS_PARAM_H */
6775 # define getpagesize() 8192 /* punt totally */
6776 # endif /* no HAVE_SYS_PARAM_H */
6777 # endif /* no _SC_PAGESIZE */
6779 #endif /* no HAVE_GETPAGESIZE */
6782 extern "C" { void *malloc(unsigned); }
6790 char *data, *data2, *data3;
6794 pagesize = getpagesize();
6797 * First, make a file with some known garbage in it.
6799 data = malloc(pagesize);
6802 for (i = 0; i < pagesize; ++i)
6803 *(data + i) = rand();
6805 fd = creat("conftestmmap", 0600);
6808 if (write(fd, data, pagesize) != pagesize)
6813 * Next, try to mmap the file at a fixed address which
6814 * already has something else allocated at it. If we can,
6815 * also make sure that we see the same garbage.
6817 fd = open("conftestmmap", O_RDWR);
6820 data2 = malloc(2 * pagesize);
6823 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6824 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6825 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6827 for (i = 0; i < pagesize; ++i)
6828 if (*(data + i) != *(data2 + i))
6832 * Finally, make sure that changes to the mapped area
6833 * do not percolate back to the file as seen by read().
6834 * (This is a bug on some variants of i386 svr4.0.)
6836 for (i = 0; i < pagesize; ++i)
6837 *(data2 + i) = *(data2 + i) + 1;
6838 data3 = malloc(pagesize);
6841 if (read(fd, data3, pagesize) != pagesize)
6843 for (i = 0; i < pagesize; ++i)
6844 if (*(data + i) != *(data3 + i))
6847 unlink("conftestmmap");
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6854 ac_cv_func_mmap_fixed_mapped=yes
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 ac_cv_func_mmap_fixed_mapped=no
6866 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6868 cat >> confdefs.h <<\EOF
6875 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
6876 echo "configure:6877: checking whether we are using the GNU C Library 2.1 or newer" >&5
6877 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6884 #include <features.h>
6885 #ifdef __GNU_LIBRARY__
6886 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 egrep "Lucky GNU user" >/dev/null 2>&1; then
6895 ac_cv_gnu_library_2_1=yes
6898 ac_cv_gnu_library_2_1=no
6906 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
6908 GLIBC21="$ac_cv_gnu_library_2_1"
6912 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6913 stdlib.h string.h unistd.h sys/param.h
6915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6917 echo "configure:6918: checking for $ac_hdr" >&5
6918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6927 { (eval echo configure:6928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6929 if test -z "$ac_err"; then
6931 eval "ac_cv_header_$ac_safe=yes"
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 eval "ac_cv_header_$ac_safe=no"
6941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6944 cat >> confdefs.h <<EOF
6945 #define $ac_tr_hdr 1
6949 echo "$ac_t""no" 1>&6
6953 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6954 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6955 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6958 echo "configure:6959: checking for $ac_func" >&5
6959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6960 echo $ac_n "(cached) $ac_c" 1>&6
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 /* System header to define __stub macros and hopefully few prototypes,
6966 which can conflict with char $ac_func(); below. */
6968 /* Override any gcc2 internal prototype to avoid an error. */
6969 /* We use char because int might match the return type of a gcc2
6970 builtin and then its argument prototype would still apply. */
6975 /* The GNU C library defines this for functions which it implements
6976 to always fail with ENOSYS. Some functions are actually named
6977 something starting with __ and the normal name is an alias. */
6978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 eval "ac_cv_func_$ac_func=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 eval "ac_cv_func_$ac_func=no"
6998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7001 cat >> confdefs.h <<EOF
7002 #define $ac_tr_func 1
7006 echo "$ac_t""no" 1>&6
7013 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7014 if test "${with_libiconv_prefix+set}" = set; then
7015 withval="$with_libiconv_prefix"
7017 for dir in `echo "$withval" | tr : ' '`; do
7018 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7019 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7025 echo $ac_n "checking for iconv""... $ac_c" 1>&6
7026 echo "configure:7027: checking for iconv" >&5
7027 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7031 am_cv_func_iconv="no, consider installing GNU libiconv"
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7039 iconv_t cd = iconv_open("","");
7040 iconv(cd,NULL,NULL,NULL,NULL);
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7046 am_cv_func_iconv=yes
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7052 if test "$am_cv_func_iconv" != yes; then
7053 am_save_LIBS="$LIBS"
7054 LIBS="$LIBS -liconv"
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7061 iconv_t cd = iconv_open("","");
7062 iconv(cd,NULL,NULL,NULL,NULL);
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069 am_cv_func_iconv=yes
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7075 LIBS="$am_save_LIBS"
7080 echo "$ac_t""$am_cv_func_iconv" 1>&6
7081 if test "$am_cv_func_iconv" = yes; then
7082 cat >> confdefs.h <<\EOF
7083 #define HAVE_ICONV 1
7086 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
7087 echo "configure:7088: checking for iconv declaration" >&5
7088 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7102 #if defined(__STDC__) || defined(__cplusplus)
7103 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7112 if { (eval echo configure:7113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7114 am_cv_proto_iconv_arg1=""
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 am_cv_proto_iconv_arg1="const"
7122 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7125 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7126 echo "$ac_t""${ac_t:-
7127 }$am_cv_proto_iconv" 1>&6
7128 cat >> confdefs.h <<EOF
7129 #define ICONV_CONST $am_cv_proto_iconv_arg1
7134 if test "$am_cv_lib_iconv" = yes; then
7140 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
7141 echo "configure:7142: checking for nl_langinfo and CODESET" >&5
7142 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 #include <langinfo.h>
7150 char* cs = nl_langinfo(CODESET);
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 am_cv_langinfo_codeset=yes
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 am_cv_langinfo_codeset=no
7166 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
7167 if test $am_cv_langinfo_codeset = yes; then
7168 cat >> confdefs.h <<\EOF
7169 #define HAVE_LANGINFO_CODESET 1
7174 if test $ac_cv_header_locale_h = yes; then
7175 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7176 echo "configure:7177: checking for LC_MESSAGES" >&5
7177 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7188 if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7190 am_cv_val_LC_MESSAGES=yes
7192 echo "configure: failed program was:" >&5
7193 cat conftest.$ac_ext >&5
7195 am_cv_val_LC_MESSAGES=no
7200 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7201 if test $am_cv_val_LC_MESSAGES = yes; then
7202 cat >> confdefs.h <<\EOF
7203 #define HAVE_LC_MESSAGES 1
7208 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7209 echo "configure:7210: checking whether NLS is requested" >&5
7210 # Check whether --enable-nls or --disable-nls was given.
7211 if test "${enable_nls+set}" = set; then
7212 enableval="$enable_nls"
7218 echo "$ac_t""$USE_NLS" 1>&6
7221 BUILD_INCLUDED_LIBINTL=no
7222 USE_INCLUDED_LIBINTL=no
7225 if test "$USE_NLS" = "yes"; then
7226 cat >> confdefs.h <<\EOF
7227 #define ENABLE_NLS 1
7230 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7231 echo "configure:7232: checking whether included gettext is requested" >&5
7232 # Check whether --with-included-gettext or --without-included-gettext was given.
7233 if test "${with_included_gettext+set}" = set; then
7234 withval="$with_included_gettext"
7235 nls_cv_force_use_gnu_gettext=$withval
7237 nls_cv_force_use_gnu_gettext=no
7240 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7242 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7243 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7249 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7250 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7251 echo "configure:7252: checking for libintl.h" >&5
7252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 #include <libintl.h>
7260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7261 { (eval echo configure:7262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7263 if test -z "$ac_err"; then
7265 eval "ac_cv_header_$ac_safe=yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7271 eval "ac_cv_header_$ac_safe=no"
7275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7276 echo "$ac_t""yes" 1>&6
7277 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
7278 echo "configure:7279: checking for GNU gettext in libc" >&5
7279 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 #include <libintl.h>
7286 extern int _nl_msg_cat_cntr;
7288 bindtextdomain ("", "");
7289 return (int) gettext ("") + _nl_msg_cat_cntr
7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7294 gt_cv_func_gnugettext1_libc=yes
7296 echo "configure: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7299 gt_cv_func_gnugettext1_libc=no
7304 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
7306 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7307 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
7308 echo "configure:7309: checking for GNU gettext in libintl" >&5
7309 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 gt_save_LIBS="$LIBS"
7313 LIBS="$LIBS -lintl $LIBICONV"
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 #include <libintl.h>
7318 extern int _nl_msg_cat_cntr;
7320 bindtextdomain ("", "");
7321 return (int) gettext ("") + _nl_msg_cat_cntr
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326 gt_cv_func_gnugettext1_libintl=yes
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 gt_cv_func_gnugettext1_libintl=no
7334 LIBS="$gt_save_LIBS"
7337 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
7340 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7341 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7342 && test "$PACKAGE" != gettext; }; then
7343 cat >> confdefs.h <<\EOF
7344 #define HAVE_GETTEXT 1
7348 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7349 INTLLIBS="-lintl $LIBICONV"
7352 gt_save_LIBS="$LIBS"
7353 LIBS="$LIBS $INTLLIBS"
7354 for ac_func in dcgettext
7356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7357 echo "configure:7358: checking for $ac_func" >&5
7358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 /* System header to define __stub macros and hopefully few prototypes,
7365 which can conflict with char $ac_func(); below. */
7367 /* Override any gcc2 internal prototype to avoid an error. */
7368 /* We use char because int might match the return type of a gcc2
7369 builtin and then its argument prototype would still apply. */
7374 /* The GNU C library defines this for functions which it implements
7375 to always fail with ENOSYS. Some functions are actually named
7376 something starting with __ and the normal name is an alias. */
7377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 eval "ac_cv_func_$ac_func=yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 eval "ac_cv_func_$ac_func=no"
7397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7400 cat >> confdefs.h <<EOF
7401 #define $ac_tr_func 1
7405 echo "$ac_t""no" 1>&6
7409 LIBS="$gt_save_LIBS"
7411 # Extract the first word of "msgfmt", so it can be a program name with args.
7412 set dummy msgfmt; ac_word=$2
7413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_word" >&5
7415 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7420 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7424 for ac_dir in $PATH; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f $ac_dir/$ac_word; then
7427 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7428 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7434 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7438 MSGFMT="$ac_cv_path_MSGFMT"
7439 if test "$MSGFMT" != ":"; then
7440 echo "$ac_t""$MSGFMT" 1>&6
7442 echo "$ac_t""no" 1>&6
7445 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7446 set dummy gmsgfmt; ac_word=$2
7447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_word" >&5
7449 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7454 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7457 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7462 for ac_dir in $ac_dummy; do
7463 test -z "$ac_dir" && ac_dir=.
7464 if test -f $ac_dir/$ac_word; then
7465 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7470 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7474 GMSGFMT="$ac_cv_path_GMSGFMT"
7475 if test -n "$GMSGFMT"; then
7476 echo "$ac_t""$GMSGFMT" 1>&6
7478 echo "$ac_t""no" 1>&6
7482 # Extract the first word of "xgettext", so it can be a program name with args.
7483 set dummy xgettext; ac_word=$2
7484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_word" >&5
7486 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7491 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7495 for ac_dir in $PATH; do
7496 test -z "$ac_dir" && ac_dir=.
7497 if test -f $ac_dir/$ac_word; then
7498 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7499 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7505 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7509 XGETTEXT="$ac_cv_path_XGETTEXT"
7510 if test "$XGETTEXT" != ":"; then
7511 echo "$ac_t""$XGETTEXT" 1>&6
7513 echo "$ac_t""no" 1>&6
7521 echo "$ac_t""no" 1>&6
7525 if test "$CATOBJEXT" = "NONE"; then
7526 nls_cv_use_gnu_gettext=yes
7530 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7531 INTLOBJS="\$(GETTOBJS)"
7532 # Extract the first word of "msgfmt", so it can be a program name with args.
7533 set dummy msgfmt; ac_word=$2
7534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7535 echo "configure:7536: checking for $ac_word" >&5
7536 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7541 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7545 for ac_dir in $PATH; do
7546 test -z "$ac_dir" && ac_dir=.
7547 if test -f $ac_dir/$ac_word; then
7548 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7549 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7555 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7559 MSGFMT="$ac_cv_path_MSGFMT"
7560 if test "$MSGFMT" != ":"; then
7561 echo "$ac_t""$MSGFMT" 1>&6
7563 echo "$ac_t""no" 1>&6
7566 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7567 set dummy gmsgfmt; ac_word=$2
7568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_word" >&5
7570 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7575 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7578 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7583 for ac_dir in $ac_dummy; do
7584 test -z "$ac_dir" && ac_dir=.
7585 if test -f $ac_dir/$ac_word; then
7586 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7591 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7595 GMSGFMT="$ac_cv_path_GMSGFMT"
7596 if test -n "$GMSGFMT"; then
7597 echo "$ac_t""$GMSGFMT" 1>&6
7599 echo "$ac_t""no" 1>&6
7602 # Extract the first word of "xgettext", so it can be a program name with args.
7603 set dummy xgettext; ac_word=$2
7604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7605 echo "configure:7606: checking for $ac_word" >&5
7606 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7607 echo $ac_n "(cached) $ac_c" 1>&6
7611 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7615 for ac_dir in $PATH; do
7616 test -z "$ac_dir" && ac_dir=.
7617 if test -f $ac_dir/$ac_word; then
7618 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7619 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7625 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7629 XGETTEXT="$ac_cv_path_XGETTEXT"
7630 if test "$XGETTEXT" != ":"; then
7631 echo "$ac_t""$XGETTEXT" 1>&6
7633 echo "$ac_t""no" 1>&6
7637 BUILD_INCLUDED_LIBINTL=yes
7638 USE_INCLUDED_LIBINTL=yes
7640 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
7641 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7644 if test "$GMSGFMT" != ":"; then
7645 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
7648 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
7653 if test "$XGETTEXT" != ":"; then
7654 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
7657 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7667 if test "$PACKAGE" = gettext; then
7668 BUILD_INCLUDED_LIBINTL=yes
7671 for ac_prog in bison
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_word" >&5
7677 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 if test -n "$INTLBISON"; then
7681 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7685 for ac_dir in $ac_dummy; do
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/$ac_word; then
7688 ac_cv_prog_INTLBISON="$ac_prog"
7695 INTLBISON="$ac_cv_prog_INTLBISON"
7696 if test -n "$INTLBISON"; then
7697 echo "$ac_t""$INTLBISON" 1>&6
7699 echo "$ac_t""no" 1>&6
7702 test -n "$INTLBISON" && break
7705 if test -z "$INTLBISON"; then
7708 echo $ac_n "checking version of bison""... $ac_c" 1>&6
7709 echo "configure:7710: checking version of bison" >&5
7710 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7711 case $ac_prog_version in
7712 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7713 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7714 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7715 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7717 echo "$ac_t""$ac_prog_version" 1>&6
7719 if test $ac_verc_fail = yes; then
7723 for lang in $ALL_LINGUAS; do
7724 GMOFILES="$GMOFILES $lang.gmo"
7725 POFILES="$POFILES $lang.po"
7739 nls_cv_header_libgt=
7751 if test "x$CATOBJEXT" != "x"; then
7752 if test "x$ALL_LINGUAS" = "x"; then
7755 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7756 echo "configure:7757: checking for catalogs to be installed" >&5
7758 for presentlang in $ALL_LINGUAS; do
7760 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7761 # Use the presentlang catalog if desiredlang is
7762 # a. equal to presentlang, or
7763 # b. a variant of presentlang (because in this case,
7764 # presentlang can be used as a fallback for messages
7765 # which are not translated in the desiredlang catalog).
7766 case "$desiredlang" in
7767 "$presentlang"*) useit=yes;;
7770 if test $useit = yes; then
7771 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7774 LINGUAS=$NEW_LINGUAS
7775 echo "$ac_t""$LINGUAS" 1>&6
7778 if test -n "$LINGUAS"; then
7779 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7784 if test -n "$ac_aux_dir"; then
7785 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7787 if test -z "$MKINSTALLDIRS"; then
7788 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7792 INTL_LIBTOOL_SUFFIX_PREFIX=
7796 if test "$am_cv_func_iconv" != "yes"
7798 echo "configure: warning: Configuring without iconv support. See INSTALL for details" 1>&2
7801 for ac_hdr in iconv.h
7803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_hdr" >&5
7806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7815 { (eval echo configure:7816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7817 if test -z "$ac_err"; then
7819 eval "ac_cv_header_$ac_safe=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_header_$ac_safe=no"
7829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7832 cat >> confdefs.h <<EOF
7833 #define $ac_tr_hdr 1
7835 echo $ac_n "checking whether iconv.h defines iconv_t""... $ac_c" 1>&6
7836 echo "configure:7837: checking whether iconv.h defines iconv_t" >&5
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7843 egrep "typedef.*iconv_t" >/dev/null 2>&1; then
7845 echo "$ac_t""yes" 1>&6
7846 cat >> confdefs.h <<\EOF
7847 #define HAVE_ICONV_T_DEF 1
7852 echo "$ac_t""no" 1>&6
7857 echo "$ac_t""no" 1>&6
7862 echo $ac_n "checking whether this iconv is good enough""... $ac_c" 1>&6
7863 echo "configure:7864: checking whether this iconv is good enough" >&5
7864 if eval "test \"`echo '$''{'mutt_cv_iconv_good'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 mutt_save_LIBS="$LIBS"
7868 LIBS="$LIBS $LIBICONV"
7869 if test "$cross_compiling" = yes; then
7870 mutt_cv_iconv_good=yes
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7883 ob = buf, obl = sizeof(buf);
7884 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
7885 (iconv(cd, 0, 0, &ob, &obl) ||
7886 !(ob == buf && obl == sizeof(buf)) ||
7891 if { (eval echo configure:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7893 mutt_cv_iconv_good=yes
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7898 mutt_cv_iconv_good=no
7903 LIBS="$mutt_save_LIBS"
7906 echo "$ac_t""$mutt_cv_iconv_good" 1>&6
7907 if test "$mutt_cv_iconv_good" = no; then
7908 { echo "configure: error: Try using libiconv instead" 1>&2; exit 1; }
7911 echo $ac_n "checking whether iconv is non-transcribing""... $ac_c" 1>&6
7912 echo "configure:7913: checking whether iconv is non-transcribing" >&5
7913 if eval "test \"`echo '$''{'mutt_cv_iconv_nontrans'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7916 mutt_save_LIBS="$LIBS"
7917 LIBS="$LIBS $LIBICONV"
7918 if test "$cross_compiling" = yes; then
7919 mutt_cv_iconv_nontrans=no
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7933 const char *s = "\304\211";
7935 ib = s, ibl = 2, ob = t, obl = 3;
7936 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
7937 iconv(cd, &ib, &ibl, &ob, &obl));
7941 if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7943 mutt_cv_iconv_nontrans=no
7945 echo "configure: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7948 mutt_cv_iconv_nontrans=yes
7953 LIBS="$mutt_save_LIBS"
7956 echo "$ac_t""$mutt_cv_iconv_nontrans" 1>&6
7957 if test "$mutt_cv_iconv_nontrans" = yes; then
7958 cat >> confdefs.h <<\EOF
7959 #define ICONV_NONTRANS 1
7963 cat >> confdefs.h <<\EOF
7964 #define ICONV_NONTRANS 0
7969 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
7971 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
7972 cat >> confdefs.h <<\EOF
7973 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
7977 for ac_func in bind_textdomain_codeset
7979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7980 echo "configure:7981: checking for $ac_func" >&5
7981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* System header to define __stub macros and hopefully few prototypes,
7988 which can conflict with char $ac_func(); below. */
7990 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7997 /* The GNU C library defines this for functions which it implements
7998 to always fail with ENOSYS. Some functions are actually named
7999 something starting with __ and the normal name is an alias. */
8000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010 eval "ac_cv_func_$ac_func=yes"
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 eval "ac_cv_func_$ac_func=no"
8020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8023 cat >> confdefs.h <<EOF
8024 #define $ac_tr_func 1
8028 echo "$ac_t""no" 1>&6
8037 for ac_hdr in wchar.h
8039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8041 echo "configure:8042: checking for $ac_hdr" >&5
8042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8051 { (eval echo configure:8052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8053 if test -z "$ac_err"; then
8055 eval "ac_cv_header_$ac_safe=yes"
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8061 eval "ac_cv_header_$ac_safe=no"
8065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8066 echo "$ac_t""yes" 1>&6
8067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8068 cat >> confdefs.h <<EOF
8069 #define $ac_tr_hdr 1
8073 echo "$ac_t""no" 1>&6
8078 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
8079 echo "configure:8080: checking for wchar_t" >&5
8080 if eval "test \"`echo '$''{'mutt_cv_wchar_t'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8094 wchar_t wc; return 0;
8097 if { (eval echo configure:8098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8109 echo "$ac_t""$mutt_cv_wchar_t" 1>&6
8111 if test "$mutt_cv_wchar_t" = no; then
8112 cat >> confdefs.h <<\EOF
8118 echo $ac_n "checking for wint_t""... $ac_c" 1>&6
8119 echo "configure:8120: checking for wint_t" >&5
8120 if eval "test \"`echo '$''{'mutt_cv_wint_t'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8134 wint_t wc; return 0;
8137 if { (eval echo configure:8138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8149 echo "$ac_t""$mutt_cv_wint_t" 1>&6
8151 if test "$mutt_cv_wint_t" = no; then
8152 cat >> confdefs.h <<\EOF
8158 for ac_hdr in wctype.h
8160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8162 echo "configure:8163: checking for $ac_hdr" >&5
8163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8172 { (eval echo configure:8173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8174 if test -z "$ac_err"; then
8176 eval "ac_cv_header_$ac_safe=yes"
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 eval "ac_cv_header_$ac_safe=no"
8186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8189 cat >> confdefs.h <<EOF
8190 #define $ac_tr_hdr 1
8194 echo "$ac_t""no" 1>&6
8198 for ac_func in iswalnum iswalpha iswcntrl iswdigit
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func(); below. */
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 eval "ac_cv_func_$ac_func=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_func_$ac_func=no"
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_func 1
8249 echo "$ac_t""no" 1>&6
8253 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
8255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8256 echo "configure:8257: checking for $ac_func" >&5
8257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8260 cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 /* System header to define __stub macros and hopefully few prototypes,
8264 which can conflict with char $ac_func(); below. */
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8273 /* The GNU C library defines this for functions which it implements
8274 to always fail with ENOSYS. Some functions are actually named
8275 something starting with __ and the normal name is an alias. */
8276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286 eval "ac_cv_func_$ac_func=yes"
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 eval "ac_cv_func_$ac_func=no"
8296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8299 cat >> confdefs.h <<EOF
8300 #define $ac_tr_func 1
8304 echo "$ac_t""no" 1>&6
8308 for ac_func in iswxdigit towupper towlower
8310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8311 echo "configure:8312: checking for $ac_func" >&5
8312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* System header to define __stub macros and hopefully few prototypes,
8319 which can conflict with char $ac_func(); below. */
8321 /* Override any gcc2 internal prototype to avoid an error. */
8322 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339 if { (eval echo configure:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8341 eval "ac_cv_func_$ac_func=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 eval "ac_cv_func_$ac_func=no"
8351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8354 cat >> confdefs.h <<EOF
8355 #define $ac_tr_func 1
8359 echo "$ac_t""no" 1>&6
8364 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8365 echo "configure:8366: checking for mbstate_t" >&5
8366 if eval "test \"`echo '$''{'mutt_cv_mbstate_t'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8380 mbstate_t s; return 0;
8383 if { (eval echo configure:8384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8385 mutt_cv_mbstate_t=yes
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 mutt_cv_mbstate_t=no
8395 echo "$ac_t""$mutt_cv_mbstate_t" 1>&6
8397 if test "$mutt_cv_mbstate_t" = no; then
8398 cat >> confdefs.h <<\EOF
8399 #define mbstate_t int
8405 # Check whether --with-wc-funcs or --without-wc-funcs was given.
8406 if test "${with_wc_funcs+set}" = set; then
8407 withval="$with_wc_funcs"
8412 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
8413 echo $ac_n "checking for wchar_t functions""... $ac_c" 1>&6
8414 echo "configure:8415: checking for wchar_t functions" >&5
8415 if eval "test \"`echo '$''{'mutt_cv_wc_funcs'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8423 #define _XOPEN_SOURCE 1
8426 #ifdef HAVE_WCTYPE_H
8433 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
8434 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8439 mutt_cv_wc_funcs=yes
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8447 echo "$ac_t""$mutt_cv_wc_funcs" 1>&6
8448 wc_funcs=$mutt_cv_wc_funcs
8451 if test $wc_funcs = yes; then
8452 cat >> confdefs.h <<\EOF
8453 #define HAVE_WC_FUNCS 1
8458 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
8459 echo "configure:8460: checking for nl_langinfo and CODESET" >&5
8460 if eval "test \"`echo '$''{'mutt_cv_langinfo_codeset'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 #include <langinfo.h>
8468 char* cs = nl_langinfo(CODESET);
8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473 mutt_cv_langinfo_codeset=yes
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 mutt_cv_langinfo_codeset=no
8483 echo "$ac_t""$mutt_cv_langinfo_codeset" 1>&6
8484 if test $mutt_cv_langinfo_codeset = yes; then
8485 cat >> confdefs.h <<\EOF
8486 #define HAVE_LANGINFO_CODESET 1
8491 echo $ac_n "checking for nl_langinfo and YESEXPR""... $ac_c" 1>&6
8492 echo "configure:8493: checking for nl_langinfo and YESEXPR" >&5
8493 if eval "test \"`echo '$''{'mutt_cv_langinfo_yesexpr'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 #include <langinfo.h>
8501 char* cs = nl_langinfo(YESEXPR);
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8506 mutt_cv_langinfo_yesexpr=yes
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8511 mutt_cv_langinfo_yesexpr=no
8516 echo "$ac_t""$mutt_cv_langinfo_yesexpr" 1>&6
8517 if test $mutt_cv_langinfo_yesexpr = yes; then
8518 cat >> confdefs.h <<\EOF
8519 #define HAVE_LANGINFO_YESEXPR 1
8525 # Check whether --with-libesmtp or --without-libesmtp was given.
8526 if test "${with_libesmtp+set}" = set; then
8527 withval="$with_libesmtp"
8528 if test "$with_libesmtp" != "no"
8530 mutt_libesmtp_check_path="$PATH"
8532 if test "$with_libesmtp" != "yes"
8534 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
8537 # Extract the first word of "libesmtp-config", so it can be a program name with args.
8538 set dummy libesmtp-config; ac_word=$2
8539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8540 echo "configure:8541: checking for $ac_word" >&5
8541 if eval "test \"`echo '$''{'ac_cv_path_mutt_libesmtp_config_path'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 case "$mutt_libesmtp_config_path" in
8546 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
8549 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a dos path.
8552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8553 ac_dummy="$mutt_libesmtp_check_path"
8554 for ac_dir in $ac_dummy; do
8555 test -z "$ac_dir" && ac_dir=.
8556 if test -f $ac_dir/$ac_word; then
8557 ac_cv_path_mutt_libesmtp_config_path="$ac_dir/$ac_word"
8562 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
8566 mutt_libesmtp_config_path="$ac_cv_path_mutt_libesmtp_config_path"
8567 if test -n "$mutt_libesmtp_config_path"; then
8568 echo "$ac_t""$mutt_libesmtp_config_path" 1>&6
8570 echo "$ac_t""no" 1>&6
8574 if test "$mutt_libesmtp_config_path" = "no"
8576 { echo "configure: error: libesmtp-config binary not found." 1>&2; exit 1; }
8579 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
8580 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
8582 temp_CFLAGS="$CFLAGS"
8583 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8584 ac_safe=`echo "libesmtp.h" | sed 'y%./+-%__p_%'`
8585 echo $ac_n "checking for libesmtp.h""... $ac_c" 1>&6
8586 echo "configure:8587: checking for libesmtp.h" >&5
8587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8588 echo $ac_n "(cached) $ac_c" 1>&6
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 #include <libesmtp.h>
8595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8596 { (eval echo configure:8597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8598 if test -z "$ac_err"; then
8600 eval "ac_cv_header_$ac_safe=yes"
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8606 eval "ac_cv_header_$ac_safe=no"
8610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8611 echo "$ac_t""yes" 1>&6
8614 echo "$ac_t""no" 1>&6
8615 { echo "configure: error: Could not find libesmtp.h" 1>&2; exit 1; }
8618 CFLAGS="$temp_CFLAGS"
8620 temp_CFLAGS="$CFLAGS"
8622 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8623 LIBS="$LIBS $mutt_libesmtp_libs"
8624 echo $ac_n "checking for smtp_create_session in -lesmtp""... $ac_c" 1>&6
8625 echo "configure:8626: checking for smtp_create_session in -lesmtp" >&5
8626 ac_lib_var=`echo esmtp'_'smtp_create_session | sed 'y%./+-%__p_%'`
8627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 ac_save_LIBS="$LIBS"
8631 LIBS="-lesmtp $LIBS"
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char smtp_create_session();
8641 smtp_create_session()
8644 if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8646 eval "ac_cv_lib_$ac_lib_var=yes"
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8651 eval "ac_cv_lib_$ac_lib_var=no"
8654 LIBS="$ac_save_LIBS"
8657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8658 echo "$ac_t""yes" 1>&6
8659 ac_tr_lib=HAVE_LIB`echo esmtp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8661 cat >> confdefs.h <<EOF
8662 #define $ac_tr_lib 1
8665 LIBS="-lesmtp $LIBS"
8668 echo "$ac_t""no" 1>&6
8669 { echo "configure: error: Could not find libesmtp" 1>&2; exit 1; }
8672 CFLAGS="$temp_CFLAGS"
8682 if test x$use_libesmtp = xyes; then
8683 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8684 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
8685 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
8687 cat >> confdefs.h <<\EOF
8688 #define USE_LIBESMTP 1
8694 cat > confcache <<\EOF
8695 # This file is a shell script that caches the results of configure
8696 # tests run on this system so they can be shared between configure
8697 # scripts and configure runs. It is not useful on other systems.
8698 # If it contains results you don't want to keep, you may remove or edit it.
8700 # By default, configure uses ./config.cache as the cache file,
8701 # creating it if it does not exist already. You can give configure
8702 # the --cache-file=FILE option to use a different cache file; that is
8703 # what configure does when it calls configure scripts in
8704 # subdirectories, so they share the cache.
8705 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8706 # config.status only pays attention to the cache file if you give it the
8707 # --recheck option to rerun configure.
8710 # The following way of writing the cache mishandles newlines in values,
8711 # but we know of no workaround that is simple, portable, and efficient.
8712 # So, don't put newlines in cache variables' values.
8713 # Ultrix sh set writes to stderr and can't be redirected directly,
8714 # and sets the high bit in the cache file unless we assign to the vars.
8716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8718 # `set' does not quote correctly, so add quotes (double-quote substitution
8719 # turns \\\\ into \\, and sed turns \\ into \).
8721 -e "s/'/'\\\\''/g" \
8722 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8725 # `set' quotes correctly as required by POSIX, so do not add quotes.
8726 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8729 if cmp -s $cache_file confcache; then
8732 if test -w $cache_file; then
8733 echo "updating cache $cache_file"
8734 cat confcache > $cache_file
8736 echo "not updating unwritable cache $cache_file"
8741 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8744 # Let make expand exec_prefix.
8745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8747 # Any assignment to VPATH causes Sun make to only execute
8748 # the first set of double-colon rules, so remove it if not needed.
8749 # If there is a colon in the path, we need to keep it.
8750 if test "x$srcdir" = x.; then
8751 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8754 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8756 DEFS=-DHAVE_CONFIG_H
8758 # Without the "./", some shells look in PATH for config.status.
8759 : ${CONFIG_STATUS=./config.status}
8761 echo creating $CONFIG_STATUS
8762 rm -f $CONFIG_STATUS
8763 cat > $CONFIG_STATUS <<EOF
8765 # Generated automatically by configure.
8766 # Run this file to recreate the current configuration.
8767 # This directory was configured as follows,
8768 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8770 # $0 $ac_configure_args
8772 # Compiler output produced by configure, useful for debugging
8773 # configure, is in ./config.log if it exists.
8775 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8778 case "\$ac_option" in
8779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8780 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8781 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8782 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8783 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8785 -help | --help | --hel | --he | --h)
8786 echo "\$ac_cs_usage"; exit 0 ;;
8787 *) echo "\$ac_cs_usage"; exit 1 ;;
8791 ac_given_srcdir=$srcdir
8792 ac_given_INSTALL="$INSTALL"
8794 trap 'rm -fr `echo "Makefile intl/Makefile m4/Makefile
8795 po/Makefile.in doc/Makefile contrib/Makefile
8799 doc/instdoc.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8801 cat >> $CONFIG_STATUS <<EOF
8803 # Protect against being on the right side of a sed subst in config.status.
8804 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8805 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8809 s%@CFLAGS@%$CFLAGS%g
8810 s%@CPPFLAGS@%$CPPFLAGS%g
8811 s%@CXXFLAGS@%$CXXFLAGS%g
8812 s%@FFLAGS@%$FFLAGS%g
8814 s%@LDFLAGS@%$LDFLAGS%g
8816 s%@exec_prefix@%$exec_prefix%g
8817 s%@prefix@%$prefix%g
8818 s%@program_transform_name@%$program_transform_name%g
8819 s%@bindir@%$bindir%g
8820 s%@sbindir@%$sbindir%g
8821 s%@libexecdir@%$libexecdir%g
8822 s%@datadir@%$datadir%g
8823 s%@sysconfdir@%$sysconfdir%g
8824 s%@sharedstatedir@%$sharedstatedir%g
8825 s%@localstatedir@%$localstatedir%g
8826 s%@libdir@%$libdir%g
8827 s%@includedir@%$includedir%g
8828 s%@oldincludedir@%$oldincludedir%g
8829 s%@infodir@%$infodir%g
8830 s%@mandir@%$mandir%g
8831 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8832 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8833 s%@INSTALL_DATA@%$INSTALL_DATA%g
8834 s%@PACKAGE@%$PACKAGE%g
8835 s%@VERSION@%$VERSION%g
8836 s%@ACLOCAL@%$ACLOCAL%g
8837 s%@AUTOCONF@%$AUTOCONF%g
8838 s%@AUTOMAKE@%$AUTOMAKE%g
8839 s%@AUTOHEADER@%$AUTOHEADER%g
8840 s%@MAKEINFO@%$MAKEINFO%g
8841 s%@SET_MAKE@%$SET_MAKE%g
8843 s%@host_alias@%$host_alias%g
8844 s%@host_cpu@%$host_cpu%g
8845 s%@host_vendor@%$host_vendor%g
8846 s%@host_os@%$host_os%g
8850 s%@ANSI2KNR@%$ANSI2KNR%g
8851 s%@RANLIB@%$RANLIB%g
8853 s%@build_alias@%$build_alias%g
8854 s%@build_cpu@%$build_cpu%g
8855 s%@build_vendor@%$build_vendor%g
8856 s%@build_os@%$build_os%g
8861 s%@DEBUGGER@%$DEBUGGER%g
8862 s%@SENDMAIL@%$SENDMAIL%g
8864 s%@PGPAUX_TARGET@%$PGPAUX_TARGET%g
8865 s%@SMIMEAUX_TARGET@%$SMIMEAUX_TARGET%g
8866 s%@SUBVERSION@%$SUBVERSION%g
8867 s%@ISPELL@%$ISPELL%g
8868 s%@LIBOBJS@%$LIBOBJS%g
8869 s%@DOTLOCK_TARGET@%$DOTLOCK_TARGET%g
8870 s%@docdir@%$docdir%g
8871 s%@DOTLOCK_GROUP@%$DOTLOCK_GROUP%g
8872 s%@DOTLOCK_PERMISSION@%$DOTLOCK_PERMISSION%g
8873 s%@BUILD_IMAP_TRUE@%$BUILD_IMAP_TRUE%g
8874 s%@BUILD_IMAP_FALSE@%$BUILD_IMAP_FALSE%g
8875 s%@KRB5CFGPATH@%$KRB5CFGPATH%g
8876 s%@USE_GSS_TRUE@%$USE_GSS_TRUE%g
8877 s%@USE_GSS_FALSE@%$USE_GSS_FALSE%g
8878 s%@USE_SSL_TRUE@%$USE_SSL_TRUE%g
8879 s%@USE_SSL_FALSE@%$USE_SSL_FALSE%g
8880 s%@USE_GNUTLS_TRUE@%$USE_GNUTLS_TRUE%g
8881 s%@USE_GNUTLS_FALSE@%$USE_GNUTLS_FALSE%g
8882 s%@USE_SASL_TRUE@%$USE_SASL_TRUE%g
8883 s%@USE_SASL_FALSE@%$USE_SASL_FALSE%g
8884 s%@MUTTLIBS@%$MUTTLIBS%g
8885 s%@MUTT_LIB_OBJECTS@%$MUTT_LIB_OBJECTS%g
8886 s%@LIBIMAP@%$LIBIMAP%g
8887 s%@LIBIMAPDEPS@%$LIBIMAPDEPS%g
8888 s%@ALLOCA@%$ALLOCA%g
8889 s%@GLIBC21@%$GLIBC21%g
8890 s%@LIBICONV@%$LIBICONV%g
8891 s%@USE_NLS@%$USE_NLS%g
8892 s%@MSGFMT@%$MSGFMT%g
8893 s%@GMSGFMT@%$GMSGFMT%g
8894 s%@XGETTEXT@%$XGETTEXT%g
8895 s%@INTLBISON@%$INTLBISON%g
8896 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8897 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8898 s%@CATALOGS@%$CATALOGS%g
8899 s%@CATOBJEXT@%$CATOBJEXT%g
8900 s%@GMOFILES@%$GMOFILES%g
8901 s%@INTLLIBS@%$INTLLIBS%g
8902 s%@INTLOBJS@%$INTLOBJS%g
8903 s%@POFILES@%$POFILES%g
8905 s%@DATADIRNAME@%$DATADIRNAME%g
8906 s%@INSTOBJEXT@%$INSTOBJEXT%g
8907 s%@GENCAT@%$GENCAT%g
8908 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8909 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8910 s%@mutt_libesmtp_config_path@%$mutt_libesmtp_config_path%g
8915 cat >> $CONFIG_STATUS <<\EOF
8917 # Split the substitutions into bite-sized pieces for seds with
8918 # small command number limits, like on Digital OSF/1 and HP-UX.
8919 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8920 ac_file=1 # Number of current file.
8921 ac_beg=1 # First line for current file.
8922 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8925 while $ac_more_lines; do
8926 if test $ac_beg -gt 1; then
8927 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8929 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8931 if test ! -s conftest.s$ac_file; then
8933 rm -f conftest.s$ac_file
8935 if test -z "$ac_sed_cmds"; then
8936 ac_sed_cmds="sed -f conftest.s$ac_file"
8938 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8940 ac_file=`expr $ac_file + 1`
8942 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8945 if test -z "$ac_sed_cmds"; then
8950 cat >> $CONFIG_STATUS <<EOF
8952 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile m4/Makefile
8953 po/Makefile.in doc/Makefile contrib/Makefile
8959 cat >> $CONFIG_STATUS <<\EOF
8960 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8963 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8964 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8965 *) ac_file_in="${ac_file}.in" ;;
8968 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8970 # Remove last slash and all that follows it. Not all systems have dirname.
8971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8973 # The file is in a subdirectory.
8974 test ! -d "$ac_dir" && mkdir "$ac_dir"
8975 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8976 # A "../" for each directory in $ac_dir_suffix.
8977 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8979 ac_dir_suffix= ac_dots=
8982 case "$ac_given_srcdir" in
8984 if test -z "$ac_dots"; then top_srcdir=.
8985 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8986 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8988 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8989 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8992 case "$ac_given_INSTALL" in
8993 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8994 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8997 echo creating "$ac_file"
8999 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9001 *Makefile*) ac_comsub="1i\\
9002 # $configure_input" ;;
9006 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9008 s%@configure_input@%$configure_input%g
9009 s%@srcdir@%$srcdir%g
9010 s%@top_srcdir@%$top_srcdir%g
9011 s%@INSTALL@%$INSTALL%g
9012 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9016 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9017 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9019 # ac_d sets the value in "#define NAME VALUE" lines.
9020 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9021 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9024 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9025 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9026 ac_uB='\([ ]\)%\1#\2define\3'
9029 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9030 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9031 ac_eB='$%\1#\2define\3'
9035 if test "${CONFIG_HEADERS+set}" != set; then
9037 cat >> $CONFIG_STATUS <<EOF
9038 CONFIG_HEADERS="config.h"
9040 cat >> $CONFIG_STATUS <<\EOF
9042 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9045 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9046 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9047 *) ac_file_in="${ac_file}.in" ;;
9050 echo creating $ac_file
9052 rm -f conftest.frag conftest.in conftest.out
9053 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9054 cat $ac_file_inputs > conftest.in
9058 # Transform confdefs.h into a sed script conftest.vals that substitutes
9059 # the proper values into config.h.in to produce config.h. And first:
9060 # Protect against being on the right side of a sed subst in config.status.
9061 # Protect against being in an unquoted here document in config.status.
9063 cat > conftest.hdr <<\EOF
9066 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9070 sed -n -f conftest.hdr confdefs.h > conftest.vals
9073 # This sed command replaces #undef with comments. This is necessary, for
9074 # example, in the case of _POSIX_SOURCE, which is predefined and required
9075 # on some systems where configure will not decide to define it.
9076 cat >> conftest.vals <<\EOF
9077 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9080 # Break up conftest.vals because some shells have a limit on
9081 # the size of here documents, and old seds have small limits too.
9086 ac_lines=`grep -c . conftest.vals`
9087 # grep -c gives empty output for an empty file on some AIX systems.
9088 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9089 # Write a limited-size here document to conftest.frag.
9090 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9091 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9093 sed -f conftest.frag conftest.in > conftest.out
9095 mv conftest.out conftest.in
9097 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9099 mv conftest.tail conftest.vals
9103 cat >> $CONFIG_STATUS <<\EOF
9104 rm -f conftest.frag conftest.h
9105 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9106 cat conftest.in >> conftest.h
9108 if cmp -s $ac_file conftest.h 2>/dev/null; then
9109 echo "$ac_file is unchanged"
9112 # Remove last slash and all that follows it. Not all systems have dirname.
9113 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9114 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9115 # The file is in a subdirectory.
9116 test ! -d "$ac_dir" && mkdir "$ac_dir"
9119 mv conftest.h $ac_file
9124 cat >> $CONFIG_STATUS <<EOF
9129 cat >> $CONFIG_STATUS <<\EOF
9130 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9131 for ac_file in $CONFIG_FILES; do
9132 # Support "outfile[:infile[:infile...]]"
9134 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9136 # PO directories have a Makefile.in generated from Makefile.in.in.
9137 case "$ac_file" in */Makefile.in)
9138 # Adjust a relative srcdir.
9139 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9140 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9141 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9142 # In autoconf-2.13 it is called $ac_given_srcdir.
9143 # In autoconf-2.50 it is called $srcdir.
9144 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9145 case "$ac_given_srcdir" in
9146 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9147 /*) top_srcdir="$ac_given_srcdir" ;;
9148 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9150 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9151 rm -f "$ac_dir/POTFILES"
9152 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9153 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9154 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9155 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9163 chmod +x $CONFIG_STATUS
9164 rm -fr confdefs* $ac_clean_files
9165 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1