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-inodesort Do NOT read files in maildir folders sorted by inode. "
65 --disable-warnings Turn off compiler warnings (not recommended)"
67 --enable-nfs-fix Work around an NFS with broken attributes caching "
69 --enable-buffy-size Use file size attribute instead of access time "
71 --enable-mailtool Enable Sun mailtool attachments support "
73 --enable-compressed Enable compressed folders support "
75 --enable-locales-fix The result of isprint() is unreliable "
77 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
79 --enable-exact-address Enable regeneration of email addresses"
81 --enable-hcache Enable header caching"
83 --without-gdbm Get rid of gdbm even if it is available "
85 --with-bdb[=DIR] Use BerkeleyDB4 if gdbm is not available "
87 --disable-iconv Disable iconv support"
89 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
91 --disable-nls Do not use Native Language Support"
93 --with-included-gettext Use the GNU gettext library included here"
95 --without-wc-funcs Do not use the system's wchar_t functions"
97 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
99 # Initialize some variables set by options.
100 # The variables have the same names as the options, with
101 # dashes changed to underlines.
103 cache_file=./config.cache
112 program_transform_name=s,x,x,
120 bindir='${exec_prefix}/bin'
121 sbindir='${exec_prefix}/sbin'
122 libexecdir='${exec_prefix}/libexec'
123 datadir='${prefix}/share'
124 sysconfdir='${prefix}/etc'
125 sharedstatedir='${prefix}/com'
126 localstatedir='${prefix}/var'
127 libdir='${exec_prefix}/lib'
128 includedir='${prefix}/include'
129 oldincludedir='/usr/include'
130 infodir='${prefix}/info'
131 mandir='${prefix}/man'
133 # Initialize some other variables.
136 SHELL=${CONFIG_SHELL-/bin/sh}
137 # Maximum number of lines to put in a shell here document.
144 # If the previous option needs an argument, assign it.
145 if test -n "$ac_prev"; then
146 eval "$ac_prev=\$ac_option"
152 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
156 # Accept the important Cygnus configure options, so we can diagnose typos.
160 -bindir | --bindir | --bindi | --bind | --bin | --bi)
162 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
163 bindir="$ac_optarg" ;;
165 -build | --build | --buil | --bui | --bu)
167 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
168 build="$ac_optarg" ;;
170 -cache-file | --cache-file | --cache-fil | --cache-fi \
171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
172 ac_prev=cache_file ;;
173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
175 cache_file="$ac_optarg" ;;
177 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
179 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
181 datadir="$ac_optarg" ;;
183 -disable-* | --disable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}=no" ;;
192 -enable-* | --enable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203 eval "enable_${ac_feature}='$ac_optarg'" ;;
205 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
206 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
207 | --exec | --exe | --ex)
208 ac_prev=exec_prefix ;;
209 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
210 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
211 | --exec=* | --exe=* | --ex=*)
212 exec_prefix="$ac_optarg" ;;
214 -gas | --gas | --ga | --g)
215 # Obsolete; use --with-gas.
218 -help | --help | --hel | --he)
219 # Omit some internal or obsolete options to make the list less imposing.
220 # This message is too long to be a string in the A/UX 3.1 sh.
222 Usage: configure [options] [host]
223 Options: [defaults in brackets after descriptions]
225 --cache-file=FILE cache test results in FILE
226 --help print this message
227 --no-create do not create output files
228 --quiet, --silent do not print \`checking...' messages
229 --version print the version of autoconf that created configure
230 Directory and file names:
231 --prefix=PREFIX install architecture-independent files in PREFIX
233 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
235 --bindir=DIR user executables in DIR [EPREFIX/bin]
236 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
237 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
238 --datadir=DIR read-only architecture-independent data in DIR
240 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
241 --sharedstatedir=DIR modifiable architecture-independent data in DIR
243 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
244 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
245 --includedir=DIR C header files in DIR [PREFIX/include]
246 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
247 --infodir=DIR info documentation in DIR [PREFIX/info]
248 --mandir=DIR man documentation in DIR [PREFIX/man]
249 --srcdir=DIR find the sources in DIR [configure dir or ..]
250 --program-prefix=PREFIX prepend PREFIX to installed program names
251 --program-suffix=SUFFIX append SUFFIX to installed program names
252 --program-transform-name=PROGRAM
253 run sed PROGRAM on installed program names
257 --build=BUILD configure for building on BUILD [BUILD=HOST]
258 --host=HOST configure for HOST [guessed]
259 --target=TARGET configure for TARGET [TARGET=HOST]
260 Features and packages:
261 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
262 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
263 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
264 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
265 --x-includes=DIR X include files are in DIR
266 --x-libraries=DIR X library files are in DIR
268 if test -n "$ac_help"; then
269 echo "--enable and --with options recognized:$ac_help"
273 -host | --host | --hos | --ho)
275 -host=* | --host=* | --hos=* | --ho=*)
278 -includedir | --includedir | --includedi | --included | --include \
279 | --includ | --inclu | --incl | --inc)
280 ac_prev=includedir ;;
281 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282 | --includ=* | --inclu=* | --incl=* | --inc=*)
283 includedir="$ac_optarg" ;;
285 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288 infodir="$ac_optarg" ;;
290 -libdir | --libdir | --libdi | --libd)
292 -libdir=* | --libdir=* | --libdi=* | --libd=*)
293 libdir="$ac_optarg" ;;
295 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296 | --libexe | --libex | --libe)
297 ac_prev=libexecdir ;;
298 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299 | --libexe=* | --libex=* | --libe=*)
300 libexecdir="$ac_optarg" ;;
302 -localstatedir | --localstatedir | --localstatedi | --localstated \
303 | --localstate | --localstat | --localsta | --localst \
304 | --locals | --local | --loca | --loc | --lo)
305 ac_prev=localstatedir ;;
306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
309 localstatedir="$ac_optarg" ;;
311 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
314 mandir="$ac_optarg" ;;
317 # Obsolete; use --without-fp.
320 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330 | --oldin | --oldi | --old | --ol | --o)
331 ac_prev=oldincludedir ;;
332 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
335 oldincludedir="$ac_optarg" ;;
337 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
340 prefix="$ac_optarg" ;;
342 -program-prefix | --program-prefix | --program-prefi | --program-pref \
343 | --program-pre | --program-pr | --program-p)
344 ac_prev=program_prefix ;;
345 -program-prefix=* | --program-prefix=* | --program-prefi=* \
346 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
347 program_prefix="$ac_optarg" ;;
349 -program-suffix | --program-suffix | --program-suffi | --program-suff \
350 | --program-suf | --program-su | --program-s)
351 ac_prev=program_suffix ;;
352 -program-suffix=* | --program-suffix=* | --program-suffi=* \
353 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
354 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
364 -program-transform-name=* | --program-transform-name=* \
365 | --program-transform-nam=* | --program-transform-na=* \
366 | --program-transform-n=* | --program-transform-=* \
367 | --program-transform=* | --program-transfor=* \
368 | --program-transfo=* | --program-transf=* \
369 | --program-trans=* | --program-tran=* \
370 | --progr-tra=* | --program-tr=* | --program-t=*)
371 program_transform_name="$ac_optarg" ;;
373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374 | -silent | --silent | --silen | --sile | --sil)
377 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 sbindir="$ac_optarg" ;;
383 -sharedstatedir | --sharedstatedir | --sharedstatedi \
384 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385 | --sharedst | --shareds | --shared | --share | --shar \
387 ac_prev=sharedstatedir ;;
388 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 sharedstatedir="$ac_optarg" ;;
394 -site | --site | --sit)
396 -site=* | --site=* | --sit=*)
399 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
402 srcdir="$ac_optarg" ;;
404 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405 | --syscon | --sysco | --sysc | --sys | --sy)
406 ac_prev=sysconfdir ;;
407 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
409 sysconfdir="$ac_optarg" ;;
411 -target | --target | --targe | --targ | --tar | --ta | --t)
413 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
414 target="$ac_optarg" ;;
416 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 -version | --version | --versio | --versi | --vers)
420 echo "configure generated by autoconf version 2.13"
424 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
438 # Reject names that are not valid shell variable names.
439 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
440 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes="$ac_optarg" ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries="$ac_optarg" ;;
463 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
467 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
468 echo "configure: warning: $ac_option: invalid host type" 1>&2
470 if test "x$nonopt" != xNONE; then
471 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
479 if test -n "$ac_prev"; then
480 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
483 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
485 # File descriptor usage:
488 # 2 errors and warnings
489 # 3 some systems may open it to /dev/tty
490 # 4 used on the Kubota Titan
491 # 6 checking for... messages and results
492 # 5 compiler messages saved in config.log
493 if test "$silent" = yes; then
501 This file contains any messages produced by compilers while
502 running configure, to aid debugging if configure makes a mistake.
505 # Strip out --no-create and --no-recursion so they do not pile up.
506 # Also quote any args containing shell metacharacters.
511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
512 | --no-cr | --no-c) ;;
513 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
514 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
515 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
516 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
517 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
522 # Only set these to C if already set. These must not be set unconditionally
523 # because not all systems understand e.g. LANG=C (notably SCO).
524 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
525 # Non-C LC_CTYPE values break the ctype check.
526 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
527 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
528 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
529 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
532 rm -rf conftest* confdefs.h
533 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
536 # A filename unique to this package, relative to the directory that
537 # configure is in, which we can look for to find out if srcdir is correct.
538 ac_unique_file=mutt.h
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
558 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
561 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
563 # Prefer explicitly selected file to automatically selected ones.
564 if test -z "$CONFIG_SITE"; then
565 if test "x$prefix" != xNONE; then
566 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
568 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
571 for ac_site_file in $CONFIG_SITE; do
572 if test -r "$ac_site_file"; then
573 echo "loading site script $ac_site_file"
578 if test -r "$cache_file"; then
579 echo "loading cache $cache_file"
582 echo "creating cache $cache_file"
587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588 ac_cpp='$CPP $CPPFLAGS'
589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591 cross_compiling=$ac_cv_prog_cc_cross
595 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
596 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
597 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
604 ac_n= ac_c='\c' ac_t=
612 mutt_cv_version=`cat $srcdir/VERSION`
616 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
630 ac_config_guess=$ac_aux_dir/config.guess
631 ac_config_sub=$ac_aux_dir/config.sub
632 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
634 # Find a good install program. We prefer a C program (faster),
635 # so one script is as good as another. But avoid the broken or
636 # incompatible versions:
637 # SysV /etc/install, /usr/sbin/install
638 # SunOS /usr/etc/install
641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
644 # ./install, which can be erroneously created by make from ./install.sh.
645 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
646 echo "configure:647: checking for a BSD compatible install" >&5
647 if test -z "$INSTALL"; then
648 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
651 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
652 for ac_dir in $PATH; do
653 # Account for people who put trailing slashes in PATH elements.
655 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
657 # OSF1 and SCO ODT 3.0 have their own names for install.
658 # Don't use installbsd from OSF since it installs stuff as root
660 for ac_prog in ginstall scoinst install; do
661 if test -f $ac_dir/$ac_prog; then
662 if test $ac_prog = install &&
663 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
664 # AIX install. It has an incompatible calling convention.
667 ac_cv_path_install="$ac_dir/$ac_prog -c"
678 if test "${ac_cv_path_install+set}" = set; then
679 INSTALL="$ac_cv_path_install"
681 # As a last resort, use the slow shell script. We don't cache a
682 # path for INSTALL within a source directory, because that will
683 # break other packages using the cache if that directory is
684 # removed, or if the path is relative.
685 INSTALL="$ac_install_sh"
688 echo "$ac_t""$INSTALL" 1>&6
690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
691 # It thinks the first close brace ends the variable substitution.
692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
698 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
699 echo "configure:700: checking whether build environment is sane" >&5
702 echo timestamp > conftestfile
703 # Do `set' in a subshell so we don't clobber the current shell's
704 # arguments. Must try -L first in case configure is actually a
705 # symlink; some systems play weird games with the mod time of symlinks
706 # (eg FreeBSD returns the mod time of the symlink's containing
709 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
710 if test "$*" = "X"; then
712 set X `ls -t $srcdir/configure conftestfile`
714 if test "$*" != "X $srcdir/configure conftestfile" \
715 && test "$*" != "X conftestfile $srcdir/configure"; then
717 # If neither matched, then we have a broken ls. This can happen
718 # if, for instance, CONFIG_SHELL is bash and it inherits a
719 # broken ls alias from the environment. This has actually
720 # happened. Such a system could not be considered "sane".
721 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
722 alias in your environment" 1>&2; exit 1; }
725 test "$2" = conftestfile
731 { echo "configure: error: newly created file is older than distributed files!
732 Check your system clock" 1>&2; exit 1; }
735 echo "$ac_t""yes" 1>&6
736 if test "$program_transform_name" = s,x,x,; then
737 program_transform_name=
739 # Double any \ or $. echo might interpret backslashes.
740 cat <<\EOF_SED > conftestsed
741 s,\\,\\\\,g; s,\$,$$,g
743 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
746 test "$program_prefix" != NONE &&
747 program_transform_name="s,^,${program_prefix},; $program_transform_name"
748 # Use a double $ so make ignores it.
749 test "$program_suffix" != NONE &&
750 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
752 # sed with no file args requires a program.
753 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftestmake <<\EOF
763 @echo 'ac_maketemp="${MAKE}"'
765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
766 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
767 if test -n "$ac_maketemp"; then
768 eval ac_cv_prog_make_${ac_make}_set=yes
770 eval ac_cv_prog_make_${ac_make}_set=no
774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
775 echo "$ac_t""yes" 1>&6
778 echo "$ac_t""no" 1>&6
779 SET_MAKE="MAKE=${MAKE-make}"
785 VERSION=$mutt_cv_version
787 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
788 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
790 cat >> confdefs.h <<EOF
791 #define PACKAGE "$PACKAGE"
794 cat >> confdefs.h <<EOF
795 #define VERSION "$VERSION"
800 missing_dir=`cd $ac_aux_dir && pwd`
801 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
802 echo "configure:803: checking for working aclocal" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
808 echo "$ac_t""found" 1>&6
810 ACLOCAL="$missing_dir/missing aclocal"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
815 echo "configure:816: checking for working autoconf" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
821 echo "$ac_t""found" 1>&6
823 AUTOCONF="$missing_dir/missing autoconf"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking for working automake""... $ac_c" 1>&6
828 echo "configure:829: checking for working automake" >&5
829 # Run test in a subshell; some versions of sh will print an error if
830 # an executable is not found, even if stderr is redirected.
831 # Redirect stdin to placate older versions of autoconf. Sigh.
832 if (automake --version) < /dev/null > /dev/null 2>&1; then
834 echo "$ac_t""found" 1>&6
836 AUTOMAKE="$missing_dir/missing automake"
837 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
841 echo "configure:842: checking for working autoheader" >&5
842 # Run test in a subshell; some versions of sh will print an error if
843 # an executable is not found, even if stderr is redirected.
844 # Redirect stdin to placate older versions of autoconf. Sigh.
845 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
846 AUTOHEADER=autoheader
847 echo "$ac_t""found" 1>&6
849 AUTOHEADER="$missing_dir/missing autoheader"
850 echo "$ac_t""missing" 1>&6
853 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
854 echo "configure:855: checking for working makeinfo" >&5
855 # Run test in a subshell; some versions of sh will print an error if
856 # an executable is not found, even if stderr is redirected.
857 # Redirect stdin to placate older versions of autoconf. Sigh.
858 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
860 echo "$ac_t""found" 1>&6
862 MAKEINFO="$missing_dir/missing makeinfo"
863 echo "$ac_t""missing" 1>&6
870 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"
873 # Make sure we can run config.sub.
874 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
875 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
878 echo $ac_n "checking host system type""... $ac_c" 1>&6
879 echo "configure:880: checking host system type" >&5
882 case "$host_alias" in
886 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
887 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
889 *) host_alias=$nonopt ;;
893 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
894 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$host" 1>&6
900 echo $ac_n "checking for prefix""... $ac_c" 1>&6
901 echo "configure:902: checking for prefix" >&5
902 if test x$prefix = xNONE; then
903 mutt_cv_prefix=$ac_default_prefix
905 mutt_cv_prefix=$prefix
907 echo "$ac_t""$mutt_cv_prefix" 1>&6
909 # Extract the first word of "gcc", so it can be a program name with args.
910 set dummy gcc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$CC"; then
917 ac_cv_prog_CC="$CC" # Let the user override the test.
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
935 echo "$ac_t""no" 1>&6
938 if test -z "$CC"; then
939 # Extract the first word of "cc", so it can be a program name with args.
940 set dummy cc; ac_word=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 if test -n "$CC"; then
947 ac_cv_prog_CC="$CC" # Let the user override the test.
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
964 if test $ac_prog_rejected = yes; then
965 # We found a bogon in the path, so make sure we never use it.
966 set dummy $ac_cv_prog_CC
968 if test $# -gt 0; then
969 # We chose a different compiler from the bogus one.
970 # However, it has the same basename, so the bogon will be chosen
971 # first if we set CC to just the basename; use the full file name.
973 set dummy "$ac_dir/$ac_word" "$@"
981 if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
984 echo "$ac_t""no" 1>&6
987 if test -z "$CC"; then
990 # Extract the first word of "cl", so it can be a program name with args.
991 set dummy cl; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC="$CC" # Let the user override the test.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1021 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1024 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1029 ac_cpp='$CPP $CPPFLAGS'
1030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1032 cross_compiling=$ac_cv_prog_cc_cross
1034 cat > conftest.$ac_ext << EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1042 ac_cv_prog_cc_works=yes
1043 # If we can't run a trivial program, we are probably using a cross compiler.
1044 if (./conftest; exit) 2>/dev/null; then
1045 ac_cv_prog_cc_cross=no
1047 ac_cv_prog_cc_cross=yes
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1052 ac_cv_prog_cc_works=no
1056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1057 ac_cpp='$CPP $CPPFLAGS'
1058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1060 cross_compiling=$ac_cv_prog_cc_cross
1062 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1063 if test $ac_cv_prog_cc_works = no; then
1064 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1066 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1068 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1069 cross_compiling=$ac_cv_prog_cc_cross
1071 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether we are using GNU C" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.c <<EOF
1081 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1088 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1090 if test $ac_cv_prog_gcc = yes; then
1096 ac_test_CFLAGS="${CFLAGS+set}"
1097 ac_save_CFLAGS="$CFLAGS"
1099 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether ${CC-cc} accepts -g" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 echo 'void f(){}' > conftest.c
1105 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1114 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1115 if test "$ac_test_CFLAGS" = set; then
1116 CFLAGS="$ac_save_CFLAGS"
1117 elif test $ac_cv_prog_cc_g = yes; then
1118 if test "$GCC" = yes; then
1124 if test "$GCC" = yes; then
1132 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1133 echo "configure:1134: checking for strerror in -lcposix" >&5
1134 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 ac_save_LIBS="$LIBS"
1139 LIBS="-lcposix $LIBS"
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1143 /* Override any gcc2 internal prototype to avoid an error. */
1144 /* We use char because int might match the return type of a gcc2
1145 builtin and then its argument prototype would still apply. */
1152 if { (eval echo configure:1153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1154 eval "ac_cv_lib_$ac_lib_var=yes"
1156 echo "configure: failed program was:" >&5
1157 cat conftest.$ac_ext >&5
1159 eval "ac_cv_lib_$ac_lib_var=no"
1162 LIBS="$ac_save_LIBS"
1165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1166 echo "$ac_t""yes" 1>&6
1167 LIBS="$LIBS -lcposix"
1169 echo "$ac_t""no" 1>&6
1177 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1178 echo "configure:1179: checking for ${CC-cc} option to accept ANSI C" >&5
1179 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 am_cv_prog_cc_stdc=no
1184 # Don't try gcc -ansi; that turns off useful extensions and
1185 # breaks some systems' header files.
1186 # AIX -qlanglvl=ansi
1187 # Ultrix and OSF/1 -std1
1188 # HP-UX -Aa -D_HPUX_SOURCE
1189 # SVR4 -Xc -D__EXTENSIONS__
1190 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1192 CC="$ac_save_CC $ac_arg"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1198 #include <sys/types.h>
1199 #include <sys/stat.h>
1200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1201 struct buf { int x; };
1202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1203 static char *e (p, i)
1209 static char *f (char * (*g) (char **, int), char **p, ...)
1214 s = g (p, va_arg (v,int));
1218 int test (int i, double x);
1219 struct s1 {int (*f) (int a);};
1220 struct s2 {int (*f) (double a);};
1221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1231 if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 am_cv_prog_cc_stdc="$ac_arg"; break
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1244 if test -z "$am_cv_prog_cc_stdc"; then
1245 echo "$ac_t""none needed" 1>&6
1247 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1249 case "x$am_cv_prog_cc_stdc" in
1251 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1255 echo "configure:1256: checking how to run the C preprocessor" >&5
1256 # On Suns, sometimes $CPP names a directory.
1257 if test -n "$CPP" && test -d "$CPP"; then
1260 if test -z "$CPP"; then
1261 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 # This must be in double quotes, not single quotes, because CPP may get
1265 # substituted into the Makefile and "${CC-cc}" will confuse make.
1267 # On the NeXT, cc -E runs the code through the compiler's parser,
1268 # not just through cpp.
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 CPP="${CC-cc} -E -traditional-cpp"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1293 { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1295 if test -z "$ac_err"; then
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1302 CPP="${CC-cc} -nologo -E"
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310 { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1312 if test -z "$ac_err"; then
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1326 ac_cv_prog_CPP="$CPP"
1328 CPP="$ac_cv_prog_CPP"
1330 ac_cv_prog_CPP="$CPP"
1332 echo "$ac_t""$CPP" 1>&6
1336 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1337 echo "configure:1338: checking for function prototypes" >&5
1338 if test "$am_cv_prog_cc_stdc" != no; then
1339 echo "$ac_t""yes" 1>&6
1340 cat >> confdefs.h <<\EOF
1341 #define PROTOTYPES 1
1346 echo "$ac_t""no" 1>&6
1347 U=_ ANSI2KNR=./ansi2knr
1348 # Ensure some checks needed by ansi2knr itself.
1349 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1350 echo "configure:1351: checking for ANSI C header files" >&5
1351 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1365 if test -z "$ac_err"; then
1367 ac_cv_header_stdc=yes
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1373 ac_cv_header_stdc=no
1377 if test $ac_cv_header_stdc = yes; then
1378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1385 egrep "memchr" >/dev/null 2>&1; then
1389 ac_cv_header_stdc=no
1395 if test $ac_cv_header_stdc = yes; then
1396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "free" >/dev/null 2>&1; then
1407 ac_cv_header_stdc=no
1413 if test $ac_cv_header_stdc = yes; then
1414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1415 if test "$cross_compiling" = yes; then
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1422 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1423 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1425 int main () { int i; for (i = 0; i < 256; i++)
1426 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 ac_cv_header_stdc=no
1445 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1446 if test $ac_cv_header_stdc = yes; then
1447 cat >> confdefs.h <<\EOF
1448 #define STDC_HEADERS 1
1453 for ac_hdr in string.h
1455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_hdr" >&5
1458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1467 { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1469 if test -z "$ac_err"; then
1471 eval "ac_cv_header_$ac_safe=yes"
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 eval "ac_cv_header_$ac_safe=no"
1481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1484 cat >> confdefs.h <<EOF
1485 #define $ac_tr_hdr 1
1489 echo "$ac_t""no" 1>&6
1495 if test "x$U" != "x"; then
1496 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1498 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1499 echo "configure:1500: checking how to run the C preprocessor" >&5
1500 # On Suns, sometimes $CPP names a directory.
1501 if test -n "$CPP" && test -d "$CPP"; then
1504 if test -z "$CPP"; then
1505 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 # This must be in double quotes, not single quotes, because CPP may get
1509 # substituted into the Makefile and "${CC-cc}" will confuse make.
1511 # On the NeXT, cc -E runs the code through the compiler's parser,
1512 # not just through cpp.
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1520 { (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1522 if test -z "$ac_err"; then
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 CPP="${CC-cc} -E -traditional-cpp"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1539 if test -z "$ac_err"; then
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 CPP="${CC-cc} -nologo -E"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1570 ac_cv_prog_CPP="$CPP"
1572 CPP="$ac_cv_prog_CPP"
1574 ac_cv_prog_CPP="$CPP"
1576 echo "$ac_t""$CPP" 1>&6
1578 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1579 echo "configure:1580: checking whether ${MAKE-make} sets \${MAKE}" >&5
1580 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1581 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftestmake <<\EOF
1586 @echo 'ac_maketemp="${MAKE}"'
1588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1589 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1590 if test -n "$ac_maketemp"; then
1591 eval ac_cv_prog_make_${ac_make}_set=yes
1593 eval ac_cv_prog_make_${ac_make}_set=no
1597 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1598 echo "$ac_t""yes" 1>&6
1601 echo "$ac_t""no" 1>&6
1602 SET_MAKE="MAKE=${MAKE-make}"
1605 # Find a good install program. We prefer a C program (faster),
1606 # so one script is as good as another. But avoid the broken or
1607 # incompatible versions:
1608 # SysV /etc/install, /usr/sbin/install
1609 # SunOS /usr/etc/install
1610 # IRIX /sbin/install
1612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1615 # ./install, which can be erroneously created by make from ./install.sh.
1616 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1617 echo "configure:1618: checking for a BSD compatible install" >&5
1618 if test -z "$INSTALL"; then
1619 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1623 for ac_dir in $PATH; do
1624 # Account for people who put trailing slashes in PATH elements.
1626 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1628 # OSF1 and SCO ODT 3.0 have their own names for install.
1629 # Don't use installbsd from OSF since it installs stuff as root
1631 for ac_prog in ginstall scoinst install; do
1632 if test -f $ac_dir/$ac_prog; then
1633 if test $ac_prog = install &&
1634 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1635 # AIX install. It has an incompatible calling convention.
1638 ac_cv_path_install="$ac_dir/$ac_prog -c"
1649 if test "${ac_cv_path_install+set}" = set; then
1650 INSTALL="$ac_cv_path_install"
1652 # As a last resort, use the slow shell script. We don't cache a
1653 # path for INSTALL within a source directory, because that will
1654 # break other packages using the cache if that directory is
1655 # removed, or if the path is relative.
1656 INSTALL="$ac_install_sh"
1659 echo "$ac_t""$INSTALL" 1>&6
1661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662 # It thinks the first close brace ends the variable substitution.
1663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1669 # Extract the first word of "ranlib", so it can be a program name with args.
1670 set dummy ranlib; ac_word=$2
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672 echo "configure:1673: checking for $ac_word" >&5
1673 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 if test -n "$RANLIB"; then
1677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 for ac_dir in $ac_dummy; do
1682 test -z "$ac_dir" && ac_dir=.
1683 if test -f $ac_dir/$ac_word; then
1684 ac_cv_prog_RANLIB="ranlib"
1689 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1692 RANLIB="$ac_cv_prog_RANLIB"
1693 if test -n "$RANLIB"; then
1694 echo "$ac_t""$RANLIB" 1>&6
1696 echo "$ac_t""no" 1>&6
1699 echo $ac_n "checking build system type""... $ac_c" 1>&6
1700 echo "configure:1701: checking build system type" >&5
1703 case "$build_alias" in
1706 NONE) build_alias=$host_alias ;;
1707 *) build_alias=$nonopt ;;
1711 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1712 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1713 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1714 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1715 echo "$ac_t""$build" 1>&6
1717 if test $host != $build; then
1718 ac_tool_prefix=${host_alias}-
1723 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1724 set dummy ${ac_tool_prefix}ar; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test -n "$AR"; then
1731 ac_cv_prog_AR="$AR" # Let the user override the test.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/$ac_word; then
1738 ac_cv_prog_AR="${ac_tool_prefix}ar"
1746 if test -n "$AR"; then
1747 echo "$ac_t""$AR" 1>&6
1749 echo "$ac_t""no" 1>&6
1753 if test -z "$ac_cv_prog_AR"; then
1754 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "ar", so it can be a program name with args.
1756 set dummy ar; ac_word=$2
1757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_word" >&5
1759 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test -n "$AR"; then
1763 ac_cv_prog_AR="$AR" # Let the user override the test.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1767 for ac_dir in $ac_dummy; do
1768 test -z "$ac_dir" && ac_dir=.
1769 if test -f $ac_dir/$ac_word; then
1775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1779 if test -n "$AR"; then
1780 echo "$ac_t""$AR" 1>&6
1782 echo "$ac_t""no" 1>&6
1791 echo $ac_n "checking for inline""... $ac_c" 1>&6
1792 echo "configure:1793: checking for inline" >&5
1793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1797 for ac_kw in inline __inline__ __inline; do
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1806 if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1808 ac_cv_c_inline=$ac_kw; break
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1818 echo "$ac_t""$ac_cv_c_inline" 1>&6
1819 case "$ac_cv_c_inline" in
1821 no) cat >> confdefs.h <<\EOF
1825 *) cat >> confdefs.h <<EOF
1826 #define inline $ac_cv_c_inline
1831 echo $ac_n "checking for working const""... $ac_c" 1>&6
1832 echo "configure:1833: checking for working const" >&5
1833 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 /* Ultrix mips cc rejects this. */
1843 typedef int charset[2]; const charset x;
1844 /* SunOS 4.1.1 cc rejects this. */
1845 char const *const *ccp;
1847 /* NEC SVR4.0.2 mips cc rejects this. */
1848 struct point {int x, y;};
1849 static struct point const zero = {0,0};
1850 /* AIX XL C 1.02.0.0 rejects this.
1851 It does not let you subtract one const X* pointer from another in an arm
1852 of an if-expression whose if-part is not a constant expression */
1853 const char *g = "string";
1854 ccp = &g + (g ? g-g : 0);
1855 /* HPUX 7.0 cc rejects these. */
1858 ccp = (char const *const *) p;
1859 { /* SCO 3.2v4 cc rejects this. */
1861 char const *s = 0 ? (char *) 0 : (char const *) 0;
1865 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1867 const int *foo = &x[0];
1870 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1871 typedef const int *iptr;
1875 { /* AIX XL C 1.02.0.0 rejects this saying
1876 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1877 struct s { int j; const int *ap[3]; };
1878 struct s *b; b->j = 5;
1880 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1886 if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1898 echo "$ac_t""$ac_cv_c_const" 1>&6
1899 if test $ac_cv_c_const = no; then
1900 cat >> confdefs.h <<\EOF
1907 # Extract the first word of "dbx", so it can be a program name with args.
1908 set dummy dbx; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1911 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1916 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1919 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1924 for ac_dir in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir=.
1926 if test -f $ac_dir/$ac_word; then
1927 ac_cv_path_DBX="$ac_dir/$ac_word"
1932 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1936 DBX="$ac_cv_path_DBX"
1937 if test -n "$DBX"; then
1938 echo "$ac_t""$DBX" 1>&6
1940 echo "$ac_t""no" 1>&6
1943 # Extract the first word of "gdb", so it can be a program name with args.
1944 set dummy gdb; ac_word=$2
1945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_word" >&5
1947 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1952 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1955 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_path_GDB="$ac_dir/$ac_word"
1968 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1972 GDB="$ac_cv_path_GDB"
1973 if test -n "$GDB"; then
1974 echo "$ac_t""$GDB" 1>&6
1976 echo "$ac_t""no" 1>&6
1979 # Extract the first word of "sdb", so it can be a program name with args.
1980 set dummy sdb; ac_word=$2
1981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_word" >&5
1983 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1988 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1991 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1996 for ac_dir in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_path_SDB="$ac_dir/$ac_word"
2004 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
2008 SDB="$ac_cv_path_SDB"
2009 if test -n "$SDB"; then
2010 echo "$ac_t""$SDB" 1>&6
2012 echo "$ac_t""no" 1>&6
2016 if test $GDB != no ; then
2018 elif test $DBX != no ; then
2020 elif test $SDB != no ; then
2028 # The following templates should be used with newer automakes
2029 # instead of acconfig.h
2031 #AH_TEMPLATE([sig_atomic_t],
2032 # [/* Define to `int' if <signal.h> doesn't define.])
2033 #AH_TEMPLATE([HAVE_START_COLOR],
2034 # [Define if you have start_color, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2036 # [Define if you have typeahead, as a function or macro.])
2037 #AH_TEMPLATE([HAVE_BKGDSET],
2038 # [Define if you have bkgdset, as a function or macro.])
2039 #AH_TEMPLATE([HAVE_CURS_SET],
2040 # [Define if you have curs_set, as a function or macro.])
2041 #AH_TEMPLATE([HAVE_META],
2042 # [Define if you have meta, as a function or macro.])
2043 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2044 # [Define if you have use_default_colors, as a function or macro.])
2045 #AH_TEMPLATE([HAVE_RESIZETERM],
2046 # [Define if you have resizeterm, as a function or macro.])
2047 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2048 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2049 # This define will have value `sig_atomic_t' or
2050 # `volatile sig_atomic_t' accordingly.])
2051 #AH_TEMPLATE([ICONV_NONTRANS],
2052 # [Define as 1 if iconv() only converts exactly and we should treat
2053 # all return values other than (size_t)(-1) as equivalent.])
2056 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2057 # Extract the first word of "sendmail", so it can be a program name with args.
2058 set dummy sendmail; ac_word=$2
2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_word" >&5
2061 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2066 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2069 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2073 ac_dummy="$PATH:$ac_aux_path_sendmail"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2082 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2086 SENDMAIL="$ac_cv_path_SENDMAIL"
2087 if test -n "$SENDMAIL"; then
2088 echo "$ac_t""$SENDMAIL" 1>&6
2090 echo "$ac_t""no" 1>&6
2093 cat >> confdefs.h <<EOF
2094 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2099 if test -f $srcdir/EXPORTABLE ; then
2104 # Check whether --enable-pgp or --disable-pgp was given.
2105 if test "${enable_pgp+set}" = set; then
2106 enableval="$enable_pgp"
2107 if test x$enableval = xno ; then
2114 if test x$have_pgp != xno ; then
2115 cat >> confdefs.h <<\EOF
2116 #define CRYPT_BACKEND_CLASSIC_PGP 1
2119 PGPAUX_TARGET="pgpring pgpewrap"
2120 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
2123 # Check whether --enable-smime or --disable-smime was given.
2124 if test "${enable_smime+set}" = set; then
2125 enableval="$enable_smime"
2126 if test x$enableval = xno ; then
2133 if test x$have_smime != xno ; then
2134 cat >> confdefs.h <<\EOF
2135 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2138 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
2139 SMIMEAUX_TARGET="smime_keys"
2142 # Check whether --with-mixmaster or --without-mixmaster was given.
2143 if test "${with_mixmaster+set}" = set; then
2144 withval="$with_mixmaster"
2145 if test -x "$withval" ; then
2146 MIXMASTER="$withval"
2148 MIXMASTER="mixmaster"
2150 OPS="$OPS \$(srcdir)/OPS.MIX"
2151 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2152 cat >> confdefs.h <<EOF
2153 #define MIXMASTER "$MIXMASTER"
2161 # We now require all OPS
2162 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2169 cat >> confdefs.h <<EOF
2170 #define SUBVERSION "$SUBVERSION"
2175 # Extract the first word of "ispell", so it can be a program name with args.
2176 set dummy ispell; ac_word=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2184 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2187 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 for ac_dir in $ac_dummy; do
2193 test -z "$ac_dir" && ac_dir=.
2194 if test -f $ac_dir/$ac_word; then
2195 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2200 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2204 ISPELL="$ac_cv_path_ISPELL"
2205 if test -n "$ISPELL"; then
2206 echo "$ac_t""$ISPELL" 1>&6
2208 echo "$ac_t""no" 1>&6
2211 if test $ISPELL != no; then
2212 cat >> confdefs.h <<EOF
2213 #define ISPELL "$ISPELL"
2218 # Check whether --with-slang or --without-slang was given.
2219 if test "${with_slang+set}" = set; then
2220 withval="$with_slang"
2221 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2222 echo "configure:2223: checking if this is a BSD system" >&5
2223 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test "$cross_compiling" = yes; then
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 #include <sys/param.h>
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2257 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2259 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2260 echo "configure:2261: checking for S-Lang" >&5
2261 if test $withval = yes; then
2262 if test -d $srcdir/../slang; then
2263 mutt_cv_slang=$srcdir/../slang/src
2264 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2265 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2267 if test -d $mutt_cv_prefix/include/slang; then
2268 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2269 elif test -d /usr/include/slang; then
2270 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2275 if test -f $withval/src/slang.h; then
2276 mutt_cv_slang=$withval/src
2277 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2278 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2280 mutt_cv_slang=$withval
2281 if test -d $withval/include/slang; then
2282 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2283 elif test -d $withval/include; then
2284 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2286 LDFLAGS="$LDFLAGS -L${withval}/lib"
2289 echo "$ac_t""$mutt_cv_slang" 1>&6
2290 if test $mutt_cv_bsdish = yes; then
2291 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2292 echo "configure:2293: checking for main in -ltermlib" >&5
2293 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_save_LIBS="$LIBS"
2298 LIBS="-ltermlib $LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 eval "ac_cv_lib_$ac_lib_var=yes"
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 eval "ac_cv_lib_$ac_lib_var=no"
2317 LIBS="$ac_save_LIBS"
2320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_lib 1
2328 LIBS="-ltermlib $LIBS"
2331 echo "$ac_t""no" 1>&6
2335 cat >> confdefs.h <<\EOF
2336 #define USE_SLANG_CURSES 1
2339 cat >> confdefs.h <<\EOF
2340 #define HAVE_COLOR 1
2343 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2346 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2347 echo "configure:2348: checking for SLtt_get_terminfo in -lslang" >&5
2348 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2353 LIBS="-lslang -lm $LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360 char SLtt_get_terminfo();
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 MUTTLIBS="$MUTTLIBS -lslang -lm"
2383 echo "$ac_t""no" 1>&6
2384 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2391 # Check whether --with-curses or --without-curses was given.
2392 if test "${with_curses+set}" = set; then
2393 withval="$with_curses"
2394 if test $withval != yes; then
2395 mutt_cv_curses=$withval
2397 if test x$mutt_cv_curses != x/usr; then
2398 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2399 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2404 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2405 echo "configure:2406: checking for initscr" >&5
2406 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 /* System header to define __stub macros and hopefully few prototypes,
2413 which can conflict with char initscr(); below. */
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2422 /* The GNU C library defines this for functions which it implements
2423 to always fail with ENOSYS. Some functions are actually named
2424 something starting with __ and the normal name is an alias. */
2425 #if defined (__stub_initscr) || defined (__stub___initscr)
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 eval "ac_cv_func_initscr=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_func_initscr=no"
2445 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2449 echo "$ac_t""no" 1>&6
2451 cf_ncurses="ncurses"
2452 for lib in ncurses ncursesw
2454 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2455 echo "configure:2456: checking for waddnwstr in -l$lib" >&5
2456 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 ac_save_LIBS="$LIBS"
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2476 eval "ac_cv_lib_$ac_lib_var=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 eval "ac_cv_lib_$ac_lib_var=no"
2484 LIBS="$ac_save_LIBS"
2487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 cf_ncurses="$lib"; break
2491 echo "$ac_t""no" 1>&6
2495 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2496 echo "configure:2497: checking for initscr in -l$cf_ncurses" >&5
2497 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_save_LIBS="$LIBS"
2502 LIBS="-l$cf_ncurses $LIBS"
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_lib_$ac_lib_var=no"
2525 LIBS="$ac_save_LIBS"
2528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2531 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2532 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2535 if test "$cf_ncurses" = ncursesw; then
2536 for ac_hdr in ncursesw/ncurses.h
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2570 cf_cv_ncurses_header="ncursesw/ncurses.h"
2572 echo "$ac_t""no" 1>&6
2577 for ac_hdr in ncurses.h
2579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_hdr 1
2611 cf_cv_ncurses_header="ncurses.h"
2613 echo "$ac_t""no" 1>&6
2619 echo "$ac_t""no" 1>&6
2621 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for initscr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char initscr(); below. */
2632 /* Override any gcc2 internal prototype to avoid an error. */
2633 /* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2639 /* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642 #if defined (__stub_initscr) || defined (__stub___initscr)
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652 eval "ac_cv_func_initscr=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2657 eval "ac_cv_func_initscr=no"
2662 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2666 echo "$ac_t""no" 1>&6
2668 case $host_os in #(vi
2670 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2671 echo "configure:2672: checking for tgoto in -lmytinfo" >&5
2672 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_save_LIBS="$LIBS"
2677 LIBS="-lmytinfo $LIBS"
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_lib_$ac_lib_var=no"
2700 LIBS="$ac_save_LIBS"
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 LIBS="-lmytinfo $LIBS"
2707 echo "$ac_t""no" 1>&6
2712 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2713 echo "configure:2714: checking for initscr in -lcur_colr" >&5
2714 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 ac_save_LIBS="$LIBS"
2719 LIBS="-lcur_colr $LIBS"
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2734 eval "ac_cv_lib_$ac_lib_var=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2739 eval "ac_cv_lib_$ac_lib_var=no"
2742 LIBS="$ac_save_LIBS"
2745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2746 echo "$ac_t""yes" 1>&6
2748 LIBS="-lcur_colr $LIBS"
2749 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2750 ac_cv_func_initscr=yes
2753 echo "$ac_t""no" 1>&6
2755 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2756 echo "configure:2757: checking for initscr in -lHcurses" >&5
2757 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_save_LIBS="$LIBS"
2762 LIBS="-lHcurses $LIBS"
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2777 eval "ac_cv_lib_$ac_lib_var=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_lib_$ac_lib_var=no"
2785 LIBS="$ac_save_LIBS"
2788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2791 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2792 LIBS="-lHcurses $LIBS"
2793 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2794 ac_cv_func_initscr=yes
2797 echo "$ac_t""no" 1>&6
2803 linux*) # Suse Linux does not follow /usr/lib convention
2808 if test ".$With5lib" != ".no" ; then
2809 if test -d /usr/5lib ; then
2811 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2812 LIBS="$LIBS -L/usr/5lib"
2816 if test ".$ac_cv_func_initscr" != .yes ; then
2817 cf_save_LIBS="$LIBS"
2821 # Check for library containing tgoto. Do this before curses library
2822 # because it may be needed to link the test-case for initscr.
2823 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2824 echo "configure:2825: checking for tgoto" >&5
2825 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* System header to define __stub macros and hopefully few prototypes,
2832 which can conflict with char tgoto(); below. */
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2841 /* The GNU C library defines this for functions which it implements
2842 to always fail with ENOSYS. Some functions are actually named
2843 something starting with __ and the normal name is an alias. */
2844 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2854 eval "ac_cv_func_tgoto=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_func_tgoto=no"
2864 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 cf_term_lib=predefined
2868 echo "$ac_t""no" 1>&6
2870 for cf_term_lib in termcap termlib unknown
2872 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2873 echo "configure:2874: checking for tgoto in -l$cf_term_lib" >&5
2874 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 ac_save_LIBS="$LIBS"
2879 LIBS="-l$cf_term_lib $LIBS"
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 /* Override any gcc2 internal prototype to avoid an error. */
2884 /* We use char because int might match the return type of a gcc2
2885 builtin and then its argument prototype would still apply. */
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2894 eval "ac_cv_lib_$ac_lib_var=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 eval "ac_cv_lib_$ac_lib_var=no"
2902 LIBS="$ac_save_LIBS"
2905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2909 echo "$ac_t""no" 1>&6
2917 # Check for library containing initscr
2918 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2919 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2921 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2922 echo "configure:2923: checking for initscr in -l$cf_curs_lib" >&5
2923 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_save_LIBS="$LIBS"
2928 LIBS="-l$cf_curs_lib $LIBS"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2943 eval "ac_cv_lib_$ac_lib_var=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 eval "ac_cv_lib_$ac_lib_var=no"
2951 LIBS="$ac_save_LIBS"
2954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2964 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2965 if test "$cf_term_lib" = unknown ; then
2966 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2967 echo "configure:2968: checking if we can link with $cf_curs_lib library" >&5
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 #include <${cf_cv_ncurses_header-curses.h}>
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2986 echo "$ac_t""$cf_result" 1>&6
2987 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2988 elif test "$cf_term_lib" != predefined ; then
2989 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2990 echo "configure:2991: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <${cf_cv_ncurses_header-curses.h}>
2996 initscr(); tgoto((char *)0, 0, 0);
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3007 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <${cf_cv_ncurses_header-curses.h}>
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3029 echo "$ac_t""$cf_result" 1>&6
3043 LIBS="$LIBS $MUTTLIBS"
3044 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3047 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3048 echo "configure:3049: checking for $ac_func declaration" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 #include <${cf_cv_ncurses_header-curses.h}>
3058 extern int ${ac_func}();
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <${cf_cv_ncurses_header-curses.h}>
3071 int (*p)() = ${ac_func};
3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3078 eval "ac_cv_func_decl_$ac_func=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_decl_$ac_func=no"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3092 eval "ac_cv_func_decl_$ac_func=yes"
3097 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3098 echo "$ac_t""yes" 1>&6
3101 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3103 cat >> confdefs.h <<EOF
3104 #define $ac_tr_func 1
3108 echo "$ac_t""no" 1>&6
3112 if test "$ac_cv_func_decl_start_color" = yes; then
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_COLOR 1
3118 if test "$ac_cv_func_decl_resizeterm" = yes; then
3119 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3126 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3127 echo "configure:3128: checking for ANSI C header files" >&5
3128 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3140 { (eval echo configure:3141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3142 if test -z "$ac_err"; then
3144 ac_cv_header_stdc=yes
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 ac_cv_header_stdc=no
3154 if test $ac_cv_header_stdc = yes; then
3155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 egrep "memchr" >/dev/null 2>&1; then
3166 ac_cv_header_stdc=no
3172 if test $ac_cv_header_stdc = yes; then
3173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 egrep "free" >/dev/null 2>&1; then
3184 ac_cv_header_stdc=no
3190 if test $ac_cv_header_stdc = yes; then
3191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3192 if test "$cross_compiling" = yes; then
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3199 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3200 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3202 int main () { int i; for (i = 0; i < 256; i++)
3203 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 ac_cv_header_stdc=no
3222 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3223 if test $ac_cv_header_stdc = yes; then
3224 cat >> confdefs.h <<\EOF
3225 #define STDC_HEADERS 1
3231 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_hdr" >&5
3236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 eval "ac_cv_header_$ac_safe=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_header_$ac_safe=no"
3259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3262 cat >> confdefs.h <<EOF
3263 #define $ac_tr_hdr 1
3267 echo "$ac_t""no" 1>&6
3271 for ac_hdr in sys/time.h sys/resource.h
3273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_hdr" >&5
3276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3287 if test -z "$ac_err"; then
3289 eval "ac_cv_header_$ac_safe=yes"
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3295 eval "ac_cv_header_$ac_safe=no"
3299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302 cat >> confdefs.h <<EOF
3303 #define $ac_tr_hdr 1
3307 echo "$ac_t""no" 1>&6
3311 for ac_hdr in unix.h
3313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_hdr" >&5
3316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3325 { (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3327 if test -z "$ac_err"; then
3329 eval "ac_cv_header_$ac_safe=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 eval "ac_cv_header_$ac_safe=no"
3339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3340 echo "$ac_t""yes" 1>&6
3341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3342 cat >> confdefs.h <<EOF
3343 #define $ac_tr_hdr 1
3347 echo "$ac_t""no" 1>&6
3352 for ac_func in setrlimit getsid isctype
3354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_func" >&5
3356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* System header to define __stub macros and hopefully few prototypes,
3363 which can conflict with char $ac_func(); below. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 /* We use char because int might match the return type of a gcc2
3367 builtin and then its argument prototype would still apply. */
3372 /* The GNU C library defines this for functions which it implements
3373 to always fail with ENOSYS. Some functions are actually named
3374 something starting with __ and the normal name is an alias. */
3375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3385 eval "ac_cv_func_$ac_func=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_func_$ac_func=no"
3395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3398 cat >> confdefs.h <<EOF
3399 #define $ac_tr_func 1
3403 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3409 echo "configure:3410: checking return type of signal handlers" >&5
3410 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3422 extern "C" void (*signal (int, void (*)(int)))(int);
3424 void (*signal ()) ();
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 ac_cv_type_signal=void
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 ac_cv_type_signal=int
3443 echo "$ac_t""$ac_cv_type_signal" 1>&6
3444 cat >> confdefs.h <<EOF
3445 #define RETSIGTYPE $ac_cv_type_signal
3450 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for sig_atomic_t in signal.h" >&5
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 egrep "sig_atomic_t" >/dev/null 2>&1; then
3461 ac_cv_type_sig_atomic_t=yes;
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3471 is_sig_atomic_t_volatile=yes;
3472 echo "$ac_t""yes, volatile" 1>&6
3477 is_sig_atomic_t_volatile=no;
3478 echo "$ac_t""yes, non volatile" 1>&6
3487 echo "$ac_t""no" 1>&6
3488 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3489 echo "configure:3490: checking for sig_atomic_t" >&5
3490 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3505 ac_cv_type_sig_atomic_t=yes
3508 ac_cv_type_sig_atomic_t=no
3513 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3514 if test $ac_cv_type_sig_atomic_t = no; then
3515 cat >> confdefs.h <<\EOF
3516 #define sig_atomic_t int
3521 is_sig_atomic_t_volatile=no
3526 if test $is_sig_atomic_t_volatile = 'yes'
3528 cat >> confdefs.h <<\EOF
3529 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3533 cat >> confdefs.h <<\EOF
3534 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3539 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3540 echo "configure:3541: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3541 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <sys/types.h>
3549 /* NetBSD declares sys_siglist in unistd.h. */
3550 #ifdef HAVE_UNISTD_H
3554 char *msg = *(sys_siglist + 1);
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 ac_cv_decl_sys_siglist=yes
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 ac_cv_decl_sys_siglist=no
3569 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3570 if test $ac_cv_decl_sys_siglist = yes; then
3571 cat >> confdefs.h <<\EOF
3572 #define SYS_SIGLIST_DECLARED 1
3578 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3579 echo "configure:3580: checking whether byte ordering is bigendian" >&5
3580 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 ac_cv_c_bigendian=unknown
3584 # See if sys/param.h defines the BYTE_ORDER macro.
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #include <sys/param.h>
3592 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 # It does; now see whether it defined to BIG_ENDIAN or not.
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <sys/types.h>
3604 #include <sys/param.h>
3607 #if BYTE_ORDER != BIG_ENDIAN
3612 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 ac_cv_c_bigendian=yes
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 ac_cv_c_bigendian=no
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3627 if test $ac_cv_c_bigendian = unknown; then
3628 if test "$cross_compiling" = yes; then
3629 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3635 /* Are we little or big endian? From Harbison&Steele. */
3639 char c[sizeof (long)];
3642 exit (u.c[sizeof (long) - 1] == 1);
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3647 ac_cv_c_bigendian=no
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 ac_cv_c_bigendian=yes
3660 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3661 if test $ac_cv_c_bigendian = yes; then
3662 cat >> confdefs.h <<\EOF
3663 #define WORDS_BIGENDIAN 1
3668 for ac_hdr in inttypes.h stdint.h
3670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_hdr" >&5
3673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3682 { (eval echo configure:3683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3684 if test -z "$ac_err"; then
3686 eval "ac_cv_header_$ac_safe=yes"
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 eval "ac_cv_header_$ac_safe=no"
3696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3699 cat >> confdefs.h <<EOF
3700 #define $ac_tr_hdr 1
3704 echo "$ac_t""no" 1>&6
3708 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3709 echo "configure:3710: checking for uint32_t" >&5
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3714 #include <sys/types.h>
3716 #include <inttypes.h>
3725 if (sizeof (uint32_t))
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 cat >> confdefs.h <<\EOF
3734 #define HAVE_UINT32_T 1
3737 echo "$ac_t""yes" 1>&6
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 echo "$ac_t""no" 1>&6
3747 echo $ac_n "checking size of int""... $ac_c" 1>&6
3748 echo "configure:3749: checking size of int" >&5
3749 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 if test "$cross_compiling" = yes; then
3753 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3759 #include <sys/types.h>
3762 FILE *f=fopen("conftestval", "w");
3764 fprintf(f, "%d\n", sizeof(int));
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3770 ac_cv_sizeof_int=`cat conftestval`
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3781 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3782 cat >> confdefs.h <<EOF
3783 #define SIZEOF_INT $ac_cv_sizeof_int
3787 echo $ac_n "checking size of long""... $ac_c" 1>&6
3788 echo "configure:3789: checking size of long" >&5
3789 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 if test "$cross_compiling" = yes; then
3793 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3799 #include <sys/types.h>
3802 FILE *f=fopen("conftestval", "w");
3804 fprintf(f, "%d\n", sizeof(long));
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3810 ac_cv_sizeof_long=`cat conftestval`
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3821 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3822 cat >> confdefs.h <<EOF
3823 #define SIZEOF_LONG $ac_cv_sizeof_long
3828 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3829 echo "configure:3830: checking for pid_t" >&5
3830 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 #include <sys/types.h>
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3845 ac_cv_type_pid_t=yes
3853 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3854 if test $ac_cv_type_pid_t = no; then
3855 cat >> confdefs.h <<\EOF
3862 for ac_func in fgetpos memmove setegid srand48 strerror
3864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_func" >&5
3866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func(); below. */
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3882 /* The GNU C library defines this for functions which it implements
3883 to always fail with ENOSYS. Some functions are actually named
3884 something starting with __ and the normal name is an alias. */
3885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 eval "ac_cv_func_$ac_func=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_func_$ac_func=no"
3905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3908 cat >> confdefs.h <<EOF
3909 #define $ac_tr_func 1
3913 echo "$ac_t""no" 1>&6
3918 for ac_func in strcasecmp strdup
3920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_func" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char $ac_func(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_$ac_func=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_$ac_func=no"
3961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964 cat >> confdefs.h <<EOF
3965 #define $ac_tr_func 1
3969 echo "$ac_t""no" 1>&6
3970 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3976 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3977 echo "configure:3978: checking for getopt" >&5
3978 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char getopt(); below. */
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3994 /* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997 #if defined (__stub_getopt) || defined (__stub___getopt)
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 eval "ac_cv_func_getopt=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 eval "ac_cv_func_getopt=no"
4017 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4024 if test $ac_cv_func_getopt = yes; then
4025 for ac_hdr in getopt.h
4027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4039 { (eval echo configure:4040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4041 if test -z "$ac_err"; then
4043 eval "ac_cv_header_$ac_safe=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_header_$ac_safe=no"
4053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h <<EOF
4057 #define $ac_tr_hdr 1
4061 echo "$ac_t""no" 1>&6
4069 for ac_func in snprintf
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4121 mutt_cv_snprintf=yes
4125 for ac_func in vsnprintf
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158 eval "ac_cv_func_$ac_func=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 eval "ac_cv_func_$ac_func=no"
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_func 1
4176 echo "$ac_t""no" 1>&6
4177 mutt_cv_snprintf=yes
4181 if test $mutt_cv_snprintf = yes; then
4182 LIBOBJS="$LIBOBJS snprintf.o"
4185 for ac_func in ftruncate
4187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4188 echo "configure:4189: checking for $ac_func" >&5
4189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* System header to define __stub macros and hopefully few prototypes,
4196 which can conflict with char $ac_func(); below. */
4198 /* Override any gcc2 internal prototype to avoid an error. */
4199 /* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4205 /* The GNU C library defines this for functions which it implements
4206 to always fail with ENOSYS. Some functions are actually named
4207 something starting with __ and the normal name is an alias. */
4208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 eval "ac_cv_func_$ac_func=yes"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 eval "ac_cv_func_$ac_func=no"
4228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4231 cat >> confdefs.h <<EOF
4232 #define $ac_tr_func 1
4236 echo "$ac_t""no" 1>&6
4237 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4238 echo "configure:4239: checking for chsize in -lx" >&5
4239 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS="$LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4274 cat >> confdefs.h <<EOF
4275 #define $ac_tr_lib 1
4281 echo "$ac_t""no" 1>&6
4288 for ac_func in strftime
4290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_func" >&5
4292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char $ac_func(); below. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4308 /* The GNU C library defines this for functions which it implements
4309 to always fail with ENOSYS. Some functions are actually named
4310 something starting with __ and the normal name is an alias. */
4311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4321 eval "ac_cv_func_$ac_func=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_func_$ac_func=no"
4331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4334 cat >> confdefs.h <<EOF
4335 #define $ac_tr_func 1
4339 echo "$ac_t""no" 1>&6
4340 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4341 echo "configure:4342: checking for strftime in -lintl" >&5
4342 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS="$LIBS"
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 eval "ac_cv_lib_$ac_lib_var=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4367 eval "ac_cv_lib_$ac_lib_var=no"
4370 LIBS="$ac_save_LIBS"
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4377 cat >> confdefs.h <<EOF
4378 #define $ac_tr_lib 1
4384 echo "$ac_t""no" 1>&6
4391 for ac_func in fchdir
4393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4394 echo "configure:4395: checking for $ac_func" >&5
4395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* System header to define __stub macros and hopefully few prototypes,
4402 which can conflict with char $ac_func(); below. */
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4411 /* The GNU C library defines this for functions which it implements
4412 to always fail with ENOSYS. Some functions are actually named
4413 something starting with __ and the normal name is an alias. */
4414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 eval "ac_cv_func_$ac_func=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 eval "ac_cv_func_$ac_func=no"
4434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4437 cat >> confdefs.h <<EOF
4438 #define $ac_tr_func 1
4442 echo "$ac_t""no" 1>&6
4448 # Check whether --with-regex or --without-regex was given.
4449 if test "${with_regex+set}" = set; then
4450 withval="$with_regex"
4453 for ac_func in regcomp
4455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_func" >&5
4457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* System header to define __stub macros and hopefully few prototypes,
4464 which can conflict with char $ac_func(); below. */
4466 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4473 /* The GNU C library defines this for functions which it implements
4474 to always fail with ENOSYS. Some functions are actually named
4475 something starting with __ and the normal name is an alias. */
4476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_func_$ac_func=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_func_$ac_func=no"
4496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_func 1
4504 echo "$ac_t""no" 1>&6
4512 if test $mutt_cv_regex = no ; then
4513 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4514 echo "configure:4515: checking whether your system's regexp library is completely broken" >&5
4515 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 if test "$cross_compiling" = yes; then
4519 mutt_cv_regex_broken=yes
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4527 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); }
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4531 mutt_cv_regex_broken=no
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 mutt_cv_regex_broken=yes
4543 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4544 if test $mutt_cv_regex_broken = yes ; then
4545 echo "Using the included GNU regex instead." >&6
4550 if test $mutt_cv_regex = yes; then
4551 cat >> confdefs.h <<\EOF
4552 #define USE_GNU_REGEX 1
4555 LIBOBJS="$LIBOBJS regex.o"
4559 # Check whether --with-homespool or --without-homespool was given.
4560 if test "${with_homespool+set}" = set; then
4561 withval="$with_homespool"
4562 with_homespool=${withval}
4565 if test x$with_homespool != x; then
4566 if test $with_homespool = yes; then
4567 with_homespool=mailbox
4569 cat >> confdefs.h <<EOF
4570 #define MAILPATH "$with_homespool"
4573 cat >> confdefs.h <<\EOF
4577 cat >> confdefs.h <<\EOF
4578 #define USE_DOTLOCK 1
4583 # Check whether --with-mailpath or --without-mailpath was given.
4584 if test "${with_mailpath+set}" = set; then
4585 withval="$with_mailpath"
4586 mutt_cv_mailpath=$withval
4588 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4589 echo "configure:4590: checking where new mail is stored" >&5
4590 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4594 if test -d /var/mail; then
4595 mutt_cv_mailpath=/var/mail
4596 elif test -d /var/spool/mail; then
4597 mutt_cv_mailpath=/var/spool/mail
4598 elif test -d /usr/spool/mail; then
4599 mutt_cv_mailpath=/usr/spool/mail
4600 elif test -d /usr/mail; then
4601 mutt_cv_mailpath=/usr/mail
4605 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4609 if test "$mutt_cv_mailpath" = no; then
4610 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4612 cat >> confdefs.h <<EOF
4613 #define MAILPATH "$mutt_cv_mailpath"
4617 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4618 echo "configure:4619: checking if $mutt_cv_mailpath is world writable" >&5
4619 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 if test "$cross_compiling" = yes; then
4623 mutt_cv_worldwrite=no
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 #include <sys/types.h>
4629 #include <sys/stat.h>
4631 int main (int argc, char **argv)
4635 stat ("$mutt_cv_mailpath", &s);
4636 if (s.st_mode & S_IWOTH) exit (0);
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4642 mutt_cv_worldwrite=yes
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 mutt_cv_worldwrite=no
4654 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4657 if test $mutt_cv_worldwrite = yes; then
4658 cat >> confdefs.h <<\EOF
4659 #define USE_DOTLOCK 1
4664 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4665 echo "configure:4666: checking if $mutt_cv_mailpath is group writable" >&5
4666 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 if test "$cross_compiling" = yes; then
4670 mutt_cv_groupwrite=no
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <sys/types.h>
4676 #include <sys/stat.h>
4678 int main (int argc, char **argv)
4682 stat ("$mutt_cv_mailpath", &s);
4683 if (s.st_mode & S_IWGRP) exit (0);
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4689 mutt_cv_groupwrite=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 mutt_cv_groupwrite=no
4701 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4703 if test $mutt_cv_groupwrite = yes; then
4704 cat >> confdefs.h <<\EOF
4705 #define USE_DOTLOCK 1
4708 cat >> confdefs.h <<\EOF
4709 #define USE_SETGID 1
4717 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4718 if test "${enable_external_dotlock+set}" = set; then
4719 enableval="$enable_external_dotlock"
4720 mutt_cv_external_dotlock="$enableval"
4724 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4725 || test "x$mutt_cv_external_dotlock" = "xyes"
4727 cat >> confdefs.h <<\EOF
4728 #define DL_STANDALONE 1
4731 DOTLOCK_TARGET="muttng_dotlock"
4733 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4739 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4740 echo "configure:4741: checking where to put the documentation" >&5
4741 # Check whether --with-docdir or --without-docdir was given.
4742 if test "${with_docdir+set}" = set; then
4743 withval="$with_docdir"
4744 mutt_cv_docdir=$withval
4746 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
4749 echo "$ac_t""$mutt_cv_docdir" 1>&6
4751 docdir=$mutt_cv_docdir
4754 if test x$mutt_cv_setgid = xyes; then
4755 DOTLOCK_GROUP='mail'
4756 DOTLOCK_PERMISSION=2755
4759 DOTLOCK_PERMISSION=755
4764 # Check whether --with-domain or --without-domain was given.
4765 if test "${with_domain+set}" = set; then
4766 withval="$with_domain"
4767 if test $withval != yes; then
4768 cat >> confdefs.h <<EOF
4769 #define DOMAIN "$withval"
4779 # Check whether --enable-pop or --disable-pop was given.
4780 if test "${enable_pop+set}" = set; then
4781 enableval="$enable_pop"
4782 if test x$enableval = xyes ; then
4783 cat >> confdefs.h <<\EOF
4787 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4796 # Check whether --enable-imap or --disable-imap was given.
4797 if test "${enable_imap+set}" = set; then
4798 enableval="$enable_imap"
4799 if test x$enableval = xyes ; then
4800 cat >> confdefs.h <<\EOF
4804 LIBIMAP="-Limap -limap"
4805 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4815 if test x$need_imap = xyes; then
4817 BUILD_IMAP_FALSE='#'
4823 # Check whether --enable-nntp or --disable-nntp was given.
4824 if test "${enable_nntp+set}" = set; then
4825 enableval="$enable_nntp"
4826 if test x$enableval = xyes ; then
4827 cat >> confdefs.h <<\EOF
4831 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"