Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-pgp              Disable PGP support
854   --disable-smime            Disable SMIME support
855   --enable-external-dotlock  Force use of an external dotlock program
856   --enable-pop               Enable POP3 support
857   --enable-imap              Enable IMAP support
858   --enable-nntp              Enable NNTP support
859   --enable-debug             Enable debugging support
860   --enable-flock             Use flock() to lock files
861   --disable-fcntl            Do NOT use fcntl() to lock files
862   --disable-inodesort        Do NOT read files in maildir folders sorted by inode.
863   --disable-warnings         Turn off compiler warnings (not recommended)
864   --enable-nfs-fix           Work around an NFS with broken attributes caching
865   --enable-buffy-size        Use file size attribute instead of access time
866   --enable-mailtool          Enable Sun mailtool attachments support
867   --enable-compressed        Enable compressed folders support
868   --enable-locales-fix       The result of isprint() is unreliable
869   --enable-exact-address     Enable regeneration of email addresses
870   --enable-hcache            Enable header caching
871   --disable-iconv            Disable iconv support
872   --disable-nls              Do not use Native Language Support
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-mixmaster=PATH    Include Mixmaster support
878   --with-slang=DIR         Use S-Lang instead of ncurses
879   --with-curses=DIR          Where ncurses is installed
880   --with-regex               Use the GNU regex library
881   --with-homespool=FILE    File in user's directory where new mail is spooled
882   --with-mailpath=DIR        Directory where spool mailboxes are located
883   --with-docdir=PATH         Specify where to put the documentation
884   --with-domain=DOMAIN       Specify your DNS domain name
885   --with-gss=PFX           Compile in GSSAPI authentication for IMAP
886   --with-ssl=PFX           Compile in SSL support for POP/IMAP
887   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
888   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
889   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
890   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
891   --with-idn=PFX           Use GNU libidn for domain names
892   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
893   --without-gdbm             Get rid of gdbm even if it is available
894   --with-bdb=DIR           Use BerkeleyDB4 if gdbm is not available
895   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
896   --with-included-gettext    Use the GNU gettext library included here
897   --without-wc-funcs         Do not use the system's wchar_t functions
898   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
899
900 Some influential environment variables:
901   CC          C compiler command
902   CFLAGS      C compiler flags
903   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
904               nonstandard directory <lib dir>
905   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
906               headers in a nonstandard directory <include dir>
907   CPP         C preprocessor
908
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
911
912 _ACEOF
913 fi
914
915 if test "$ac_init_help" = "recursive"; then
916   # If there are subdirs, report their specific --help.
917   ac_popdir=`pwd`
918   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919     test -d $ac_dir || continue
920     ac_builddir=.
921
922 if test "$ac_dir" != .; then
923   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924   # A "../" for each directory in $ac_dir_suffix.
925   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926 else
927   ac_dir_suffix= ac_top_builddir=
928 fi
929
930 case $srcdir in
931   .)  # No --srcdir option.  We are building in place.
932     ac_srcdir=.
933     if test -z "$ac_top_builddir"; then
934        ac_top_srcdir=.
935     else
936        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937     fi ;;
938   [\\/]* | ?:[\\/]* )  # Absolute path.
939     ac_srcdir=$srcdir$ac_dir_suffix;
940     ac_top_srcdir=$srcdir ;;
941   *) # Relative path.
942     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943     ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 esac
945 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
946 # absolute.
947 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
948 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
949 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
950 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
951
952     cd $ac_dir
953     # Check for guested configure; otherwise get Cygnus style configure.
954     if test -f $ac_srcdir/configure.gnu; then
955       echo
956       $SHELL $ac_srcdir/configure.gnu  --help=recursive
957     elif test -f $ac_srcdir/configure; then
958       echo
959       $SHELL $ac_srcdir/configure  --help=recursive
960     elif test -f $ac_srcdir/configure.ac ||
961            test -f $ac_srcdir/configure.in; then
962       echo
963       $ac_configure --help
964     else
965       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966     fi
967     cd $ac_popdir
968   done
969 fi
970
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
973   cat <<\_ACEOF
974
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980   exit 0
981 fi
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
986
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.57.  Invocation command line was
989
990   $ $0 $@
991
992 _ACEOF
993 {
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
998
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1007
1008 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1009 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1012 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1013 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1014 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1015
1016 _ASUNAME
1017
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1020 do
1021   IFS=$as_save_IFS
1022   test -z "$as_dir" && as_dir=.
1023   echo "PATH: $as_dir"
1024 done
1025
1026 } >&5
1027
1028 cat >&5 <<_ACEOF
1029
1030
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1034
1035 _ACEOF
1036
1037
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1049 do
1050   for ac_arg
1051   do
1052     case $ac_arg in
1053     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055     | -silent | --silent | --silen | --sile | --sil)
1056       continue ;;
1057     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059     esac
1060     case $ac_pass in
1061     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062     2)
1063       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064       if test $ac_must_keep_next = true; then
1065         ac_must_keep_next=false # Got value, back to normal.
1066       else
1067         case $ac_arg in
1068           *=* | --config-cache | -C | -disable-* | --disable-* \
1069           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071           | -with-* | --with-* | -without-* | --without-* | --x)
1072             case "$ac_configure_args0 " in
1073               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074             esac
1075             ;;
1076           -* ) ac_must_keep_next=true ;;
1077         esac
1078       fi
1079       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080       # Get rid of the leading space.
1081       ac_sep=" "
1082       ;;
1083     esac
1084   done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log.  We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095   # Save into config.log some information that might help in debugging.
1096   {
1097     echo
1098
1099     cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104     echo
1105     # The following way of writing the cache mishandles newlines in values,
1106 {
1107   (set) 2>&1 |
1108     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109     *ac_space=\ *)
1110       sed -n \
1111         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113       ;;
1114     *)
1115       sed -n \
1116         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117       ;;
1118     esac;
1119 }
1120     echo
1121
1122     cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127     echo
1128     for ac_var in $ac_subst_vars
1129     do
1130       eval ac_val=$`echo $ac_var`
1131       echo "$ac_var='"'"'$ac_val'"'"'"
1132     done | sort
1133     echo
1134
1135     if test -n "$ac_subst_files"; then
1136       cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141       echo
1142       for ac_var in $ac_subst_files
1143       do
1144         eval ac_val=$`echo $ac_var`
1145         echo "$ac_var='"'"'$ac_val'"'"'"
1146       done | sort
1147       echo
1148     fi
1149
1150     if test -s confdefs.h; then
1151       cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156       echo
1157       sed "/^$/d" confdefs.h | sort
1158       echo
1159     fi
1160     test "$ac_signal" != 0 &&
1161       echo "$as_me: caught signal $ac_signal"
1162     echo "$as_me: exit $exit_status"
1163   } >&5
1164   rm -f core core.* *.core &&
1165   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166     exit $exit_status
1167      ' 0
1168 for ac_signal in 1 2 13 15; do
1169   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1172
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1177
1178 # Predefined preprocessor variables.
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1203
1204
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208   if test "x$prefix" != xNONE; then
1209     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210   else
1211     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212   fi
1213 fi
1214 for ac_site_file in $CONFIG_SITE; do
1215   if test -r "$ac_site_file"; then
1216     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218     sed 's/^/| /' "$ac_site_file" >&5
1219     . "$ac_site_file"
1220   fi
1221 done
1222
1223 if test -r "$cache_file"; then
1224   # Some versions of bash will fail to source /dev/null (special
1225   # files actually), so we avoid doing that.
1226   if test -f "$cache_file"; then
1227     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229     case $cache_file in
1230       [\\/]* | ?:[\\/]* ) . $cache_file;;
1231       *)                      . ./$cache_file;;
1232     esac
1233   fi
1234 else
1235   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237   >$cache_file
1238 fi
1239
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246   eval ac_new_set=\$ac_env_${ac_var}_set
1247   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248   eval ac_new_val="\$ac_env_${ac_var}_value"
1249   case $ac_old_set,$ac_new_set in
1250     set,)
1251       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253       ac_cache_corrupted=: ;;
1254     ,set)
1255       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257       ac_cache_corrupted=: ;;
1258     ,);;
1259     *)
1260       if test "x$ac_old_val" != "x$ac_new_val"; then
1261         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1264 echo "$as_me:   former value:  $ac_old_val" >&2;}
1265         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1266 echo "$as_me:   current value: $ac_new_val" >&2;}
1267         ac_cache_corrupted=:
1268       fi;;
1269   esac
1270   # Pass precious variables to config.status.
1271   if test "$ac_new_set" = set; then
1272     case $ac_new_val in
1273     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275     *) ac_arg=$ac_var=$ac_new_val ;;
1276     esac
1277     case " $ac_configure_args " in
1278       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1279       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280     esac
1281   fi
1282 done
1283 if $ac_cache_corrupted; then
1284   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288    { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315           ac_config_headers="$ac_config_headers config.h"
1316
1317
1318 mutt_cv_version=`cat $srcdir/VERSION`
1319
1320
1321 am__api_version="1.7"
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324   if test -f $ac_dir/install-sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install-sh -c"
1327     break
1328   elif test -f $ac_dir/install.sh; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/install.sh -c"
1331     break
1332   elif test -f $ac_dir/shtool; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/shtool install -c"
1335     break
1336   fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Find a good install program.  We prefer a C program (faster),
1348 # so one script is as good as another.  But avoid the broken or
1349 # incompatible versions:
1350 # SysV /etc/install, /usr/sbin/install
1351 # SunOS /usr/etc/install
1352 # IRIX /sbin/install
1353 # AIX /bin/install
1354 # AmigaOS /C/install, which installs bootblocks on floppy discs
1355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358 # ./install, which can be erroneously created by make from ./install.sh.
1359 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1360 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1361 if test -z "$INSTALL"; then
1362 if test "${ac_cv_path_install+set}" = set; then
1363   echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 for as_dir in $PATH
1367 do
1368   IFS=$as_save_IFS
1369   test -z "$as_dir" && as_dir=.
1370   # Account for people who put trailing slashes in PATH elements.
1371 case $as_dir/ in
1372   ./ | .// | /cC/* | \
1373   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1374   /usr/ucb/* ) ;;
1375   *)
1376     # OSF1 and SCO ODT 3.0 have their own names for install.
1377     # Don't use installbsd from OSF since it installs stuff as root
1378     # by default.
1379     for ac_prog in ginstall scoinst install; do
1380       for ac_exec_ext in '' $ac_executable_extensions; do
1381         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1382           if test $ac_prog = install &&
1383             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384             # AIX install.  It has an incompatible calling convention.
1385             :
1386           elif test $ac_prog = install &&
1387             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388             # program-specific install script used by HP pwplus--don't use.
1389             :
1390           else
1391             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1392             break 3
1393           fi
1394         fi
1395       done
1396     done
1397     ;;
1398 esac
1399 done
1400
1401
1402 fi
1403   if test "${ac_cv_path_install+set}" = set; then
1404     INSTALL=$ac_cv_path_install
1405   else
1406     # As a last resort, use the slow shell script.  We don't cache a
1407     # path for INSTALL within a source directory, because that will
1408     # break other packages using the cache if that directory is
1409     # removed, or if the path is relative.
1410     INSTALL=$ac_install_sh
1411   fi
1412 fi
1413 echo "$as_me:$LINENO: result: $INSTALL" >&5
1414 echo "${ECHO_T}$INSTALL" >&6
1415
1416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1417 # It thinks the first close brace ends the variable substitution.
1418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419
1420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421
1422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423
1424 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1425 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426 # Just in case
1427 sleep 1
1428 echo timestamp > conftest.file
1429 # Do `set' in a subshell so we don't clobber the current shell's
1430 # arguments.  Must try -L first in case configure is actually a
1431 # symlink; some systems play weird games with the mod time of symlinks
1432 # (eg FreeBSD returns the mod time of the symlink's containing
1433 # directory).
1434 if (
1435    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1436    if test "$*" = "X"; then
1437       # -L didn't work.
1438       set X `ls -t $srcdir/configure conftest.file`
1439    fi
1440    rm -f conftest.file
1441    if test "$*" != "X $srcdir/configure conftest.file" \
1442       && test "$*" != "X conftest.file $srcdir/configure"; then
1443
1444       # If neither matched, then we have a broken ls.  This can happen
1445       # if, for instance, CONFIG_SHELL is bash and it inherits a
1446       # broken ls alias from the environment.  This has actually
1447       # happened.  Such a system could not be considered "sane".
1448       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1449 alias in your environment" >&5
1450 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1451 alias in your environment" >&2;}
1452    { (exit 1); exit 1; }; }
1453    fi
1454
1455    test "$2" = conftest.file
1456    )
1457 then
1458    # Ok.
1459    :
1460 else
1461    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1462 Check your system clock" >&5
1463 echo "$as_me: error: newly created file is older than distributed files!
1464 Check your system clock" >&2;}
1465    { (exit 1); exit 1; }; }
1466 fi
1467 echo "$as_me:$LINENO: result: yes" >&5
1468 echo "${ECHO_T}yes" >&6
1469 test "$program_prefix" != NONE &&
1470   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $.  echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1478 _ACEOF
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 rm conftest.sed
1481
1482
1483 # expand $ac_aux_dir to an absolute path
1484 am_aux_dir=`cd $ac_aux_dir && pwd`
1485
1486 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1487 # Use eval to expand $SHELL
1488 if eval "$MISSING --run true"; then
1489   am_missing_run="$MISSING --run "
1490 else
1491   am_missing_run=
1492   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1493 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494 fi
1495
1496 for ac_prog in gawk mawk nawk awk
1497 do
1498   # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_AWK+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   if test -n "$AWK"; then
1506   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1507 else
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1510 do
1511   IFS=$as_save_IFS
1512   test -z "$as_dir" && as_dir=.
1513   for ac_exec_ext in '' $ac_executable_extensions; do
1514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515     ac_cv_prog_AWK="$ac_prog"
1516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517     break 2
1518   fi
1519 done
1520 done
1521
1522 fi
1523 fi
1524 AWK=$ac_cv_prog_AWK
1525 if test -n "$AWK"; then
1526   echo "$as_me:$LINENO: result: $AWK" >&5
1527 echo "${ECHO_T}$AWK" >&6
1528 else
1529   echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1531 fi
1532
1533   test -n "$AWK" && break
1534 done
1535
1536 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1537 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1538 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1539 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   cat >conftest.make <<\_ACEOF
1543 all:
1544         @echo 'ac_maketemp="$(MAKE)"'
1545 _ACEOF
1546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1547 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1548 if test -n "$ac_maketemp"; then
1549   eval ac_cv_prog_make_${ac_make}_set=yes
1550 else
1551   eval ac_cv_prog_make_${ac_make}_set=no
1552 fi
1553 rm -f conftest.make
1554 fi
1555 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1556   echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558   SET_MAKE=
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562   SET_MAKE="MAKE=${MAKE-make}"
1563 fi
1564
1565 rm -rf .tst 2>/dev/null
1566 mkdir .tst 2>/dev/null
1567 if test -d .tst; then
1568   am__leading_dot=.
1569 else
1570   am__leading_dot=_
1571 fi
1572 rmdir .tst 2>/dev/null
1573
1574  # test to see if srcdir already configured
1575 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1576    test -f $srcdir/config.status; then
1577   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1578 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1579    { (exit 1); exit 1; }; }
1580 fi
1581
1582 # test whether we have cygpath
1583 if test -z "$CYGPATH_W"; then
1584   if (cygpath --version) >/dev/null 2>/dev/null; then
1585     CYGPATH_W='cygpath -w'
1586   else
1587     CYGPATH_W=echo
1588   fi
1589 fi
1590
1591
1592 # Define the identity of the package.
1593  PACKAGE=muttng
1594  VERSION=$mutt_cv_version
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE "$PACKAGE"
1599 _ACEOF
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define VERSION "$VERSION"
1604 _ACEOF
1605
1606 # Some tools Automake needs.
1607
1608 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1609
1610
1611 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1612
1613
1614 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1615
1616
1617 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1618
1619
1620 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1621
1622
1623 AMTAR=${AMTAR-"${am_missing_run}tar"}
1624
1625 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1626
1627 # Installed binaries are usually stripped using `strip' when the user
1628 # run `make install-strip'.  However `strip' might not be the right
1629 # tool to use in cross-compilation environments, therefore Automake
1630 # will honor the `STRIP' environment variable to overrule this program.
1631 if test "$cross_compiling" != no; then
1632   if test -n "$ac_tool_prefix"; then
1633   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}strip; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_STRIP+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$STRIP"; then
1641   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646   IFS=$as_save_IFS
1647   test -z "$as_dir" && as_dir=.
1648   for ac_exec_ext in '' $ac_executable_extensions; do
1649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652     break 2
1653   fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 STRIP=$ac_cv_prog_STRIP
1660 if test -n "$STRIP"; then
1661   echo "$as_me:$LINENO: result: $STRIP" >&5
1662 echo "${ECHO_T}$STRIP" >&6
1663 else
1664   echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 fi
1669 if test -z "$ac_cv_prog_STRIP"; then
1670   ac_ct_STRIP=$STRIP
1671   # Extract the first word of "strip", so it can be a program name with args.
1672 set dummy strip; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   if test -n "$ac_ct_STRIP"; then
1679   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684   IFS=$as_save_IFS
1685   test -z "$as_dir" && as_dir=.
1686   for ac_exec_ext in '' $ac_executable_extensions; do
1687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688     ac_cv_prog_ac_ct_STRIP="strip"
1689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690     break 2
1691   fi
1692 done
1693 done
1694
1695   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1696 fi
1697 fi
1698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1699 if test -n "$ac_ct_STRIP"; then
1700   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1701 echo "${ECHO_T}$ac_ct_STRIP" >&6
1702 else
1703   echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 fi
1706
1707   STRIP=$ac_ct_STRIP
1708 else
1709   STRIP="$ac_cv_prog_STRIP"
1710 fi
1711
1712 fi
1713 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1714
1715 # We need awk for the "check" target.  The system "awk" is bad on
1716 # some platforms.
1717
1718
1719
1720
1721
1722
1723 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1724
1725 # Make sure we can run config.sub.
1726 $ac_config_sub sun4 >/dev/null 2>&1 ||
1727   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1728 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1729    { (exit 1); exit 1; }; }
1730
1731 echo "$as_me:$LINENO: checking build system type" >&5
1732 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1733 if test "${ac_cv_build+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   ac_cv_build_alias=$build_alias
1737 test -z "$ac_cv_build_alias" &&
1738   ac_cv_build_alias=`$ac_config_guess`
1739 test -z "$ac_cv_build_alias" &&
1740   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1741 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1742    { (exit 1); exit 1; }; }
1743 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1744   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1745 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1746    { (exit 1); exit 1; }; }
1747
1748 fi
1749 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1750 echo "${ECHO_T}$ac_cv_build" >&6
1751 build=$ac_cv_build
1752 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1753 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1754 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1755
1756
1757 echo "$as_me:$LINENO: checking host system type" >&5
1758 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1759 if test "${ac_cv_host+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   ac_cv_host_alias=$host_alias
1763 test -z "$ac_cv_host_alias" &&
1764   ac_cv_host_alias=$ac_cv_build_alias
1765 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1766   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1767 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1768    { (exit 1); exit 1; }; }
1769
1770 fi
1771 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1772 echo "${ECHO_T}$ac_cv_host" >&6
1773 host=$ac_cv_host
1774 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1775 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1776 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1777
1778
1779
1780 echo "$as_me:$LINENO: checking for prefix" >&5
1781 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1782 if test x$prefix = xNONE; then
1783         mutt_cv_prefix=$ac_default_prefix
1784 else
1785         mutt_cv_prefix=$prefix
1786 fi
1787 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1788 echo "${ECHO_T}$mutt_cv_prefix" >&6
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 if test -n "$ac_tool_prefix"; then
1796   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815     break 2
1816   fi
1817 done
1818 done
1819
1820 fi
1821 fi
1822 CC=$ac_cv_prog_CC
1823 if test -n "$CC"; then
1824   echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1826 else
1827   echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 fi
1830
1831 fi
1832 if test -z "$ac_cv_prog_CC"; then
1833   ac_ct_CC=$CC
1834   # Extract the first word of "gcc", so it can be a program name with args.
1835 set dummy gcc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839   echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841   if test -n "$ac_ct_CC"; then
1842   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849   for ac_exec_ext in '' $ac_executable_extensions; do
1850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851     ac_cv_prog_ac_ct_CC="gcc"
1852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853     break 2
1854   fi
1855 done
1856 done
1857
1858 fi
1859 fi
1860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861 if test -n "$ac_ct_CC"; then
1862   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863 echo "${ECHO_T}$ac_ct_CC" >&6
1864 else
1865   echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869   CC=$ac_ct_CC
1870 else
1871   CC="$ac_cv_prog_CC"
1872 fi
1873
1874 if test -z "$CC"; then
1875   if test -n "$ac_tool_prefix"; then
1876   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$CC"; then
1884   ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893     ac_cv_prog_CC="${ac_tool_prefix}cc"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 CC=$ac_cv_prog_CC
1903 if test -n "$CC"; then
1904   echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1906 else
1907   echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 fi
1912 if test -z "$ac_cv_prog_CC"; then
1913   ac_ct_CC=$CC
1914   # Extract the first word of "cc", so it can be a program name with args.
1915 set dummy cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$ac_ct_CC"; then
1922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_ac_ct_CC="cc"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949   CC=$ac_ct_CC
1950 else
1951   CC="$ac_cv_prog_CC"
1952 fi
1953
1954 fi
1955 if test -z "$CC"; then
1956   # Extract the first word of "cc", so it can be a program name with args.
1957 set dummy cc; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test -n "$CC"; then
1964   ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966   ac_prog_rejected=no
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975        ac_prog_rejected=yes
1976        continue
1977      fi
1978     ac_cv_prog_CC="cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 if test $ac_prog_rejected = yes; then
1986   # We found a bogon in the path, so make sure we never use it.
1987   set dummy $ac_cv_prog_CC
1988   shift
1989   if test $# != 0; then
1990     # We chose a different compiler from the bogus one.
1991     # However, it has the same basename, so the bogon will be chosen
1992     # first if we set CC to just the basename; use the full file name.
1993     shift
1994     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1995   fi
1996 fi
1997 fi
1998 fi
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001   echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2003 else
2004   echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2006 fi
2007
2008 fi
2009 if test -z "$CC"; then
2010   if test -n "$ac_tool_prefix"; then
2011   for ac_prog in cl
2012   do
2013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048     test -n "$CC" && break
2049   done
2050 fi
2051 if test -z "$CC"; then
2052   ac_ct_CC=$CC
2053   for ac_prog in cl
2054 do
2055   # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$ac_ct_CC"; then
2063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072     ac_cv_prog_ac_ct_CC="$ac_prog"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078
2079 fi
2080 fi
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6
2085 else
2086   echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088 fi
2089
2090   test -n "$ac_ct_CC" && break
2091 done
2092
2093   CC=$ac_ct_CC
2094 fi
2095
2096 fi
2097
2098
2099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&2;}
2103    { (exit 1); exit 1; }; }
2104
2105 # Provide some information about the compiler.
2106 echo "$as_me:$LINENO:" \
2107      "checking for C compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110   (eval $ac_compiler --version </dev/null >&5) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115   (eval $ac_compiler -v </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120   (eval $ac_compiler -V </dev/null >&5) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2147 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150   (eval $ac_link_default) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; then
2154   # Find the output, starting from the most likely.  This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2156 # resort.
2157
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 ac_cv_exeext=
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2163 do
2164   test -f "$ac_file" || continue
2165   case $ac_file in
2166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2167         ;;
2168     conftest.$ac_ext )
2169         # This is the source file.
2170         ;;
2171     [ab].out )
2172         # We found the default executable, but exeext='' is most
2173         # certainly right.
2174         break;;
2175     *.* )
2176         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177         # FIXME: I believe we export ac_cv_exeext for Libtool,
2178         # but it would be cool to find out if it's true.  Does anybody
2179         # maintain Libtool? --akim.
2180         export ac_cv_exeext
2181         break;;
2182     * )
2183         break;;
2184   esac
2185 done
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194    { (exit 77); exit 77; }; }
2195 fi
2196
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2200
2201 # Check the compiler produces executables we can run.  If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208   if { ac_try='./$ac_file'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; }; then
2214     cross_compiling=no
2215   else
2216     if test "$cross_compiling" = maybe; then
2217         cross_compiling=yes
2218     else
2219         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225    { (exit 1); exit 1; }; }
2226     fi
2227   fi
2228 fi
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2231
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run.  If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2240
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244   (eval $ac_link) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 # `rm'.
2252 for ac_file in conftest.exe conftest conftest.*; do
2253   test -f "$ac_file" || continue
2254   case $ac_file in
2255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257           export ac_cv_exeext
2258           break;;
2259     * ) break;;
2260   esac
2261 done
2262 else
2263   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268 fi
2269
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2273
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2276 ac_exeext=$EXEEXT
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289
2290 int
2291 main ()
2292 {
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.o conftest.obj
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; then
2304   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2308        break;;
2309   esac
2310 done
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&2;}
2319    { (exit 1); exit 1; }; }
2320 fi
2321
2322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 fi
2324 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325 echo "${ECHO_T}$ac_cv_objext" >&6
2326 OBJEXT=$ac_cv_objext
2327 ac_objext=$OBJEXT
2328 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340
2341 int
2342 main ()
2343 {
2344 #ifndef __GNUC__
2345        choke me
2346 #endif
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354   (eval $ac_compile) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   ac_compiler_gnu=yes
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_compiler_gnu=no
2370 fi
2371 rm -f conftest.$ac_objext conftest.$ac_ext
2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373
2374 fi
2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377 GCC=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CFLAGS=${CFLAGS+set}
2379 ac_save_CFLAGS=$CFLAGS
2380 CFLAGS="-g"
2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_g+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   ac_cv_prog_cc_g=yes
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 ac_cv_prog_cc_g=no
2420 fi
2421 rm -f conftest.$ac_objext conftest.$ac_ext
2422 fi
2423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2424 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2425 if test "$ac_test_CFLAGS" = set; then
2426   CFLAGS=$ac_save_CFLAGS
2427 elif test $ac_cv_prog_cc_g = yes; then
2428   if test "$GCC" = yes; then
2429     CFLAGS="-g -O2"
2430   else
2431     CFLAGS="-g"
2432   fi
2433 else
2434   if test "$GCC" = yes; then
2435     CFLAGS="-O2"
2436   else
2437     CFLAGS=
2438   fi
2439 fi
2440 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2441 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   ac_cv_prog_cc_stdc=no
2446 ac_save_CC=$CC
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454 #include <stdarg.h>
2455 #include <stdio.h>
2456 #include <sys/types.h>
2457 #include <sys/stat.h>
2458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2459 struct buf { int x; };
2460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2461 static char *e (p, i)
2462      char **p;
2463      int i;
2464 {
2465   return p[i];
2466 }
2467 static char *f (char * (*g) (char **, int), char **p, ...)
2468 {
2469   char *s;
2470   va_list v;
2471   va_start (v,p);
2472   s = g (p, va_arg (v,int));
2473   va_end (v);
2474   return s;
2475 }
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 int argc;
2481 char **argv;
2482 int
2483 main ()
2484 {
2485 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX                   -qlanglvl=ansi
2493 # Ultrix and OSF/1      -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2496 # SVR4                  -Xc -D__EXTENSIONS__
2497 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2498 do
2499   CC="$ac_save_CC $ac_arg"
2500   rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508   (eval $ac_try) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; }; then
2512   ac_cv_prog_cc_stdc=$ac_arg
2513 break
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 fi
2519 rm -f conftest.$ac_objext
2520 done
2521 rm -f conftest.$ac_ext conftest.$ac_objext
2522 CC=$ac_save_CC
2523
2524 fi
2525
2526 case "x$ac_cv_prog_cc_stdc" in
2527   x|xno)
2528     echo "$as_me:$LINENO: result: none needed" >&5
2529 echo "${ECHO_T}none needed" >&6 ;;
2530   *)
2531     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2532 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2533     CC="$CC $ac_cv_prog_cc_stdc" ;;
2534 esac
2535
2536 # Some people use a C++ compiler to compile C.  Since we use `exit',
2537 # in C++ we need to declare it.  In case someone uses the same compiler
2538 # for both compiling C and C++ we need to have the C++ compiler decide
2539 # the declaration of exit, since it's the most demanding environment.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #ifndef __cplusplus
2542   choke me
2543 #endif
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -s conftest.$ac_objext'
2552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553   (eval $ac_try) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; }; then
2557   for ac_declaration in \
2558    ''\
2559    '#include <stdlib.h>' \
2560    'extern "C" void std::exit (int) throw (); using std::exit;' \
2561    'extern "C" void std::exit (int); using std::exit;' \
2562    'extern "C" void exit (int) throw ();' \
2563    'extern "C" void exit (int);' \
2564    'void exit (int);'
2565 do
2566   cat >conftest.$ac_ext <<_ACEOF
2567 #line $LINENO "configure"
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573 #include <stdlib.h>
2574 $ac_declaration
2575 int
2576 main ()
2577 {
2578 exit (42);
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585   (eval $ac_compile) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   :
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 continue
2601 fi
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603   cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610 $ac_declaration
2611 int
2612 main ()
2613 {
2614 exit (42);
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   break
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.$ac_objext conftest.$ac_ext
2638 done
2639 rm -f conftest*
2640 if test -n "$ac_declaration"; then
2641   echo '#ifdef __cplusplus' >>confdefs.h
2642   echo $ac_declaration      >>confdefs.h
2643   echo '#endif'             >>confdefs.h
2644 fi
2645
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 fi
2651 rm -f conftest.$ac_objext conftest.$ac_ext
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 DEPDIR="${am__leading_dot}deps"
2658
2659           ac_config_commands="$ac_config_commands depfiles"
2660
2661
2662 am_make=${MAKE-make}
2663 cat > confinc << 'END'
2664 am__doit:
2665         @echo done
2666 .PHONY: am__doit
2667 END
2668 # If we don't find an include directive, just comment out the code.
2669 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2670 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2671 am__include="#"
2672 am__quote=
2673 _am_result=none
2674 # First try GNU make style include.
2675 echo "include confinc" > confmf
2676 # We grep out `Entering directory' and `Leaving directory'
2677 # messages which can occur if `w' ends up in MAKEFLAGS.
2678 # In particular we don't look at `^make:' because GNU make might
2679 # be invoked under some other name (usually "gmake"), in which
2680 # case it prints its new name instead of `make'.
2681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682    am__include=include
2683    am__quote=
2684    _am_result=GNU
2685 fi
2686 # Now try BSD make style include.
2687 if test "$am__include" = "#"; then
2688    echo '.include "confinc"' > confmf
2689    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2690       am__include=.include
2691       am__quote="\""
2692       _am_result=BSD
2693    fi
2694 fi
2695
2696
2697 echo "$as_me:$LINENO: result: $_am_result" >&5
2698 echo "${ECHO_T}$_am_result" >&6
2699 rm -f confinc confmf
2700
2701 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2702 if test "${enable_dependency_tracking+set}" = set; then
2703   enableval="$enable_dependency_tracking"
2704
2705 fi;
2706 if test "x$enable_dependency_tracking" != xno; then
2707   am_depcomp="$ac_aux_dir/depcomp"
2708   AMDEPBACKSLASH='\'
2709 fi
2710
2711
2712 if test "x$enable_dependency_tracking" != xno; then
2713   AMDEP_TRUE=
2714   AMDEP_FALSE='#'
2715 else
2716   AMDEP_TRUE='#'
2717   AMDEP_FALSE=
2718 fi
2719
2720
2721
2722
2723 depcc="$CC"   am_compiler_list=
2724
2725 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2726 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2731   # We make a subdir and do the tests there.  Otherwise we can end up
2732   # making bogus files that we don't know about and never remove.  For
2733   # instance it was reported that on HP-UX the gcc test will end up
2734   # making a dummy file named `D' -- because `-MD' means `put the output
2735   # in D'.
2736   mkdir conftest.dir
2737   # Copy depcomp to subdir because otherwise we won't find it if we're
2738   # using a relative directory.
2739   cp "$am_depcomp" conftest.dir
2740   cd conftest.dir
2741   # We will build objects and dependencies in a subdirectory because
2742   # it helps to detect inapplicable dependency modes.  For instance
2743   # both Tru64's cc and ICC support -MD to output dependencies as a
2744   # side effect of compilation, but ICC will put the dependencies in
2745   # the current directory while Tru64 will put them in the object
2746   # directory.
2747   mkdir sub
2748
2749   am_cv_CC_dependencies_compiler_type=none
2750   if test "$am_compiler_list" = ""; then
2751      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2752   fi
2753   for depmode in $am_compiler_list; do
2754     # Setup a source with many dependencies, because some compilers
2755     # like to wrap large dependency lists on column 80 (with \), and
2756     # we should not choose a depcomp mode which is confused by this.
2757     #
2758     # We need to recreate these files for each test, as the compiler may
2759     # overwrite some of them when testing with obscure command lines.
2760     # This happens at least with the AIX C compiler.
2761     : > sub/conftest.c
2762     for i in 1 2 3 4 5 6; do
2763       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2764       : > sub/conftst$i.h
2765     done
2766     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2767
2768     case $depmode in
2769     nosideeffect)
2770       # after this tag, mechanisms are not by side-effect, so they'll
2771       # only be used when explicitly requested
2772       if test "x$enable_dependency_tracking" = xyes; then
2773         continue
2774       else
2775         break
2776       fi
2777       ;;
2778     none) break ;;
2779     esac
2780     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2781     # mode.  It turns out that the SunPro C++ compiler does not properly
2782     # handle `-M -o', and we need to detect this.
2783     if depmode=$depmode \
2784        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2785        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2786        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2787          >/dev/null 2>conftest.err &&
2788        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2789        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2790        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2791       # icc doesn't choke on unknown options, it will just issue warnings
2792       # (even with -Werror).  So we grep stderr for any message
2793       # that says an option was ignored.
2794       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2795         am_cv_CC_dependencies_compiler_type=$depmode
2796         break
2797       fi
2798     fi
2799   done
2800
2801   cd ..
2802   rm -rf conftest.dir
2803 else
2804   am_cv_CC_dependencies_compiler_type=none
2805 fi
2806
2807 fi
2808 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2809 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2810 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2811
2812
2813
2814 if
2815   test "x$enable_dependency_tracking" != xno \
2816   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2817   am__fastdepCC_TRUE=
2818   am__fastdepCC_FALSE='#'
2819 else
2820   am__fastdepCC_TRUE='#'
2821   am__fastdepCC_FALSE=
2822 fi
2823
2824
2825
2826
2827         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   ac_check_lib_save_LIBS=$LIBS
2833 LIBS="-lcposix  $LIBS"
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841
2842 /* Override any gcc2 internal prototype to avoid an error.  */
2843 #ifdef __cplusplus
2844 extern "C"
2845 #endif
2846 /* We use char because int might match the return type of a gcc2
2847    builtin and then its argument prototype would still apply.  */
2848 char strerror ();
2849 int
2850 main ()
2851 {
2852 strerror ();
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 rm -f conftest.$ac_objext conftest$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859   (eval $ac_link) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } &&
2863          { ac_try='test -s conftest$ac_exeext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   ac_cv_lib_cposix_strerror=yes
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 ac_cv_lib_cposix_strerror=no
2875 fi
2876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2877 LIBS=$ac_check_lib_save_LIBS
2878 fi
2879 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2880 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2881 if test $ac_cv_lib_cposix_strerror = yes; then
2882   LIBS="$LIBS -lcposix"
2883 fi
2884
2885
2886
2887
2888
2889
2890 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2891 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2892 if test "${am_cv_prog_cc_stdc+set}" = set; then
2893   echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895   am_cv_prog_cc_stdc=no
2896 ac_save_CC="$CC"
2897 # Don't try gcc -ansi; that turns off useful extensions and
2898 # breaks some systems' header files.
2899 # AIX                   -qlanglvl=ansi
2900 # Ultrix and OSF/1      -std1
2901 # HP-UX 10.20 and later -Ae
2902 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2903 # SVR4                  -Xc -D__EXTENSIONS__
2904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 do
2906   CC="$ac_save_CC $ac_arg"
2907   cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 #include <stdarg.h>
2915 #include <stdio.h>
2916 #include <sys/types.h>
2917 #include <sys/stat.h>
2918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2919 struct buf { int x; };
2920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2921 static char *e (p, i)
2922      char **p;
2923      int i;
2924 {
2925   return p[i];
2926 }
2927 static char *f (char * (*g) (char **, int), char **p, ...)
2928 {
2929   char *s;
2930   va_list v;
2931   va_start (v,p);
2932   s = g (p, va_arg (v,int));
2933   va_end (v);
2934   return s;
2935 }
2936 int test (int i, double x);
2937 struct s1 {int (*f) (int a);};
2938 struct s2 {int (*f) (double a);};
2939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940 int argc;
2941 char **argv;
2942
2943 int
2944 main ()
2945 {
2946
2947 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   am_cv_prog_cc_stdc="$ac_arg"; break
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 fi
2971 rm -f conftest.$ac_objext conftest.$ac_ext
2972 done
2973 CC="$ac_save_CC"
2974
2975 fi
2976
2977 if test -z "$am_cv_prog_cc_stdc"; then
2978   echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6
2980 else
2981   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2983 fi
2984 case "x$am_cv_prog_cc_stdc" in
2985   x|xno) ;;
2986   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2987 esac
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2995 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
2998   CPP=
2999 fi
3000 if test -z "$CPP"; then
3001   if test "${ac_cv_prog_CPP+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004       # Double quotes because CPP needs to be expanded
3005     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3006     do
3007       ac_preproc_ok=false
3008 for ac_c_preproc_warn_flag in '' yes
3009 do
3010   # Use a header file that comes with gcc, so configuring glibc
3011   # with a fresh cross-compiler works.
3012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013   # <limits.h> exists even on freestanding compilers.
3014   # On the NeXT, cc -E runs the code through the compiler's parser,
3015   # not just through cpp. "Syntax error" is here to catch this case.
3016   cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028                      Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null; then
3038   if test -s conftest.err; then
3039     ac_cpp_err=$ac_c_preproc_warn_flag
3040   else
3041     ac_cpp_err=
3042   fi
3043 else
3044   ac_cpp_err=yes
3045 fi
3046 if test -z "$ac_cpp_err"; then
3047   :
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052   # Broken: fails on valid input.
3053 continue
3054 fi
3055 rm -f conftest.err conftest.$ac_ext
3056
3057   # OK, works on sane cases.  Now check whether non-existent headers
3058   # can be detected and how.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } >/dev/null; then
3076   if test -s conftest.err; then
3077     ac_cpp_err=$ac_c_preproc_warn_flag
3078   else
3079     ac_cpp_err=
3080   fi
3081 else
3082   ac_cpp_err=yes
3083 fi
3084 if test -z "$ac_cpp_err"; then
3085   # Broken: success on invalid input.
3086 continue
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091   # Passes both tests.
3092 ac_preproc_ok=:
3093 break
3094 fi
3095 rm -f conftest.err conftest.$ac_ext
3096
3097 done
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then
3101   break
3102 fi
3103
3104     done
3105     ac_cv_prog_CPP=$CPP
3106
3107 fi
3108   CPP=$ac_cv_prog_CPP
3109 else
3110   ac_cv_prog_CPP=$CPP
3111 fi
3112 echo "$as_me:$LINENO: result: $CPP" >&5
3113 echo "${ECHO_T}$CPP" >&6
3114 ac_preproc_ok=false
3115 for ac_c_preproc_warn_flag in '' yes
3116 do
3117   # Use a header file that comes with gcc, so configuring glibc
3118   # with a fresh cross-compiler works.
3119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120   # <limits.h> exists even on freestanding compilers.
3121   # On the NeXT, cc -E runs the code through the compiler's parser,
3122   # not just through cpp. "Syntax error" is here to catch this case.
3123   cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #ifdef __STDC__
3131 # include <limits.h>
3132 #else
3133 # include <assert.h>
3134 #endif
3135                      Syntax error
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } >/dev/null; then
3145   if test -s conftest.err; then
3146     ac_cpp_err=$ac_c_preproc_warn_flag
3147   else
3148     ac_cpp_err=
3149   fi
3150 else
3151   ac_cpp_err=yes
3152 fi
3153 if test -z "$ac_cpp_err"; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159   # Broken: fails on valid input.
3160 continue
3161 fi
3162 rm -f conftest.err conftest.$ac_ext
3163
3164   # OK, works on sane cases.  Now check whether non-existent headers
3165   # can be detected and how.
3166   cat >conftest.$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #include <ac_nonexistent.h>
3174 _ACEOF
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } >/dev/null; then
3183   if test -s conftest.err; then
3184     ac_cpp_err=$ac_c_preproc_warn_flag
3185   else
3186     ac_cpp_err=
3187   fi
3188 else
3189   ac_cpp_err=yes
3190 fi
3191 if test -z "$ac_cpp_err"; then
3192   # Broken: success on invalid input.
3193 continue
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198   # Passes both tests.
3199 ac_preproc_ok=:
3200 break
3201 fi
3202 rm -f conftest.err conftest.$ac_ext
3203
3204 done
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then
3208   :
3209 else
3210   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3211 See \`config.log' for more details." >&5
3212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3213 See \`config.log' for more details." >&2;}
3214    { (exit 1); exit 1; }; }
3215 fi
3216
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223
3224 echo "$as_me:$LINENO: checking for egrep" >&5
3225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3226 if test "${ac_cv_prog_egrep+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3230     then ac_cv_prog_egrep='grep -E'
3231     else ac_cv_prog_egrep='egrep'
3232     fi
3233 fi
3234 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3235 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3236  EGREP=$ac_cv_prog_egrep
3237
3238
3239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3250                   inttypes.h stdint.h unistd.h
3251 do
3252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3253 echo "$as_me:$LINENO: checking for $ac_header" >&5
3254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 $ac_includes_default
3266
3267 #include <$ac_header>
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271   (eval $ac_compile) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -s conftest.$ac_objext'
3276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277   (eval $ac_try) 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }; }; then
3281   eval "$as_ac_Header=yes"
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 eval "$as_ac_Header=no"
3287 fi
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3293   cat >>confdefs.h <<_ACEOF
3294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3295 _ACEOF
3296
3297 fi
3298
3299 done
3300
3301
3302
3303
3304 echo "$as_me:$LINENO: checking for function prototypes" >&5
3305 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3306 if test "$am_cv_prog_cc_stdc" != no; then
3307   echo "$as_me:$LINENO: result: yes" >&5
3308 echo "${ECHO_T}yes" >&6
3309
3310 cat >>confdefs.h <<\_ACEOF
3311 #define PROTOTYPES 1
3312 _ACEOF
3313
3314   U= ANSI2KNR=
3315 else
3316   echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3318   U=_ ANSI2KNR=./ansi2knr
3319 fi
3320 # Ensure some checks needed by ansi2knr itself.
3321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3323 if test "${ac_cv_header_stdc+set}" = set; then
3324   echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326   cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <stdlib.h>
3334 #include <stdarg.h>
3335 #include <string.h>
3336 #include <float.h>
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   ac_cv_header_stdc=yes
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_header_stdc=no
3364 fi
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3366
3367 if test $ac_cv_header_stdc = yes; then
3368   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #include <string.h>
3377
3378 _ACEOF
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380   $EGREP "memchr" >/dev/null 2>&1; then
3381   :
3382 else
3383   ac_cv_header_stdc=no
3384 fi
3385 rm -f conftest*
3386
3387 fi
3388
3389 if test $ac_cv_header_stdc = yes; then
3390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 #line $LINENO "configure"
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <stdlib.h>
3399
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402   $EGREP "free" >/dev/null 2>&1; then
3403   :
3404 else
3405   ac_cv_header_stdc=no
3406 fi
3407 rm -f conftest*
3408
3409 fi
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413   if test "$cross_compiling" = yes; then
3414   :
3415 else
3416   cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ctype.h>
3424 #if ((' ' & 0x0FF) == 0x020)
3425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427 #else
3428 # define ISLOWER(c) \
3429                    (('a' <= (c) && (c) <= 'i') \
3430                      || ('j' <= (c) && (c) <= 'r') \
3431                      || ('s' <= (c) && (c) <= 'z'))
3432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3433 #endif
3434
3435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 int
3437 main ()
3438 {
3439   int i;
3440   for (i = 0; i < 256; i++)
3441     if (XOR (islower (i), ISLOWER (i))
3442         || toupper (i) != TOUPPER (i))
3443       exit(2);
3444   exit (0);
3445 }
3446 _ACEOF
3447 rm -f conftest$ac_exeext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449   (eval $ac_link) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; }; then
3458   :
3459 else
3460   echo "$as_me: program exited with status $ac_status" >&5
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 ( exit $ac_status )
3465 ac_cv_header_stdc=no
3466 fi
3467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 fi
3470 fi
3471 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3472 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3473 if test $ac_cv_header_stdc = yes; then
3474
3475 cat >>confdefs.h <<\_ACEOF
3476 #define STDC_HEADERS 1
3477 _ACEOF
3478
3479 fi
3480
3481
3482 for ac_header in string.h
3483 do
3484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486   echo "$as_me:$LINENO: checking for $ac_header" >&5
3487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 fi
3491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3493 else
3494   # Is the header compilable?
3495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 $ac_includes_default
3505 #include <$ac_header>
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509   (eval $ac_compile) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -s conftest.$ac_objext'
3514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515   (eval $ac_try) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }; }; then
3519   ac_header_compiler=yes
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 ac_header_compiler=no
3525 fi
3526 rm -f conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3528 echo "${ECHO_T}$ac_header_compiler" >&6
3529
3530 # Is the header present?
3531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 #include <$ac_header>
3541 _ACEOF
3542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } >/dev/null; then
3550   if test -s conftest.err; then
3551     ac_cpp_err=$ac_c_preproc_warn_flag
3552   else
3553     ac_cpp_err=
3554   fi
3555 else
3556   ac_cpp_err=yes
3557 fi
3558 if test -z "$ac_cpp_err"; then
3559   ac_header_preproc=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564   ac_header_preproc=no
3565 fi
3566 rm -f conftest.err conftest.$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3568 echo "${ECHO_T}$ac_header_preproc" >&6
3569
3570 # So?  What about this header?
3571 case $ac_header_compiler:$ac_header_preproc in
3572   yes:no )
3573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3577     (
3578       cat <<\_ASBOX
3579 ## ------------------------------------ ##
3580 ## Report this to bug-autoconf@gnu.org. ##
3581 ## ------------------------------------ ##
3582 _ASBOX
3583     ) |
3584       sed "s/^/$as_me: WARNING:     /" >&2
3585     ;;
3586   no:yes )
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3589     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3593     (
3594       cat <<\_ASBOX
3595 ## ------------------------------------ ##
3596 ## Report this to bug-autoconf@gnu.org. ##
3597 ## ------------------------------------ ##
3598 _ASBOX
3599     ) |
3600       sed "s/^/$as_me: WARNING:     /" >&2
3601     ;;
3602 esac
3603 echo "$as_me:$LINENO: checking for $ac_header" >&5
3604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   eval "$as_ac_Header=$ac_header_preproc"
3609 fi
3610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3612
3613 fi
3614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3615   cat >>confdefs.h <<_ACEOF
3616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3617 _ACEOF
3618
3619 fi
3620
3621 done
3622
3623
3624 if test "x$U" != "x"; then
3625   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3626 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3627    { (exit 1); exit 1; }; }
3628 fi
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3635 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3636 # On Suns, sometimes $CPP names a directory.
3637 if test -n "$CPP" && test -d "$CPP"; then
3638   CPP=
3639 fi
3640 if test -z "$CPP"; then
3641   if test "${ac_cv_prog_CPP+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644       # Double quotes because CPP needs to be expanded
3645     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3646     do
3647       ac_preproc_ok=false
3648 for ac_c_preproc_warn_flag in '' yes
3649 do
3650   # Use a header file that comes with gcc, so configuring glibc
3651   # with a fresh cross-compiler works.
3652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653   # <limits.h> exists even on freestanding compilers.
3654   # On the NeXT, cc -E runs the code through the compiler's parser,
3655   # not just through cpp. "Syntax error" is here to catch this case.
3656   cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663 #ifdef __STDC__
3664 # include <limits.h>
3665 #else
3666 # include <assert.h>
3667 #endif
3668                      Syntax error
3669 _ACEOF
3670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3671   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } >/dev/null; then
3678   if test -s conftest.err; then
3679     ac_cpp_err=$ac_c_preproc_warn_flag
3680   else
3681     ac_cpp_err=
3682   fi
3683 else
3684   ac_cpp_err=yes
3685 fi
3686 if test -z "$ac_cpp_err"; then
3687   :
3688 else
3689   echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692   # Broken: fails on valid input.
3693 continue
3694 fi
3695 rm -f conftest.err conftest.$ac_ext
3696
3697   # OK, works on sane cases.  Now check whether non-existent headers
3698   # can be detected and how.
3699   cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706 #include <ac_nonexistent.h>
3707 _ACEOF
3708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } >/dev/null; then
3716   if test -s conftest.err; then
3717     ac_cpp_err=$ac_c_preproc_warn_flag
3718   else
3719     ac_cpp_err=
3720   fi
3721 else
3722   ac_cpp_err=yes
3723 fi
3724 if test -z "$ac_cpp_err"; then
3725   # Broken: success on invalid input.
3726 continue
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731   # Passes both tests.
3732 ac_preproc_ok=:
3733 break
3734 fi
3735 rm -f conftest.err conftest.$ac_ext
3736
3737 done
3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3739 rm -f conftest.err conftest.$ac_ext
3740 if $ac_preproc_ok; then
3741   break
3742 fi
3743
3744     done
3745     ac_cv_prog_CPP=$CPP
3746
3747 fi
3748   CPP=$ac_cv_prog_CPP
3749 else
3750   ac_cv_prog_CPP=$CPP
3751 fi
3752 echo "$as_me:$LINENO: result: $CPP" >&5
3753 echo "${ECHO_T}$CPP" >&6
3754 ac_preproc_ok=false
3755 for ac_c_preproc_warn_flag in '' yes
3756 do
3757   # Use a header file that comes with gcc, so configuring glibc
3758   # with a fresh cross-compiler works.
3759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760   # <limits.h> exists even on freestanding compilers.
3761   # On the NeXT, cc -E runs the code through the compiler's parser,
3762   # not just through cpp. "Syntax error" is here to catch this case.
3763   cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770 #ifdef __STDC__
3771 # include <limits.h>
3772 #else
3773 # include <assert.h>
3774 #endif
3775                      Syntax error
3776 _ACEOF
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779   ac_status=$?
3780   grep -v '^ *+' conftest.er1 >conftest.err
3781   rm -f conftest.er1
3782   cat conftest.err >&5
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); } >/dev/null; then
3785   if test -s conftest.err; then
3786     ac_cpp_err=$ac_c_preproc_warn_flag
3787   else
3788     ac_cpp_err=
3789   fi
3790 else
3791   ac_cpp_err=yes
3792 fi
3793 if test -z "$ac_cpp_err"; then
3794   :
3795 else
3796   echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799   # Broken: fails on valid input.
3800 continue
3801 fi
3802 rm -f conftest.err conftest.$ac_ext
3803
3804   # OK, works on sane cases.  Now check whether non-existent headers
3805   # can be detected and how.
3806   cat >conftest.$ac_ext <<_ACEOF
3807 #line $LINENO "configure"
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813 #include <ac_nonexistent.h>
3814 _ACEOF
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } >/dev/null; then
3823   if test -s conftest.err; then
3824     ac_cpp_err=$ac_c_preproc_warn_flag
3825   else
3826     ac_cpp_err=
3827   fi
3828 else
3829   ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832   # Broken: success on invalid input.
3833 continue
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838   # Passes both tests.
3839 ac_preproc_ok=:
3840 break
3841 fi
3842 rm -f conftest.err conftest.$ac_ext
3843
3844 done
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3848   :
3849 else
3850   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3851 See \`config.log' for more details." >&5
3852 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3853 See \`config.log' for more details." >&2;}
3854    { (exit 1); exit 1; }; }
3855 fi
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   cat >conftest.make <<\_ACEOF
3870 all:
3871         @echo 'ac_maketemp="$(MAKE)"'
3872 _ACEOF
3873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3875 if test -n "$ac_maketemp"; then
3876   eval ac_cv_prog_make_${ac_make}_set=yes
3877 else
3878   eval ac_cv_prog_make_${ac_make}_set=no
3879 fi
3880 rm -f conftest.make
3881 fi
3882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3883   echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6
3885   SET_MAKE=
3886 else
3887   echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3889   SET_MAKE="MAKE=${MAKE-make}"
3890 fi
3891
3892 # Find a good install program.  We prefer a C program (faster),
3893 # so one script is as good as another.  But avoid the broken or
3894 # incompatible versions:
3895 # SysV /etc/install, /usr/sbin/install
3896 # SunOS /usr/etc/install
3897 # IRIX /sbin/install
3898 # AIX /bin/install
3899 # AmigaOS /C/install, which installs bootblocks on floppy discs
3900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3905 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3906 if test -z "$INSTALL"; then
3907 if test "${ac_cv_path_install+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   # Account for people who put trailing slashes in PATH elements.
3916 case $as_dir/ in
3917   ./ | .// | /cC/* | \
3918   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3919   /usr/ucb/* ) ;;
3920   *)
3921     # OSF1 and SCO ODT 3.0 have their own names for install.
3922     # Don't use installbsd from OSF since it installs stuff as root
3923     # by default.
3924     for ac_prog in ginstall scoinst install; do
3925       for ac_exec_ext in '' $ac_executable_extensions; do
3926         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927           if test $ac_prog = install &&
3928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # AIX install.  It has an incompatible calling convention.
3930             :
3931           elif test $ac_prog = install &&
3932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933             # program-specific install script used by HP pwplus--don't use.
3934             :
3935           else
3936             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3937             break 3
3938           fi
3939         fi
3940       done
3941     done
3942     ;;
3943 esac
3944 done
3945
3946
3947 fi
3948   if test "${ac_cv_path_install+set}" = set; then
3949     INSTALL=$ac_cv_path_install
3950   else
3951     # As a last resort, use the slow shell script.  We don't cache a
3952     # path for INSTALL within a source directory, because that will
3953     # break other packages using the cache if that directory is
3954     # removed, or if the path is relative.
3955     INSTALL=$ac_install_sh
3956   fi
3957 fi
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969 if test -n "$ac_tool_prefix"; then
3970   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   if test -n "$RANLIB"; then
3978   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985   for ac_exec_ext in '' $ac_executable_extensions; do
3986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989     break 2
3990   fi
3991 done
3992 done
3993
3994 fi
3995 fi
3996 RANLIB=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998   echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4000 else
4001   echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4003 fi
4004
4005 fi
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007   ac_ct_RANLIB=$RANLIB
4008   # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   if test -n "$ac_ct_RANLIB"; then
4016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_exec_ext in '' $ac_executable_extensions; do
4024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025     ac_cv_prog_ac_ct_RANLIB="ranlib"
4026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030 done
4031
4032   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4033 fi
4034 fi
4035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 else
4040   echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4042 fi
4043
4044   RANLIB=$ac_ct_RANLIB
4045 else
4046   RANLIB="$ac_cv_prog_RANLIB"
4047 fi
4048
4049 if test -n "$ac_tool_prefix"; then
4050   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}ar; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_AR+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   if test -n "$AR"; then
4058   ac_cv_prog_AR="$AR" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065   for ac_exec_ext in '' $ac_executable_extensions; do
4066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067     ac_cv_prog_AR="${ac_tool_prefix}ar"
4068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069     break 2
4070   fi
4071 done
4072 done
4073
4074 fi
4075 fi
4076 AR=$ac_cv_prog_AR
4077 if test -n "$AR"; then
4078   echo "$as_me:$LINENO: result: $AR" >&5
4079 echo "${ECHO_T}$AR" >&6
4080 else
4081   echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4083 fi
4084
4085 fi
4086 if test -z "$ac_cv_prog_AR"; then
4087   ac_ct_AR=$AR
4088   # Extract the first word of "ar", so it can be a program name with args.
4089 set dummy ar; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$ac_ct_AR"; then
4096   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_ac_ct_AR="ar"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111
4112   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4113 fi
4114 fi
4115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4116 if test -n "$ac_ct_AR"; then
4117   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4118 echo "${ECHO_T}$ac_ct_AR" >&6
4119 else
4120   echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122 fi
4123
4124   AR=$ac_ct_AR
4125 else
4126   AR="$ac_cv_prog_AR"
4127 fi
4128
4129
4130 echo "$as_me:$LINENO: checking for inline" >&5
4131 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4132 if test "${ac_cv_c_inline+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   ac_cv_c_inline=no
4136 for ac_kw in inline __inline__ __inline; do
4137   cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #ifndef __cplusplus
4145 typedef int foo_t;
4146 static $ac_kw foo_t static_foo () {return 0; }
4147 $ac_kw foo_t foo () {return 0; }
4148 #endif
4149
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153   (eval $ac_compile) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -s conftest.$ac_objext'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; }; then
4163   ac_cv_c_inline=$ac_kw; break
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 fi
4169 rm -f conftest.$ac_objext conftest.$ac_ext
4170 done
4171
4172 fi
4173 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4174 echo "${ECHO_T}$ac_cv_c_inline" >&6
4175 case $ac_cv_c_inline in
4176   inline | yes) ;;
4177   no)
4178 cat >>confdefs.h <<\_ACEOF
4179 #define inline
4180 _ACEOF
4181  ;;
4182   *)  cat >>confdefs.h <<_ACEOF
4183 #define inline $ac_cv_c_inline
4184 _ACEOF
4185  ;;
4186 esac
4187
4188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4190 if test "${ac_cv_c_const+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200
4201 int
4202 main ()
4203 {
4204 /* FIXME: Include the comments suggested by Paul. */
4205 #ifndef __cplusplus
4206   /* Ultrix mips cc rejects this.  */
4207   typedef int charset[2];
4208   const charset x;
4209   /* SunOS 4.1.1 cc rejects this.  */
4210   char const *const *ccp;
4211   char **p;
4212   /* NEC SVR4.0.2 mips cc rejects this.  */
4213   struct point {int x, y;};
4214   static struct point const zero = {0,0};
4215   /* AIX XL C 1.02.0.0 rejects this.
4216      It does not let you subtract one const X* pointer from another in
4217      an arm of an if-expression whose if-part is not a constant
4218      expression */
4219   const char *g = "string";
4220   ccp = &g + (g ? g-g : 0);
4221   /* HPUX 7.0 cc rejects these. */
4222   ++ccp;
4223   p = (char**) ccp;
4224   ccp = (char const *const *) p;
4225   { /* SCO 3.2v4 cc rejects this.  */
4226     char *t;
4227     char const *s = 0 ? (char *) 0 : (char const *) 0;
4228
4229     *t++ = 0;
4230   }
4231   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4232     int x[] = {25, 17};
4233     const int *foo = &x[0];
4234     ++foo;
4235   }
4236   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4237     typedef const int *iptr;
4238     iptr p = 0;
4239     ++p;
4240   }
4241   { /* AIX XL C 1.02.0.0 rejects this saying
4242        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4243     struct s { int j; const int *ap[3]; };
4244     struct s *b; b->j = 5;
4245   }
4246   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4247     const int foo = 10;
4248   }
4249 #endif
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; }; then
4267   ac_cv_c_const=yes
4268 else
4269   echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 ac_cv_c_const=no
4273 fi
4274 rm -f conftest.$ac_objext conftest.$ac_ext
4275 fi
4276 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4277 echo "${ECHO_T}$ac_cv_c_const" >&6
4278 if test $ac_cv_c_const = no; then
4279
4280 cat >>confdefs.h <<\_ACEOF
4281 #define const
4282 _ACEOF
4283
4284 fi
4285
4286
4287 # Extract the first word of "dbx", so it can be a program name with args.
4288 set dummy dbx; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_path_DBX+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   case $DBX in
4295   [\\/]* | ?:[\\/]*)
4296   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4297   ;;
4298   *)
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4314   ;;
4315 esac
4316 fi
4317 DBX=$ac_cv_path_DBX
4318
4319 if test -n "$DBX"; then
4320   echo "$as_me:$LINENO: result: $DBX" >&5
4321 echo "${ECHO_T}$DBX" >&6
4322 else
4323   echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325 fi
4326
4327 # Extract the first word of "gdb", so it can be a program name with args.
4328 set dummy gdb; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_path_GDB+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $GDB in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352
4353   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4354   ;;
4355 esac
4356 fi
4357 GDB=$ac_cv_path_GDB
4358
4359 if test -n "$GDB"; then
4360   echo "$as_me:$LINENO: result: $GDB" >&5
4361 echo "${ECHO_T}$GDB" >&6
4362 else
4363   echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4365 fi
4366
4367 # Extract the first word of "sdb", so it can be a program name with args.
4368 set dummy sdb; ac_word=$2
4369 echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_path_SDB+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   case $SDB in
4375   [\\/]* | ?:[\\/]*)
4376   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4377   ;;
4378   *)
4379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392
4393   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4394   ;;
4395 esac
4396 fi
4397 SDB=$ac_cv_path_SDB
4398
4399 if test -n "$SDB"; then
4400   echo "$as_me:$LINENO: result: $SDB" >&5
4401 echo "${ECHO_T}$SDB" >&6
4402 else
4403   echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407
4408 if test $GDB != no ; then
4409         DEBUGGER=$GDB
4410 elif test $DBX != no ; then
4411         DEBUGGER=$DBX
4412 elif test $SDB != no ; then
4413         DEBUGGER=$SDB
4414 else
4415         DEBUGGER=no
4416 fi
4417
4418
4419
4420 # The following templates should be used with newer automakes
4421 # instead of acconfig.h
4422 #
4423 #AH_TEMPLATE([sig_atomic_t],
4424 #            [/* Define to `int' if <signal.h> doesn't define.])
4425 #AH_TEMPLATE([HAVE_START_COLOR],
4426 #            [Define if you have start_color, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4428 #            [Define if you have typeahead, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_BKGDSET],
4430 #            [Define if you have bkgdset, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_CURS_SET],
4432 #            [Define if you have curs_set, as a function or macro.])
4433 #AH_TEMPLATE([HAVE_META],
4434 #            [Define if you have meta, as a function or macro.])
4435 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4436 #            [Define if you have use_default_colors, as a function or macro.])
4437 #AH_TEMPLATE([HAVE_RESIZETERM],
4438 #            [Define if you have resizeterm, as a function or macro.])
4439 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4440 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4441 #             This define will have value `sig_atomic_t' or
4442 #             `volatile sig_atomic_t' accordingly.])
4443 #AH_TEMPLATE([ICONV_NONTRANS],
4444 #            [Define as 1 if iconv() only converts exactly and we should treat
4445 #             all return values other than (size_t)(-1) as equivalent.])
4446
4447
4448 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4449 # Extract the first word of "sendmail", so it can be a program name with args.
4450 set dummy sendmail; ac_word=$2
4451 echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   case $SENDMAIL in
4457   [\\/]* | ?:[\\/]*)
4458   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4459   ;;
4460   *)
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 as_dummy="$PATH:$ac_aux_path_sendmail"
4463 for as_dir in $as_dummy
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475
4476   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4477   ;;
4478 esac
4479 fi
4480 SENDMAIL=$ac_cv_path_SENDMAIL
4481
4482 if test -n "$SENDMAIL"; then
4483   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4484 echo "${ECHO_T}$SENDMAIL" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490
4491 cat >>confdefs.h <<_ACEOF
4492 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4493 _ACEOF
4494
4495
4496 OPS='$(srcdir)/OPS'
4497 if test -f $srcdir/EXPORTABLE ; then
4498         SUBVERSION="us"
4499 else
4500         SUBVERSION="i"
4501
4502         # Check whether --enable-pgp or --disable-pgp was given.
4503 if test "${enable_pgp+set}" = set; then
4504   enableval="$enable_pgp"
4505          if test x$enableval = xno ; then
4506                         have_pgp=no
4507                 fi
4508
4509 fi;
4510
4511         if test x$have_pgp != xno ; then
4512
4513 cat >>confdefs.h <<\_ACEOF
4514 #define CRYPT_BACKEND_CLASSIC_PGP 1
4515 _ACEOF
4516
4517                 PGPAUX_TARGET="pgpring pgpewrap"
4518                 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"
4519         fi
4520
4521         # Check whether --enable-smime or --disable-smime was given.
4522 if test "${enable_smime+set}" = set; then
4523   enableval="$enable_smime"
4524         if test x$enableval = xno ; then
4525                         have_smime=no
4526                 fi
4527
4528 fi;
4529
4530         if test x$have_smime != xno ; then
4531
4532 cat >>confdefs.h <<\_ACEOF
4533 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4534 _ACEOF
4535
4536                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
4537                 SMIMEAUX_TARGET="smime_keys"
4538         fi
4539
4540
4541 # Check whether --with-mixmaster or --without-mixmaster was given.
4542 if test "${with_mixmaster+set}" = set; then
4543   withval="$with_mixmaster"
4544   if test -x "$withval" ; then
4545                         MIXMASTER="$withval"
4546                  else
4547                         MIXMASTER="mixmaster"
4548                  fi
4549                  OPS="$OPS \$(srcdir)/OPS.MIX"
4550                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4551
4552 cat >>confdefs.h <<_ACEOF
4553 #define MIXMASTER "$MIXMASTER"
4554 _ACEOF
4555
4556
4557 fi;
4558
4559 fi
4560 # We now require all OPS
4561 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4562
4563
4564
4565
4566
4567
4568
4569 cat >>confdefs.h <<_ACEOF
4570 #define SUBVERSION "$SUBVERSION"
4571 _ACEOF
4572
4573
4574
4575 # Extract the first word of "ispell", so it can be a program name with args.
4576 set dummy ispell; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_path_ISPELL+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   case $ISPELL in
4583   [\\/]* | ?:[\\/]*)
4584   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4585   ;;
4586   *)
4587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600
4601   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4602   ;;
4603 esac
4604 fi
4605 ISPELL=$ac_cv_path_ISPELL
4606
4607 if test -n "$ISPELL"; then
4608   echo "$as_me:$LINENO: result: $ISPELL" >&5
4609 echo "${ECHO_T}$ISPELL" >&6
4610 else
4611   echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615 if test $ISPELL != no; then
4616
4617 cat >>confdefs.h <<_ACEOF
4618 #define ISPELL "$ISPELL"
4619 _ACEOF
4620
4621 fi
4622
4623
4624 # Check whether --with-slang or --without-slang was given.
4625 if test "${with_slang+set}" = set; then
4626   withval="$with_slang"
4627   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4628 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4629 if test "${mutt_cv_bsdish+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   if test "$cross_compiling" = yes; then
4633   mutt_cv_bsdish=no
4634 else
4635   cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #include <sys/param.h>
4643
4644 main ()
4645 {
4646 #ifdef BSD
4647         exit (0);
4648 #else
4649         exit (1);
4650 #endif
4651 }
4652 _ACEOF
4653 rm -f conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655   (eval $ac_link) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; }; then
4664   mutt_cv_bsdish=yes
4665 else
4666   echo "$as_me: program exited with status $ac_status" >&5
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 ( exit $ac_status )
4671 mutt_cv_bsdish=no
4672 fi
4673 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4674 fi
4675 fi
4676 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4677 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4678
4679         echo "$as_me:$LINENO: checking for S-Lang" >&5
4680 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4681         if test $withval = yes; then
4682                 if test -d $srcdir/../slang; then
4683                         mutt_cv_slang=$srcdir/../slang/src
4684                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4685                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4686                 else
4687                         if test -d $mutt_cv_prefix/include/slang; then
4688                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4689                         elif test -d /usr/include/slang; then
4690                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4691                         fi
4692                         mutt_cv_slang=yes
4693                 fi
4694         else
4695                                 if test -f $withval/src/slang.h; then
4696                         mutt_cv_slang=$withval/src
4697                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4698                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4699                 else
4700                                                 mutt_cv_slang=$withval
4701                         if test -d $withval/include/slang; then
4702                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4703                         elif test -d $withval/include; then
4704                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4705                         fi
4706                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4707                 fi
4708         fi
4709         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4710 echo "${ECHO_T}$mutt_cv_slang" >&6
4711         if test $mutt_cv_bsdish = yes; then
4712
4713 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4714 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4715 if test "${ac_cv_lib_termlib_main+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   ac_check_lib_save_LIBS=$LIBS
4719 LIBS="-ltermlib  $LIBS"
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727
4728
4729 int
4730 main ()
4731 {
4732 main ();
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest.$ac_objext conftest$ac_exeext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739   (eval $ac_link) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } &&
4743          { ac_try='test -s conftest$ac_exeext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   ac_cv_lib_termlib_main=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_cv_lib_termlib_main=no
4755 fi
4756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4758 fi
4759 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4760 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4761 if test $ac_cv_lib_termlib_main = yes; then
4762   cat >>confdefs.h <<_ACEOF
4763 #define HAVE_LIBTERMLIB 1
4764 _ACEOF
4765
4766   LIBS="-ltermlib $LIBS"
4767
4768 fi
4769
4770         fi
4771
4772 cat >>confdefs.h <<\_ACEOF
4773 #define USE_SLANG_CURSES 1
4774 _ACEOF
4775
4776
4777 cat >>confdefs.h <<\_ACEOF
4778 #define HAVE_COLOR 1
4779 _ACEOF
4780
4781         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4782
4783
4784         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4785 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4786 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   ac_check_lib_save_LIBS=$LIBS
4790 LIBS="-lslang -lm $LIBS"
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 /* Override any gcc2 internal prototype to avoid an error.  */
4800 #ifdef __cplusplus
4801 extern "C"
4802 #endif
4803 /* We use char because int might match the return type of a gcc2
4804    builtin and then its argument prototype would still apply.  */
4805 char SLtt_get_terminfo ();
4806 int
4807 main ()
4808 {
4809 SLtt_get_terminfo ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816   (eval $ac_link) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -s conftest$ac_exeext'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; }; then
4826   ac_cv_lib_slang_SLtt_get_terminfo=yes
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4830
4831 ac_cv_lib_slang_SLtt_get_terminfo=no
4832 fi
4833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4834 LIBS=$ac_check_lib_save_LIBS
4835 fi
4836 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4837 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4838 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4839   MUTTLIBS="$MUTTLIBS -lslang -lm"
4840 else
4841   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4842 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845
4846
4847
4848 else
4849   mutt_cv_curses=/usr
4850
4851 # Check whether --with-curses or --without-curses was given.
4852 if test "${with_curses+set}" = set; then
4853   withval="$with_curses"
4854   if test $withval != yes; then
4855                         mutt_cv_curses=$withval
4856                 fi
4857                 if test x$mutt_cv_curses != x/usr; then
4858                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4859                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4860                 fi
4861 fi;
4862
4863         echo "$as_me:$LINENO: checking for initscr" >&5
4864 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4865 if test "${ac_cv_func_initscr+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 #line $LINENO "configure"
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875 /* System header to define __stub macros and hopefully few prototypes,
4876     which can conflict with char initscr (); below.
4877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878     <limits.h> exists even on freestanding compilers.  */
4879 #ifdef __STDC__
4880 # include <limits.h>
4881 #else
4882 # include <assert.h>
4883 #endif
4884 /* Override any gcc2 internal prototype to avoid an error.  */
4885 #ifdef __cplusplus
4886 extern "C"
4887 {
4888 #endif
4889 /* We use char because int might match the return type of a gcc2
4890    builtin and then its argument prototype would still apply.  */
4891 char initscr ();
4892 /* The GNU C library defines this for functions which it implements
4893     to always fail with ENOSYS.  Some functions are actually named
4894     something starting with __ and the normal name is an alias.  */
4895 #if defined (__stub_initscr) || defined (__stub___initscr)
4896 choke me
4897 #else
4898 char (*f) () = initscr;
4899 #endif
4900 #ifdef __cplusplus
4901 }
4902 #endif
4903
4904 int
4905 main ()
4906 {
4907 return f != initscr;
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914   (eval $ac_link) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } &&
4918          { ac_try='test -s conftest$ac_exeext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_cv_func_initscr=yes
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_cv_func_initscr=no
4930 fi
4931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4932 fi
4933 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4934 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4935 if test $ac_cv_func_initscr = yes; then
4936   :
4937 else
4938
4939         cf_ncurses="ncurses"
4940         for lib in ncurses ncursesw
4941         do
4942                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4943 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4944 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4945 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   ac_check_lib_save_LIBS=$LIBS
4949 LIBS="-l$lib  $LIBS"
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957
4958 /* Override any gcc2 internal prototype to avoid an error.  */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 /* We use char because int might match the return type of a gcc2
4963    builtin and then its argument prototype would still apply.  */
4964 char waddnwstr ();
4965 int
4966 main ()
4967 {
4968 waddnwstr ();
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975   (eval $ac_link) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -s conftest$ac_exeext'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   eval "$as_ac_Lib=yes"
4986 else
4987   echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 eval "$as_ac_Lib=no"
4991 fi
4992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_check_lib_save_LIBS
4994 fi
4995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4996 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4997 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4998   cf_ncurses="$lib"; break
4999 fi
5000
5001         done
5002         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5003 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5004 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5005 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   ac_check_lib_save_LIBS=$LIBS
5009 LIBS="-l$cf_ncurses  $LIBS"
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017
5018 /* Override any gcc2 internal prototype to avoid an error.  */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 /* We use char because int might match the return type of a gcc2
5023    builtin and then its argument prototype would still apply.  */
5024 char initscr ();
5025 int
5026 main ()
5027 {
5028 initscr ();
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest.$ac_objext conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035   (eval $ac_link) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } &&
5039          { ac_try='test -s conftest$ac_exeext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   eval "$as_ac_Lib=yes"
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 eval "$as_ac_Lib=no"
5051 fi
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5053 LIBS=$ac_check_lib_save_LIBS
5054 fi
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5058   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5059                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5060                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5061                 fi
5062
5063                 if test "$cf_ncurses" = ncursesw; then
5064
5065 for ac_header in ncursesw/ncurses.h
5066 do
5067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069   echo "$as_me:$LINENO: checking for $ac_header" >&5
5070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 fi
5074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5076 else
5077   # Is the header compilable?
5078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 $ac_includes_default
5088 #include <$ac_header>
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092   (eval $ac_compile) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -s conftest.$ac_objext'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; }; then
5102   ac_header_compiler=yes
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 ac_header_compiler=no
5108 fi
5109 rm -f conftest.$ac_objext conftest.$ac_ext
5110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5111 echo "${ECHO_T}$ac_header_compiler" >&6
5112
5113 # Is the header present?
5114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <$ac_header>
5124 _ACEOF
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null; then
5133   if test -s conftest.err; then
5134     ac_cpp_err=$ac_c_preproc_warn_flag
5135   else
5136     ac_cpp_err=
5137   fi
5138 else
5139   ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142   ac_header_preproc=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147   ac_header_preproc=no
5148 fi
5149 rm -f conftest.err conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5151 echo "${ECHO_T}$ac_header_preproc" >&6
5152
5153 # So?  What about this header?
5154 case $ac_header_compiler:$ac_header_preproc in
5155   yes:no )
5156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160     (
5161       cat <<\_ASBOX
5162 ## ------------------------------------ ##
5163 ## Report this to bug-autoconf@gnu.org. ##
5164 ## ------------------------------------ ##
5165 _ASBOX
5166     ) |
5167       sed "s/^/$as_me: WARNING:     /" >&2
5168     ;;
5169   no:yes )
5170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5176     (
5177       cat <<\_ASBOX
5178 ## ------------------------------------ ##
5179 ## Report this to bug-autoconf@gnu.org. ##
5180 ## ------------------------------------ ##
5181 _ASBOX
5182     ) |
5183       sed "s/^/$as_me: WARNING:     /" >&2
5184     ;;
5185 esac
5186 echo "$as_me:$LINENO: checking for $ac_header" >&5
5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   eval "$as_ac_Header=$ac_header_preproc"
5192 fi
5193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5195
5196 fi
5197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5198   cat >>confdefs.h <<_ACEOF
5199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 _ACEOF
5201  cf_cv_ncurses_header="ncursesw/ncurses.h"
5202 fi
5203
5204 done
5205
5206                 else
5207
5208 for ac_header in ncurses.h
5209 do
5210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5212   echo "$as_me:$LINENO: checking for $ac_header" >&5
5213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 fi
5217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5219 else
5220   # Is the header compilable?
5221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 $ac_includes_default
5231 #include <$ac_header>
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235   (eval $ac_compile) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } &&
5239          { ac_try='test -s conftest.$ac_objext'
5240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241   (eval $ac_try) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; }; then
5245   ac_header_compiler=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_header_compiler=no
5251 fi
5252 rm -f conftest.$ac_objext conftest.$ac_ext
5253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5254 echo "${ECHO_T}$ac_header_compiler" >&6
5255
5256 # Is the header present?
5257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #include <$ac_header>
5267 _ACEOF
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } >/dev/null; then
5276   if test -s conftest.err; then
5277     ac_cpp_err=$ac_c_preproc_warn_flag
5278   else
5279     ac_cpp_err=
5280   fi
5281 else
5282   ac_cpp_err=yes
5283 fi
5284 if test -z "$ac_cpp_err"; then
5285   ac_header_preproc=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290   ac_header_preproc=no
5291 fi
5292 rm -f conftest.err conftest.$ac_ext
5293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6
5295
5296 # So?  What about this header?
5297 case $ac_header_compiler:$ac_header_preproc in
5298   yes:no )
5299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5303     (
5304       cat <<\_ASBOX
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5308 _ASBOX
5309     ) |
5310       sed "s/^/$as_me: WARNING:     /" >&2
5311     ;;
5312   no:yes )
5313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5315     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5319     (
5320       cat <<\_ASBOX
5321 ## ------------------------------------ ##
5322 ## Report this to bug-autoconf@gnu.org. ##
5323 ## ------------------------------------ ##
5324 _ASBOX
5325     ) |
5326       sed "s/^/$as_me: WARNING:     /" >&2
5327     ;;
5328 esac
5329 echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   eval "$as_ac_Header=$ac_header_preproc"
5335 fi
5336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5338
5339 fi
5340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5341   cat >>confdefs.h <<_ACEOF
5342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343 _ACEOF
5344  cf_cv_ncurses_header="ncurses.h"
5345 fi
5346
5347 done
5348
5349                 fi
5350 else
5351
5352 echo "$as_me:$LINENO: checking for initscr" >&5
5353 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5354 if test "${ac_cv_func_initscr+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364 /* System header to define __stub macros and hopefully few prototypes,
5365     which can conflict with char initscr (); below.
5366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367     <limits.h> exists even on freestanding compilers.  */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373 /* Override any gcc2 internal prototype to avoid an error.  */
5374 #ifdef __cplusplus
5375 extern "C"
5376 {
5377 #endif
5378 /* We use char because int might match the return type of a gcc2
5379    builtin and then its argument prototype would still apply.  */
5380 char initscr ();
5381 /* The GNU C library defines this for functions which it implements
5382     to always fail with ENOSYS.  Some functions are actually named
5383     something starting with __ and the normal name is an alias.  */
5384 #if defined (__stub_initscr) || defined (__stub___initscr)
5385 choke me
5386 #else
5387 char (*f) () = initscr;
5388 #endif
5389 #ifdef __cplusplus
5390 }
5391 #endif
5392
5393 int
5394 main ()
5395 {
5396 return f != initscr;
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403   (eval $ac_link) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -s conftest$ac_exeext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_cv_func_initscr=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_cv_func_initscr=no
5419 fi
5420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5421 fi
5422 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5423 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5424 if test $ac_cv_func_initscr = yes; then
5425   :
5426 else
5427
5428 case $host_os in #(vi
5429 freebsd*) #(vi
5430         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5431 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5432 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   ac_check_lib_save_LIBS=$LIBS
5436 LIBS="-lmytinfo  $LIBS"
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444
5445 /* Override any gcc2 internal prototype to avoid an error.  */
5446 #ifdef __cplusplus
5447 extern "C"
5448 #endif
5449 /* We use char because int might match the return type of a gcc2
5450    builtin and then its argument prototype would still apply.  */
5451 char tgoto ();
5452 int
5453 main ()
5454 {
5455 tgoto ();
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462   (eval $ac_link) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } &&
5466          { ac_try='test -s conftest$ac_exeext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   ac_cv_lib_mytinfo_tgoto=yes
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_cv_lib_mytinfo_tgoto=no
5478 fi
5479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5480 LIBS=$ac_check_lib_save_LIBS
5481 fi
5482 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5483 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5484 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5485   LIBS="-lmytinfo $LIBS"
5486 fi
5487
5488         ;;
5489 hpux10.*|hpux11.*)
5490         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5491 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5492 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lcur_colr  $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504
5505 /* Override any gcc2 internal prototype to avoid an error.  */
5506 #ifdef __cplusplus
5507 extern "C"
5508 #endif
5509 /* We use char because int might match the return type of a gcc2
5510    builtin and then its argument prototype would still apply.  */
5511 char initscr ();
5512 int
5513 main ()
5514 {
5515 initscr ();
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522   (eval $ac_link) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } &&
5526          { ac_try='test -s conftest$ac_exeext'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   ac_cv_lib_cur_colr_initscr=yes
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_cv_lib_cur_colr_initscr=no
5538 fi
5539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5540 LIBS=$ac_check_lib_save_LIBS
5541 fi
5542 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5543 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5544 if test $ac_cv_lib_cur_colr_initscr = yes; then
5545
5546                 LIBS="-lcur_colr $LIBS"
5547                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5548                 ac_cv_func_initscr=yes
5549
5550 else
5551
5552         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5553 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5554 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   ac_check_lib_save_LIBS=$LIBS
5558 LIBS="-lHcurses  $LIBS"
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566
5567 /* Override any gcc2 internal prototype to avoid an error.  */
5568 #ifdef __cplusplus
5569 extern "C"
5570 #endif
5571 /* We use char because int might match the return type of a gcc2
5572    builtin and then its argument prototype would still apply.  */
5573 char initscr ();
5574 int
5575 main ()
5576 {
5577 initscr ();
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584   (eval $ac_link) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -s conftest$ac_exeext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   ac_cv_lib_Hcurses_initscr=yes
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599 ac_cv_lib_Hcurses_initscr=no
5600 fi
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5603 fi
5604 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5605 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5606 if test $ac_cv_lib_Hcurses_initscr = yes; then
5607
5608                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5609                 LIBS="-lHcurses $LIBS"
5610                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5611                 ac_cv_func_initscr=yes
5612
5613 fi
5614
5615 fi
5616
5617         ;;
5618 linux*) # Suse Linux does not follow /usr/lib convention
5619         LIBS="$LIBS -L/lib"
5620         ;;
5621 esac
5622
5623 if test ".$With5lib" != ".no" ; then
5624 if test -d /usr/5lib ; then
5625         # SunOS 3.x or 4.x
5626         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5627         LIBS="$LIBS -L/usr/5lib"
5628 fi
5629 fi
5630
5631 if test ".$ac_cv_func_initscr" != .yes ; then
5632         cf_save_LIBS="$LIBS"
5633         cf_term_lib=""
5634         cf_curs_lib=""
5635
5636         # Check for library containing tgoto.  Do this before curses library
5637         # because it may be needed to link the test-case for initscr.
5638         echo "$as_me:$LINENO: checking for tgoto" >&5
5639 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5640 if test "${ac_cv_func_tgoto+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 /* System header to define __stub macros and hopefully few prototypes,
5651     which can conflict with char tgoto (); below.
5652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653     <limits.h> exists even on freestanding compilers.  */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 /* Override any gcc2 internal prototype to avoid an error.  */
5660 #ifdef __cplusplus
5661 extern "C"
5662 {
5663 #endif
5664 /* We use char because int might match the return type of a gcc2
5665    builtin and then its argument prototype would still apply.  */
5666 char tgoto ();
5667 /* The GNU C library defines this for functions which it implements
5668     to always fail with ENOSYS.  Some functions are actually named
5669     something starting with __ and the normal name is an alias.  */
5670 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5671 choke me
5672 #else
5673 char (*f) () = tgoto;
5674 #endif
5675 #ifdef __cplusplus
5676 }
5677 #endif
5678
5679 int
5680 main ()
5681 {
5682 return f != tgoto;
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_func_tgoto=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ac_cv_func_tgoto=no
5705 fi
5706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5707 fi
5708 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5709 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5710 if test $ac_cv_func_tgoto = yes; then
5711   cf_term_lib=predefined
5712 else
5713
5714                 for cf_term_lib in termcap termlib unknown
5715                 do
5716                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5717 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5718 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   ac_check_lib_save_LIBS=$LIBS
5723 LIBS="-l$cf_term_lib  $LIBS"
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731
5732 /* Override any gcc2 internal prototype to avoid an error.  */
5733 #ifdef __cplusplus
5734 extern "C"
5735 #endif
5736 /* We use char because int might match the return type of a gcc2
5737    builtin and then its argument prototype would still apply.  */
5738 char tgoto ();
5739 int
5740 main ()
5741 {
5742 tgoto ();
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749   (eval $ac_link) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } &&
5753          { ac_try='test -s conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   eval "$as_ac_Lib=yes"
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 eval "$as_ac_Lib=no"
5765 fi
5766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5768 fi
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5771 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5772   break
5773 fi
5774
5775                 done
5776
5777 fi
5778
5779
5780         # Check for library containing initscr
5781         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5782         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5783         do
5784                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5785 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5786 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5787 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   ac_check_lib_save_LIBS=$LIBS
5791 LIBS="-l$cf_curs_lib  $LIBS"
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 /* confdefs.h.  */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h.  */
5799
5800 /* Override any gcc2 internal prototype to avoid an error.  */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 /* We use char because int might match the return type of a gcc2
5805    builtin and then its argument prototype would still apply.  */
5806 char initscr ();
5807 int
5808 main ()
5809 {
5810 initscr ();
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817   (eval $ac_link) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } &&
5821          { ac_try='test -s conftest$ac_exeext'
5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; }; then
5827   eval "$as_ac_Lib=yes"
5828 else
5829   echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 eval "$as_ac_Lib=no"
5833 fi
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5836 fi
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5839 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5840   break
5841 fi
5842
5843         done
5844         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5845 echo "$as_me: error: no curses library found" >&2;}
5846    { (exit 1); exit 1; }; }
5847
5848         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5849         if test "$cf_term_lib" = unknown ; then
5850                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5851 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5852                 cat >conftest.$ac_ext <<_ACEOF
5853 #line $LINENO "configure"
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 #include <${cf_cv_ncurses_header-curses.h}>
5860 int
5861 main ()
5862 {
5863 initscr()
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870   (eval $ac_link) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -s conftest$ac_exeext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   cf_result=yes
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 cf_result=no
5886 fi
5887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5888                 echo "$as_me:$LINENO: result: $cf_result" >&5
5889 echo "${ECHO_T}$cf_result" >&6
5890                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5891 echo "$as_me: error: Cannot link curses library" >&2;}
5892    { (exit 1); exit 1; }; }
5893         elif test "$cf_term_lib" != predefined ; then
5894                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5895 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5896                 cat >conftest.$ac_ext <<_ACEOF
5897 #line $LINENO "configure"
5898 /* confdefs.h.  */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h.  */
5903 #include <${cf_cv_ncurses_header-curses.h}>
5904 int
5905 main ()
5906 {
5907 initscr(); tgoto((char *)0, 0, 0);
5908   ;
5909   return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext conftest$ac_exeext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5914   (eval $ac_link) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -s conftest$ac_exeext'
5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920   (eval $ac_try) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; }; then
5924   cf_result=no
5925 else
5926   echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929
5930                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5931                         cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 #include <${cf_cv_ncurses_header-curses.h}>
5939 int
5940 main ()
5941 {
5942 initscr()
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949   (eval $ac_link) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } &&
5953          { ac_try='test -s conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   cf_result=yes
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 cf_result=error
5965 fi
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967
5968 fi
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5970                 echo "$as_me:$LINENO: result: $cf_result" >&5
5971 echo "${ECHO_T}$cf_result" >&6
5972         fi
5973 fi
5974
5975
5976 fi
5977
5978 fi
5979
5980
5981 fi
5982
5983
5984         old_LIBS="$LIBS"
5985         LIBS="$LIBS $MUTTLIBS"
5986         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5987 do
5988
5989 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5990 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5991 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #include <${cf_cv_ncurses_header-curses.h}>
6002 int
6003 main ()
6004 {
6005 #ifndef ${ac_func}
6006 extern  int     ${ac_func}();
6007 #endif
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -s conftest.$ac_objext'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 #include <${cf_cv_ncurses_header-curses.h}>
6033 int
6034 main ()
6035 {
6036 #ifndef ${ac_func}
6037 int     (*p)() = ${ac_func};
6038 #endif
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045   (eval $ac_compile) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -s conftest.$ac_objext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055
6056 eval "ac_cv_func_decl_$ac_func=yes"
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061
6062 eval "ac_cv_func_decl_$ac_func=no"
6063 fi
6064 rm -f conftest.$ac_objext conftest.$ac_ext
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069
6070 eval "ac_cv_func_decl_$ac_func=yes"
6071 fi
6072 rm -f conftest.$ac_objext conftest.$ac_ext
6073 fi
6074
6075 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6076   echo "$as_me:$LINENO: result: yes" >&5
6077 echo "${ECHO_T}yes" >&6
6078
6079
6080 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6081
6082   cat >>confdefs.h <<_ACEOF
6083 #define $ac_tr_func 1
6084 _ACEOF
6085
6086 else
6087   echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6089 fi
6090 done
6091
6092         if test "$ac_cv_func_decl_start_color" = yes; then
6093
6094 cat >>confdefs.h <<\_ACEOF
6095 #define HAVE_COLOR 1
6096 _ACEOF
6097
6098         fi
6099         if test "$ac_cv_func_decl_resizeterm" = yes; then
6100                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6101         fi
6102         LIBS="$old_LIBS"
6103
6104 fi;
6105
6106 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6108 if test "${ac_cv_header_stdc+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 #include <stdlib.h>
6119 #include <stdarg.h>
6120 #include <string.h>
6121 #include <float.h>
6122
6123 int
6124 main ()
6125 {
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133   (eval $ac_compile) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); } &&
6137          { ac_try='test -s conftest.$ac_objext'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; }; then
6143   ac_cv_header_stdc=yes
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 ac_cv_header_stdc=no
6149 fi
6150 rm -f conftest.$ac_objext conftest.$ac_ext
6151
6152 if test $ac_cv_header_stdc = yes; then
6153   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6154   cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161 #include <string.h>
6162
6163 _ACEOF
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165   $EGREP "memchr" >/dev/null 2>&1; then
6166   :
6167 else
6168   ac_cv_header_stdc=no
6169 fi
6170 rm -f conftest*
6171
6172 fi
6173
6174 if test $ac_cv_header_stdc = yes; then
6175   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6176   cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 #include <stdlib.h>
6184
6185 _ACEOF
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187   $EGREP "free" >/dev/null 2>&1; then
6188   :
6189 else
6190   ac_cv_header_stdc=no
6191 fi
6192 rm -f conftest*
6193
6194 fi
6195
6196 if test $ac_cv_header_stdc = yes; then
6197   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6198   if test "$cross_compiling" = yes; then
6199   :
6200 else
6201   cat >conftest.$ac_ext <<_ACEOF
6202 #line $LINENO "configure"
6203 /* confdefs.h.  */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h.  */
6208 #include <ctype.h>
6209 #if ((' ' & 0x0FF) == 0x020)
6210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6212 #else
6213 # define ISLOWER(c) \
6214                    (('a' <= (c) && (c) <= 'i') \
6215                      || ('j' <= (c) && (c) <= 'r') \
6216                      || ('s' <= (c) && (c) <= 'z'))
6217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6218 #endif
6219
6220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6221 int
6222 main ()
6223 {
6224   int i;
6225   for (i = 0; i < 256; i++)
6226     if (XOR (islower (i), ISLOWER (i))
6227         || toupper (i) != TOUPPER (i))
6228       exit(2);
6229   exit (0);
6230 }
6231 _ACEOF
6232 rm -f conftest$ac_exeext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234   (eval $ac_link) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239   (eval $ac_try) 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }; }; then
6243   :
6244 else
6245   echo "$as_me: program exited with status $ac_status" >&5
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ( exit $ac_status )
6250 ac_cv_header_stdc=no
6251 fi
6252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6253 fi
6254 fi
6255 fi
6256 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6257 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6258 if test $ac_cv_header_stdc = yes; then
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define STDC_HEADERS 1
6262 _ACEOF
6263
6264 fi
6265
6266
6267
6268
6269
6270
6271 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6272 do
6273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275   echo "$as_me:$LINENO: checking for $ac_header" >&5
6276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 fi
6280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6282 else
6283   # Is the header compilable?
6284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 $ac_includes_default
6294 #include <$ac_header>
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298   (eval $ac_compile) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -s conftest.$ac_objext'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   ac_header_compiler=yes
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_header_compiler=no
6314 fi
6315 rm -f conftest.$ac_objext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6317 echo "${ECHO_T}$ac_header_compiler" >&6
6318
6319 # Is the header present?
6320 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #include <$ac_header>
6330 _ACEOF
6331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333   ac_status=$?
6334   grep -v '^ *+' conftest.er1 >conftest.err
6335   rm -f conftest.er1
6336   cat conftest.err >&5
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); } >/dev/null; then
6339   if test -s conftest.err; then
6340     ac_cpp_err=$ac_c_preproc_warn_flag
6341   else
6342     ac_cpp_err=
6343   fi
6344 else
6345   ac_cpp_err=yes
6346 fi
6347 if test -z "$ac_cpp_err"; then
6348   ac_header_preproc=yes
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353   ac_header_preproc=no
6354 fi
6355 rm -f conftest.err conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6357 echo "${ECHO_T}$ac_header_preproc" >&6
6358
6359 # So?  What about this header?
6360 case $ac_header_compiler:$ac_header_preproc in
6361   yes:no )
6362     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366     (
6367       cat <<\_ASBOX
6368 ## ------------------------------------ ##
6369 ## Report this to bug-autoconf@gnu.org. ##
6370 ## ------------------------------------ ##
6371 _ASBOX
6372     ) |
6373       sed "s/^/$as_me: WARNING:     /" >&2
6374     ;;
6375   no:yes )
6376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6378     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6382     (
6383       cat <<\_ASBOX
6384 ## ------------------------------------ ##
6385 ## Report this to bug-autoconf@gnu.org. ##
6386 ## ------------------------------------ ##
6387 _ASBOX
6388     ) |
6389       sed "s/^/$as_me: WARNING:     /" >&2
6390     ;;
6391 esac
6392 echo "$as_me:$LINENO: checking for $ac_header" >&5
6393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   eval "$as_ac_Header=$ac_header_preproc"
6398 fi
6399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6401
6402 fi
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404   cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 _ACEOF
6407
6408 fi
6409
6410 done
6411
6412
6413
6414 for ac_header in sys/time.h sys/resource.h
6415 do
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418   echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 fi
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 else
6426   # Is the header compilable?
6427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6430 #line $LINENO "configure"
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 $ac_includes_default
6437 #include <$ac_header>
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441   (eval $ac_compile) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } &&
6445          { ac_try='test -s conftest.$ac_objext'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   ac_header_compiler=yes
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_header_compiler=no
6457 fi
6458 rm -f conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6460 echo "${ECHO_T}$ac_header_compiler" >&6
6461
6462 # Is the header present?
6463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6465 cat >conftest.$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 #include <$ac_header>
6473 _ACEOF
6474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6476   ac_status=$?
6477   grep -v '^ *+' conftest.er1 >conftest.err
6478   rm -f conftest.er1
6479   cat conftest.err >&5
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } >/dev/null; then
6482   if test -s conftest.err; then
6483     ac_cpp_err=$ac_c_preproc_warn_flag
6484   else
6485     ac_cpp_err=
6486   fi
6487 else
6488   ac_cpp_err=yes
6489 fi
6490 if test -z "$ac_cpp_err"; then
6491   ac_header_preproc=yes
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496   ac_header_preproc=no
6497 fi
6498 rm -f conftest.err conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6500 echo "${ECHO_T}$ac_header_preproc" >&6
6501
6502 # So?  What about this header?
6503 case $ac_header_compiler:$ac_header_preproc in
6504   yes:no )
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509     (
6510       cat <<\_ASBOX
6511 ## ------------------------------------ ##
6512 ## Report this to bug-autoconf@gnu.org. ##
6513 ## ------------------------------------ ##
6514 _ASBOX
6515     ) |
6516       sed "s/^/$as_me: WARNING:     /" >&2
6517     ;;
6518   no:yes )
6519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6521     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525     (
6526       cat <<\_ASBOX
6527 ## ------------------------------------ ##
6528 ## Report this to bug-autoconf@gnu.org. ##
6529 ## ------------------------------------ ##
6530 _ASBOX
6531     ) |
6532       sed "s/^/$as_me: WARNING:     /" >&2
6533     ;;
6534 esac
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   eval "$as_ac_Header=$ac_header_preproc"
6541 fi
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544
6545 fi
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547   cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 _ACEOF
6550
6551 fi
6552
6553 done
6554
6555
6556 for ac_header in unix.h
6557 do
6558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo "$as_me:$LINENO: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 fi
6565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6567 else
6568   # Is the header compilable?
6569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 $ac_includes_default
6579 #include <$ac_header>
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -s conftest.$ac_objext'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; }; then
6593   ac_header_compiler=yes
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ac_header_compiler=no
6599 fi
6600 rm -f conftest.$ac_objext conftest.$ac_ext
6601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6
6603
6604 # Is the header present?
6605 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 #include <$ac_header>
6615 _ACEOF
6616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6618   ac_status=$?
6619   grep -v '^ *+' conftest.er1 >conftest.err
6620   rm -f conftest.er1
6621   cat conftest.err >&5
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); } >/dev/null; then
6624   if test -s conftest.err; then
6625     ac_cpp_err=$ac_c_preproc_warn_flag
6626   else
6627     ac_cpp_err=
6628   fi
6629 else
6630   ac_cpp_err=yes
6631 fi
6632 if test -z "$ac_cpp_err"; then
6633   ac_header_preproc=yes
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6637
6638   ac_header_preproc=no
6639 fi
6640 rm -f conftest.err conftest.$ac_ext
6641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6642 echo "${ECHO_T}$ac_header_preproc" >&6
6643
6644 # So?  What about this header?
6645 case $ac_header_compiler:$ac_header_preproc in
6646   yes:no )
6647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6651     (
6652       cat <<\_ASBOX
6653 ## ------------------------------------ ##
6654 ## Report this to bug-autoconf@gnu.org. ##
6655 ## ------------------------------------ ##
6656 _ASBOX
6657     ) |
6658       sed "s/^/$as_me: WARNING:     /" >&2
6659     ;;
6660   no:yes )
6661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6667     (
6668       cat <<\_ASBOX
6669 ## ------------------------------------ ##
6670 ## Report this to bug-autoconf@gnu.org. ##
6671 ## ------------------------------------ ##
6672 _ASBOX
6673     ) |
6674       sed "s/^/$as_me: WARNING:     /" >&2
6675     ;;
6676 esac
6677 echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   eval "$as_ac_Header=$ac_header_preproc"
6683 fi
6684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6686
6687 fi
6688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689   cat >>confdefs.h <<_ACEOF
6690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691 _ACEOF
6692
6693 fi
6694
6695 done
6696
6697
6698
6699
6700
6701 for ac_func in setrlimit getsid isctype
6702 do
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 /* System header to define __stub macros and hopefully few prototypes,
6717     which can conflict with char $ac_func (); below.
6718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719     <limits.h> exists even on freestanding compilers.  */
6720 #ifdef __STDC__
6721 # include <limits.h>
6722 #else
6723 # include <assert.h>
6724 #endif
6725 /* Override any gcc2 internal prototype to avoid an error.  */
6726 #ifdef __cplusplus
6727 extern "C"
6728 {
6729 #endif
6730 /* We use char because int might match the return type of a gcc2
6731    builtin and then its argument prototype would still apply.  */
6732 char $ac_func ();
6733 /* The GNU C library defines this for functions which it implements
6734     to always fail with ENOSYS.  Some functions are actually named
6735     something starting with __ and the normal name is an alias.  */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 choke me
6738 #else
6739 char (*f) () = $ac_func;
6740 #endif
6741 #ifdef __cplusplus
6742 }
6743 #endif
6744
6745 int
6746 main ()
6747 {
6748 return f != $ac_func;
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755   (eval $ac_link) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } &&
6759          { ac_try='test -s conftest$ac_exeext'
6760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761   (eval $ac_try) 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; }; then
6765   eval "$as_ac_var=yes"
6766 else
6767   echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 eval "$as_ac_var=no"
6771 fi
6772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6773 fi
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6776 if test `eval echo '${'$as_ac_var'}'` = yes; then
6777   cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6779 _ACEOF
6780
6781 fi
6782 done
6783
6784
6785 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6786 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6787 if test "${ac_cv_type_signal+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797 #include <sys/types.h>
6798 #include <signal.h>
6799 #ifdef signal
6800 # undef signal
6801 #endif
6802 #ifdef __cplusplus
6803 extern "C" void (*signal (int, void (*)(int)))(int);
6804 #else
6805 void (*signal ()) ();
6806 #endif
6807
6808 int
6809 main ()
6810 {
6811 int i;
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_cv_type_signal=void
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_type_signal=int
6834 fi
6835 rm -f conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6838 echo "${ECHO_T}$ac_cv_type_signal" >&6
6839
6840 cat >>confdefs.h <<_ACEOF
6841 #define RETSIGTYPE $ac_cv_type_signal
6842 _ACEOF
6843
6844
6845
6846 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6847 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 #include <signal.h>
6856
6857 _ACEOF
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6860
6861     ac_cv_type_sig_atomic_t=yes;
6862     cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 #include <signal.h>
6870
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6874
6875                         is_sig_atomic_t_volatile=yes;
6876                         echo "$as_me:$LINENO: result: yes, volatile" >&5
6877 echo "${ECHO_T}yes, volatile" >&6
6878
6879 else
6880
6881                         is_sig_atomic_t_volatile=no;
6882                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
6883 echo "${ECHO_T}yes, non volatile" >&6
6884
6885 fi
6886 rm -f conftest*
6887
6888
6889 else
6890
6891     echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6
6893     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6894 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6895 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905 $ac_includes_default
6906 int
6907 main ()
6908 {
6909 if ((sig_atomic_t *) 0)
6910   return 0;
6911 if (sizeof (sig_atomic_t))
6912   return 0;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919   (eval $ac_compile) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } &&
6923          { ac_try='test -s conftest.$ac_objext'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; }; then
6929   ac_cv_type_sig_atomic_t=yes
6930 else
6931   echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 ac_cv_type_sig_atomic_t=no
6935 fi
6936 rm -f conftest.$ac_objext conftest.$ac_ext
6937 fi
6938 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6939 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6940 if test $ac_cv_type_sig_atomic_t = yes; then
6941   :
6942 else
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define sig_atomic_t int
6946 _ACEOF
6947
6948 fi
6949
6950     is_sig_atomic_t_volatile=no
6951
6952 fi
6953 rm -f conftest*
6954
6955 if test $is_sig_atomic_t_volatile = 'yes'
6956 then
6957     cat >>confdefs.h <<\_ACEOF
6958 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6959 _ACEOF
6960
6961 else
6962     cat >>confdefs.h <<\_ACEOF
6963 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6964 _ACEOF
6965
6966 fi
6967
6968 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6969 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6970 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 $ac_includes_default
6981 int
6982 main ()
6983 {
6984 #ifndef sys_siglist
6985   char *p = (char *) sys_siglist;
6986 #endif
6987
6988   ;
6989   return 0;
6990 }
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6994   (eval $ac_compile) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } &&
6998          { ac_try='test -s conftest.$ac_objext'
6999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000   (eval $ac_try) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); }; }; then
7004   ac_cv_have_decl_sys_siglist=yes
7005 else
7006   echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_cv_have_decl_sys_siglist=no
7010 fi
7011 rm -f conftest.$ac_objext conftest.$ac_ext
7012 fi
7013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7014 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7015 if test $ac_cv_have_decl_sys_siglist = yes; then
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 1
7019 _ACEOF
7020
7021
7022 else
7023   cat >>confdefs.h <<_ACEOF
7024 #define HAVE_DECL_SYS_SIGLIST 0
7025 _ACEOF
7026
7027
7028 fi
7029
7030
7031
7032
7033 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7035 if test "${ac_cv_c_bigendian+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   # See if sys/param.h defines the BYTE_ORDER macro.
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 #include <sys/types.h>
7047 #include <sys/param.h>
7048
7049 int
7050 main ()
7051 {
7052 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7053  bogus endian macros
7054 #endif
7055
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -s conftest.$ac_objext'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; }; then
7072   # It does; now see whether it defined to BIG_ENDIAN or not.
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 #include <sys/types.h>
7081 #include <sys/param.h>
7082
7083 int
7084 main ()
7085 {
7086 #if BYTE_ORDER != BIG_ENDIAN
7087  not big endian
7088 #endif
7089
7090   ;
7091   return 0;
7092 }
7093 _ACEOF
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096   (eval $ac_compile) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } &&
7100          { ac_try='test -s conftest.$ac_objext'
7101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102   (eval $ac_try) 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_cv_c_bigendian=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 ac_cv_c_bigendian=no
7112 fi
7113 rm -f conftest.$ac_objext conftest.$ac_ext
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 # It does not; compile a test program.
7119 if test "$cross_compiling" = yes; then
7120   # try to guess the endianness by grepping values into an object file
7121   ac_cv_c_bigendian=unknown
7122   cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 /* confdefs.h.  */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h.  */
7129 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7130 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7131 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7132 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7133 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7134 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7135 int
7136 main ()
7137 {
7138  _ascii (); _ebcdic ();
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145   (eval $ac_compile) 2>&5
7146   ac_status=$?
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); } &&
7149          { ac_try='test -s conftest.$ac_objext'
7150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151   (eval $ac_try) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; }; then
7155   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7156   ac_cv_c_bigendian=yes
7157 fi
7158 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7159   if test "$ac_cv_c_bigendian" = unknown; then
7160     ac_cv_c_bigendian=no
7161   else
7162     # finding both strings is unlikely to happen, but who knows?
7163     ac_cv_c_bigendian=unknown
7164   fi
7165 fi
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 fi
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7172 else
7173   cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180 int
7181 main ()
7182 {
7183   /* Are we little or big endian?  From Harbison&Steele.  */
7184   union
7185   {
7186     long l;
7187     char c[sizeof (long)];
7188   } u;
7189   u.l = 1;
7190   exit (u.c[sizeof (long) - 1] == 1);
7191 }
7192 _ACEOF
7193 rm -f conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195   (eval $ac_link) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_cv_c_bigendian=no
7205 else
7206   echo "$as_me: program exited with status $ac_status" >&5
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ( exit $ac_status )
7211 ac_cv_c_bigendian=yes
7212 fi
7213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 fi
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7219 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7220 case $ac_cv_c_bigendian in
7221   yes)
7222
7223 cat >>confdefs.h <<\_ACEOF
7224 #define WORDS_BIGENDIAN 1
7225 _ACEOF
7226  ;;
7227   no)
7228      ;;
7229   *)
7230     { { echo "$as_me:$LINENO: error: unknown endianness
7231 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7232 echo "$as_me: error: unknown endianness
7233 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7234    { (exit 1); exit 1; }; } ;;
7235 esac
7236
7237
7238
7239 for ac_header in inttypes.h stdint.h
7240 do
7241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243   echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 fi
7248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 else
7251   # Is the header compilable?
7252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 $ac_includes_default
7262 #include <$ac_header>
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266   (eval $ac_compile) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } &&
7270          { ac_try='test -s conftest.$ac_objext'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; }; then
7276   ac_header_compiler=yes
7277 else
7278   echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_header_compiler=no
7282 fi
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6
7286
7287 # Is the header present?
7288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297 #include <$ac_header>
7298 _ACEOF
7299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7301   ac_status=$?
7302   grep -v '^ *+' conftest.er1 >conftest.err
7303   rm -f conftest.er1
7304   cat conftest.err >&5
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } >/dev/null; then
7307   if test -s conftest.err; then
7308     ac_cpp_err=$ac_c_preproc_warn_flag
7309   else
7310     ac_cpp_err=
7311   fi
7312 else
7313   ac_cpp_err=yes
7314 fi
7315 if test -z "$ac_cpp_err"; then
7316   ac_header_preproc=yes
7317 else
7318   echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321   ac_header_preproc=no
7322 fi
7323 rm -f conftest.err conftest.$ac_ext
7324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7325 echo "${ECHO_T}$ac_header_preproc" >&6
7326
7327 # So?  What about this header?
7328 case $ac_header_compiler:$ac_header_preproc in
7329   yes:no )
7330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7334     (
7335       cat <<\_ASBOX
7336 ## ------------------------------------ ##
7337 ## Report this to bug-autoconf@gnu.org. ##
7338 ## ------------------------------------ ##
7339 _ASBOX
7340     ) |
7341       sed "s/^/$as_me: WARNING:     /" >&2
7342     ;;
7343   no:yes )
7344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7346     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7350     (
7351       cat <<\_ASBOX
7352 ## ------------------------------------ ##
7353 ## Report this to bug-autoconf@gnu.org. ##
7354 ## ------------------------------------ ##
7355 _ASBOX
7356     ) |
7357       sed "s/^/$as_me: WARNING:     /" >&2
7358     ;;
7359 esac
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   eval "$as_ac_Header=$ac_header_preproc"
7366 fi
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7369
7370 fi
7371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7372   cat >>confdefs.h <<_ACEOF
7373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7374 _ACEOF
7375
7376 fi
7377
7378 done
7379
7380 echo "$as_me:$LINENO: checking for uint32_t" >&5
7381 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7382 cat >conftest.$ac_ext <<_ACEOF
7383 #line $LINENO "configure"
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389
7390 #include <sys/types.h>
7391 #if HAVE_INTTYPES_H
7392 #include <inttypes.h>
7393 #else
7394 #if HAVE_STDINT_H
7395 #include <stdint.h>
7396 #endif
7397 #endif
7398 int
7399 main ()
7400 {
7401 if ((uint32_t *) 0)
7402   return 0;
7403 if (sizeof (uint32_t))
7404   return 0;
7405
7406   ;
7407   return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412   (eval $ac_compile) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } &&
7416          { ac_try='test -s conftest.$ac_objext'
7417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418   (eval $ac_try) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422
7423
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_UINT32_T 1
7426 _ACEOF
7427
7428     echo "$as_me:$LINENO: result: yes" >&5
7429 echo "${ECHO_T}yes" >&6
7430
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437
7438 fi
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: checking for int" >&5
7441 echo $ECHO_N "checking for int... $ECHO_C" >&6
7442 if test "${ac_cv_type_int+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 $ac_includes_default
7453 int
7454 main ()
7455 {
7456 if ((int *) 0)
7457   return 0;
7458 if (sizeof (int))
7459   return 0;
7460   ;
7461   return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466   (eval $ac_compile) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } &&
7470          { ac_try='test -s conftest.$ac_objext'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   ac_cv_type_int=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_cv_type_int=no
7482 fi
7483 rm -f conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7486 echo "${ECHO_T}$ac_cv_type_int" >&6
7487
7488 echo "$as_me:$LINENO: checking size of int" >&5
7489 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7490 if test "${ac_cv_sizeof_int+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   if test "$ac_cv_type_int" = yes; then
7494   # The cast to unsigned long works around a bug in the HP C Compiler
7495   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7496   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7497   # This bug is HP SR number 8606223364.
7498   if test "$cross_compiling" = yes; then
7499   # Depending upon the size, compute the lo and hi bounds.
7500 cat >conftest.$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 $ac_includes_default
7508 int
7509 main ()
7510 {
7511 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7512 test_array [0] = 0
7513
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7520   (eval $ac_compile) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } &&
7524          { ac_try='test -s conftest.$ac_objext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_lo=0 ac_mid=0
7531   while :; do
7532     cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539 $ac_includes_default
7540 int
7541 main ()
7542 {
7543 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7544 test_array [0] = 0
7545
7546   ;
7547   return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552   (eval $ac_compile) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -s conftest.$ac_objext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   ac_hi=$ac_mid; break
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_lo=`expr $ac_mid + 1`
7568                     if test $ac_lo -le $ac_mid; then
7569                       ac_lo= ac_hi=
7570                       break
7571                     fi
7572                     ac_mid=`expr 2 '*' $ac_mid + 1`
7573 fi
7574 rm -f conftest.$ac_objext conftest.$ac_ext
7575   done
7576 else
7577   echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 cat >conftest.$ac_ext <<_ACEOF
7581 #line $LINENO "configure"
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587 $ac_includes_default
7588 int
7589 main ()
7590 {
7591 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7592 test_array [0] = 0
7593
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7600   (eval $ac_compile) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); } &&
7604          { ac_try='test -s conftest.$ac_objext'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   ac_hi=-1 ac_mid=-1
7611   while :; do
7612     cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 $ac_includes_default
7620 int
7621 main ()
7622 {
7623 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7624 test_array [0] = 0
7625
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632   (eval $ac_compile) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -s conftest.$ac_objext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   ac_lo=$ac_mid; break
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_hi=`expr '(' $ac_mid ')' - 1`
7648                        if test $ac_mid -le $ac_hi; then
7649                          ac_lo= ac_hi=
7650                          break
7651                        fi
7652                        ac_mid=`expr 2 '*' $ac_mid`
7653 fi
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655   done
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ac_lo= ac_hi=
7661 fi
7662 rm -f conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 rm -f conftest.$ac_objext conftest.$ac_ext
7665 # Binary search between lo and hi bounds.
7666 while test "x$ac_lo" != "x$ac_hi"; do
7667   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7668   cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 $ac_includes_default
7676 int
7677 main ()
7678 {
7679 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7680 test_array [0] = 0
7681
7682   ;
7683   return 0;
7684 }
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688   (eval $ac_compile) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -s conftest.$ac_objext'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; }; then
7698   ac_hi=$ac_mid
7699 else
7700   echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 ac_lo=`expr '(' $ac_mid ')' + 1`
7704 fi
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7706 done
7707 case $ac_lo in
7708 ?*) ac_cv_sizeof_int=$ac_lo;;
7709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7710 See \`config.log' for more details." >&5
7711 echo "$as_me: error: cannot compute sizeof (int), 77
7712 See \`config.log' for more details." >&2;}
7713    { (exit 1); exit 1; }; } ;;
7714 esac
7715 else
7716   if test "$cross_compiling" = yes; then
7717   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7718 See \`config.log' for more details." >&5
7719 echo "$as_me: error: cannot run test program while cross compiling
7720 See \`config.log' for more details." >&2;}
7721    { (exit 1); exit 1; }; }
7722 else
7723   cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730 $ac_includes_default
7731 long longval () { return (long) (sizeof (int)); }
7732 unsigned long ulongval () { return (long) (sizeof (int)); }
7733 #include <stdio.h>
7734 #include <stdlib.h>
7735 int
7736 main ()
7737 {
7738
7739   FILE *f = fopen ("conftest.val", "w");
7740   if (! f)
7741     exit (1);
7742   if (((long) (sizeof (int))) < 0)
7743     {
7744       long i = longval ();
7745       if (i != ((long) (sizeof (int))))
7746         exit (1);
7747       fprintf (f, "%ld\n", i);
7748     }
7749   else
7750     {
7751       unsigned long i = ulongval ();
7752       if (i != ((long) (sizeof (int))))
7753         exit (1);
7754       fprintf (f, "%lu\n", i);
7755     }
7756   exit (ferror (f) || fclose (f) != 0);
7757
7758   ;
7759   return 0;
7760 }
7761 _ACEOF
7762 rm -f conftest$ac_exeext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764   (eval $ac_link) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_cv_sizeof_int=`cat conftest.val`
7774 else
7775   echo "$as_me: program exited with status $ac_status" >&5
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 ( exit $ac_status )
7780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7781 See \`config.log' for more details." >&5
7782 echo "$as_me: error: cannot compute sizeof (int), 77
7783 See \`config.log' for more details." >&2;}
7784    { (exit 1); exit 1; }; }
7785 fi
7786 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 fi
7789 rm -f conftest.val
7790 else
7791   ac_cv_sizeof_int=0
7792 fi
7793 fi
7794 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7795 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7796 cat >>confdefs.h <<_ACEOF
7797 #define SIZEOF_INT $ac_cv_sizeof_int
7798 _ACEOF
7799
7800
7801 echo "$as_me:$LINENO: checking for long" >&5
7802 echo $ECHO_N "checking for long... $ECHO_C" >&6
7803 if test "${ac_cv_type_long+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   cat >conftest.$ac_ext <<_ACEOF
7807 #line $LINENO "configure"
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813 $ac_includes_default
7814 int
7815 main ()
7816 {
7817 if ((long *) 0)
7818   return 0;
7819 if (sizeof (long))
7820   return 0;
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827   (eval $ac_compile) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -s conftest.$ac_objext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   ac_cv_type_long=yes
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_type_long=no
7843 fi
7844 rm -f conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7847 echo "${ECHO_T}$ac_cv_type_long" >&6
7848
7849 echo "$as_me:$LINENO: checking size of long" >&5
7850 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7851 if test "${ac_cv_sizeof_long+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   if test "$ac_cv_type_long" = yes; then
7855   # The cast to unsigned long works around a bug in the HP C Compiler
7856   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7857   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7858   # This bug is HP SR number 8606223364.
7859   if test "$cross_compiling" = yes; then
7860   # Depending upon the size, compute the lo and hi bounds.
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868 $ac_includes_default
7869 int
7870 main ()
7871 {
7872 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7873 test_array [0] = 0
7874
7875   ;
7876   return 0;
7877 }
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881   (eval $ac_compile) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } &&
7885          { ac_try='test -s conftest.$ac_objext'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; }; then
7891   ac_lo=0 ac_mid=0
7892   while :; do
7893     cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900 $ac_includes_default
7901 int
7902 main ()
7903 {
7904 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7905 test_array [0] = 0
7906
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913   (eval $ac_compile) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -s conftest.$ac_objext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_hi=$ac_mid; break
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_lo=`expr $ac_mid + 1`
7929                     if test $ac_lo -le $ac_mid; then
7930                       ac_lo= ac_hi=
7931                       break
7932                     fi
7933                     ac_mid=`expr 2 '*' $ac_mid + 1`
7934 fi
7935 rm -f conftest.$ac_objext conftest.$ac_ext
7936   done
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948 $ac_includes_default
7949 int
7950 main ()
7951 {
7952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7953 test_array [0] = 0
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961   (eval $ac_compile) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } &&
7965          { ac_try='test -s conftest.$ac_objext'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; }; then
7971   ac_hi=-1 ac_mid=-1
7972   while :; do
7973     cat >conftest.$ac_ext <<_ACEOF
7974 #line $LINENO "configure"
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 $ac_includes_default
7981 int
7982 main ()
7983 {
7984 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7985 test_array [0] = 0
7986
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993   (eval $ac_compile) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   ac_lo=$ac_mid; break
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 ac_hi=`expr '(' $ac_mid ')' - 1`
8009                        if test $ac_mid -le $ac_hi; then
8010                          ac_lo= ac_hi=
8011                          break
8012                        fi
8013                        ac_mid=`expr 2 '*' $ac_mid`
8014 fi
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8016   done
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_lo= ac_hi=
8022 fi
8023 rm -f conftest.$ac_objext conftest.$ac_ext
8024 fi
8025 rm -f conftest.$ac_objext conftest.$ac_ext
8026 # Binary search between lo and hi bounds.
8027 while test "x$ac_lo" != "x$ac_hi"; do
8028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8029   cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036 $ac_includes_default
8037 int
8038 main ()
8039 {
8040 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8041 test_array [0] = 0
8042
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049   (eval $ac_compile) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -s conftest.$ac_objext'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; }; then
8059   ac_hi=$ac_mid
8060 else
8061   echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_lo=`expr '(' $ac_mid ')' + 1`
8065 fi
8066 rm -f conftest.$ac_objext conftest.$ac_ext
8067 done
8068 case $ac_lo in
8069 ?*) ac_cv_sizeof_long=$ac_lo;;
8070 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8071 See \`config.log' for more details." >&5
8072 echo "$as_me: error: cannot compute sizeof (long), 77
8073 See \`config.log' for more details." >&2;}
8074    { (exit 1); exit 1; }; } ;;
8075 esac
8076 else
8077   if test "$cross_compiling" = yes; then
8078   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8079 See \`config.log' for more details." >&5
8080 echo "$as_me: error: cannot run test program while cross compiling
8081 See \`config.log' for more details." >&2;}
8082    { (exit 1); exit 1; }; }
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 $ac_includes_default
8092 long longval () { return (long) (sizeof (long)); }
8093 unsigned long ulongval () { return (long) (sizeof (long)); }
8094 #include <stdio.h>
8095 #include <stdlib.h>
8096 int
8097 main ()
8098 {
8099
8100   FILE *f = fopen ("conftest.val", "w");
8101   if (! f)
8102     exit (1);
8103   if (((long) (sizeof (long))) < 0)
8104     {
8105       long i = longval ();
8106       if (i != ((long) (sizeof (long))))
8107         exit (1);
8108       fprintf (f, "%ld\n", i);
8109     }
8110   else
8111     {
8112       unsigned long i = ulongval ();
8113       if (i != ((long) (sizeof (long))))
8114         exit (1);
8115       fprintf (f, "%lu\n", i);
8116     }
8117   exit (ferror (f) || fclose (f) != 0);
8118
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_sizeof_long=`cat conftest.val`
8135 else
8136   echo "$as_me: program exited with status $ac_status" >&5
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ( exit $ac_status )
8141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot compute sizeof (long), 77
8144 See \`config.log' for more details." >&2;}
8145    { (exit 1); exit 1; }; }
8146 fi
8147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 fi
8150 rm -f conftest.val
8151 else
8152   ac_cv_sizeof_long=0
8153 fi
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8156 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8157 cat >>confdefs.h <<_ACEOF
8158 #define SIZEOF_LONG $ac_cv_sizeof_long
8159 _ACEOF
8160
8161
8162
8163 echo "$as_me:$LINENO: checking for pid_t" >&5
8164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8165 if test "${ac_cv_type_pid_t+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 $ac_includes_default
8176 int
8177 main ()
8178 {
8179 if ((pid_t *) 0)
8180   return 0;
8181 if (sizeof (pid_t))
8182   return 0;
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189   (eval $ac_compile) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -s conftest.$ac_objext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_type_pid_t=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_cv_type_pid_t=no
8205 fi
8206 rm -f conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8209 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8210 if test $ac_cv_type_pid_t = yes; then
8211   :
8212 else
8213
8214 cat >>confdefs.h <<_ACEOF
8215 #define pid_t int
8216 _ACEOF
8217
8218 fi
8219
8220
8221
8222
8223
8224
8225
8226 for ac_func in fgetpos memmove setegid srand48 strerror
8227 do
8228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 /* System header to define __stub macros and hopefully few prototypes,
8242     which can conflict with char $ac_func (); below.
8243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8244     <limits.h> exists even on freestanding compilers.  */
8245 #ifdef __STDC__
8246 # include <limits.h>
8247 #else
8248 # include <assert.h>
8249 #endif
8250 /* Override any gcc2 internal prototype to avoid an error.  */
8251 #ifdef __cplusplus
8252 extern "C"
8253 {
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256    builtin and then its argument prototype would still apply.  */
8257 char $ac_func ();
8258 /* The GNU C library defines this for functions which it implements
8259     to always fail with ENOSYS.  Some functions are actually named
8260     something starting with __ and the normal name is an alias.  */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 choke me
8263 #else
8264 char (*f) () = $ac_func;
8265 #endif
8266 #ifdef __cplusplus
8267 }
8268 #endif
8269
8270 int
8271 main ()
8272 {
8273 return f != $ac_func;
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280   (eval $ac_link) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   eval "$as_ac_var=yes"
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 eval "$as_ac_var=no"
8296 fi
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 fi
8299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8301 if test `eval echo '${'$as_ac_var'}'` = yes; then
8302   cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304 _ACEOF
8305
8306 fi
8307 done
8308
8309
8310
8311
8312 for ac_func in strcasecmp strdup
8313 do
8314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315 echo "$as_me:$LINENO: checking for $ac_func" >&5
8316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8317 if eval "test \"\${$as_ac_var+set}\" = set"; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 /* System header to define __stub macros and hopefully few prototypes,
8328     which can conflict with char $ac_func (); below.
8329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8330     <limits.h> exists even on freestanding compilers.  */
8331 #ifdef __STDC__
8332 # include <limits.h>
8333 #else
8334 # include <assert.h>
8335 #endif
8336 /* Override any gcc2 internal prototype to avoid an error.  */
8337 #ifdef __cplusplus
8338 extern "C"
8339 {
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342    builtin and then its argument prototype would still apply.  */
8343 char $ac_func ();
8344 /* The GNU C library defines this for functions which it implements
8345     to always fail with ENOSYS.  Some functions are actually named
8346     something starting with __ and the normal name is an alias.  */
8347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8348 choke me
8349 #else
8350 char (*f) () = $ac_func;
8351 #endif
8352 #ifdef __cplusplus
8353 }
8354 #endif
8355
8356 int
8357 main ()
8358 {
8359 return f != $ac_func;
8360   ;
8361   return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext conftest$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366   (eval $ac_link) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   eval "$as_ac_var=yes"
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 eval "$as_ac_var=no"
8382 fi
8383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8384 fi
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8387 if test `eval echo '${'$as_ac_var'}'` = yes; then
8388   cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8390 _ACEOF
8391
8392 else
8393   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8394 fi
8395 done
8396
8397
8398
8399 echo "$as_me:$LINENO: checking for getopt" >&5
8400 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8401 if test "${ac_cv_func_getopt+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   cat >conftest.$ac_ext <<_ACEOF
8405 #line $LINENO "configure"
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 /* System header to define __stub macros and hopefully few prototypes,
8412     which can conflict with char getopt (); below.
8413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414     <limits.h> exists even on freestanding compilers.  */
8415 #ifdef __STDC__
8416 # include <limits.h>
8417 #else
8418 # include <assert.h>
8419 #endif
8420 /* Override any gcc2 internal prototype to avoid an error.  */
8421 #ifdef __cplusplus
8422 extern "C"
8423 {
8424 #endif
8425 /* We use char because int might match the return type of a gcc2
8426    builtin and then its argument prototype would still apply.  */
8427 char getopt ();
8428 /* The GNU C library defines this for functions which it implements
8429     to always fail with ENOSYS.  Some functions are actually named
8430     something starting with __ and the normal name is an alias.  */
8431 #if defined (__stub_getopt) || defined (__stub___getopt)
8432 choke me
8433 #else
8434 char (*f) () = getopt;
8435 #endif
8436 #ifdef __cplusplus
8437 }
8438 #endif
8439
8440 int
8441 main ()
8442 {
8443 return f != getopt;
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450   (eval $ac_link) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -s conftest$ac_exeext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_cv_func_getopt=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_cv_func_getopt=no
8466 fi
8467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8470 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8471
8472 if test $ac_cv_func_getopt = yes; then
8473
8474 for ac_header in getopt.h
8475 do
8476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8478   echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 fi
8483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8485 else
8486   # Is the header compilable?
8487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8490 #line $LINENO "configure"
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496 $ac_includes_default
8497 #include <$ac_header>
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501   (eval $ac_compile) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } &&
8505          { ac_try='test -s conftest.$ac_objext'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_header_compiler=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_header_compiler=no
8517 fi
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6
8521
8522 # Is the header present?
8523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 #include <$ac_header>
8533 _ACEOF
8534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8536   ac_status=$?
8537   grep -v '^ *+' conftest.er1 >conftest.err
8538   rm -f conftest.er1
8539   cat conftest.err >&5
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } >/dev/null; then
8542   if test -s conftest.err; then
8543     ac_cpp_err=$ac_c_preproc_warn_flag
8544   else
8545     ac_cpp_err=
8546   fi
8547 else
8548   ac_cpp_err=yes
8549 fi
8550 if test -z "$ac_cpp_err"; then
8551   ac_header_preproc=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556   ac_header_preproc=no
8557 fi
8558 rm -f conftest.err conftest.$ac_ext
8559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560 echo "${ECHO_T}$ac_header_preproc" >&6
8561
8562 # So?  What about this header?
8563 case $ac_header_compiler:$ac_header_preproc in
8564   yes:no )
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569     (
8570       cat <<\_ASBOX
8571 ## ------------------------------------ ##
8572 ## Report this to bug-autoconf@gnu.org. ##
8573 ## ------------------------------------ ##
8574 _ASBOX
8575     ) |
8576       sed "s/^/$as_me: WARNING:     /" >&2
8577     ;;
8578   no:yes )
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585     (
8586       cat <<\_ASBOX
8587 ## ------------------------------------ ##
8588 ## Report this to bug-autoconf@gnu.org. ##
8589 ## ------------------------------------ ##
8590 _ASBOX
8591     ) |
8592       sed "s/^/$as_me: WARNING:     /" >&2
8593     ;;
8594 esac
8595 echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   eval "$as_ac_Header=$ac_header_preproc"
8601 fi
8602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604
8605 fi
8606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8607   cat >>confdefs.h <<_ACEOF
8608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8609 _ACEOF
8610
8611 fi
8612
8613 done
8614
8615 fi
8616
8617 mutt_cv_snprintf=no
8618 SNPRINTFOBJS=""
8619
8620 for ac_func in snprintf
8621 do
8622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623 echo "$as_me:$LINENO: checking for $ac_func" >&5
8624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_var+set}\" = set"; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 /* System header to define __stub macros and hopefully few prototypes,
8636     which can conflict with char $ac_func (); below.
8637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638     <limits.h> exists even on freestanding compilers.  */
8639 #ifdef __STDC__
8640 # include <limits.h>
8641 #else
8642 # include <assert.h>
8643 #endif
8644 /* Override any gcc2 internal prototype to avoid an error.  */
8645 #ifdef __cplusplus
8646 extern "C"
8647 {
8648 #endif
8649 /* We use char because int might match the return type of a gcc2
8650    builtin and then its argument prototype would still apply.  */
8651 char $ac_func ();
8652 /* The GNU C library defines this for functions which it implements
8653     to always fail with ENOSYS.  Some functions are actually named
8654     something starting with __ and the normal name is an alias.  */
8655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8656 choke me
8657 #else
8658 char (*f) () = $ac_func;
8659 #endif
8660 #ifdef __cplusplus
8661 }
8662 #endif
8663
8664 int
8665 main ()
8666 {
8667 return f != $ac_func;
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674   (eval $ac_link) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); } &&
8678          { ac_try='test -s conftest$ac_exeext'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   eval "$as_ac_var=yes"
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 eval "$as_ac_var=no"
8690 fi
8691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696   cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 else
8701   mutt_cv_snprintf=yes
8702 fi
8703 done
8704
8705
8706 for ac_func in vsnprintf
8707 do
8708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8709 echo "$as_me:$LINENO: checking for $ac_func" >&5
8710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8711 if eval "test \"\${$as_ac_var+set}\" = set"; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   cat >conftest.$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 /* System header to define __stub macros and hopefully few prototypes,
8722     which can conflict with char $ac_func (); below.
8723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724     <limits.h> exists even on freestanding compilers.  */
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 {
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736    builtin and then its argument prototype would still apply.  */
8737 char $ac_func ();
8738 /* The GNU C library defines this for functions which it implements
8739     to always fail with ENOSYS.  Some functions are actually named
8740     something starting with __ and the normal name is an alias.  */
8741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8742 choke me
8743 #else
8744 char (*f) () = $ac_func;
8745 #endif
8746 #ifdef __cplusplus
8747 }
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return f != $ac_func;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -s conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   eval "$as_ac_var=yes"
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 eval "$as_ac_var=no"
8776 fi
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8781 if test `eval echo '${'$as_ac_var'}'` = yes; then
8782   cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 else
8787   mutt_cv_snprintf=yes
8788 fi
8789 done
8790
8791 if test $mutt_cv_snprintf = yes; then
8792         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8793 fi
8794
8795
8796 for ac_func in ftruncate
8797 do
8798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 /* confdefs.h.  */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h.  */
8811 /* System header to define __stub macros and hopefully few prototypes,
8812     which can conflict with char $ac_func (); below.
8813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814     <limits.h> exists even on freestanding compilers.  */
8815 #ifdef __STDC__
8816 # include <limits.h>
8817 #else
8818 # include <assert.h>
8819 #endif
8820 /* Override any gcc2 internal prototype to avoid an error.  */
8821 #ifdef __cplusplus
8822 extern "C"
8823 {
8824 #endif
8825 /* We use char because int might match the return type of a gcc2
8826    builtin and then its argument prototype would still apply.  */
8827 char $ac_func ();
8828 /* The GNU C library defines this for functions which it implements
8829     to always fail with ENOSYS.  Some functions are actually named
8830     something starting with __ and the normal name is an alias.  */
8831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8832 choke me
8833 #else
8834 char (*f) () = $ac_func;
8835 #endif
8836 #ifdef __cplusplus
8837 }
8838 #endif
8839
8840 int
8841 main ()
8842 {
8843 return f != $ac_func;
8844   ;
8845   return 0;
8846 }
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850   (eval $ac_link) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -s conftest$ac_exeext'
8855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   eval "$as_ac_var=yes"
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 eval "$as_ac_var=no"
8866 fi
8867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8868 fi
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8871 if test `eval echo '${'$as_ac_var'}'` = yes; then
8872   cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8874 _ACEOF
8875
8876 else
8877
8878 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8879 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8880 if test "${ac_cv_lib_x_chsize+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lx  $LIBS"
8885 cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892
8893 /* Override any gcc2 internal prototype to avoid an error.  */
8894 #ifdef __cplusplus
8895 extern "C"
8896 #endif
8897 /* We use char because int might match the return type of a gcc2
8898    builtin and then its argument prototype would still apply.  */
8899 char chsize ();
8900 int
8901 main ()
8902 {
8903 chsize ();
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910   (eval $ac_link) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } &&
8914          { ac_try='test -s conftest$ac_exeext'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; }; then
8920   ac_cv_lib_x_chsize=yes
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 ac_cv_lib_x_chsize=no
8926 fi
8927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8928 LIBS=$ac_check_lib_save_LIBS
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8931 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8932 if test $ac_cv_lib_x_chsize = yes; then
8933   cat >>confdefs.h <<_ACEOF
8934 #define HAVE_LIBX 1
8935 _ACEOF
8936
8937   LIBS="-lx $LIBS"
8938
8939 fi
8940
8941 fi
8942 done
8943
8944
8945
8946 for ac_func in strftime
8947 do
8948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8949 echo "$as_me:$LINENO: checking for $ac_func" >&5
8950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8951 if eval "test \"\${$as_ac_var+set}\" = set"; then
8952   echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954   cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 /* System header to define __stub macros and hopefully few prototypes,
8962     which can conflict with char $ac_func (); below.
8963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8964     <limits.h> exists even on freestanding compilers.  */
8965 #ifdef __STDC__
8966 # include <limits.h>
8967 #else
8968 # include <assert.h>
8969 #endif
8970 /* Override any gcc2 internal prototype to avoid an error.  */
8971 #ifdef __cplusplus
8972 extern "C"
8973 {
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976    builtin and then its argument prototype would still apply.  */
8977 char $ac_func ();
8978 /* The GNU C library defines this for functions which it implements
8979     to always fail with ENOSYS.  Some functions are actually named
8980     something starting with __ and the normal name is an alias.  */
8981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8982 choke me
8983 #else
8984 char (*f) () = $ac_func;
8985 #endif
8986 #ifdef __cplusplus
8987 }
8988 #endif
8989
8990 int
8991 main ()
8992 {
8993 return f != $ac_func;
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000   (eval $ac_link) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -s conftest$ac_exeext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   eval "$as_ac_var=yes"
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 eval "$as_ac_var=no"
9016 fi
9017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9018 fi
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9021 if test `eval echo '${'$as_ac_var'}'` = yes; then
9022   cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9024 _ACEOF
9025
9026 else
9027
9028 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9029 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9030 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033   ac_check_lib_save_LIBS=$LIBS
9034 LIBS="-lintl  $LIBS"
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 /* confdefs.h.  */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h.  */
9042
9043 /* Override any gcc2 internal prototype to avoid an error.  */
9044 #ifdef __cplusplus
9045 extern "C"
9046 #endif
9047 /* We use char because int might match the return type of a gcc2
9048    builtin and then its argument prototype would still apply.  */
9049 char strftime ();
9050 int
9051 main ()
9052 {
9053 strftime ();
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9060   (eval $ac_link) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -s conftest$ac_exeext'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_lib_intl_strftime=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_lib_intl_strftime=no
9076 fi
9077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9078 LIBS=$ac_check_lib_save_LIBS
9079 fi
9080 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9081 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9082 if test $ac_cv_lib_intl_strftime = yes; then
9083   cat >>confdefs.h <<_ACEOF
9084 #define HAVE_LIBINTL 1
9085 _ACEOF
9086
9087   LIBS="-lintl $LIBS"
9088
9089 fi
9090
9091 fi
9092 done
9093
9094
9095
9096 for ac_func in fchdir
9097 do
9098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099 echo "$as_me:$LINENO: checking for $ac_func" >&5
9100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_var+set}\" = set"; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 /* confdefs.h.  */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h.  */
9111 /* System header to define __stub macros and hopefully few prototypes,
9112     which can conflict with char $ac_func (); below.
9113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114     <limits.h> exists even on freestanding compilers.  */
9115 #ifdef __STDC__
9116 # include <limits.h>
9117 #else
9118 # include <assert.h>
9119 #endif
9120 /* Override any gcc2 internal prototype to avoid an error.  */
9121 #ifdef __cplusplus
9122 extern "C"
9123 {
9124 #endif
9125 /* We use char because int might match the return type of a gcc2
9126    builtin and then its argument prototype would still apply.  */
9127 char $ac_func ();
9128 /* The GNU C library defines this for functions which it implements
9129     to always fail with ENOSYS.  Some functions are actually named
9130     something starting with __ and the normal name is an alias.  */
9131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9132 choke me
9133 #else
9134 char (*f) () = $ac_func;
9135 #endif
9136 #ifdef __cplusplus
9137 }
9138 #endif
9139
9140 int
9141 main ()
9142 {
9143 return f != $ac_func;
9144   ;
9145   return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150   (eval $ac_link) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } &&
9154          { ac_try='test -s conftest$ac_exeext'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160   eval "$as_ac_var=yes"
9161 else
9162   echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165 eval "$as_ac_var=no"
9166 fi
9167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9168 fi
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9171 if test `eval echo '${'$as_ac_var'}'` = yes; then
9172   cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 else
9177   mutt_cv_fchdir=no
9178 fi
9179 done
9180
9181
9182
9183 # Check whether --with-regex or --without-regex was given.
9184 if test "${with_regex+set}" = set; then
9185   withval="$with_regex"
9186   mutt_cv_regex=yes
9187 else
9188
9189 for ac_func in regcomp
9190 do
9191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   cat >conftest.$ac_ext <<_ACEOF
9198 #line $LINENO "configure"
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204 /* System header to define __stub macros and hopefully few prototypes,
9205     which can conflict with char $ac_func (); below.
9206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207     <limits.h> exists even on freestanding compilers.  */
9208 #ifdef __STDC__
9209 # include <limits.h>
9210 #else
9211 # include <assert.h>
9212 #endif
9213 /* Override any gcc2 internal prototype to avoid an error.  */
9214 #ifdef __cplusplus
9215 extern "C"
9216 {
9217 #endif
9218 /* We use char because int might match the return type of a gcc2
9219    builtin and then its argument prototype would still apply.  */
9220 char $ac_func ();
9221 /* The GNU C library defines this for functions which it implements
9222     to always fail with ENOSYS.  Some functions are actually named
9223     something starting with __ and the normal name is an alias.  */
9224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9225 choke me
9226 #else
9227 char (*f) () = $ac_func;
9228 #endif
9229 #ifdef __cplusplus
9230 }
9231 #endif
9232
9233 int
9234 main ()
9235 {
9236 return f != $ac_func;
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243   (eval $ac_link) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -s conftest$ac_exeext'
9248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249   (eval $ac_try) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   eval "$as_ac_var=yes"
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258 eval "$as_ac_var=no"
9259 fi
9260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9261 fi
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9264 if test `eval echo '${'$as_ac_var'}'` = yes; then
9265   cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9267 _ACEOF
9268  mutt_cv_regex=no
9269 else
9270   mutt_cv_regex=yes
9271 fi
9272 done
9273
9274 fi;
9275
9276 if test $mutt_cv_regex = no ; then
9277 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9278 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9279 if test "${mutt_cv_regex_broken+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   if test "$cross_compiling" = yes; then
9283   mutt_cv_regex_broken=yes
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292
9293 #include <unistd.h>
9294 #include <regex.h>
9295 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); }
9296 _ACEOF
9297 rm -f conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299   (eval $ac_link) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; }; then
9308   mutt_cv_regex_broken=no
9309 else
9310   echo "$as_me: program exited with status $ac_status" >&5
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9313
9314 ( exit $ac_status )
9315 mutt_cv_regex_broken=yes
9316 fi
9317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 fi
9320 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9321 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9322         if test $mutt_cv_regex_broken = yes ; then
9323                 echo "Using the included GNU regex instead." >&6
9324                 mutt_cv_regex=yes
9325         fi
9326 fi
9327
9328 if test $mutt_cv_regex = yes; then
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define USE_GNU_REGEX 1
9332 _ACEOF
9333
9334         LIBOBJS="$LIBOBJS regex.$ac_objext"
9335 fi
9336
9337
9338
9339 # Check whether --with-homespool or --without-homespool was given.
9340 if test "${with_homespool+set}" = set; then
9341   withval="$with_homespool"
9342   with_homespool=${withval}
9343 fi;
9344 if test x$with_homespool != x; then
9345         if test $with_homespool = yes; then
9346                 with_homespool=mailbox
9347         fi
9348
9349 cat >>confdefs.h <<_ACEOF
9350 #define MAILPATH "$with_homespool"
9351 _ACEOF
9352
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define HOMESPOOL 1
9356 _ACEOF
9357
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define USE_DOTLOCK 1
9361 _ACEOF
9362
9363         mutt_cv_setgid=no
9364 else
9365
9366 # Check whether --with-mailpath or --without-mailpath was given.
9367 if test "${with_mailpath+set}" = set; then
9368   withval="$with_mailpath"
9369   mutt_cv_mailpath=$withval
9370 else
9371    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9372 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9373 if test "${mutt_cv_mailpath+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   mutt_cv_mailpath=no
9377                         if test -d /var/mail; then
9378                                 mutt_cv_mailpath=/var/mail
9379                         elif test -d /var/spool/mail; then
9380                                 mutt_cv_mailpath=/var/spool/mail
9381                         elif test -d /usr/spool/mail; then
9382                                 mutt_cv_mailpath=/usr/spool/mail
9383                         elif test -d /usr/mail; then
9384                                 mutt_cv_mailpath=/usr/mail
9385                         fi
9386 fi
9387 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9388 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9389
9390 fi;
9391         if test "$mutt_cv_mailpath" = no; then
9392                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9393 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9394    { (exit 1); exit 1; }; }
9395         fi
9396
9397 cat >>confdefs.h <<_ACEOF
9398 #define MAILPATH "$mutt_cv_mailpath"
9399 _ACEOF
9400
9401
9402         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9403 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9404 if test "${mutt_cv_worldwrite+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   if test "$cross_compiling" = yes; then
9408   mutt_cv_worldwrite=no
9409 else
9410   cat >conftest.$ac_ext <<_ACEOF
9411 #line $LINENO "configure"
9412 /* confdefs.h.  */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h.  */
9417 #include <sys/types.h>
9418 #include <sys/stat.h>
9419
9420 int main (int argc, char **argv)
9421 {
9422         struct stat s;
9423
9424         stat ("$mutt_cv_mailpath", &s);
9425         if (s.st_mode & S_IWOTH) exit (0);
9426         exit (1);
9427 }
9428 _ACEOF
9429 rm -f conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431   (eval $ac_link) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436   (eval $ac_try) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }; }; then
9440   mutt_cv_worldwrite=yes
9441 else
9442   echo "$as_me: program exited with status $ac_status" >&5
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ( exit $ac_status )
9447 mutt_cv_worldwrite=no
9448 fi
9449 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 fi
9452 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9453 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9454
9455         mutt_cv_setgid=no
9456         if test $mutt_cv_worldwrite = yes; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define USE_DOTLOCK 1
9460 _ACEOF
9461
9462         else
9463
9464                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9465 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9466 if test "${mutt_cv_groupwrite+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   if test "$cross_compiling" = yes; then
9470   mutt_cv_groupwrite=no
9471 else
9472   cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479 #include <sys/types.h>
9480 #include <sys/stat.h>
9481
9482 int main (int argc, char **argv)
9483 {
9484         struct stat s;
9485
9486         stat ("$mutt_cv_mailpath", &s);
9487         if (s.st_mode & S_IWGRP) exit (0);
9488         exit (1);
9489 }
9490 _ACEOF
9491 rm -f conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; }; then
9502   mutt_cv_groupwrite=yes
9503 else
9504   echo "$as_me: program exited with status $ac_status" >&5
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 ( exit $ac_status )
9509 mutt_cv_groupwrite=no
9510 fi
9511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 fi
9514 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9515 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9516
9517                 if test $mutt_cv_groupwrite = yes; then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define USE_DOTLOCK 1
9521 _ACEOF
9522
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define USE_SETGID 1
9526 _ACEOF
9527
9528                         mutt_cv_setgid=yes
9529                 fi
9530         fi
9531 fi
9532
9533 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9534 if test "${enable_external_dotlock+set}" = set; then
9535   enableval="$enable_external_dotlock"
9536   mutt_cv_external_dotlock="$enableval"
9537 fi;
9538
9539 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9540         || test "x$mutt_cv_external_dotlock" = "xyes"
9541 then
9542
9543 cat >>confdefs.h <<\_ACEOF
9544 #define DL_STANDALONE 1
9545 _ACEOF
9546
9547         DOTLOCK_TARGET="muttng_dotlock"
9548 else
9549         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9550 fi
9551
9552
9553
9554
9555 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9556 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9557
9558 # Check whether --with-docdir or --without-docdir was given.
9559 if test "${with_docdir+set}" = set; then
9560   withval="$with_docdir"
9561   mutt_cv_docdir=$withval
9562 else
9563   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
9564 fi;
9565 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9566 echo "${ECHO_T}$mutt_cv_docdir" >&6
9567
9568 docdir=$mutt_cv_docdir
9569
9570
9571 if test x$mutt_cv_setgid = xyes; then
9572         DOTLOCK_GROUP='mail'
9573         DOTLOCK_PERMISSION=2755
9574 else
9575         DOTLOCK_GROUP=''
9576         DOTLOCK_PERMISSION=755
9577 fi
9578
9579
9580
9581
9582 # Check whether --with-domain or --without-domain was given.
9583 if test "${with_domain+set}" = set; then
9584   withval="$with_domain"
9585   if test $withval != yes; then
9586
9587 cat >>confdefs.h <<_ACEOF
9588 #define DOMAIN "$withval"
9589 _ACEOF
9590
9591         fi
9592 fi;
9593
9594 need_socket="no"
9595
9596
9597 # Check whether --enable-pop or --disable-pop was given.
9598 if test "${enable_pop+set}" = set; then
9599   enableval="$enable_pop"
9600          if test x$enableval = xyes ; then
9601
9602 cat >>confdefs.h <<\_ACEOF
9603 #define USE_POP 1
9604 _ACEOF
9605
9606                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9607                 need_socket="yes"
9608                 need_pop="yes"
9609                 need_md5="yes"
9610         fi
9611
9612 fi;
9613
9614 # Check whether --enable-imap or --disable-imap was given.
9615 if test "${enable_imap+set}" = set; then
9616   enableval="$enable_imap"
9617          if test x$enableval = xyes ; then
9618
9619 cat >>confdefs.h <<\_ACEOF
9620 #define USE_IMAP 1
9621 _ACEOF
9622
9623                 LIBIMAP="-Limap -limap"
9624                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9625                 need_imap="yes"
9626                 need_socket="yes"
9627                 need_md5="yes"
9628         fi
9629
9630 fi;
9631
9632
9633 if test x$need_imap = xyes; then
9634   BUILD_IMAP_TRUE=
9635   BUILD_IMAP_FALSE='#'
9636 else
9637   BUILD_IMAP_TRUE='#'
9638   BUILD_IMAP_FALSE=
9639 fi
9640
9641
9642 # Check whether --enable-nntp or --disable-nntp was given.
9643 if test "${enable_nntp+set}" = set; then
9644   enableval="$enable_nntp"
9645         if test x$enableval = xyes ; then
9646                 cat >>confdefs.h <<\_ACEOF
9647 #define USE_NNTP 1
9648 _ACEOF
9649
9650                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9651                 need_socket="yes"
9652         fi
9653
9654 fi;
9655
9656
9657 if test "$need_socket" = "yes"
9658 then
9659         echo "$as_me:$LINENO: checking for socklen_t" >&5
9660 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9661         cat >conftest.$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 #include <sys/socket.h>
9669
9670 _ACEOF
9671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9672   $EGREP "socklen_t" >/dev/null 2>&1; then
9673   echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9675 else
9676   echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6
9678
9679 cat >>confdefs.h <<\_ACEOF
9680 #define socklen_t int
9681 _ACEOF
9682
9683 fi
9684 rm -f conftest*
9685
9686         echo "$as_me:$LINENO: checking for gethostent" >&5
9687 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9688 if test "${ac_cv_func_gethostent+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698 /* System header to define __stub macros and hopefully few prototypes,
9699     which can conflict with char gethostent (); below.
9700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701     <limits.h> exists even on freestanding compilers.  */
9702 #ifdef __STDC__
9703 # include <limits.h>
9704 #else
9705 # include <assert.h>
9706 #endif
9707 /* Override any gcc2 internal prototype to avoid an error.  */
9708 #ifdef __cplusplus
9709 extern "C"
9710 {
9711 #endif
9712 /* We use char because int might match the return type of a gcc2
9713    builtin and then its argument prototype would still apply.  */
9714 char gethostent ();
9715 /* The GNU C library defines this for functions which it implements
9716     to always fail with ENOSYS.  Some functions are actually named
9717     something starting with __ and the normal name is an alias.  */
9718 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9719 choke me
9720 #else
9721 char (*f) () = gethostent;
9722 #endif
9723 #ifdef __cplusplus
9724 }
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return f != gethostent;
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest$ac_exeext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_func_gethostent=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_func_gethostent=no
9753 fi
9754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9755 fi
9756 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9757 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9758 if test $ac_cv_func_gethostent = yes; then
9759   :
9760 else
9761
9762 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9763 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9764 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-lnsl  $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line $LINENO "configure"
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776
9777 /* Override any gcc2 internal prototype to avoid an error.  */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 /* We use char because int might match the return type of a gcc2
9782    builtin and then its argument prototype would still apply.  */
9783 char gethostent ();
9784 int
9785 main ()
9786 {
9787 gethostent ();
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794   (eval $ac_link) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_lib_nsl_gethostent=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_lib_nsl_gethostent=no
9810 fi
9811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9813 fi
9814 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9816 if test $ac_cv_lib_nsl_gethostent = yes; then
9817   cat >>confdefs.h <<_ACEOF
9818 #define HAVE_LIBNSL 1
9819 _ACEOF
9820
9821   LIBS="-lnsl $LIBS"
9822
9823 fi
9824
9825 fi
9826
9827         echo "$as_me:$LINENO: checking for setsockopt" >&5
9828 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9829 if test "${ac_cv_func_setsockopt+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   cat >conftest.$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839 /* System header to define __stub macros and hopefully few prototypes,
9840     which can conflict with char setsockopt (); below.
9841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842     <limits.h> exists even on freestanding compilers.  */
9843 #ifdef __STDC__
9844 # include <limits.h>
9845 #else
9846 # include <assert.h>
9847 #endif
9848 /* Override any gcc2 internal prototype to avoid an error.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 {
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854    builtin and then its argument prototype would still apply.  */
9855 char setsockopt ();
9856 /* The GNU C library defines this for functions which it implements
9857     to always fail with ENOSYS.  Some functions are actually named
9858     something starting with __ and the normal name is an alias.  */
9859 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9860 choke me
9861 #else
9862 char (*f) () = setsockopt;
9863 #endif
9864 #ifdef __cplusplus
9865 }
9866 #endif
9867
9868 int
9869 main ()
9870 {
9871 return f != setsockopt;
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_func_setsockopt=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_cv_func_setsockopt=no
9894 fi
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896 fi
9897 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9898 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9899 if test $ac_cv_func_setsockopt = yes; then
9900   :
9901 else
9902
9903 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9904 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9905 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lsocket  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 #line $LINENO "configure"
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917
9918 /* Override any gcc2 internal prototype to avoid an error.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 /* We use char because int might match the return type of a gcc2
9923    builtin and then its argument prototype would still apply.  */
9924 char setsockopt ();
9925 int
9926 main ()
9927 {
9928 setsockopt ();
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935   (eval $ac_link) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } &&
9939          { ac_try='test -s conftest$ac_exeext'
9940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941   (eval $ac_try) 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; }; then
9945   ac_cv_lib_socket_setsockopt=yes
9946 else
9947   echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 ac_cv_lib_socket_setsockopt=no
9951 fi
9952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9956 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9957 if test $ac_cv_lib_socket_setsockopt = yes; then
9958   cat >>confdefs.h <<_ACEOF
9959 #define HAVE_LIBSOCKET 1
9960 _ACEOF
9961
9962   LIBS="-lsocket $LIBS"
9963
9964 fi
9965
9966 fi
9967
9968
9969 for ac_func in getaddrinfo
9970 do
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 /* System header to define __stub macros and hopefully few prototypes,
9985     which can conflict with char $ac_func (); below.
9986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987     <limits.h> exists even on freestanding compilers.  */
9988 #ifdef __STDC__
9989 # include <limits.h>
9990 #else
9991 # include <assert.h>
9992 #endif
9993 /* Override any gcc2 internal prototype to avoid an error.  */
9994 #ifdef __cplusplus
9995 extern "C"
9996 {
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999    builtin and then its argument prototype would still apply.  */
10000 char $ac_func ();
10001 /* The GNU C library defines this for functions which it implements
10002     to always fail with ENOSYS.  Some functions are actually named
10003     something starting with __ and the normal name is an alias.  */
10004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 choke me
10006 #else
10007 char (*f) () = $ac_func;
10008 #endif
10009 #ifdef __cplusplus
10010 }
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return f != $ac_func;
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023   (eval $ac_link) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   eval "$as_ac_var=yes"
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 eval "$as_ac_var=no"
10039 fi
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10041 fi
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044 if test `eval echo '${'$as_ac_var'}'` = yes; then
10045   cat >>confdefs.h <<_ACEOF
10046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10047 _ACEOF
10048
10049 fi
10050 done
10051
10052
10053 cat >>confdefs.h <<\_ACEOF
10054 #define USE_SOCKET 1
10055 _ACEOF
10056
10057         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10058 fi
10059
10060
10061
10062 # Check whether --with-gss or --without-gss was given.
10063 if test "${with_gss+set}" = set; then
10064   withval="$with_gss"
10065   gss_prefix="$withval"
10066 else
10067   gss_prefix="no"
10068 fi;
10069 if test "$gss_prefix" != "no"
10070 then
10071   if test "$need_imap" = "yes"
10072   then
10073
10074   GSSAPI_PREFIX=$gss_prefix
10075   GSSAPI_IMPL="none"
10076   saved_CPPFLAGS="$CPPFLAGS"
10077   saved_LDFLAGS="$LDFLAGS"
10078   saved_LIBS="$LIBS"
10079     if test "$GSSAPI_PREFIX" != "yes"
10080   then
10081     krb5_path="$GSSAPI_PREFIX/bin"
10082   else
10083     krb5_path="$PATH"
10084   fi
10085   # Extract the first word of "krb5-config", so it can be a program name with args.
10086 set dummy krb5-config; ac_word=$2
10087 echo "$as_me:$LINENO: checking for $ac_word" >&5
10088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10089 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   case $KRB5CFGPATH in
10093   [\\/]* | ?:[\\/]*)
10094   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10095   ;;
10096   *)
10097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $krb5_path
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102   for ac_exec_ext in '' $ac_executable_extensions; do
10103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109 done
10110
10111   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10112   ;;
10113 esac
10114 fi
10115 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10116
10117 if test -n "$KRB5CFGPATH"; then
10118   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10119 echo "${ECHO_T}$KRB5CFGPATH" >&6
10120 else
10121   echo "$as_me:$LINENO: result: no" >&5
10122 echo "${ECHO_T}no" >&6
10123 fi
10124
10125   if test "$KRB5CFGPATH" != "none"
10126   then
10127     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10128     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10129     case "`$KRB5CFGPATH --version`" in
10130       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10131       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10132       *)                GSSAPI_IMPL="Unknown";;
10133    esac
10134   else
10135         if test "$GSSAPI_PREFIX" != "yes"
10136     then
10137       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10138       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10139       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10140       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10141     fi
10142
10143         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10144 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10145 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 /* Override any gcc2 internal prototype to avoid an error.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163    builtin and then its argument prototype would still apply.  */
10164 char gss_init_sec_context ();
10165 int
10166 main ()
10167 {
10168 gss_init_sec_context ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175   (eval $ac_link) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; }; then
10185   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10186 else
10187   echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10191 fi
10192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10196 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10197 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10198
10199       GSSAPI_IMPL="MIT",
10200       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10201
10202 fi
10203
10204
10205         if test "$GSSAPI_IMPL" = "none"
10206     then
10207       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10208 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10209 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221
10222 /* Override any gcc2 internal prototype to avoid an error.  */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 /* We use char because int might match the return type of a gcc2
10227    builtin and then its argument prototype would still apply.  */
10228 char gss_init_sec_context ();
10229 int
10230 main ()
10231 {
10232 gss_init_sec_context ();
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239   (eval $ac_link) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -s conftest$ac_exeext'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_cv_lib_gssapi_gss_init_sec_context=yes
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_cv_lib_gssapi_gss_init_sec_context=no
10255 fi
10256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10260 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10261 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10262
10263           GSSAPI_IMPL="Heimdal"
10264           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10265           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10266
10267 fi
10268
10269     fi
10270
10271                             if test "$GSSAPI_IMPL" = "none"
10272     then
10273       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10274 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10275 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10281 #line $LINENO "configure"
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287
10288 /* Override any gcc2 internal prototype to avoid an error.  */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 /* We use char because int might match the return type of a gcc2
10293    builtin and then its argument prototype would still apply.  */
10294 char g_order_init ();
10295 int
10296 main ()
10297 {
10298 g_order_init ();
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   ac_cv_lib_gssapi_krb5_g_order_init=yes
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ac_cv_lib_gssapi_krb5_g_order_init=no
10321 fi
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10326 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10327 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10328
10329         GSSAPI_IMPL="OldMIT",
10330         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10331
10332 fi
10333
10334     fi
10335   fi
10336
10337   CPPFLAGS="$saved_CPPFLAGS"
10338   LDFLAGS="$saved_LDFLAGS"
10339   LIBS="$saved_LIBS"
10340
10341     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10342 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10343     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10344 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10345     if test "$GSSAPI_IMPL" = "none"
10346     then
10347       cat >confcache <<\_ACEOF
10348 # This file is a shell script that caches the results of configure
10349 # tests run on this system so they can be shared between configure
10350 # scripts and configure runs, see configure's option --config-cache.
10351 # It is not useful on other systems.  If it contains results you don't
10352 # want to keep, you may remove or edit it.
10353 #
10354 # config.status only pays attention to the cache file if you give it
10355 # the --recheck option to rerun configure.
10356 #
10357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10359 # following values.
10360
10361 _ACEOF
10362
10363 # The following way of writing the cache mishandles newlines in values,
10364 # but we know of no workaround that is simple, portable, and efficient.
10365 # So, don't put newlines in cache variables' values.
10366 # Ultrix sh set writes to stderr and can't be redirected directly,
10367 # and sets the high bit in the cache file unless we assign to the vars.
10368 {
10369   (set) 2>&1 |
10370     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10371     *ac_space=\ *)
10372       # `set' does not quote correctly, so add quotes (double-quote
10373       # substitution turns \\\\ into \\, and sed turns \\ into \).
10374       sed -n \
10375         "s/'/'\\\\''/g;
10376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10377       ;;
10378     *)
10379       # `set' quotes correctly as required by POSIX, so do not add quotes.
10380       sed -n \
10381         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10382       ;;
10383     esac;
10384 } |
10385   sed '
10386      t clear
10387      : clear
10388      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10389      t end
10390      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10391      : end' >>confcache
10392 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10393   if test -w $cache_file; then
10394     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10395     cat confcache >$cache_file
10396   else
10397     echo "not updating unwritable cache $cache_file"
10398   fi
10399 fi
10400 rm -f confcache
10401       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10402 echo "${ECHO_T}GSSAPI libraries not found" >&6
10403     fi
10404     if test "$GSSAPI_IMPL" = "Heimdal"
10405     then
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_HEIMDAL 1
10409 _ACEOF
10410
10411     fi
10412     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10413     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10414
10415 cat >>confdefs.h <<\_ACEOF
10416 #define USE_GSS 1
10417 _ACEOF
10418
10419     need_gss="yes"
10420   else
10421     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10422 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10423   fi
10424 fi
10425
10426
10427 if test x$need_gss = xyes; then
10428   USE_GSS_TRUE=
10429   USE_GSS_FALSE='#'
10430 else
10431   USE_GSS_TRUE='#'
10432   USE_GSS_FALSE=
10433 fi
10434
10435
10436
10437
10438 # Check whether --with-ssl or --without-ssl was given.
10439 if test "${with_ssl+set}" = set; then
10440   withval="$with_ssl"
10441          if test "$with_ssl" != "no"
10442         then
10443           if test "$need_socket" != "yes"; then
10444            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10445 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10446    { (exit 1); exit 1; }; }
10447           fi
10448
10449           if test "$with_ssl" != "yes"
10450           then
10451            LDFLAGS="$LDFLAGS -L$withval/lib"
10452            CPPFLAGS="$CPPFLAGS -I$withval/include"
10453           fi
10454           saved_LIBS="$LIBS"
10455
10456
10457 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10458 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10459 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   ac_check_lib_save_LIBS=$LIBS
10463 LIBS="-lcrypto  $LIBS"
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line $LINENO "configure"
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471
10472 /* Override any gcc2 internal prototype to avoid an error.  */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 /* We use char because int might match the return type of a gcc2
10477    builtin and then its argument prototype would still apply.  */
10478 char X509_new ();
10479 int
10480 main ()
10481 {
10482 X509_new ();
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489   (eval $ac_link) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } &&
10493          { ac_try='test -s conftest$ac_exeext'
10494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495   (eval $ac_try) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); }; }; then
10499   ac_cv_lib_crypto_X509_new=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_lib_crypto_X509_new=no
10505 fi
10506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10507 LIBS=$ac_check_lib_save_LIBS
10508 fi
10509 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10510 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10511 if test $ac_cv_lib_crypto_X509_new = yes; then
10512   cat >>confdefs.h <<_ACEOF
10513 #define HAVE_LIBCRYPTO 1
10514 _ACEOF
10515
10516   LIBS="-lcrypto $LIBS"
10517
10518 else
10519   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10520 echo "$as_me: error: Unable to find SSL library" >&2;}
10521    { (exit 1); exit 1; }; }
10522 fi
10523
10524
10525 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10526 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10527 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lssl -lcrypto $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 /* Override any gcc2 internal prototype to avoid an error.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 /* We use char because int might match the return type of a gcc2
10545    builtin and then its argument prototype would still apply.  */
10546 char SSL_new ();
10547 int
10548 main ()
10549 {
10550 SSL_new ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557   (eval $ac_link) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } &&
10561          { ac_try='test -s conftest$ac_exeext'
10562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563   (eval $ac_try) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   ac_cv_lib_ssl_SSL_new=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_cv_lib_ssl_SSL_new=no
10573 fi
10574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10576 fi
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10578 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10579 if test $ac_cv_lib_ssl_SSL_new = yes; then
10580   cat >>confdefs.h <<_ACEOF
10581 #define HAVE_LIBSSL 1
10582 _ACEOF
10583
10584   LIBS="-lssl $LIBS"
10585
10586 else
10587   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10588 echo "$as_me: error: Unable to find SSL library" >&2;}
10589    { (exit 1); exit 1; }; }
10590 fi
10591
10592
10593
10594
10595 for ac_func in RAND_status RAND_egd
10596 do
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610 /* System header to define __stub macros and hopefully few prototypes,
10611     which can conflict with char $ac_func (); below.
10612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613     <limits.h> exists even on freestanding compilers.  */
10614 #ifdef __STDC__
10615 # include <limits.h>
10616 #else
10617 # include <assert.h>
10618 #endif
10619 /* Override any gcc2 internal prototype to avoid an error.  */
10620 #ifdef __cplusplus
10621 extern "C"
10622 {
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625    builtin and then its argument prototype would still apply.  */
10626 char $ac_func ();
10627 /* The GNU C library defines this for functions which it implements
10628     to always fail with ENOSYS.  Some functions are actually named
10629     something starting with __ and the normal name is an alias.  */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 choke me
10632 #else
10633 char (*f) () = $ac_func;
10634 #endif
10635 #ifdef __cplusplus
10636 }
10637 #endif
10638
10639 int
10640 main ()
10641 {
10642 return f != $ac_func;
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -s conftest$ac_exeext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   eval "$as_ac_var=yes"
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 eval "$as_ac_var=no"
10665 fi
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667 fi
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10670 if test `eval echo '${'$as_ac_var'}'` = yes; then
10671   cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10673 _ACEOF
10674
10675 fi
10676 done
10677
10678
10679
10680 cat >>confdefs.h <<\_ACEOF
10681 #define USE_SSL 1
10682 _ACEOF
10683
10684           LIBS="$saved_LIBS"
10685           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10686           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10687           need_ssl=yes
10688
10689         fi
10690
10691 fi;
10692
10693
10694 if test x$need_ssl = xyes; then
10695   USE_SSL_TRUE=
10696   USE_SSL_FALSE='#'
10697 else
10698   USE_SSL_TRUE='#'
10699   USE_SSL_FALSE=
10700 fi
10701
10702
10703
10704 # Check whether --with-gnutls or --without-gnutls was given.
10705 if test "${with_gnutls+set}" = set; then
10706   withval="$with_gnutls"
10707      if test "$need_ssl" = "yes"
10708     then
10709       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10710 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10711    { (exit 1); exit 1; }; }
10712     fi
10713     if test "$with_gnutls" != "no"
10714     then
10715       if test "$need_socket" != "yes"; then
10716         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10717 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10718    { (exit 1); exit 1; }; }
10719       fi
10720       if test "$with_gnutls" != "yes"
10721       then
10722         LDFLAGS="$LDFLAGS -L$withval/lib"
10723         CPPFLAGS="$CPPFLAGS -I$withval/include"
10724       fi
10725 #saved_LIBS="$LIBS"
10726
10727
10728 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10729 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10730 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-lgnutls  $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742
10743 /* Override any gcc2 internal prototype to avoid an error.  */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 /* We use char because int might match the return type of a gcc2
10748    builtin and then its argument prototype would still apply.  */
10749 char gnutls_init ();
10750 int
10751 main ()
10752 {
10753 gnutls_init ();
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760   (eval $ac_link) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } &&
10764          { ac_try='test -s conftest$ac_exeext'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   ac_cv_lib_gnutls_gnutls_init=yes
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_cv_lib_gnutls_gnutls_init=no
10776 fi
10777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10779 fi
10780 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10781 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10782 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10783   cat >>confdefs.h <<_ACEOF
10784 #define HAVE_LIBGNUTLS 1
10785 _ACEOF
10786
10787   LIBS="-lgnutls $LIBS"
10788
10789 else
10790   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10791 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10792    { (exit 1); exit 1; }; }
10793 fi
10794
10795
10796
10797 cat >>confdefs.h <<\_ACEOF
10798 #define USE_GNUTLS 1
10799 _ACEOF
10800
10801 #LIBS="$saved_LIBS"
10802 #MUTTLIBS="$MUTTLIBS -lgnutls"
10803       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10804       need_gnutls=yes
10805     fi
10806
10807 fi;
10808
10809
10810 if test x$need_gnutls = xyes; then
10811   USE_GNUTLS_TRUE=
10812   USE_GNUTLS_FALSE='#'
10813 else
10814   USE_GNUTLS_TRUE='#'
10815   USE_GNUTLS_FALSE=
10816 fi
10817
10818
10819
10820 # Check whether --with-nss or --without-nss was given.
10821 if test "${with_nss+set}" = set; then
10822   withval="$with_nss"
10823          if test "$with_nss" != no
10824         then
10825           if test "$need_socket" != "yes"; then
10826            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10827 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10828    { (exit 1); exit 1; }; }
10829           fi
10830
10831           if test "$with_nss" != "yes"
10832           then
10833            LDFLAGS="$LDFLAGS -L$withval/lib"
10834            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10835           fi
10836
10837
10838 cat >>confdefs.h <<\_ACEOF
10839 #define USE_NSS 1
10840 _ACEOF
10841
10842           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10843           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10844           MUTTLIBS="$MUTTLIBS -lnspr4"
10845
10846           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10847           need_ssl=yes
10848         fi
10849
10850 fi;
10851
10852
10853 # Check whether --with-sasl or --without-sasl was given.
10854 if test "${with_sasl+set}" = set; then
10855   withval="$with_sasl"
10856
10857         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
10858         then
10859           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10860 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10861    { (exit 1); exit 1; }; }
10862         fi
10863
10864         if test "$with_sasl" != "no"
10865         then
10866           if test "$with_sasl" != "yes"
10867           then
10868             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10869             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10870           fi
10871
10872           saved_LIBS="$LIBS"
10873
10874
10875 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10876 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10877 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lsasl  $LIBS"
10882 cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889
10890 /* Override any gcc2 internal prototype to avoid an error.  */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 /* We use char because int might match the return type of a gcc2
10895    builtin and then its argument prototype would still apply.  */
10896 char sasl_client_init ();
10897 int
10898 main ()
10899 {
10900 sasl_client_init ();
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907   (eval $ac_link) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -s conftest$ac_exeext'
10912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913   (eval $ac_try) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; }; then
10917   ac_cv_lib_sasl_sasl_client_init=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 ac_cv_lib_sasl_sasl_client_init=no
10923 fi
10924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10928 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10929 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10930   cat >>confdefs.h <<_ACEOF
10931 #define HAVE_LIBSASL 1
10932 _ACEOF
10933
10934   LIBS="-lsasl $LIBS"
10935
10936 else
10937   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10938 echo "$as_me: error: could not find libsasl" >&2;}
10939    { (exit 1); exit 1; }; }
10940 fi
10941
10942
10943           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10944           MUTTLIBS="$MUTTLIBS -lsasl"
10945           LIBS="$saved_LIBS"
10946
10947 cat >>confdefs.h <<\_ACEOF
10948 #define USE_SASL 1
10949 _ACEOF
10950
10951           need_sasl=yes
10952         fi
10953
10954 fi;
10955
10956
10957 if test x$need_sasl = xyes; then
10958   USE_SASL_TRUE=
10959   USE_SASL_FALSE='#'
10960 else
10961   USE_SASL_TRUE='#'
10962   USE_SASL_FALSE=
10963 fi
10964
10965
10966
10967 # Check whether --with-sasl2 or --without-sasl2 was given.
10968 if test "${with_sasl2+set}" = set; then
10969   withval="$with_sasl2"
10970
10971         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
10972         then
10973           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
10974 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
10975    { (exit 1); exit 1; }; }
10976         fi
10977
10978         if test "$with_sasl2" != "no"
10979         then
10980           if test "$with_sasl2" != "yes"
10981           then
10982             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10983             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10984           fi
10985
10986           saved_LIBS="$LIBS"
10987
10988
10989 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10990 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10991 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsasl2  $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003
11004 /* Override any gcc2 internal prototype to avoid an error.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009    builtin and then its argument prototype would still apply.  */
11010 char sasl_client_init ();
11011 int
11012 main ()
11013 {
11014 sasl_client_init ();
11015   ;
11016   return 0;
11017 }
11018 _ACEOF
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021   (eval $ac_link) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -s conftest$ac_exeext'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_cv_lib_sasl2_sasl_client_init=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_cv_lib_sasl2_sasl_client_init=no
11037 fi
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11042 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11043 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11044   cat >>confdefs.h <<_ACEOF
11045 #define HAVE_LIBSASL2 1
11046 _ACEOF
11047
11048   LIBS="-lsasl2 $LIBS"
11049
11050 else
11051   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11052 echo "$as_me: error: could not find libsasl2" >&2;}
11053    { (exit 1); exit 1; }; }
11054 fi
11055
11056
11057           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11058           MUTTLIBS="$MUTTLIBS -lsasl2"
11059           LIBS="$saved_LIBS"
11060
11061 cat >>confdefs.h <<\_ACEOF
11062 #define USE_SASL 1
11063 _ACEOF
11064
11065
11066 cat >>confdefs.h <<\_ACEOF
11067 #define USE_SASL2 1
11068 _ACEOF
11069
11070           need_sasl=yes
11071         fi
11072
11073 fi;
11074
11075
11076 if test x$need_sasl = xyes; then
11077   USE_SASL_TRUE=
11078   USE_SASL_FALSE='#'
11079 else
11080   USE_SASL_TRUE='#'
11081   USE_SASL_FALSE=
11082 fi
11083
11084
11085
11086 # Check whether --with-idn or --without-idn was given.
11087 if test "${with_idn+set}" = set; then
11088   withval="$with_idn"
11089
11090                   if test "$with_idn" != "no" ; then
11091                         if test "$with_idn" != "yes" ; then
11092                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11093                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
11094                         fi
11095                   fi
11096
11097
11098 fi;
11099
11100 if test "x$with_idn" != "xno"; then
11101
11102 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11103 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11104 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-lidn  $LIBS"
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116
11117 /* Override any gcc2 internal prototype to avoid an error.  */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 /* We use char because int might match the return type of a gcc2
11122    builtin and then its argument prototype would still apply.  */
11123 char stringprep_check_version ();
11124 int
11125 main ()
11126 {
11127 stringprep_check_version ();
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134   (eval $ac_link) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); } &&
11138          { ac_try='test -s conftest$ac_exeext'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   ac_cv_lib_idn_stringprep_check_version=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_idn_stringprep_check_version=no
11150 fi
11151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11155 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11156 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11157   cat >>confdefs.h <<_ACEOF
11158 #define HAVE_LIBIDN 1
11159 _ACEOF
11160
11161   LIBS="-lidn $LIBS"
11162
11163 fi
11164
11165
11166
11167 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11168 do
11169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170 echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11172 if eval "test \"\${$as_ac_var+set}\" = set"; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 /* System header to define __stub macros and hopefully few prototypes,
11183     which can conflict with char $ac_func (); below.
11184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185     <limits.h> exists even on freestanding compilers.  */
11186 #ifdef __STDC__
11187 # include <limits.h>
11188 #else
11189 # include <assert.h>
11190 #endif
11191 /* Override any gcc2 internal prototype to avoid an error.  */
11192 #ifdef __cplusplus
11193 extern "C"
11194 {
11195 #endif
11196 /* We use char because int might match the return type of a gcc2
11197    builtin and then its argument prototype would still apply.  */
11198 char $ac_func ();
11199 /* The GNU C library defines this for functions which it implements
11200     to always fail with ENOSYS.  Some functions are actually named
11201     something starting with __ and the normal name is an alias.  */
11202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11203 choke me
11204 #else
11205 char (*f) () = $ac_func;
11206 #endif
11207 #ifdef __cplusplus
11208 }
11209 #endif
11210
11211 int
11212 main ()
11213 {
11214 return f != $ac_func;
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221   (eval $ac_link) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } &&
11225          { ac_try='test -s conftest$ac_exeext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   eval "$as_ac_var=yes"
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 eval "$as_ac_var=no"
11237 fi
11238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11239 fi
11240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11242 if test `eval echo '${'$as_ac_var'}'` = yes; then
11243   cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248 done
11249
11250
11251
11252 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11253 do
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 /* System header to define __stub macros and hopefully few prototypes,
11268     which can conflict with char $ac_func (); below.
11269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270     <limits.h> exists even on freestanding compilers.  */
11271 #ifdef __STDC__
11272 # include <limits.h>
11273 #else
11274 # include <assert.h>
11275 #endif
11276 /* Override any gcc2 internal prototype to avoid an error.  */
11277 #ifdef __cplusplus
11278 extern "C"
11279 {
11280 #endif
11281 /* We use char because int might match the return type of a gcc2
11282    builtin and then its argument prototype would still apply.  */
11283 char $ac_func ();
11284 /* The GNU C library defines this for functions which it implements
11285     to always fail with ENOSYS.  Some functions are actually named
11286     something starting with __ and the normal name is an alias.  */
11287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11288 choke me
11289 #else
11290 char (*f) () = $ac_func;
11291 #endif
11292 #ifdef __cplusplus
11293 }
11294 #endif
11295
11296 int
11297 main ()
11298 {
11299 return f != $ac_func;
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306   (eval $ac_link) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } &&
11310          { ac_try='test -s conftest$ac_exeext'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   eval "$as_ac_var=yes"
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 eval "$as_ac_var=no"
11322 fi
11323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11324 fi
11325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11327 if test `eval echo '${'$as_ac_var'}'` = yes; then
11328   cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11330 _ACEOF
11331
11332 fi
11333 done
11334
11335
11336
11337 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11338 do
11339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11340 echo "$as_me:$LINENO: checking for $ac_func" >&5
11341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11342 if eval "test \"\${$as_ac_var+set}\" = set"; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345   cat >conftest.$ac_ext <<_ACEOF
11346 #line $LINENO "configure"
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352 /* System header to define __stub macros and hopefully few prototypes,
11353     which can conflict with char $ac_func (); below.
11354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355     <limits.h> exists even on freestanding compilers.  */
11356 #ifdef __STDC__
11357 # include <limits.h>
11358 #else
11359 # include <assert.h>
11360 #endif
11361 /* Override any gcc2 internal prototype to avoid an error.  */
11362 #ifdef __cplusplus
11363 extern "C"
11364 {
11365 #endif
11366 /* We use char because int might match the return type of a gcc2
11367    builtin and then its argument prototype would still apply.  */
11368 char $ac_func ();
11369 /* The GNU C library defines this for functions which it implements
11370     to always fail with ENOSYS.  Some functions are actually named
11371     something starting with __ and the normal name is an alias.  */
11372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11373 choke me
11374 #else
11375 char (*f) () = $ac_func;
11376 #endif
11377 #ifdef __cplusplus
11378 }
11379 #endif
11380
11381 int
11382 main ()
11383 {
11384 return f != $ac_func;
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391   (eval $ac_link) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); } &&
11395          { ac_try='test -s conftest$ac_exeext'
11396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397   (eval $ac_try) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   eval "$as_ac_var=yes"
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 eval "$as_ac_var=no"
11407 fi
11408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11409 fi
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413   cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11415 _ACEOF
11416
11417 fi
11418 done
11419
11420 fi
11421
11422
11423 # Check whether --enable-debug or --disable-debug was given.
11424 if test "${enable_debug+set}" = set; then
11425   enableval="$enable_debug"
11426    if test x$enableval = xyes ; then
11427
11428 cat >>confdefs.h <<\_ACEOF
11429 #define DEBUG 1
11430 _ACEOF
11431
11432           fi
11433
11434 fi;
11435
11436 # Check whether --enable-flock or --disable-flock was given.
11437 if test "${enable_flock+set}" = set; then
11438   enableval="$enable_flock"
11439   if test $enableval = yes; then
11440
11441 cat >>confdefs.h <<\_ACEOF
11442 #define USE_FLOCK 1
11443 _ACEOF
11444
11445         fi
11446 fi;
11447
11448 mutt_cv_fcntl=yes
11449 # Check whether --enable-fcntl or --disable-fcntl was given.
11450 if test "${enable_fcntl+set}" = set; then
11451   enableval="$enable_fcntl"
11452   if test $enableval = no; then mutt_cv_fcntl=no; fi
11453 fi;
11454
11455 if test $mutt_cv_fcntl = yes; then
11456
11457 cat >>confdefs.h <<\_ACEOF
11458 #define USE_FCNTL 1
11459 _ACEOF
11460
11461 fi
11462
11463 mutt_cv_inodesort=yes
11464 # Check whether --enable-inodesort or --disable-inodesort was given.
11465 if test "${enable_inodesort+set}" = set; then
11466   enableval="$enable_inodesort"
11467   if test $enableval = no ; then mutt_cv_inodesort=no; fi
11468 fi;
11469
11470 if test $mutt_cv_inodesort = yes; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define USE_INODESORT 1
11474 _ACEOF
11475
11476 fi
11477
11478 mutt_cv_warnings=yes
11479 # Check whether --enable-warnings or --disable-warnings was given.
11480 if test "${enable_warnings+set}" = set; then
11481   enableval="$enable_warnings"
11482   if test $enableval = no; then
11483         mutt_cv_warnings=no
11484 fi
11485 fi;
11486
11487 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11488         CFLAGS="-Wall -pedantic $CFLAGS"
11489 fi
11490
11491 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11492 if test "${enable_nfs_fix+set}" = set; then
11493   enableval="$enable_nfs_fix"
11494   if test x$enableval = xyes; then
11495
11496 cat >>confdefs.h <<\_ACEOF
11497 #define NFS_ATTRIBUTE_HACK 1
11498 _ACEOF
11499
11500         fi
11501 fi;
11502
11503 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11504 if test "${enable_buffy_size+set}" = set; then
11505   enableval="$enable_buffy_size"
11506   if test x$enableval = xyes; then
11507
11508 cat >>confdefs.h <<\_ACEOF
11509 #define BUFFY_SIZE 1
11510 _ACEOF
11511
11512         fi
11513 fi;
11514
11515 # Check whether --enable-mailtool or --disable-mailtool was given.
11516 if test "${enable_mailtool+set}" = set; then
11517   enableval="$enable_mailtool"
11518   if test x$enableval = xyes; then
11519
11520 cat >>confdefs.h <<\_ACEOF
11521 #define SUN_ATTACHMENT 1
11522 _ACEOF
11523
11524         fi
11525 fi;
11526
11527 # Check whether --enable-compressed or --disable-compressed was given.
11528 if test "${enable_compressed+set}" = set; then
11529   enableval="$enable_compressed"
11530   if test x$enableval = xyes; then
11531                 cat >>confdefs.h <<\_ACEOF
11532 #define USE_COMPRESSED 1
11533 _ACEOF
11534
11535         fi
11536 fi;
11537
11538 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11539 if test "${enable_locales_fix+set}" = set; then
11540   enableval="$enable_locales_fix"
11541   if test x$enableval = xyes; then
11542
11543 cat >>confdefs.h <<\_ACEOF
11544 #define LOCALES_HACK 1
11545 _ACEOF
11546
11547         fi
11548 fi;
11549
11550
11551 # Check whether --with-exec-shell or --without-exec-shell was given.
11552 if test "${with_exec_shell+set}" = set; then
11553   withval="$with_exec_shell"
11554   if test $withval != yes; then
11555
11556 cat >>confdefs.h <<_ACEOF
11557 #define EXECSHELL "$withval"
11558 _ACEOF
11559
11560          else
11561                 cat >>confdefs.h <<_ACEOF
11562 #define EXECSHELL "/bin/sh"
11563 _ACEOF
11564
11565         fi
11566 else
11567   cat >>confdefs.h <<_ACEOF
11568 #define EXECSHELL "/bin/sh"
11569 _ACEOF
11570
11571 fi;
11572
11573 # Check whether --enable-exact-address or --disable-exact-address was given.
11574 if test "${enable_exact_address+set}" = set; then
11575   enableval="$enable_exact_address"
11576   if test $enableval = yes; then
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define EXACT_ADDRESS 1
11580 _ACEOF
11581
11582
11583         fi
11584 fi;
11585
11586 # Check whether --enable-hcache or --disable-hcache was given.
11587 if test "${enable_hcache+set}" = set; then
11588   enableval="$enable_hcache"
11589   if test x$enableval = xyes; then
11590
11591 cat >>confdefs.h <<\_ACEOF
11592 #define USE_HCACHE 1
11593 _ACEOF
11594
11595
11596     OLDCPPFLAGS="$CPPFLAGS"
11597     OLDLIBS="$LIBS"
11598
11599     need_md5="yes"
11600     ac_prefer_gdbm=yes
11601
11602 # Check whether --with-gdbm or --without-gdbm was given.
11603 if test "${with_gdbm+set}" = set; then
11604   withval="$with_gdbm"
11605   ac_prefer_gdbm=$withval
11606 fi;
11607     if test x$ac_prefer_gdbm != xno; then
11608         CPPFLAGS="$OLDCPPFLAGS"
11609         LIBS="$OLDLIBS -lgdbm";
11610         echo "$as_me:$LINENO: checking for gdbm_open" >&5
11611 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
11612 if test "${ac_cv_gdbmopen+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615
11616             ac_cv_gdbmopen=no
11617             cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624 #include <gdbm.h>
11625 int
11626 main ()
11627 {
11628 gdbm_open(0,0,0,0,0);
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635   (eval $ac_link) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -s conftest$ac_exeext'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; }; then
11645   ac_cv_gdbmopen=yes
11646 else
11647   echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 fi
11651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11652
11653 fi
11654 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
11655 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
11656     fi
11657
11658     ac_bdb_prefix=yes
11659
11660 # Check whether --with-bdb or --without-bdb was given.
11661 if test "${with_bdb+set}" = set; then
11662   withval="$with_bdb"
11663   ac_bdb_prefix=$withval
11664 fi;
11665     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
11666         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
11667         for d in $ac_bdb_prefix; do
11668             bdbpfx="$bdbpfx $d"
11669             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
11670                 bdbpfx="$bdbpfx $d/$v"
11671             done
11672         done
11673         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
11674         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
11675 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
11676         for d in $bdbpfx; do
11677             BDB_INCLUDE_DIR=""
11678             BDB_LIB_DIR=""
11679             for v in / $BDB_VERSIONS; do
11680                 if test -r "$d/include/$v/db.h"; then
11681                     BDB_INCLUDE_DIR="$d/include/$v"
11682                     if test -d "$d/lib/$v"; then
11683                         BDB_LIB_DIR="$d/lib/$v"
11684                         for l in `echo $BDB_VERSIONS`; do
11685                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11686                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
11687                             cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695                                 #include <stdlib.h>
11696                                 #include <db.h>
11697
11698 int
11699 main ()
11700 {
11701
11702                                 DB *db = NULL;
11703                                 db->open(db,NULL,NULL,NULL,0,0,0);
11704
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711   (eval $ac_link) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721
11722                                 ac_cv_dbcreate=yes
11723                                 BDB_LIB="$l"
11724                                 break
11725
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 fi
11731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11732                         done
11733                         test x$ac_dbcreate = xyes && break
11734                     fi
11735                 fi
11736             done
11737             test x$BDB_LIB != x && break
11738         done
11739         if test x$ac_cv_dbcreate = xyes; then
11740             echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6
11742         else
11743             echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6
11745         fi
11746     fi
11747
11748     if test x$ac_cv_gdbmopen = xyes; then
11749         CPPFLAGS="$OLDCPPFLAGS"
11750         LIBS="$OLDLIBS -lgdbm";
11751
11752 cat >>confdefs.h <<\_ACEOF
11753 #define HAVE_GDBM 1
11754 _ACEOF
11755
11756     elif test x$ac_cv_dbcreate = xyes; then
11757         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11758         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
11759
11760 cat >>confdefs.h <<\_ACEOF
11761 #define HAVE_DB4 1
11762 _ACEOF
11763
11764     else
11765         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
11766 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
11767    { (exit 1); exit 1; }; }
11768     fi
11769 fi
11770 fi;
11771
11772
11773
11774
11775
11776
11777
11778 # Check whether --enable-iconv or --disable-iconv was given.
11779 if test "${enable_iconv+set}" = set; then
11780   enableval="$enable_iconv"
11781   if test x$enableval = xno ; then
11782                 am_cv_func_iconv=no
11783         fi
11784
11785 fi;
11786
11787 echo "$as_me:$LINENO: checking for off_t" >&5
11788 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11789 if test "${ac_cv_type_off_t+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 $ac_includes_default
11800 int
11801 main ()
11802 {
11803 if ((off_t *) 0)
11804   return 0;
11805 if (sizeof (off_t))
11806   return 0;
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813   (eval $ac_compile) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -s conftest.$ac_objext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   ac_cv_type_off_t=yes
11824 else
11825   echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_cv_type_off_t=no
11829 fi
11830 rm -f conftest.$ac_objext conftest.$ac_ext
11831 fi
11832 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11833 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11834 if test $ac_cv_type_off_t = yes; then
11835   :
11836 else
11837
11838 cat >>confdefs.h <<_ACEOF
11839 #define off_t long
11840 _ACEOF
11841
11842 fi
11843
11844 echo "$as_me:$LINENO: checking for size_t" >&5
11845 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11846 if test "${ac_cv_type_size_t+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 $ac_includes_default
11857 int
11858 main ()
11859 {
11860 if ((size_t *) 0)
11861   return 0;
11862 if (sizeof (size_t))
11863   return 0;
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870   (eval $ac_compile) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -s conftest.$ac_objext'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   ac_cv_type_size_t=yes
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_cv_type_size_t=no
11886 fi
11887 rm -f conftest.$ac_objext conftest.$ac_ext
11888 fi
11889 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11890 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11891 if test $ac_cv_type_size_t = yes; then
11892   :
11893 else
11894
11895 cat >>confdefs.h <<_ACEOF
11896 #define size_t unsigned
11897 _ACEOF
11898
11899 fi
11900
11901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11902 # for constant arguments.  Useless!
11903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11905 if test "${ac_cv_working_alloca_h+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <alloca.h>
11916 int
11917 main ()
11918 {
11919 char *p = (char *) alloca (2 * sizeof (int));
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926   (eval $ac_link) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } &&
11930          { ac_try='test -s conftest$ac_exeext'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   ac_cv_working_alloca_h=yes
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ac_cv_working_alloca_h=no
11942 fi
11943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11944 fi
11945 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11946 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11947 if test $ac_cv_working_alloca_h = yes; then
11948
11949 cat >>confdefs.h <<\_ACEOF
11950 #define HAVE_ALLOCA_H 1
11951 _ACEOF
11952
11953 fi
11954
11955 echo "$as_me:$LINENO: checking for alloca" >&5
11956 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11957 if test "${ac_cv_func_alloca_works+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   cat >conftest.$ac_ext <<_ACEOF
11961 #line $LINENO "configure"
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967 #ifdef __GNUC__
11968 # define alloca __builtin_alloca
11969 #else
11970 # ifdef _MSC_VER
11971 #  include <malloc.h>
11972 #  define alloca _alloca
11973 # else
11974 #  if HAVE_ALLOCA_H
11975 #   include <alloca.h>
11976 #  else
11977 #   ifdef _AIX
11978  #pragma alloca
11979 #   else
11980 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11981 char *alloca ();
11982 #    endif
11983 #   endif
11984 #  endif
11985 # endif
11986 #endif
11987
11988 int
11989 main ()
11990 {
11991 char *p = (char *) alloca (1);
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998   (eval $ac_link) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_func_alloca_works=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_func_alloca_works=no
12014 fi
12015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12016 fi
12017 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12018 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12019
12020 if test $ac_cv_func_alloca_works = yes; then
12021
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_ALLOCA 1
12024 _ACEOF
12025
12026 else
12027   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12028 # that cause trouble.  Some versions do not even contain alloca or
12029 # contain a buggy version.  If you still want to use their alloca,
12030 # use ar to extract alloca.o from them instead of compiling alloca.c.
12031
12032 ALLOCA=alloca.$ac_objext
12033
12034 cat >>confdefs.h <<\_ACEOF
12035 #define C_ALLOCA 1
12036 _ACEOF
12037
12038
12039 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12040 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12041 if test "${ac_cv_os_cray+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051 #if defined(CRAY) && ! defined(CRAY2)
12052 webecray
12053 #else
12054 wenotbecray
12055 #endif
12056
12057 _ACEOF
12058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12059   $EGREP "webecray" >/dev/null 2>&1; then
12060   ac_cv_os_cray=yes
12061 else
12062   ac_cv_os_cray=no
12063 fi
12064 rm -f conftest*
12065
12066 fi
12067 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12068 echo "${ECHO_T}$ac_cv_os_cray" >&6
12069 if test $ac_cv_os_cray = yes; then
12070   for ac_func in _getb67 GETB67 getb67; do
12071     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12074 if eval "test \"\${$as_ac_var+set}\" = set"; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 /* System header to define __stub macros and hopefully few prototypes,
12085     which can conflict with char $ac_func (); below.
12086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12087     <limits.h> exists even on freestanding compilers.  */
12088 #ifdef __STDC__
12089 # include <limits.h>
12090 #else
12091 # include <assert.h>
12092 #endif
12093 /* Override any gcc2 internal prototype to avoid an error.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 {
12097 #endif
12098 /* We use char because int might match the return type of a gcc2
12099    builtin and then its argument prototype would still apply.  */
12100 char $ac_func ();
12101 /* The GNU C library defines this for functions which it implements
12102     to always fail with ENOSYS.  Some functions are actually named
12103     something starting with __ and the normal name is an alias.  */
12104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12105 choke me
12106 #else
12107 char (*f) () = $ac_func;
12108 #endif
12109 #ifdef __cplusplus
12110 }
12111 #endif
12112
12113 int
12114 main ()
12115 {
12116 return f != $ac_func;
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123   (eval $ac_link) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -s conftest$ac_exeext'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   eval "$as_ac_var=yes"
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 eval "$as_ac_var=no"
12139 fi
12140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12141 fi
12142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12144 if test `eval echo '${'$as_ac_var'}'` = yes; then
12145
12146 cat >>confdefs.h <<_ACEOF
12147 #define CRAY_STACKSEG_END $ac_func
12148 _ACEOF
12149
12150     break
12151 fi
12152
12153   done
12154 fi
12155
12156 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12157 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12158 if test "${ac_cv_c_stack_direction+set}" = set; then
12159   echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161   if test "$cross_compiling" = yes; then
12162   ac_cv_c_stack_direction=0
12163 else
12164   cat >conftest.$ac_ext <<_ACEOF
12165 #line $LINENO "configure"
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 int
12172 find_stack_direction ()
12173 {
12174   static char *addr = 0;
12175   auto char dummy;
12176   if (addr == 0)
12177     {
12178       addr = &dummy;
12179       return find_stack_direction ();
12180     }
12181   else
12182     return (&dummy > addr) ? 1 : -1;
12183 }
12184
12185 int
12186 main ()
12187 {
12188   exit (find_stack_direction () < 0);
12189 }
12190 _ACEOF
12191 rm -f conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   ac_cv_c_stack_direction=1
12203 else
12204   echo "$as_me: program exited with status $ac_status" >&5
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ( exit $ac_status )
12209 ac_cv_c_stack_direction=-1
12210 fi
12211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12212 fi
12213 fi
12214 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12215 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12216
12217 cat >>confdefs.h <<_ACEOF
12218 #define STACK_DIRECTION $ac_cv_c_stack_direction
12219 _ACEOF
12220
12221
12222 fi
12223
12224
12225
12226 for ac_header in stdlib.h unistd.h
12227 do
12228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12230   echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 fi
12235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12237 else
12238   # Is the header compilable?
12239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248 $ac_includes_default
12249 #include <$ac_header>
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253   (eval $ac_compile) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   ac_header_compiler=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 ac_header_compiler=no
12269 fi
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12272 echo "${ECHO_T}$ac_header_compiler" >&6
12273
12274 # Is the header present?
12275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 #include <$ac_header>
12285 _ACEOF
12286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } >/dev/null; then
12294   if test -s conftest.err; then
12295     ac_cpp_err=$ac_c_preproc_warn_flag
12296   else
12297     ac_cpp_err=
12298   fi
12299 else
12300   ac_cpp_err=yes
12301 fi
12302 if test -z "$ac_cpp_err"; then
12303   ac_header_preproc=yes
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308   ac_header_preproc=no
12309 fi
12310 rm -f conftest.err conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12312 echo "${ECHO_T}$ac_header_preproc" >&6
12313
12314 # So?  What about this header?
12315 case $ac_header_compiler:$ac_header_preproc in
12316   yes:no )
12317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321     (
12322       cat <<\_ASBOX
12323 ## ------------------------------------ ##
12324 ## Report this to bug-autoconf@gnu.org. ##
12325 ## ------------------------------------ ##
12326 _ASBOX
12327     ) |
12328       sed "s/^/$as_me: WARNING:     /" >&2
12329     ;;
12330   no:yes )
12331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12333     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12337     (
12338       cat <<\_ASBOX
12339 ## ------------------------------------ ##
12340 ## Report this to bug-autoconf@gnu.org. ##
12341 ## ------------------------------------ ##
12342 _ASBOX
12343     ) |
12344       sed "s/^/$as_me: WARNING:     /" >&2
12345     ;;
12346 esac
12347 echo "$as_me:$LINENO: checking for $ac_header" >&5
12348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   eval "$as_ac_Header=$ac_header_preproc"
12353 fi
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12356
12357 fi
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359   cat >>confdefs.h <<_ACEOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 _ACEOF
12362
12363 fi
12364
12365 done
12366
12367
12368 for ac_func in getpagesize
12369 do
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char $ac_func (); below.
12385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386     <limits.h> exists even on freestanding compilers.  */
12387 #ifdef __STDC__
12388 # include <limits.h>
12389 #else
12390 # include <assert.h>
12391 #endif
12392 /* Override any gcc2 internal prototype to avoid an error.  */
12393 #ifdef __cplusplus
12394 extern "C"
12395 {
12396 #endif
12397 /* We use char because int might match the return type of a gcc2
12398    builtin and then its argument prototype would still apply.  */
12399 char $ac_func ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12404 choke me
12405 #else
12406 char (*f) () = $ac_func;
12407 #endif
12408 #ifdef __cplusplus
12409 }
12410 #endif
12411
12412 int
12413 main ()
12414 {
12415 return f != $ac_func;
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422   (eval $ac_link) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   eval "$as_ac_var=yes"
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 eval "$as_ac_var=no"
12438 fi
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12440 fi
12441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444   cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446 _ACEOF
12447
12448 fi
12449 done
12450
12451 echo "$as_me:$LINENO: checking for working mmap" >&5
12452 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12453 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   if test "$cross_compiling" = yes; then
12457   ac_cv_func_mmap_fixed_mapped=no
12458 else
12459   cat >conftest.$ac_ext <<_ACEOF
12460 #line $LINENO "configure"
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466 $ac_includes_default
12467 /* malloc might have been renamed as rpl_malloc. */
12468 #undef malloc
12469
12470 /* Thanks to Mike Haertel and Jim Avera for this test.
12471    Here is a matrix of mmap possibilities:
12472         mmap private not fixed
12473         mmap private fixed at somewhere currently unmapped
12474         mmap private fixed at somewhere already mapped
12475         mmap shared not fixed
12476         mmap shared fixed at somewhere currently unmapped
12477         mmap shared fixed at somewhere already mapped
12478    For private mappings, we should verify that changes cannot be read()
12479    back from the file, nor mmap's back from the file at a different
12480    address.  (There have been systems where private was not correctly
12481    implemented like the infamous i386 svr4.0, and systems where the
12482    VM page cache was not coherent with the file system buffer cache
12483    like early versions of FreeBSD and possibly contemporary NetBSD.)
12484    For shared mappings, we should conversely verify that changes get
12485    propagated back to all the places they're supposed to be.
12486
12487    Grep wants private fixed already mapped.
12488    The main things grep needs to know about mmap are:
12489    * does it exist and is it safe to write into the mmap'd area
12490    * how to use it (BSD variants)  */
12491
12492 #include <fcntl.h>
12493 #include <sys/mman.h>
12494
12495 #if !STDC_HEADERS && !HAVE_STDLIB_H
12496 char *malloc ();
12497 #endif
12498
12499 /* This mess was copied from the GNU getpagesize.h.  */
12500 #if !HAVE_GETPAGESIZE
12501 /* Assume that all systems that can run configure have sys/param.h.  */
12502 # if !HAVE_SYS_PARAM_H
12503 #  define HAVE_SYS_PARAM_H 1
12504 # endif
12505
12506 # ifdef _SC_PAGESIZE
12507 #  define getpagesize() sysconf(_SC_PAGESIZE)
12508 # else /* no _SC_PAGESIZE */
12509 #  if HAVE_SYS_PARAM_H
12510 #   include <sys/param.h>
12511 #   ifdef EXEC_PAGESIZE
12512 #    define getpagesize() EXEC_PAGESIZE
12513 #   else /* no EXEC_PAGESIZE */
12514 #    ifdef NBPG
12515 #     define getpagesize() NBPG * CLSIZE
12516 #     ifndef CLSIZE
12517 #      define CLSIZE 1
12518 #     endif /* no CLSIZE */
12519 #    else /* no NBPG */
12520 #     ifdef NBPC
12521 #      define getpagesize() NBPC
12522 #     else /* no NBPC */
12523 #      ifdef PAGESIZE
12524 #       define getpagesize() PAGESIZE
12525 #      endif /* PAGESIZE */
12526 #     endif /* no NBPC */
12527 #    endif /* no NBPG */
12528 #   endif /* no EXEC_PAGESIZE */
12529 #  else /* no HAVE_SYS_PARAM_H */
12530 #   define getpagesize() 8192   /* punt totally */
12531 #  endif /* no HAVE_SYS_PARAM_H */
12532 # endif /* no _SC_PAGESIZE */
12533
12534 #endif /* no HAVE_GETPAGESIZE */
12535
12536 int
12537 main ()
12538 {
12539   char *data, *data2, *data3;
12540   int i, pagesize;
12541   int fd;
12542
12543   pagesize = getpagesize ();
12544
12545   /* First, make a file with some known garbage in it. */
12546   data = (char *) malloc (pagesize);
12547   if (!data)
12548     exit (1);
12549   for (i = 0; i < pagesize; ++i)
12550     *(data + i) = rand ();
12551   umask (0);
12552   fd = creat ("conftest.mmap", 0600);
12553   if (fd < 0)
12554     exit (1);
12555   if (write (fd, data, pagesize) != pagesize)
12556     exit (1);
12557   close (fd);
12558
12559   /* Next, try to mmap the file at a fixed address which already has
12560      something else allocated at it.  If we can, also make sure that
12561      we see the same garbage.  */
12562   fd = open ("conftest.mmap", O_RDWR);
12563   if (fd < 0)
12564     exit (1);
12565   data2 = (char *) malloc (2 * pagesize);
12566   if (!data2)
12567     exit (1);
12568   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12569   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12570                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12571     exit (1);
12572   for (i = 0; i < pagesize; ++i)
12573     if (*(data + i) != *(data2 + i))
12574       exit (1);
12575
12576   /* Finally, make sure that changes to the mapped area do not
12577      percolate back to the file as seen by read().  (This is a bug on
12578      some variants of i386 svr4.0.)  */
12579   for (i = 0; i < pagesize; ++i)
12580     *(data2 + i) = *(data2 + i) + 1;
12581   data3 = (char *) malloc (pagesize);
12582   if (!data3)
12583     exit (1);
12584   if (read (fd, data3, pagesize) != pagesize)
12585     exit (1);
12586   for (i = 0; i < pagesize; ++i)
12587     if (*(data + i) != *(data3 + i))
12588       exit (1);
12589   close (fd);
12590   exit (0);
12591 }
12592 _ACEOF
12593 rm -f conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600   (eval $ac_try) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; }; then
12604   ac_cv_func_mmap_fixed_mapped=yes
12605 else
12606   echo "$as_me: program exited with status $ac_status" >&5
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ( exit $ac_status )
12611 ac_cv_func_mmap_fixed_mapped=no
12612 fi
12613 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 fi
12616 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12617 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12618 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12619
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_MMAP 1
12622 _ACEOF
12623
12624 fi
12625 rm -f conftest.mmap
12626
12627
12628     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12629 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12630 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640
12641 #include <features.h>
12642 #ifdef __GNU_LIBRARY__
12643  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12644   Lucky GNU user
12645  #endif
12646 #endif
12647
12648 _ACEOF
12649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12650   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12651   ac_cv_gnu_library_2_1=yes
12652 else
12653   ac_cv_gnu_library_2_1=no
12654 fi
12655 rm -f conftest*
12656
12657
12658
12659 fi
12660 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12661 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12662
12663     GLIBC21="$ac_cv_gnu_library_2_1"
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12678 stdlib.h string.h unistd.h sys/param.h
12679 do
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682   echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 fi
12687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12689 else
12690   # Is the header compilable?
12691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 #include <$ac_header>
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -s conftest.$ac_objext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   ac_header_compiler=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_compiler=no
12721 fi
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12724 echo "${ECHO_T}$ac_header_compiler" >&6
12725
12726 # Is the header present?
12727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12729 cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736 #include <$ac_header>
12737 _ACEOF
12738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12740   ac_status=$?
12741   grep -v '^ *+' conftest.er1 >conftest.err
12742   rm -f conftest.er1
12743   cat conftest.err >&5
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } >/dev/null; then
12746   if test -s conftest.err; then
12747     ac_cpp_err=$ac_c_preproc_warn_flag
12748   else
12749     ac_cpp_err=
12750   fi
12751 else
12752   ac_cpp_err=yes
12753 fi
12754 if test -z "$ac_cpp_err"; then
12755   ac_header_preproc=yes
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760   ac_header_preproc=no
12761 fi
12762 rm -f conftest.err conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12764 echo "${ECHO_T}$ac_header_preproc" >&6
12765
12766 # So?  What about this header?
12767 case $ac_header_compiler:$ac_header_preproc in
12768   yes:no )
12769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12773     (
12774       cat <<\_ASBOX
12775 ## ------------------------------------ ##
12776 ## Report this to bug-autoconf@gnu.org. ##
12777 ## ------------------------------------ ##
12778 _ASBOX
12779     ) |
12780       sed "s/^/$as_me: WARNING:     /" >&2
12781     ;;
12782   no:yes )
12783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12785     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789     (
12790       cat <<\_ASBOX
12791 ## ------------------------------------ ##
12792 ## Report this to bug-autoconf@gnu.org. ##
12793 ## ------------------------------------ ##
12794 _ASBOX
12795     ) |
12796       sed "s/^/$as_me: WARNING:     /" >&2
12797     ;;
12798 esac
12799 echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   eval "$as_ac_Header=$ac_header_preproc"
12805 fi
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12808
12809 fi
12810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12811   cat >>confdefs.h <<_ACEOF
12812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12813 _ACEOF
12814
12815 fi
12816
12817 done
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12841 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12842 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12843 do
12844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12845 echo "$as_me:$LINENO: checking for $ac_func" >&5
12846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12847 if eval "test \"\${$as_ac_var+set}\" = set"; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 /* System header to define __stub macros and hopefully few prototypes,
12858     which can conflict with char $ac_func (); below.
12859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860     <limits.h> exists even on freestanding compilers.  */
12861 #ifdef __STDC__
12862 # include <limits.h>
12863 #else
12864 # include <assert.h>
12865 #endif
12866 /* Override any gcc2 internal prototype to avoid an error.  */
12867 #ifdef __cplusplus
12868 extern "C"
12869 {
12870 #endif
12871 /* We use char because int might match the return type of a gcc2
12872    builtin and then its argument prototype would still apply.  */
12873 char $ac_func ();
12874 /* The GNU C library defines this for functions which it implements
12875     to always fail with ENOSYS.  Some functions are actually named
12876     something starting with __ and the normal name is an alias.  */
12877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12878 choke me
12879 #else
12880 char (*f) () = $ac_func;
12881 #endif
12882 #ifdef __cplusplus
12883 }
12884 #endif
12885
12886 int
12887 main ()
12888 {
12889 return f != $ac_func;
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896   (eval $ac_link) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -s conftest$ac_exeext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   eval "$as_ac_var=yes"
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 eval "$as_ac_var=no"
12912 fi
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 fi
12915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12917 if test `eval echo '${'$as_ac_var'}'` = yes; then
12918   cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12920 _ACEOF
12921
12922 fi
12923 done
12924
12925
12926
12927
12928
12929 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12930 if test "${with_libiconv_prefix+set}" = set; then
12931   withval="$with_libiconv_prefix"
12932
12933     for dir in `echo "$withval" | tr : ' '`; do
12934       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12935       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12936     done
12937
12938 fi;
12939
12940   echo "$as_me:$LINENO: checking for iconv" >&5
12941 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12942 if test "${am_cv_func_iconv+set}" = set; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945
12946     am_cv_func_iconv="no, consider installing GNU libiconv"
12947     am_cv_lib_iconv=no
12948     cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 #include <stdlib.h>
12956 #include <iconv.h>
12957 int
12958 main ()
12959 {
12960 iconv_t cd = iconv_open("","");
12961        iconv(cd,NULL,NULL,NULL,NULL);
12962        iconv_close(cd);
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969   (eval $ac_link) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } &&
12973          { ac_try='test -s conftest$ac_exeext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   am_cv_func_iconv=yes
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984 fi
12985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12986     if test "$am_cv_func_iconv" != yes; then
12987       am_save_LIBS="$LIBS"
12988       LIBS="$LIBS -liconv"
12989       cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996 #include <stdlib.h>
12997 #include <iconv.h>
12998 int
12999 main ()
13000 {
13001 iconv_t cd = iconv_open("","");
13002          iconv(cd,NULL,NULL,NULL,NULL);
13003          iconv_close(cd);
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010   (eval $ac_link) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } &&
13014          { ac_try='test -s conftest$ac_exeext'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   am_cv_lib_iconv=yes
13021         am_cv_func_iconv=yes
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 fi
13027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13028       LIBS="$am_save_LIBS"
13029     fi
13030
13031 fi
13032 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13033 echo "${ECHO_T}$am_cv_func_iconv" >&6
13034   if test "$am_cv_func_iconv" = yes; then
13035
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_ICONV 1
13038 _ACEOF
13039
13040     echo "$as_me:$LINENO: checking for iconv declaration" >&5
13041 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13042     if test "${am_cv_proto_iconv+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045
13046       cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053
13054 #include <stdlib.h>
13055 #include <iconv.h>
13056 extern
13057 #ifdef __cplusplus
13058 "C"
13059 #endif
13060 #if defined(__STDC__) || defined(__cplusplus)
13061 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13062 #else
13063 size_t iconv();
13064 #endif
13065
13066 int
13067 main ()
13068 {
13069
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076   (eval $ac_compile) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } &&
13080          { ac_try='test -s conftest.$ac_objext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   am_cv_proto_iconv_arg1=""
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 am_cv_proto_iconv_arg1="const"
13092 fi
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13094       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13095 fi
13096
13097     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13098     echo "$as_me:$LINENO: result: ${ac_t:-
13099          }$am_cv_proto_iconv" >&5
13100 echo "${ECHO_T}${ac_t:-
13101          }$am_cv_proto_iconv" >&6
13102
13103 cat >>confdefs.h <<_ACEOF
13104 #define ICONV_CONST $am_cv_proto_iconv_arg1
13105 _ACEOF
13106
13107   fi
13108   LIBICONV=
13109   if test "$am_cv_lib_iconv" = yes; then
13110     LIBICONV="-liconv"
13111   fi
13112
13113
13114
13115   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13116 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13117 if test "${am_cv_langinfo_codeset+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 #include <langinfo.h>
13128 int
13129 main ()
13130 {
13131 char* cs = nl_langinfo(CODESET);
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   am_cv_langinfo_codeset=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 am_cv_langinfo_codeset=no
13154 fi
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156
13157 fi
13158 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13159 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13160   if test $am_cv_langinfo_codeset = yes; then
13161
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_LANGINFO_CODESET 1
13164 _ACEOF
13165
13166   fi
13167
13168    if test $ac_cv_header_locale_h = yes; then
13169     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13170 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13171 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181 #include <locale.h>
13182 int
13183 main ()
13184 {
13185 return LC_MESSAGES
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192   (eval $ac_link) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -s conftest$ac_exeext'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   am_cv_val_LC_MESSAGES=yes
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 am_cv_val_LC_MESSAGES=no
13208 fi
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210 fi
13211 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13212 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13213     if test $am_cv_val_LC_MESSAGES = yes; then
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LC_MESSAGES 1
13217 _ACEOF
13218
13219     fi
13220   fi
13221    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13222 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13223         # Check whether --enable-nls or --disable-nls was given.
13224 if test "${enable_nls+set}" = set; then
13225   enableval="$enable_nls"
13226   USE_NLS=$enableval
13227 else
13228   USE_NLS=yes
13229 fi;
13230     echo "$as_me:$LINENO: result: $USE_NLS" >&5
13231 echo "${ECHO_T}$USE_NLS" >&6
13232
13233
13234     BUILD_INCLUDED_LIBINTL=no
13235     USE_INCLUDED_LIBINTL=no
13236     INTLLIBS=
13237
13238         if test "$USE_NLS" = "yes"; then
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define ENABLE_NLS 1
13242 _ACEOF
13243
13244       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13245 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13246
13247 # Check whether --with-included-gettext or --without-included-gettext was given.
13248 if test "${with_included_gettext+set}" = set; then
13249   withval="$with_included_gettext"
13250   nls_cv_force_use_gnu_gettext=$withval
13251 else
13252   nls_cv_force_use_gnu_gettext=no
13253 fi;
13254       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13255 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13256
13257       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13258       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13259                                 CATOBJEXT=NONE
13260
13261
13262
13263
13264         if test "${ac_cv_header_libintl_h+set}" = set; then
13265   echo "$as_me:$LINENO: checking for libintl.h" >&5
13266 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13267 if test "${ac_cv_header_libintl_h+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13271 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13272 else
13273   # Is the header compilable?
13274 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13275 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 $ac_includes_default
13284 #include <libintl.h>
13285 _ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288   (eval $ac_compile) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -s conftest.$ac_objext'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_header_compiler=yes
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 ac_header_compiler=no
13304 fi
13305 rm -f conftest.$ac_objext conftest.$ac_ext
13306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13307 echo "${ECHO_T}$ac_header_compiler" >&6
13308
13309 # Is the header present?
13310 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13311 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13313 #line $LINENO "configure"
13314 /* confdefs.h.  */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h.  */
13319 #include <libintl.h>
13320 _ACEOF
13321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } >/dev/null; then
13329   if test -s conftest.err; then
13330     ac_cpp_err=$ac_c_preproc_warn_flag
13331   else
13332     ac_cpp_err=
13333   fi
13334 else
13335   ac_cpp_err=yes
13336 fi
13337 if test -z "$ac_cpp_err"; then
13338   ac_header_preproc=yes
13339 else
13340   echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343   ac_header_preproc=no
13344 fi
13345 rm -f conftest.err conftest.$ac_ext
13346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13347 echo "${ECHO_T}$ac_header_preproc" >&6
13348
13349 # So?  What about this header?
13350 case $ac_header_compiler:$ac_header_preproc in
13351   yes:no )
13352     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13353 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13354     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13355 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13356     (
13357       cat <<\_ASBOX
13358 ## ------------------------------------ ##
13359 ## Report this to bug-autoconf@gnu.org. ##
13360 ## ------------------------------------ ##
13361 _ASBOX
13362     ) |
13363       sed "s/^/$as_me: WARNING:     /" >&2
13364     ;;
13365   no:yes )
13366     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13367 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13368     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13369 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13370     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13372     (
13373       cat <<\_ASBOX
13374 ## ------------------------------------ ##
13375 ## Report this to bug-autoconf@gnu.org. ##
13376 ## ------------------------------------ ##
13377 _ASBOX
13378     ) |
13379       sed "s/^/$as_me: WARNING:     /" >&2
13380     ;;
13381 esac
13382 echo "$as_me:$LINENO: checking for libintl.h" >&5
13383 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13384 if test "${ac_cv_header_libintl_h+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   ac_cv_header_libintl_h=$ac_header_preproc
13388 fi
13389 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13390 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13391
13392 fi
13393 if test $ac_cv_header_libintl_h = yes; then
13394   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13395 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13396 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406 #include <libintl.h>
13407 extern int _nl_msg_cat_cntr;
13408 int
13409 main ()
13410 {
13411 bindtextdomain ("", "");
13412 return (int) gettext ("") + _nl_msg_cat_cntr
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419   (eval $ac_link) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } &&
13423          { ac_try='test -s conftest$ac_exeext'
13424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425   (eval $ac_try) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429   gt_cv_func_gnugettext1_libc=yes
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 gt_cv_func_gnugettext1_libc=no
13435 fi
13436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13437 fi
13438 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13439 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13440
13441            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13442              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13443 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13444 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   gt_save_LIBS="$LIBS"
13448                 LIBS="$LIBS -lintl $LIBICONV"
13449                 cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 #include <libintl.h>
13457 extern int _nl_msg_cat_cntr;
13458 int
13459 main ()
13460 {
13461 bindtextdomain ("", "");
13462 return (int) gettext ("") + _nl_msg_cat_cntr
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469   (eval $ac_link) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } &&
13473          { ac_try='test -s conftest$ac_exeext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   gt_cv_func_gnugettext1_libintl=yes
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 gt_cv_func_gnugettext1_libintl=no
13485 fi
13486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13487                 LIBS="$gt_save_LIBS"
13488 fi
13489 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13491            fi
13492
13493                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13494               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13495                    && test "$PACKAGE" != gettext; }; then
13496
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_GETTEXT 1
13499 _ACEOF
13500
13501
13502              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13503                                        INTLLIBS="-lintl $LIBICONV"
13504              fi
13505
13506              gt_save_LIBS="$LIBS"
13507              LIBS="$LIBS $INTLLIBS"
13508
13509 for ac_func in dcgettext
13510 do
13511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13512 echo "$as_me:$LINENO: checking for $ac_func" >&5
13513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13514 if eval "test \"\${$as_ac_var+set}\" = set"; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   cat >conftest.$ac_ext <<_ACEOF
13518 #line $LINENO "configure"
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 /* System header to define __stub macros and hopefully few prototypes,
13525     which can conflict with char $ac_func (); below.
13526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13527     <limits.h> exists even on freestanding compilers.  */
13528 #ifdef __STDC__
13529 # include <limits.h>
13530 #else
13531 # include <assert.h>
13532 #endif
13533 /* Override any gcc2 internal prototype to avoid an error.  */
13534 #ifdef __cplusplus
13535 extern "C"
13536 {
13537 #endif
13538 /* We use char because int might match the return type of a gcc2
13539    builtin and then its argument prototype would still apply.  */
13540 char $ac_func ();
13541 /* The GNU C library defines this for functions which it implements
13542     to always fail with ENOSYS.  Some functions are actually named
13543     something starting with __ and the normal name is an alias.  */
13544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13545 choke me
13546 #else
13547 char (*f) () = $ac_func;
13548 #endif
13549 #ifdef __cplusplus
13550 }
13551 #endif
13552
13553 int
13554 main ()
13555 {
13556 return f != $ac_func;
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563   (eval $ac_link) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   eval "$as_ac_var=yes"
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 eval "$as_ac_var=no"
13579 fi
13580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13581 fi
13582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13584 if test `eval echo '${'$as_ac_var'}'` = yes; then
13585   cat >>confdefs.h <<_ACEOF
13586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13587 _ACEOF
13588
13589 fi
13590 done
13591
13592              LIBS="$gt_save_LIBS"
13593
13594                      # Extract the first word of "msgfmt", so it can be a program name with args.
13595 set dummy msgfmt; ac_word=$2
13596 echo "$as_me:$LINENO: checking for $ac_word" >&5
13597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13598 if test "${ac_cv_path_MSGFMT+set}" = set; then
13599   echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601   case "$MSGFMT" in
13602   /*)
13603   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13604   ;;
13605   *)
13606   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13607   for ac_dir in $PATH; do
13608     test -z "$ac_dir" && ac_dir=.
13609     if test -f $ac_dir/$ac_word; then
13610       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13611         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13612         break
13613       fi
13614     fi
13615   done
13616   IFS="$ac_save_ifs"
13617   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13618   ;;
13619 esac
13620 fi
13621 MSGFMT="$ac_cv_path_MSGFMT"
13622 if test "$MSGFMT" != ":"; then
13623   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13624 echo "${ECHO_T}$MSGFMT" >&6
13625 else
13626   echo "$as_me:$LINENO: result: no" >&5
13627 echo "${ECHO_T}no" >&6
13628 fi
13629
13630              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13631 set dummy gmsgfmt; ac_word=$2
13632 echo "$as_me:$LINENO: checking for $ac_word" >&5
13633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13634 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   case $GMSGFMT in
13638   [\\/]* | ?:[\\/]*)
13639   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13640   ;;
13641   *)
13642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13644 do
13645   IFS=$as_save_IFS
13646   test -z "$as_dir" && as_dir=.
13647   for ac_exec_ext in '' $ac_executable_extensions; do
13648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13649     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13651     break 2
13652   fi
13653 done
13654 done
13655
13656   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13657   ;;
13658 esac
13659 fi
13660 GMSGFMT=$ac_cv_path_GMSGFMT
13661
13662 if test -n "$GMSGFMT"; then
13663   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13664 echo "${ECHO_T}$GMSGFMT" >&6
13665 else
13666   echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6
13668 fi
13669
13670
13671                      # Extract the first word of "xgettext", so it can be a program name with args.
13672 set dummy xgettext; ac_word=$2
13673 echo "$as_me:$LINENO: checking for $ac_word" >&5
13674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13675 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13676   echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678   case "$XGETTEXT" in
13679   /*)
13680   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13681   ;;
13682   *)
13683   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13684   for ac_dir in $PATH; do
13685     test -z "$ac_dir" && ac_dir=.
13686     if test -f $ac_dir/$ac_word; then
13687       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13688         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13689         break
13690       fi
13691     fi
13692   done
13693   IFS="$ac_save_ifs"
13694   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13695   ;;
13696 esac
13697 fi
13698 XGETTEXT="$ac_cv_path_XGETTEXT"
13699 if test "$XGETTEXT" != ":"; then
13700   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13701 echo "${ECHO_T}$XGETTEXT" >&6
13702 else
13703   echo "$as_me:$LINENO: result: no" >&5
13704 echo "${ECHO_T}no" >&6
13705 fi
13706
13707
13708              CATOBJEXT=.gmo
13709            fi
13710
13711 fi
13712
13713
13714
13715         if test "$CATOBJEXT" = "NONE"; then
13716                           nls_cv_use_gnu_gettext=yes
13717         fi
13718       fi
13719
13720       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13721                 INTLOBJS="\$(GETTOBJS)"
13722         # Extract the first word of "msgfmt", so it can be a program name with args.
13723 set dummy msgfmt; ac_word=$2
13724 echo "$as_me:$LINENO: checking for $ac_word" >&5
13725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13726 if test "${ac_cv_path_MSGFMT+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   case "$MSGFMT" in
13730   /*)
13731   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13732   ;;
13733   *)
13734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13735   for ac_dir in $PATH; do
13736     test -z "$ac_dir" && ac_dir=.
13737     if test -f $ac_dir/$ac_word; then
13738       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13739         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13740         break
13741       fi
13742     fi
13743   done
13744   IFS="$ac_save_ifs"
13745   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13746   ;;
13747 esac
13748 fi
13749 MSGFMT="$ac_cv_path_MSGFMT"
13750 if test "$MSGFMT" != ":"; then
13751   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13752 echo "${ECHO_T}$MSGFMT" >&6
13753 else
13754   echo "$as_me:$LINENO: result: no" >&5
13755 echo "${ECHO_T}no" >&6
13756 fi
13757
13758         # Extract the first word of "gmsgfmt", so it can be a program name with args.
13759 set dummy gmsgfmt; ac_word=$2
13760 echo "$as_me:$LINENO: checking for $ac_word" >&5
13761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   case $GMSGFMT in
13766   [\\/]* | ?:[\\/]*)
13767   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13768   ;;
13769   *)
13770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13772 do
13773   IFS=$as_save_IFS
13774   test -z "$as_dir" && as_dir=.
13775   for ac_exec_ext in '' $ac_executable_extensions; do
13776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13777     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13779     break 2
13780   fi
13781 done
13782 done
13783
13784   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13785   ;;
13786 esac
13787 fi
13788 GMSGFMT=$ac_cv_path_GMSGFMT
13789
13790 if test -n "$GMSGFMT"; then
13791   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13792 echo "${ECHO_T}$GMSGFMT" >&6
13793 else
13794   echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6
13796 fi
13797
13798         # Extract the first word of "xgettext", so it can be a program name with args.
13799 set dummy xgettext; ac_word=$2
13800 echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13802 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   case "$XGETTEXT" in
13806   /*)
13807   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13808   ;;
13809   *)
13810   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13811   for ac_dir in $PATH; do
13812     test -z "$ac_dir" && ac_dir=.
13813     if test -f $ac_dir/$ac_word; then
13814       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13815         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13816         break
13817       fi
13818     fi
13819   done
13820   IFS="$ac_save_ifs"
13821   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13822   ;;
13823 esac
13824 fi
13825 XGETTEXT="$ac_cv_path_XGETTEXT"
13826 if test "$XGETTEXT" != ":"; then
13827   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13828 echo "${ECHO_T}$XGETTEXT" >&6
13829 else
13830   echo "$as_me:$LINENO: result: no" >&5
13831 echo "${ECHO_T}no" >&6
13832 fi
13833
13834
13835         BUILD_INCLUDED_LIBINTL=yes
13836         USE_INCLUDED_LIBINTL=yes
13837         CATOBJEXT=.gmo
13838         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13839         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13840       fi
13841
13842                   if test "$GMSGFMT" != ":"; then
13843                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13844           : ;
13845         else
13846           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13847 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13848           GMSGFMT=":"
13849         fi
13850       fi
13851
13852                   if test "$XGETTEXT" != ":"; then
13853                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13854           : ;
13855         else
13856           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13857 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13858           XGETTEXT=":"
13859         fi
13860       fi
13861
13862             POSUB=po
13863     fi
13864               ac_config_commands="$ac_config_commands default-1"
13865
13866
13867
13868             if test "$PACKAGE" = gettext; then
13869       BUILD_INCLUDED_LIBINTL=yes
13870     fi
13871
13872                                             for ac_prog in bison
13873 do
13874   # Extract the first word of "$ac_prog", so it can be a program name with args.
13875 set dummy $ac_prog; ac_word=$2
13876 echo "$as_me:$LINENO: checking for $ac_word" >&5
13877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13878 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   if test -n "$INTLBISON"; then
13882   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13883 else
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13886 do
13887   IFS=$as_save_IFS
13888   test -z "$as_dir" && as_dir=.
13889   for ac_exec_ext in '' $ac_executable_extensions; do
13890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891     ac_cv_prog_INTLBISON="$ac_prog"
13892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13893     break 2
13894   fi
13895 done
13896 done
13897
13898 fi
13899 fi
13900 INTLBISON=$ac_cv_prog_INTLBISON
13901 if test -n "$INTLBISON"; then
13902   echo "$as_me:$LINENO: result: $INTLBISON" >&5
13903 echo "${ECHO_T}$INTLBISON" >&6
13904 else
13905   echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6
13907 fi
13908
13909   test -n "$INTLBISON" && break
13910 done
13911
13912     if test -z "$INTLBISON"; then
13913       ac_verc_fail=yes
13914     else
13915             echo "$as_me:$LINENO: checking version of bison" >&5
13916 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13917       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13918       case $ac_prog_version in
13919         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13920         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13921            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13922         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13923       esac
13924       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13925 echo "${ECHO_T}$ac_prog_version" >&6
13926     fi
13927     if test $ac_verc_fail = yes; then
13928       INTLBISON=:
13929     fi
13930
13931                 for lang in $ALL_LINGUAS; do
13932       GMOFILES="$GMOFILES $lang.gmo"
13933       POFILES="$POFILES $lang.po"
13934     done
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946         nls_cv_header_intl=
13947     nls_cv_header_libgt=
13948
13949         DATADIRNAME=share
13950
13951
13952         INSTOBJEXT=.mo
13953
13954
13955         GENCAT=gencat
13956
13957
13958
13959    if test "x$CATOBJEXT" != "x"; then
13960      if test "x$ALL_LINGUAS" = "x"; then
13961        LINGUAS=
13962      else
13963        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13964 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13965        NEW_LINGUAS=
13966        for presentlang in $ALL_LINGUAS; do
13967          useit=no
13968          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13969            # Use the presentlang catalog if desiredlang is
13970            #   a. equal to presentlang, or
13971            #   b. a variant of presentlang (because in this case,
13972            #      presentlang can be used as a fallback for messages
13973            #      which are not translated in the desiredlang catalog).
13974            case "$desiredlang" in
13975              "$presentlang"*) useit=yes;;
13976            esac
13977          done
13978          if test $useit = yes; then
13979            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13980          fi
13981        done
13982        LINGUAS=$NEW_LINGUAS
13983        echo "$as_me:$LINENO: result: $LINGUAS" >&5
13984 echo "${ECHO_T}$LINGUAS" >&6
13985      fi
13986
13987           if test -n "$LINGUAS"; then
13988        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13989      fi
13990    fi
13991
13992             MKINSTALLDIRS=
13993    if test -n "$ac_aux_dir"; then
13994      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13995    fi
13996    if test -z "$MKINSTALLDIRS"; then
13997      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13998    fi
13999
14000
14001       INTL_LIBTOOL_SUFFIX_PREFIX=
14002
14003
14004
14005 if test "$am_cv_func_iconv" != "yes"
14006 then
14007   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
14008 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
14009 else
14010
14011
14012 for ac_header in iconv.h
14013 do
14014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016   echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 fi
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14023 else
14024   # Is the header compilable?
14025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14027 cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 $ac_includes_default
14035 #include <$ac_header>
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039   (eval $ac_compile) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -s conftest.$ac_objext'
14044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045   (eval $ac_try) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; }; then
14049   ac_header_compiler=yes
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_header_compiler=no
14055 fi
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14059
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 #include <$ac_header>
14071 _ACEOF
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } >/dev/null; then
14080   if test -s conftest.err; then
14081     ac_cpp_err=$ac_c_preproc_warn_flag
14082   else
14083     ac_cpp_err=
14084   fi
14085 else
14086   ac_cpp_err=yes
14087 fi
14088 if test -z "$ac_cpp_err"; then
14089   ac_header_preproc=yes
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094   ac_header_preproc=no
14095 fi
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14099
14100 # So?  What about this header?
14101 case $ac_header_compiler:$ac_header_preproc in
14102   yes:no )
14103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14107     (
14108       cat <<\_ASBOX
14109 ## ------------------------------------ ##
14110 ## Report this to bug-autoconf@gnu.org. ##
14111 ## ------------------------------------ ##
14112 _ASBOX
14113     ) |
14114       sed "s/^/$as_me: WARNING:     /" >&2
14115     ;;
14116   no:yes )
14117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14123     (
14124       cat <<\_ASBOX
14125 ## ------------------------------------ ##
14126 ## Report this to bug-autoconf@gnu.org. ##
14127 ## ------------------------------------ ##
14128 _ASBOX
14129     ) |
14130       sed "s/^/$as_me: WARNING:     /" >&2
14131     ;;
14132 esac
14133 echo "$as_me:$LINENO: checking for $ac_header" >&5
14134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   eval "$as_ac_Header=$ac_header_preproc"
14139 fi
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142
14143 fi
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145   cat >>confdefs.h <<_ACEOF
14146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14147 _ACEOF
14148  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14149 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14150          cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 #include <iconv.h>
14158
14159 _ACEOF
14160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14161   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
14162   echo "$as_me:$LINENO: result: yes" >&5
14163 echo "${ECHO_T}yes" >&6
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_ICONV_T_DEF 1
14167 _ACEOF
14168
14169 else
14170   echo "$as_me:$LINENO: result: no" >&5
14171 echo "${ECHO_T}no" >&6
14172 fi
14173 rm -f conftest*
14174
14175 fi
14176
14177 done
14178
14179
14180 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14181 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14182 if test "${mutt_cv_iconv_good+set}" = set; then
14183   echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185   mutt_save_LIBS="$LIBS"
14186         LIBS="$LIBS $LIBICONV"
14187         if test "$cross_compiling" = yes; then
14188   mutt_cv_iconv_good=yes
14189 else
14190   cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197
14198 #include <iconv.h>
14199 int main()
14200 {
14201   iconv_t cd;
14202   char buf[4];
14203   char *ob;
14204   size_t obl;
14205   ob = buf, obl = sizeof(buf);
14206   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14207           (iconv(cd, 0, 0, &ob, &obl) ||
14208            !(ob == buf && obl == sizeof(buf)) ||
14209            iconv_close(cd)));
14210 }
14211
14212 _ACEOF
14213 rm -f conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215   (eval $ac_link) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; }; then
14224   mutt_cv_iconv_good=yes
14225 else
14226   echo "$as_me: program exited with status $ac_status" >&5
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 ( exit $ac_status )
14231 mutt_cv_iconv_good=no
14232 fi
14233 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14234 fi
14235         LIBS="$mutt_save_LIBS"
14236 fi
14237 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14238 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14239 if test "$mutt_cv_iconv_good" = no; then
14240   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14241 echo "$as_me: error: Try using libiconv instead" >&2;}
14242    { (exit 1); exit 1; }; }
14243 fi
14244
14245 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14246 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14247 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   mutt_save_LIBS="$LIBS"
14251         LIBS="$LIBS $LIBICONV"
14252         if test "$cross_compiling" = yes; then
14253   mutt_cv_iconv_nontrans=no
14254 else
14255   cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262
14263 #include <iconv.h>
14264 #include <string.h>
14265 int main()
14266 {
14267   iconv_t cd;
14268   const char *ib;
14269   char *ob;
14270   size_t ibl, obl;
14271   const char *s = "\304\211";
14272   char t[3];
14273   ib = s, ibl = 2, ob = t, obl = 3;
14274   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14275           iconv(cd, &ib, &ibl, &ob, &obl));
14276 }
14277
14278 _ACEOF
14279 rm -f conftest$ac_exeext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14281   (eval $ac_link) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   mutt_cv_iconv_nontrans=no
14291 else
14292   echo "$as_me: program exited with status $ac_status" >&5
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ( exit $ac_status )
14297 mutt_cv_iconv_nontrans=yes
14298 fi
14299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14300 fi
14301         LIBS="$mutt_save_LIBS"
14302 fi
14303 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14304 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14305 if test "$mutt_cv_iconv_nontrans" = yes; then
14306   cat >>confdefs.h <<\_ACEOF
14307 #define ICONV_NONTRANS 1
14308 _ACEOF
14309
14310 else
14311   cat >>confdefs.h <<\_ACEOF
14312 #define ICONV_NONTRANS 0
14313 _ACEOF
14314
14315 fi
14316
14317 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14318
14319 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14320
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14323 _ACEOF
14324
14325 else
14326
14327 for ac_func in bind_textdomain_codeset
14328 do
14329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14330 echo "$as_me:$LINENO: checking for $ac_func" >&5
14331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14332 if eval "test \"\${$as_ac_var+set}\" = set"; then
14333   echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335   cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 /* System header to define __stub macros and hopefully few prototypes,
14343     which can conflict with char $ac_func (); below.
14344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14345     <limits.h> exists even on freestanding compilers.  */
14346 #ifdef __STDC__
14347 # include <limits.h>
14348 #else
14349 # include <assert.h>
14350 #endif
14351 /* Override any gcc2 internal prototype to avoid an error.  */
14352 #ifdef __cplusplus
14353 extern "C"
14354 {
14355 #endif
14356 /* We use char because int might match the return type of a gcc2
14357    builtin and then its argument prototype would still apply.  */
14358 char $ac_func ();
14359 /* The GNU C library defines this for functions which it implements
14360     to always fail with ENOSYS.  Some functions are actually named
14361     something starting with __ and the normal name is an alias.  */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363 choke me
14364 #else
14365 char (*f) () = $ac_func;
14366 #endif
14367 #ifdef __cplusplus
14368 }
14369 #endif
14370
14371 int
14372 main ()
14373 {
14374 return f != $ac_func;
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381   (eval $ac_link) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -s conftest$ac_exeext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   eval "$as_ac_var=yes"
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 eval "$as_ac_var=no"
14397 fi
14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14399 fi
14400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403   cat >>confdefs.h <<_ACEOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14405 _ACEOF
14406
14407 fi
14408 done
14409
14410 fi
14411
14412 fi # libiconv
14413
14414
14415
14416 for ac_header in wchar.h
14417 do
14418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420   echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14423   echo $ECHO_N "(cached) $ECHO_C" >&6
14424 fi
14425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14427 else
14428   # Is the header compilable?
14429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14431 cat >conftest.$ac_ext <<_ACEOF
14432 #line $LINENO "configure"
14433 /* confdefs.h.  */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h.  */
14438 $ac_includes_default
14439 #include <$ac_header>
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_header_compiler=yes
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_header_compiler=no
14459 fi
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14462 echo "${ECHO_T}$ac_header_compiler" >&6
14463
14464 # Is the header present?
14465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14469 /* confdefs.h.  */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h.  */
14474 #include <$ac_header>
14475 _ACEOF
14476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } >/dev/null; then
14484   if test -s conftest.err; then
14485     ac_cpp_err=$ac_c_preproc_warn_flag
14486   else
14487     ac_cpp_err=
14488   fi
14489 else
14490   ac_cpp_err=yes
14491 fi
14492 if test -z "$ac_cpp_err"; then
14493   ac_header_preproc=yes
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498   ac_header_preproc=no
14499 fi
14500 rm -f conftest.err conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 echo "${ECHO_T}$ac_header_preproc" >&6
14503
14504 # So?  What about this header?
14505 case $ac_header_compiler:$ac_header_preproc in
14506   yes:no )
14507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14511     (
14512       cat <<\_ASBOX
14513 ## ------------------------------------ ##
14514 ## Report this to bug-autoconf@gnu.org. ##
14515 ## ------------------------------------ ##
14516 _ASBOX
14517     ) |
14518       sed "s/^/$as_me: WARNING:     /" >&2
14519     ;;
14520   no:yes )
14521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14523     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14527     (
14528       cat <<\_ASBOX
14529 ## ------------------------------------ ##
14530 ## Report this to bug-autoconf@gnu.org. ##
14531 ## ------------------------------------ ##
14532 _ASBOX
14533     ) |
14534       sed "s/^/$as_me: WARNING:     /" >&2
14535     ;;
14536 esac
14537 echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   eval "$as_ac_Header=$ac_header_preproc"
14543 fi
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14546
14547 fi
14548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14549   cat >>confdefs.h <<_ACEOF
14550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14551 _ACEOF
14552
14553 fi
14554
14555 done
14556
14557
14558 echo "$as_me:$LINENO: checking for wchar_t" >&5
14559 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14560 if test "${mutt_cv_wchar_t+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 #line $LINENO "configure"
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570
14571 #include <stddef.h>
14572 #include <stdlib.h>
14573 #ifdef HAVE_WCHAR_H
14574 #include <wchar.h>
14575 #endif
14576
14577 int
14578 main ()
14579 {
14580  wchar_t wc; return 0;
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587   (eval $ac_compile) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -s conftest.$ac_objext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   mutt_cv_wchar_t=yes
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 mutt_cv_wchar_t=no
14603 fi
14604 rm -f conftest.$ac_objext conftest.$ac_ext
14605 fi
14606 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14607 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14608
14609 if test "$mutt_cv_wchar_t" = no; then
14610
14611 cat >>confdefs.h <<\_ACEOF
14612 #define wchar_t int
14613 _ACEOF
14614
14615 fi
14616
14617 echo "$as_me:$LINENO: checking for wint_t" >&5
14618 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14619 if test "${mutt_cv_wint_t+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   cat >conftest.$ac_ext <<_ACEOF
14623 #line $LINENO "configure"
14624 /* confdefs.h.  */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h.  */
14629
14630 #include <stddef.h>
14631 #include <stdlib.h>
14632 #ifdef HAVE_WCHAR_H
14633 #include <wchar.h>
14634 #endif
14635
14636 int
14637 main ()
14638 {
14639  wint_t wc; return 0;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646   (eval $ac_compile) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   mutt_cv_wint_t=yes
14657 else
14658   echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 mutt_cv_wint_t=no
14662 fi
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14664 fi
14665 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14666 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14667
14668 if test "$mutt_cv_wint_t" = no; then
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define wint_t int
14672 _ACEOF
14673
14674 fi
14675
14676
14677 for ac_header in wctype.h
14678 do
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681   echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 fi
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14688 else
14689   # Is the header compilable?
14690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14694 /* confdefs.h.  */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h.  */
14699 $ac_includes_default
14700 #include <$ac_header>
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704   (eval $ac_compile) 2>&5
14705   ac_status=$?
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } &&
14708          { ac_try='test -s conftest.$ac_objext'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }; then
14714   ac_header_compiler=yes
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ac_header_compiler=no
14720 fi
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14723 echo "${ECHO_T}$ac_header_compiler" >&6
14724
14725 # Is the header present?
14726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include <$ac_header>
14736 _ACEOF
14737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } >/dev/null; then
14745   if test -s conftest.err; then
14746     ac_cpp_err=$ac_c_preproc_warn_flag
14747   else
14748     ac_cpp_err=
14749   fi
14750 else
14751   ac_cpp_err=yes
14752 fi
14753 if test -z "$ac_cpp_err"; then
14754   ac_header_preproc=yes
14755 else
14756   echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759   ac_header_preproc=no
14760 fi
14761 rm -f conftest.err conftest.$ac_ext
14762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14763 echo "${ECHO_T}$ac_header_preproc" >&6
14764
14765 # So?  What about this header?
14766 case $ac_header_compiler:$ac_header_preproc in
14767   yes:no )
14768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14772     (
14773       cat <<\_ASBOX
14774 ## ------------------------------------ ##
14775 ## Report this to bug-autoconf@gnu.org. ##
14776 ## ------------------------------------ ##
14777 _ASBOX
14778     ) |
14779       sed "s/^/$as_me: WARNING:     /" >&2
14780     ;;
14781   no:yes )
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14788     (
14789       cat <<\_ASBOX
14790 ## ------------------------------------ ##
14791 ## Report this to bug-autoconf@gnu.org. ##
14792 ## ------------------------------------ ##
14793 _ASBOX
14794     ) |
14795       sed "s/^/$as_me: WARNING:     /" >&2
14796     ;;
14797 esac
14798 echo "$as_me:$LINENO: checking for $ac_header" >&5
14799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   eval "$as_ac_Header=$ac_header_preproc"
14804 fi
14805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14807
14808 fi
14809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14810   cat >>confdefs.h <<_ACEOF
14811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14812 _ACEOF
14813
14814 fi
14815
14816 done
14817
14818
14819
14820
14821
14822 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14823 do
14824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 echo "$as_me:$LINENO: checking for $ac_func" >&5
14826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14827 if eval "test \"\${$as_ac_var+set}\" = set"; then
14828   echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830   cat >conftest.$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837 /* System header to define __stub macros and hopefully few prototypes,
14838     which can conflict with char $ac_func (); below.
14839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14840     <limits.h> exists even on freestanding compilers.  */
14841 #ifdef __STDC__
14842 # include <limits.h>
14843 #else
14844 # include <assert.h>
14845 #endif
14846 /* Override any gcc2 internal prototype to avoid an error.  */
14847 #ifdef __cplusplus
14848 extern "C"
14849 {
14850 #endif
14851 /* We use char because int might match the return type of a gcc2
14852    builtin and then its argument prototype would still apply.  */
14853 char $ac_func ();
14854 /* The GNU C library defines this for functions which it implements
14855     to always fail with ENOSYS.  Some functions are actually named
14856     something starting with __ and the normal name is an alias.  */
14857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14858 choke me
14859 #else
14860 char (*f) () = $ac_func;
14861 #endif
14862 #ifdef __cplusplus
14863 }
14864 #endif
14865
14866 int
14867 main ()
14868 {
14869 return f != $ac_func;
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876   (eval $ac_link) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -s conftest$ac_exeext'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886   eval "$as_ac_var=yes"
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 eval "$as_ac_var=no"
14892 fi
14893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14894 fi
14895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14897 if test `eval echo '${'$as_ac_var'}'` = yes; then
14898   cat >>confdefs.h <<_ACEOF
14899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 _ACEOF
14901
14902 fi
14903 done
14904
14905
14906
14907
14908
14909
14910
14911 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14912 do
14913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14914 echo "$as_me:$LINENO: checking for $ac_func" >&5
14915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14916 if eval "test \"\${$as_ac_var+set}\" = set"; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   cat >conftest.$ac_ext <<_ACEOF
14920 #line $LINENO "configure"
14921 /* confdefs.h.  */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h.  */
14926 /* System header to define __stub macros and hopefully few prototypes,
14927     which can conflict with char $ac_func (); below.
14928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929     <limits.h> exists even on freestanding compilers.  */
14930 #ifdef __STDC__
14931 # include <limits.h>
14932 #else
14933 # include <assert.h>
14934 #endif
14935 /* Override any gcc2 internal prototype to avoid an error.  */
14936 #ifdef __cplusplus
14937 extern "C"
14938 {
14939 #endif
14940 /* We use char because int might match the return type of a gcc2
14941    builtin and then its argument prototype would still apply.  */
14942 char $ac_func ();
14943 /* The GNU C library defines this for functions which it implements
14944     to always fail with ENOSYS.  Some functions are actually named
14945     something starting with __ and the normal name is an alias.  */
14946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14947 choke me
14948 #else
14949 char (*f) () = $ac_func;
14950 #endif
14951 #ifdef __cplusplus
14952 }
14953 #endif
14954
14955 int
14956 main ()
14957 {
14958 return f != $ac_func;
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965   (eval $ac_link) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -s conftest$ac_exeext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   eval "$as_ac_var=yes"
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 eval "$as_ac_var=no"
14981 fi
14982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14983 fi
14984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14986 if test `eval echo '${'$as_ac_var'}'` = yes; then
14987   cat >>confdefs.h <<_ACEOF
14988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14989 _ACEOF
14990
14991 fi
14992 done
14993
14994
14995
14996
14997 for ac_func in iswxdigit towupper towlower
14998 do
14999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 echo "$as_me:$LINENO: checking for $ac_func" >&5
15001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_var+set}\" = set"; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 /* System header to define __stub macros and hopefully few prototypes,
15013     which can conflict with char $ac_func (); below.
15014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15015     <limits.h> exists even on freestanding compilers.  */
15016 #ifdef __STDC__
15017 # include <limits.h>
15018 #else
15019 # include <assert.h>
15020 #endif
15021 /* Override any gcc2 internal prototype to avoid an error.  */
15022 #ifdef __cplusplus
15023 extern "C"
15024 {
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027    builtin and then its argument prototype would still apply.  */
15028 char $ac_func ();
15029 /* The GNU C library defines this for functions which it implements
15030     to always fail with ENOSYS.  Some functions are actually named
15031     something starting with __ and the normal name is an alias.  */
15032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15033 choke me
15034 #else
15035 char (*f) () = $ac_func;
15036 #endif
15037 #ifdef __cplusplus
15038 }
15039 #endif
15040
15041 int
15042 main ()
15043 {
15044 return f != $ac_func;
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15051   (eval $ac_link) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } &&
15055          { ac_try='test -s conftest$ac_exeext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   eval "$as_ac_var=yes"
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 eval "$as_ac_var=no"
15067 fi
15068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15069 fi
15070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15072 if test `eval echo '${'$as_ac_var'}'` = yes; then
15073   cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078 done
15079
15080
15081 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15082 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15083 if test "${mutt_cv_mbstate_t+set}" = set; then
15084   echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086   cat >conftest.$ac_ext <<_ACEOF
15087 #line $LINENO "configure"
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093
15094 #include <stddef.h>
15095 #include <stdlib.h>
15096 #ifdef HAVE_WCHAR_H
15097 #include <wchar.h>
15098 #endif
15099
15100 int
15101 main ()
15102 {
15103  mbstate_t s; return 0;
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110   (eval $ac_compile) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -s conftest.$ac_objext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   mutt_cv_mbstate_t=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 mutt_cv_mbstate_t=no
15126 fi
15127 rm -f conftest.$ac_objext conftest.$ac_ext
15128 fi
15129 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15130 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15131
15132 if test "$mutt_cv_mbstate_t" = no; then
15133
15134 cat >>confdefs.h <<\_ACEOF
15135 #define mbstate_t int
15136 _ACEOF
15137
15138 fi
15139
15140 wc_funcs=maybe
15141
15142 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15143 if test "${with_wc_funcs+set}" = set; then
15144   withval="$with_wc_funcs"
15145   wc_funcs=$withval
15146 fi;
15147
15148 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15149         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15150 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15151 if test "${mutt_cv_wc_funcs+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   mutt_cv_wc_funcs=no
15155                 cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162
15163 #define _XOPEN_SOURCE 1
15164 #include <stddef.h>
15165 #include <stdlib.h>
15166 #ifdef HAVE_WCTYPE_H
15167 #include <wctype.h>
15168 #endif
15169 #ifdef HAVE_WCHAR_H
15170 #include <wchar.h>
15171 #endif
15172 int
15173 main ()
15174 {
15175 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15176         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183   (eval $ac_link) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); } &&
15187          { ac_try='test -s conftest$ac_exeext'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193   mutt_cv_wc_funcs=yes
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 fi
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15200 fi
15201 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15202 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15203         wc_funcs=$mutt_cv_wc_funcs
15204 fi
15205
15206 if test $wc_funcs = yes; then
15207
15208 cat >>confdefs.h <<\_ACEOF
15209 #define HAVE_WC_FUNCS 1
15210 _ACEOF
15211
15212 fi
15213
15214 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15215 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15216 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 #include <langinfo.h>
15227 int
15228 main ()
15229 {
15230 char* cs = nl_langinfo(CODESET);
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237   (eval $ac_link) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } &&
15241          { ac_try='test -s conftest$ac_exeext'
15242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243   (eval $ac_try) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; }; then
15247   mutt_cv_langinfo_codeset=yes
15248 else
15249   echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 mutt_cv_langinfo_codeset=no
15253 fi
15254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15255 fi
15256 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15257 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15258 if test $mutt_cv_langinfo_codeset = yes; then
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_LANGINFO_CODESET 1
15262 _ACEOF
15263
15264 fi
15265
15266 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15267 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15268 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   cat >conftest.$ac_ext <<_ACEOF
15272 #line $LINENO "configure"
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 #include <langinfo.h>
15279 int
15280 main ()
15281 {
15282 char* cs = nl_langinfo(YESEXPR);
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15289   (eval $ac_link) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -s conftest$ac_exeext'
15294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295   (eval $ac_try) 2>&5
15296   ac_status=$?
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); }; }; then
15299   mutt_cv_langinfo_yesexpr=yes
15300 else
15301   echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 mutt_cv_langinfo_yesexpr=no
15305 fi
15306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15307 fi
15308 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15309 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15310 if test $mutt_cv_langinfo_yesexpr = yes; then
15311
15312 cat >>confdefs.h <<\_ACEOF
15313 #define HAVE_LANGINFO_YESEXPR 1
15314 _ACEOF
15315
15316 fi
15317
15318
15319
15320 # Check whether --with-libesmtp or --without-libesmtp was given.
15321 if test "${with_libesmtp+set}" = set; then
15322   withval="$with_libesmtp"
15323    if test "$with_libesmtp" != "no"
15324       then
15325         mutt_libesmtp_check_path="$PATH"
15326
15327         if test "$with_libesmtp" != "yes"
15328         then
15329           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15330         fi
15331
15332                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15333 set dummy libesmtp-config; ac_word=$2
15334 echo "$as_me:$LINENO: checking for $ac_word" >&5
15335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15336 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339   case $mutt_libesmtp_config_path in
15340   [\\/]* | ?:[\\/]*)
15341   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15342   ;;
15343   *)
15344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $mutt_libesmtp_check_path
15346 do
15347   IFS=$as_save_IFS
15348   test -z "$as_dir" && as_dir=.
15349   for ac_exec_ext in '' $ac_executable_extensions; do
15350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15351     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15353     break 2
15354   fi
15355 done
15356 done
15357
15358   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15359   ;;
15360 esac
15361 fi
15362 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15363
15364 if test -n "$mutt_libesmtp_config_path"; then
15365   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15366 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15367 else
15368   echo "$as_me:$LINENO: result: no" >&5
15369 echo "${ECHO_T}no" >&6
15370 fi
15371
15372
15373         if test "$mutt_libesmtp_config_path" = "no"
15374         then
15375           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15376 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15377    { (exit 1); exit 1; }; }
15378         fi
15379
15380                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15381         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15382
15383                 temp_CFLAGS="$CFLAGS"
15384         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15385         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15386   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15387 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15388 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 fi
15391 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15392 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15393 else
15394   # Is the header compilable?
15395 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15396 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line $LINENO "configure"
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 $ac_includes_default
15405 #include <libesmtp.h>
15406 _ACEOF
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409   (eval $ac_compile) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } &&
15413          { ac_try='test -s conftest.$ac_objext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_header_compiler=yes
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 ac_header_compiler=no
15425 fi
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15428 echo "${ECHO_T}$ac_header_compiler" >&6
15429
15430 # Is the header present?
15431 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15432 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 #include <libesmtp.h>
15441 _ACEOF
15442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } >/dev/null; then
15450   if test -s conftest.err; then
15451     ac_cpp_err=$ac_c_preproc_warn_flag
15452   else
15453     ac_cpp_err=
15454   fi
15455 else
15456   ac_cpp_err=yes
15457 fi
15458 if test -z "$ac_cpp_err"; then
15459   ac_header_preproc=yes
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464   ac_header_preproc=no
15465 fi
15466 rm -f conftest.err conftest.$ac_ext
15467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468 echo "${ECHO_T}$ac_header_preproc" >&6
15469
15470 # So?  What about this header?
15471 case $ac_header_compiler:$ac_header_preproc in
15472   yes:no )
15473     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15474 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15476 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15477     (
15478       cat <<\_ASBOX
15479 ## ------------------------------------ ##
15480 ## Report this to bug-autoconf@gnu.org. ##
15481 ## ------------------------------------ ##
15482 _ASBOX
15483     ) |
15484       sed "s/^/$as_me: WARNING:     /" >&2
15485     ;;
15486   no:yes )
15487     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15489     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15491     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15492 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15493     (
15494       cat <<\_ASBOX
15495 ## ------------------------------------ ##
15496 ## Report this to bug-autoconf@gnu.org. ##
15497 ## ------------------------------------ ##
15498 _ASBOX
15499     ) |
15500       sed "s/^/$as_me: WARNING:     /" >&2
15501     ;;
15502 esac
15503 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15504 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15505 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508   ac_cv_header_libesmtp_h=$ac_header_preproc
15509 fi
15510 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15511 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15512
15513 fi
15514 if test $ac_cv_header_libesmtp_h = yes; then
15515   :
15516 else
15517   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15518 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15519    { (exit 1); exit 1; }; }
15520 fi
15521
15522
15523         CFLAGS="$temp_CFLAGS"
15524
15525                 temp_CFLAGS="$CFLAGS"
15526         temp_LIBS="$LIBS"
15527         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15528         LIBS="$LIBS $mutt_libesmtp_libs"
15529
15530 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15531 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15532 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535   ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lesmtp  $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 #line $LINENO "configure"
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544
15545 /* Override any gcc2 internal prototype to avoid an error.  */
15546 #ifdef __cplusplus
15547 extern "C"
15548 #endif
15549 /* We use char because int might match the return type of a gcc2
15550    builtin and then its argument prototype would still apply.  */
15551 char smtp_create_session ();
15552 int
15553 main ()
15554 {
15555 smtp_create_session ();
15556   ;
15557   return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562   (eval $ac_link) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } &&
15566          { ac_try='test -s conftest$ac_exeext'
15567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568   (eval $ac_try) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }; }; then
15572   ac_cv_lib_esmtp_smtp_create_session=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 ac_cv_lib_esmtp_smtp_create_session=no
15578 fi
15579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15581 fi
15582 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15583 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15584 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBESMTP 1
15587 _ACEOF
15588
15589   LIBS="-lesmtp $LIBS"
15590
15591 else
15592   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15593 echo "$as_me: error: Could not find libesmtp" >&2;}
15594    { (exit 1); exit 1; }; }
15595 fi
15596
15597         CFLAGS="$temp_CFLAGS"
15598         LIBS="$temp_LIBS"
15599
15600                         use_libesmtp=yes
15601       fi
15602
15603
15604 fi;
15605
15606 if test x$use_libesmtp = xyes; then
15607     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15608     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15609     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15610
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define USE_LIBESMTP 1
15614 _ACEOF
15615
15616 fi
15617
15618                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
15619 cat >confcache <<\_ACEOF
15620 # This file is a shell script that caches the results of configure
15621 # tests run on this system so they can be shared between configure
15622 # scripts and configure runs, see configure's option --config-cache.
15623 # It is not useful on other systems.  If it contains results you don't
15624 # want to keep, you may remove or edit it.
15625 #
15626 # config.status only pays attention to the cache file if you give it
15627 # the --recheck option to rerun configure.
15628 #
15629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15631 # following values.
15632
15633 _ACEOF
15634
15635 # The following way of writing the cache mishandles newlines in values,
15636 # but we know of no workaround that is simple, portable, and efficient.
15637 # So, don't put newlines in cache variables' values.
15638 # Ultrix sh set writes to stderr and can't be redirected directly,
15639 # and sets the high bit in the cache file unless we assign to the vars.
15640 {
15641   (set) 2>&1 |
15642     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15643     *ac_space=\ *)
15644       # `set' does not quote correctly, so add quotes (double-quote
15645       # substitution turns \\\\ into \\, and sed turns \\ into \).
15646       sed -n \
15647         "s/'/'\\\\''/g;
15648           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15649       ;;
15650     *)
15651       # `set' quotes correctly as required by POSIX, so do not add quotes.
15652       sed -n \
15653         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15654       ;;
15655     esac;
15656 } |
15657   sed '
15658      t clear
15659      : clear
15660      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15661      t end
15662      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15663      : end' >>confcache
15664 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15665   if test -w $cache_file; then
15666     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15667     cat confcache >$cache_file
15668   else
15669     echo "not updating unwritable cache $cache_file"
15670   fi
15671 fi
15672 rm -f confcache
15673
15674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15675 # Let make expand exec_prefix.
15676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15677
15678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15680 # trailing colons and then remove the whole line if VPATH becomes empty
15681 # (actually we leave an empty line to preserve line numbers).
15682 if test "x$srcdir" = x.; then
15683   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15684 s/:*\$(srcdir):*/:/;
15685 s/:*\${srcdir}:*/:/;
15686 s/:*@srcdir@:*/:/;
15687 s/^\([^=]*=[    ]*\):*/\1/;
15688 s/:*$//;
15689 s/^[^=]*=[      ]*$//;
15690 }'
15691 fi
15692
15693 DEFS=-DHAVE_CONFIG_H
15694
15695 ac_libobjs=
15696 ac_ltlibobjs=
15697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15698   # 1. Remove the extension, and $U if already installed.
15699   ac_i=`echo "$ac_i" |
15700          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15701   # 2. Add them.
15702   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15703   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15704 done
15705 LIBOBJS=$ac_libobjs
15706
15707 LTLIBOBJS=$ac_ltlibobjs
15708
15709
15710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15711   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15712 Usually this means the macro was only invoked conditionally." >&5
15713 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&2;}
15715    { (exit 1); exit 1; }; }
15716 fi
15717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15718   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15719 Usually this means the macro was only invoked conditionally." >&5
15720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&2;}
15722    { (exit 1); exit 1; }; }
15723 fi
15724 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15725   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15726 Usually this means the macro was only invoked conditionally." >&5
15727 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15728 Usually this means the macro was only invoked conditionally." >&2;}
15729    { (exit 1); exit 1; }; }
15730 fi
15731 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15732   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15733 Usually this means the macro was only invoked conditionally." >&5
15734 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." >&2;}
15736    { (exit 1); exit 1; }; }
15737 fi
15738 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15739   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15740 Usually this means the macro was only invoked conditionally." >&5
15741 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15742 Usually this means the macro was only invoked conditionally." >&2;}
15743    { (exit 1); exit 1; }; }
15744 fi
15745 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15746   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15747 Usually this means the macro was only invoked conditionally." >&5
15748 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15749 Usually this means the macro was only invoked conditionally." >&2;}
15750    { (exit 1); exit 1; }; }
15751 fi
15752 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15753   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15754 Usually this means the macro was only invoked conditionally." >&5
15755 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15756 Usually this means the macro was only invoked conditionally." >&2;}
15757    { (exit 1); exit 1; }; }
15758 fi
15759 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15760   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15761 Usually this means the macro was only invoked conditionally." >&5
15762 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15763 Usually this means the macro was only invoked conditionally." >&2;}
15764    { (exit 1); exit 1; }; }
15765 fi
15766
15767 : ${CONFIG_STATUS=./config.status}
15768 ac_clean_files_save=$ac_clean_files
15769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15772 cat >$CONFIG_STATUS <<_ACEOF
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15778
15779 debug=false
15780 ac_cs_recheck=false
15781 ac_cs_silent=false
15782 SHELL=\${CONFIG_SHELL-$SHELL}
15783 _ACEOF
15784
15785 cat >>$CONFIG_STATUS <<\_ACEOF
15786 ## --------------------- ##
15787 ## M4sh Initialization.  ##
15788 ## --------------------- ##
15789
15790 # Be Bourne compatible
15791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15792   emulate sh
15793   NULLCMD=:
15794   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15795   # is contrary to our usage.  Disable this feature.
15796   alias -g '${1+"$@"}'='"$@"'
15797 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15798   set -o posix
15799 fi
15800
15801 # Support unset when possible.
15802 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15803   as_unset=unset
15804 else
15805   as_unset=false
15806 fi
15807
15808
15809 # Work around bugs in pre-3.0 UWIN ksh.
15810 $as_unset ENV MAIL MAILPATH
15811 PS1='$ '
15812 PS2='> '
15813 PS4='+ '
15814
15815 # NLS nuisances.
15816 for as_var in \
15817   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15818   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15819   LC_TELEPHONE LC_TIME
15820 do
15821   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15822     eval $as_var=C; export $as_var
15823   else
15824     $as_unset $as_var
15825   fi
15826 done
15827
15828 # Required to use basename.
15829 if expr a : '\(a\)' >/dev/null 2>&1; then
15830   as_expr=expr
15831 else
15832   as_expr=false
15833 fi
15834
15835 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15836   as_basename=basename
15837 else
15838   as_basename=false
15839 fi
15840
15841
15842 # Name of the executable.
15843 as_me=`$as_basename "$0" ||
15844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15845          X"$0" : 'X\(//\)$' \| \
15846          X"$0" : 'X\(/\)$' \| \
15847          .     : '\(.\)' 2>/dev/null ||
15848 echo X/"$0" |
15849     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15850           /^X\/\(\/\/\)$/{ s//\1/; q; }
15851           /^X\/\(\/\).*/{ s//\1/; q; }
15852           s/.*/./; q'`
15853
15854
15855 # PATH needs CR, and LINENO needs CR and PATH.
15856 # Avoid depending upon Character Ranges.
15857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15860 as_cr_digits='0123456789'
15861 as_cr_alnum=$as_cr_Letters$as_cr_digits
15862
15863 # The user is always right.
15864 if test "${PATH_SEPARATOR+set}" != set; then
15865   echo "#! /bin/sh" >conf$$.sh
15866   echo  "exit 0"   >>conf$$.sh
15867   chmod +x conf$$.sh
15868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15869     PATH_SEPARATOR=';'
15870   else
15871     PATH_SEPARATOR=:
15872   fi
15873   rm -f conf$$.sh
15874 fi
15875
15876
15877   as_lineno_1=$LINENO
15878   as_lineno_2=$LINENO
15879   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15880   test "x$as_lineno_1" != "x$as_lineno_2" &&
15881   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15882   # Find who we are.  Look in the path if we contain no path at all
15883   # relative or not.
15884   case $0 in
15885     *[\\/]* ) as_myself=$0 ;;
15886     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887 for as_dir in $PATH
15888 do
15889   IFS=$as_save_IFS
15890   test -z "$as_dir" && as_dir=.
15891   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15892 done
15893
15894        ;;
15895   esac
15896   # We did not find ourselves, most probably we were run as `sh COMMAND'
15897   # in which case we are not to be found in the path.
15898   if test "x$as_myself" = x; then
15899     as_myself=$0
15900   fi
15901   if test ! -f "$as_myself"; then
15902     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15903 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15904    { (exit 1); exit 1; }; }
15905   fi
15906   case $CONFIG_SHELL in
15907   '')
15908     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15910 do
15911   IFS=$as_save_IFS
15912   test -z "$as_dir" && as_dir=.
15913   for as_base in sh bash ksh sh5; do
15914          case $as_dir in
15915          /*)
15916            if ("$as_dir/$as_base" -c '
15917   as_lineno_1=$LINENO
15918   as_lineno_2=$LINENO
15919   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15920   test "x$as_lineno_1" != "x$as_lineno_2" &&
15921   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15922              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15923              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15924              CONFIG_SHELL=$as_dir/$as_base
15925              export CONFIG_SHELL
15926              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15927            fi;;
15928          esac
15929        done
15930 done
15931 ;;
15932   esac
15933
15934   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15935   # uniformly replaced by the line number.  The first 'sed' inserts a
15936   # line-number line before each line; the second 'sed' does the real
15937   # work.  The second script uses 'N' to pair each line-number line
15938   # with the numbered line, and appends trailing '-' during
15939   # substitution so that $LINENO is not a special case at line end.
15940   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15941   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15942   sed '=' <$as_myself |
15943     sed '
15944       N
15945       s,$,-,
15946       : loop
15947       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15948       t loop
15949       s,-$,,
15950       s,^['$as_cr_digits']*\n,,
15951     ' >$as_me.lineno &&
15952   chmod +x $as_me.lineno ||
15953     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15954 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15955    { (exit 1); exit 1; }; }
15956
15957   # Don't try to exec as it changes $[0], causing all sort of problems
15958   # (the dirname of $[0] is not the place where we might find the
15959   # original and so on.  Autoconf is especially sensible to this).
15960   . ./$as_me.lineno
15961   # Exit status is that of the last command.
15962   exit
15963 }
15964
15965
15966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15967   *c*,-n*) ECHO_N= ECHO_C='
15968 ' ECHO_T='      ' ;;
15969   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15970   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15971 esac
15972
15973 if expr a : '\(a\)' >/dev/null 2>&1; then
15974   as_expr=expr
15975 else
15976   as_expr=false
15977 fi
15978
15979 rm -f conf$$ conf$$.exe conf$$.file
15980 echo >conf$$.file
15981 if ln -s conf$$.file conf$$ 2>/dev/null; then
15982   # We could just check for DJGPP; but this test a) works b) is more generic
15983   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15984   if test -f conf$$.exe; then
15985     # Don't use ln at all; we don't have any links
15986     as_ln_s='cp -p'
15987   else
15988     as_ln_s='ln -s'
15989   fi
15990 elif ln conf$$.file conf$$ 2>/dev/null; then
15991   as_ln_s=ln
15992 else
15993   as_ln_s='cp -p'
15994 fi
15995 rm -f conf$$ conf$$.exe conf$$.file
15996
15997 if mkdir -p . 2>/dev/null; then
15998   as_mkdir_p=:
15999 else
16000   as_mkdir_p=false
16001 fi
16002
16003 as_executable_p="test -f"
16004
16005 # Sed expression to map a string onto a valid CPP name.
16006 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16007
16008 # Sed expression to map a string onto a valid variable name.
16009 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16010
16011
16012 # IFS
16013 # We need space, tab and new line, in precisely that order.
16014 as_nl='
16015 '
16016 IFS="   $as_nl"
16017
16018 # CDPATH.
16019 $as_unset CDPATH
16020
16021 exec 6>&1
16022
16023 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16024 # report actual input values of CONFIG_FILES etc. instead of their
16025 # values after options handling.  Logging --version etc. is OK.
16026 exec 5>>config.log
16027 {
16028   echo
16029   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16030 ## Running $as_me. ##
16031 _ASBOX
16032 } >&5
16033 cat >&5 <<_CSEOF
16034
16035 This file was extended by $as_me, which was
16036 generated by GNU Autoconf 2.57.  Invocation command line was
16037
16038   CONFIG_FILES    = $CONFIG_FILES
16039   CONFIG_HEADERS  = $CONFIG_HEADERS
16040   CONFIG_LINKS    = $CONFIG_LINKS
16041   CONFIG_COMMANDS = $CONFIG_COMMANDS
16042   $ $0 $@
16043
16044 _CSEOF
16045 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16046 echo >&5
16047 _ACEOF
16048
16049 # Files that config.status was made for.
16050 if test -n "$ac_config_files"; then
16051   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16052 fi
16053
16054 if test -n "$ac_config_headers"; then
16055   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16056 fi
16057
16058 if test -n "$ac_config_links"; then
16059   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16060 fi
16061
16062 if test -n "$ac_config_commands"; then
16063   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16064 fi
16065
16066 cat >>$CONFIG_STATUS <<\_ACEOF
16067
16068 ac_cs_usage="\
16069 \`$as_me' instantiates files from templates according to the
16070 current configuration.
16071
16072 Usage: $0 [OPTIONS] [FILE]...
16073
16074   -h, --help       print this help, then exit
16075   -V, --version    print version number, then exit
16076   -q, --quiet      do not print progress messages
16077   -d, --debug      don't remove temporary files
16078       --recheck    update $as_me by reconfiguring in the same conditions
16079   --file=FILE[:TEMPLATE]
16080                    instantiate the configuration file FILE
16081   --header=FILE[:TEMPLATE]
16082                    instantiate the configuration header FILE
16083
16084 Configuration files:
16085 $config_files
16086
16087 Configuration headers:
16088 $config_headers
16089
16090 Configuration commands:
16091 $config_commands
16092
16093 Report bugs to <bug-autoconf@gnu.org>."
16094 _ACEOF
16095
16096 cat >>$CONFIG_STATUS <<_ACEOF
16097 ac_cs_version="\\
16098 config.status
16099 configured by $0, generated by GNU Autoconf 2.57,
16100   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16101
16102 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16103 Free Software Foundation, Inc.
16104 This config.status script is free software; the Free Software Foundation
16105 gives unlimited permission to copy, distribute and modify it."
16106 srcdir=$srcdir
16107 INSTALL="$INSTALL"
16108 _ACEOF
16109
16110 cat >>$CONFIG_STATUS <<\_ACEOF
16111 # If no file are specified by the user, then we need to provide default
16112 # value.  By we need to know if files were specified by the user.
16113 ac_need_defaults=:
16114 while test $# != 0
16115 do
16116   case $1 in
16117   --*=*)
16118     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16119     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16120     ac_shift=:
16121     ;;
16122   -*)
16123     ac_option=$1
16124     ac_optarg=$2
16125     ac_shift=shift
16126     ;;
16127   *) # This is not an option, so the user has probably given explicit
16128      # arguments.
16129      ac_option=$1
16130      ac_need_defaults=false;;
16131   esac
16132
16133   case $ac_option in
16134   # Handling of the options.
16135 _ACEOF
16136 cat >>$CONFIG_STATUS <<\_ACEOF
16137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16138     ac_cs_recheck=: ;;
16139   --version | --vers* | -V )
16140     echo "$ac_cs_version"; exit 0 ;;
16141   --he | --h)
16142     # Conflict between --help and --header
16143     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16144 Try \`$0 --help' for more information." >&5
16145 echo "$as_me: error: ambiguous option: $1
16146 Try \`$0 --help' for more information." >&2;}
16147    { (exit 1); exit 1; }; };;
16148   --help | --hel | -h )
16149     echo "$ac_cs_usage"; exit 0 ;;
16150   --debug | --d* | -d )
16151     debug=: ;;
16152   --file | --fil | --fi | --f )
16153     $ac_shift
16154     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16155     ac_need_defaults=false;;
16156   --header | --heade | --head | --hea )
16157     $ac_shift
16158     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16159     ac_need_defaults=false;;
16160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16162     ac_cs_silent=: ;;
16163
16164   # This is an error.
16165   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16166 Try \`$0 --help' for more information." >&5
16167 echo "$as_me: error: unrecognized option: $1
16168 Try \`$0 --help' for more information." >&2;}
16169    { (exit 1); exit 1; }; } ;;
16170
16171   *) ac_config_targets="$ac_config_targets $1" ;;
16172
16173   esac
16174   shift
16175 done
16176
16177 ac_configure_extra_args=
16178
16179 if $ac_cs_silent; then
16180   exec 6>/dev/null
16181   ac_configure_extra_args="$ac_configure_extra_args --silent"
16182 fi
16183
16184 _ACEOF
16185 cat >>$CONFIG_STATUS <<_ACEOF
16186 if \$ac_cs_recheck; then
16187   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16188   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16189 fi
16190
16191 _ACEOF
16192
16193 cat >>$CONFIG_STATUS <<_ACEOF
16194 #
16195 # INIT-COMMANDS section.
16196 #
16197
16198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16199
16200
16201 _ACEOF
16202
16203
16204
16205 cat >>$CONFIG_STATUS <<\_ACEOF
16206 for ac_config_target in $ac_config_targets
16207 do
16208   case "$ac_config_target" in
16209   # Handling of arguments.
16210   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16211   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16212   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16213   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16214   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16215   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16216   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16217   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16218   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16219   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16220   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16221   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16222   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16223   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16224 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16225    { (exit 1); exit 1; }; };;
16226   esac
16227 done
16228
16229 # If the user did not use the arguments to specify the items to instantiate,
16230 # then the envvar interface is used.  Set only those that are not.
16231 # We use the long form for the default assignment because of an extremely
16232 # bizarre bug on SunOS 4.1.3.
16233 if $ac_need_defaults; then
16234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16237 fi
16238
16239 # Have a temporary directory for convenience.  Make it in the build tree
16240 # simply because there is no reason to put it here, and in addition,
16241 # creating and moving files from /tmp can sometimes cause problems.
16242 # Create a temporary directory, and hook for its removal unless debugging.
16243 $debug ||
16244 {
16245   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16246   trap '{ (exit 1); exit 1; }' 1 2 13 15
16247 }
16248
16249 # Create a (secure) tmp directory for tmp files.
16250
16251 {
16252   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16253   test -n "$tmp" && test -d "$tmp"
16254 }  ||
16255 {
16256   tmp=./confstat$$-$RANDOM
16257   (umask 077 && mkdir $tmp)
16258 } ||
16259 {
16260    echo "$me: cannot create a temporary directory in ." >&2
16261    { (exit 1); exit 1; }
16262 }
16263
16264 _ACEOF
16265
16266 cat >>$CONFIG_STATUS <<_ACEOF
16267
16268 #
16269 # CONFIG_FILES section.
16270 #
16271
16272 # No need to generate the scripts if there are no CONFIG_FILES.
16273 # This happens for instance when ./config.status config.h
16274 if test -n "\$CONFIG_FILES"; then
16275   # Protect against being on the right side of a sed subst in config.status.
16276   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16277    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16278 s,@SHELL@,$SHELL,;t t
16279 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16280 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16281 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16282 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16283 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16284 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16285 s,@exec_prefix@,$exec_prefix,;t t
16286 s,@prefix@,$prefix,;t t
16287 s,@program_transform_name@,$program_transform_name,;t t
16288 s,@bindir@,$bindir,;t t
16289 s,@sbindir@,$sbindir,;t t
16290 s,@libexecdir@,$libexecdir,;t t
16291 s,@datadir@,$datadir,;t t
16292 s,@sysconfdir@,$sysconfdir,;t t
16293 s,@sharedstatedir@,$sharedstatedir,;t t
16294 s,@localstatedir@,$localstatedir,;t t
16295 s,@libdir@,$libdir,;t t
16296 s,@includedir@,$includedir,;t t
16297 s,@oldincludedir@,$oldincludedir,;t t
16298 s,@infodir@,$infodir,;t t
16299 s,@mandir@,$mandir,;t t
16300 s,@build_alias@,$build_alias,;t t
16301 s,@host_alias@,$host_alias,;t t
16302 s,@target_alias@,$target_alias,;t t
16303 s,@DEFS@,$DEFS,;t t
16304 s,@ECHO_C@,$ECHO_C,;t t
16305 s,@ECHO_N@,$ECHO_N,;t t
16306 s,@ECHO_T@,$ECHO_T,;t t
16307 s,@LIBS@,$LIBS,;t t
16308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16311 s,@CYGPATH_W@,$CYGPATH_W,;t t
16312 s,@PACKAGE@,$PACKAGE,;t t
16313 s,@VERSION@,$VERSION,;t t
16314 s,@ACLOCAL@,$ACLOCAL,;t t
16315 s,@AUTOCONF@,$AUTOCONF,;t t
16316 s,@AUTOMAKE@,$AUTOMAKE,;t t
16317 s,@AUTOHEADER@,$AUTOHEADER,;t t
16318 s,@MAKEINFO@,$MAKEINFO,;t t
16319 s,@AMTAR@,$AMTAR,;t t
16320 s,@install_sh@,$install_sh,;t t
16321 s,@STRIP@,$STRIP,;t t
16322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16323 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16324 s,@AWK@,$AWK,;t t
16325 s,@SET_MAKE@,$SET_MAKE,;t t
16326 s,@am__leading_dot@,$am__leading_dot,;t t
16327 s,@build@,$build,;t t
16328 s,@build_cpu@,$build_cpu,;t t
16329 s,@build_vendor@,$build_vendor,;t t
16330 s,@build_os@,$build_os,;t t
16331 s,@host@,$host,;t t
16332 s,@host_cpu@,$host_cpu,;t t
16333 s,@host_vendor@,$host_vendor,;t t
16334 s,@host_os@,$host_os,;t t
16335 s,@CC@,$CC,;t t
16336 s,@CFLAGS@,$CFLAGS,;t t
16337 s,@LDFLAGS@,$LDFLAGS,;t t
16338 s,@CPPFLAGS@,$CPPFLAGS,;t t
16339 s,@ac_ct_CC@,$ac_ct_CC,;t t
16340 s,@EXEEXT@,$EXEEXT,;t t
16341 s,@OBJEXT@,$OBJEXT,;t t
16342 s,@DEPDIR@,$DEPDIR,;t t
16343 s,@am__include@,$am__include,;t t
16344 s,@am__quote@,$am__quote,;t t
16345 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16346 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16347 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16348 s,@CCDEPMODE@,$CCDEPMODE,;t t
16349 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16350 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16351 s,@CPP@,$CPP,;t t
16352 s,@EGREP@,$EGREP,;t t
16353 s,@U@,$U,;t t
16354 s,@ANSI2KNR@,$ANSI2KNR,;t t
16355 s,@RANLIB@,$RANLIB,;t t
16356 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16357 s,@AR@,$AR,;t t
16358 s,@ac_ct_AR@,$ac_ct_AR,;t t
16359 s,@DBX@,$DBX,;t t
16360 s,@GDB@,$GDB,;t t
16361 s,@SDB@,$SDB,;t t
16362 s,@DEBUGGER@,$DEBUGGER,;t t
16363 s,@SENDMAIL@,$SENDMAIL,;t t
16364 s,@OPS@,$OPS,;t t
16365 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16366 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16367 s,@SUBVERSION@,$SUBVERSION,;t t
16368 s,@ISPELL@,$ISPELL,;t t
16369 s,@LIBOBJS@,$LIBOBJS,;t t
16370 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16371 s,@docdir@,$docdir,;t t
16372 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16373 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16374 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16375 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16376 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16377 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16378 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16379 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16380 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16381 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16382 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16383 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16384 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16385 s,@MUTTLIBS@,$MUTTLIBS,;t t
16386 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16387 s,@LIBIMAP@,$LIBIMAP,;t t
16388 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16389 s,@ALLOCA@,$ALLOCA,;t t
16390 s,@GLIBC21@,$GLIBC21,;t t
16391 s,@LIBICONV@,$LIBICONV,;t t
16392 s,@USE_NLS@,$USE_NLS,;t t
16393 s,@MSGFMT@,$MSGFMT,;t t
16394 s,@GMSGFMT@,$GMSGFMT,;t t
16395 s,@XGETTEXT@,$XGETTEXT,;t t
16396 s,@INTLBISON@,$INTLBISON,;t t
16397 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16398 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16399 s,@CATALOGS@,$CATALOGS,;t t
16400 s,@CATOBJEXT@,$CATOBJEXT,;t t
16401 s,@GMOFILES@,$GMOFILES,;t t
16402 s,@INTLLIBS@,$INTLLIBS,;t t
16403 s,@INTLOBJS@,$INTLOBJS,;t t
16404 s,@POFILES@,$POFILES,;t t
16405 s,@POSUB@,$POSUB,;t t
16406 s,@DATADIRNAME@,$DATADIRNAME,;t t
16407 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16408 s,@GENCAT@,$GENCAT,;t t
16409 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16410 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16411 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16412 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16413 CEOF
16414
16415 _ACEOF
16416
16417   cat >>$CONFIG_STATUS <<\_ACEOF
16418   # Split the substitutions into bite-sized pieces for seds with
16419   # small command number limits, like on Digital OSF/1 and HP-UX.
16420   ac_max_sed_lines=48
16421   ac_sed_frag=1 # Number of current file.
16422   ac_beg=1 # First line for current file.
16423   ac_end=$ac_max_sed_lines # Line after last line for current file.
16424   ac_more_lines=:
16425   ac_sed_cmds=
16426   while $ac_more_lines; do
16427     if test $ac_beg -gt 1; then
16428       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16429     else
16430       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16431     fi
16432     if test ! -s $tmp/subs.frag; then
16433       ac_more_lines=false
16434     else
16435       # The purpose of the label and of the branching condition is to
16436       # speed up the sed processing (if there are no `@' at all, there
16437       # is no need to browse any of the substitutions).
16438       # These are the two extra sed commands mentioned above.
16439       (echo ':t
16440   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16441       if test -z "$ac_sed_cmds"; then
16442         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16443       else
16444         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16445       fi
16446       ac_sed_frag=`expr $ac_sed_frag + 1`
16447       ac_beg=$ac_end
16448       ac_end=`expr $ac_end + $ac_max_sed_lines`
16449     fi
16450   done
16451   if test -z "$ac_sed_cmds"; then
16452     ac_sed_cmds=cat
16453   fi
16454 fi # test -n "$CONFIG_FILES"
16455
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16459   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16460   case $ac_file in
16461   - | *:- | *:-:* ) # input from stdin
16462         cat >$tmp/stdin
16463         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16464         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16465   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16466         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16467   * )   ac_file_in=$ac_file.in ;;
16468   esac
16469
16470   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16471   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16473          X"$ac_file" : 'X\(//\)[^/]' \| \
16474          X"$ac_file" : 'X\(//\)$' \| \
16475          X"$ac_file" : 'X\(/\)' \| \
16476          .     : '\(.\)' 2>/dev/null ||
16477 echo X"$ac_file" |
16478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16480           /^X\(\/\/\)$/{ s//\1/; q; }
16481           /^X\(\/\).*/{ s//\1/; q; }
16482           s/.*/./; q'`
16483   { if $as_mkdir_p; then
16484     mkdir -p "$ac_dir"
16485   else
16486     as_dir="$ac_dir"
16487     as_dirs=
16488     while test ! -d "$as_dir"; do
16489       as_dirs="$as_dir $as_dirs"
16490       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492          X"$as_dir" : 'X\(//\)[^/]' \| \
16493          X"$as_dir" : 'X\(//\)$' \| \
16494          X"$as_dir" : 'X\(/\)' \| \
16495          .     : '\(.\)' 2>/dev/null ||
16496 echo X"$as_dir" |
16497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16498           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16499           /^X\(\/\/\)$/{ s//\1/; q; }
16500           /^X\(\/\).*/{ s//\1/; q; }
16501           s/.*/./; q'`
16502     done
16503     test ! -n "$as_dirs" || mkdir $as_dirs
16504   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16506    { (exit 1); exit 1; }; }; }
16507
16508   ac_builddir=.
16509
16510 if test "$ac_dir" != .; then
16511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16512   # A "../" for each directory in $ac_dir_suffix.
16513   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16514 else
16515   ac_dir_suffix= ac_top_builddir=
16516 fi
16517
16518 case $srcdir in
16519   .)  # No --srcdir option.  We are building in place.
16520     ac_srcdir=.
16521     if test -z "$ac_top_builddir"; then
16522        ac_top_srcdir=.
16523     else
16524        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16525     fi ;;
16526   [\\/]* | ?:[\\/]* )  # Absolute path.
16527     ac_srcdir=$srcdir$ac_dir_suffix;
16528     ac_top_srcdir=$srcdir ;;
16529   *) # Relative path.
16530     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16531     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16532 esac
16533 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16534 # absolute.
16535 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16536 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16537 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16538 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16539
16540
16541   case $INSTALL in
16542   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16543   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16544   esac
16545
16546   if test x"$ac_file" != x-; then
16547     { echo "$as_me:$LINENO: creating $ac_file" >&5
16548 echo "$as_me: creating $ac_file" >&6;}
16549     rm -f "$ac_file"
16550   fi
16551   # Let's still pretend it is `configure' which instantiates (i.e., don't
16552   # use $as_me), people would be surprised to read:
16553   #    /* config.h.  Generated by config.status.  */
16554   if test x"$ac_file" = x-; then
16555     configure_input=
16556   else
16557     configure_input="$ac_file.  "
16558   fi
16559   configure_input=$configure_input"Generated from `echo $ac_file_in |
16560                                      sed 's,.*/,,'` by configure."
16561
16562   # First look for the input files in the build tree, otherwise in the
16563   # src tree.
16564   ac_file_inputs=`IFS=:
16565     for f in $ac_file_in; do
16566       case $f in
16567       -) echo $tmp/stdin ;;
16568       [\\/$]*)
16569          # Absolute (can't be DOS-style, as IFS=:)
16570          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16571 echo "$as_me: error: cannot find input file: $f" >&2;}
16572    { (exit 1); exit 1; }; }
16573          echo $f;;
16574       *) # Relative
16575          if test -f "$f"; then
16576            # Build tree
16577            echo $f
16578          elif test -f "$srcdir/$f"; then
16579            # Source tree
16580            echo $srcdir/$f
16581          else
16582            # /dev/null tree
16583            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16584 echo "$as_me: error: cannot find input file: $f" >&2;}
16585    { (exit 1); exit 1; }; }
16586          fi;;
16587       esac
16588     done` || { (exit 1); exit 1; }
16589 _ACEOF
16590 cat >>$CONFIG_STATUS <<_ACEOF
16591   sed "$ac_vpsub
16592 $extrasub
16593 _ACEOF
16594 cat >>$CONFIG_STATUS <<\_ACEOF
16595 :t
16596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16597 s,@configure_input@,$configure_input,;t t
16598 s,@srcdir@,$ac_srcdir,;t t
16599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16600 s,@top_srcdir@,$ac_top_srcdir,;t t
16601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16602 s,@builddir@,$ac_builddir,;t t
16603 s,@abs_builddir@,$ac_abs_builddir,;t t
16604 s,@top_builddir@,$ac_top_builddir,;t t
16605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16606 s,@INSTALL@,$ac_INSTALL,;t t
16607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16608   rm -f $tmp/stdin
16609   if test x"$ac_file" != x-; then
16610     mv $tmp/out $ac_file
16611   else
16612     cat $tmp/out
16613     rm -f $tmp/out
16614   fi
16615
16616 done
16617 _ACEOF
16618 cat >>$CONFIG_STATUS <<\_ACEOF
16619
16620 #
16621 # CONFIG_HEADER section.
16622 #
16623
16624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16626 #
16627 # ac_d sets the value in "#define NAME VALUE" lines.
16628 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16629 ac_dB='[        ].*$,\1#\2'
16630 ac_dC=' '
16631 ac_dD=',;t'
16632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16633 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16634 ac_uB='$,\1#\2define\3'
16635 ac_uC=' '
16636 ac_uD=',;t'
16637
16638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16639   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16640   case $ac_file in
16641   - | *:- | *:-:* ) # input from stdin
16642         cat >$tmp/stdin
16643         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16645   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16646         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16647   * )   ac_file_in=$ac_file.in ;;
16648   esac
16649
16650   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16651 echo "$as_me: creating $ac_file" >&6;}
16652
16653   # First look for the input files in the build tree, otherwise in the
16654   # src tree.
16655   ac_file_inputs=`IFS=:
16656     for f in $ac_file_in; do
16657       case $f in
16658       -) echo $tmp/stdin ;;
16659       [\\/$]*)
16660          # Absolute (can't be DOS-style, as IFS=:)
16661          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16662 echo "$as_me: error: cannot find input file: $f" >&2;}
16663    { (exit 1); exit 1; }; }
16664          echo $f;;
16665       *) # Relative
16666          if test -f "$f"; then
16667            # Build tree
16668            echo $f
16669          elif test -f "$srcdir/$f"; then
16670            # Source tree
16671            echo $srcdir/$f
16672          else
16673            # /dev/null tree
16674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16675 echo "$as_me: error: cannot find input file: $f" >&2;}
16676    { (exit 1); exit 1; }; }
16677          fi;;
16678       esac
16679     done` || { (exit 1); exit 1; }
16680   # Remove the trailing spaces.
16681   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16682
16683 _ACEOF
16684
16685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16686 # `conftest.undefs', that substitutes the proper values into
16687 # config.h.in to produce config.h.  The first handles `#define'
16688 # templates, and the second `#undef' templates.
16689 # And first: Protect against being on the right side of a sed subst in
16690 # config.status.  Protect against being in an unquoted here document
16691 # in config.status.
16692 rm -f conftest.defines conftest.undefs
16693 # Using a here document instead of a string reduces the quoting nightmare.
16694 # Putting comments in sed scripts is not portable.
16695 #
16696 # `end' is used to avoid that the second main sed command (meant for
16697 # 0-ary CPP macros) applies to n-ary macro definitions.
16698 # See the Autoconf documentation for `clear'.
16699 cat >confdef2sed.sed <<\_ACEOF
16700 s/[\\&,]/\\&/g
16701 s,[\\$`],\\&,g
16702 t clear
16703 : clear
16704 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16705 t end
16706 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16707 : end
16708 _ACEOF
16709 # If some macros were called several times there might be several times
16710 # the same #defines, which is useless.  Nevertheless, we may not want to
16711 # sort them, since we want the *last* AC-DEFINE to be honored.
16712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16714 rm -f confdef2sed.sed
16715
16716 # This sed command replaces #undef with comments.  This is necessary, for
16717 # example, in the case of _POSIX_SOURCE, which is predefined and required
16718 # on some systems where configure will not decide to define it.
16719 cat >>conftest.undefs <<\_ACEOF
16720 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16721 _ACEOF
16722
16723 # Break up conftest.defines because some shells have a limit on the size
16724 # of here documents, and old seds have small limits too (100 cmds).
16725 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16726 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16727 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16728 echo '  :' >>$CONFIG_STATUS
16729 rm -f conftest.tail
16730 while grep . conftest.defines >/dev/null
16731 do
16732   # Write a limited-size here document to $tmp/defines.sed.
16733   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16734   # Speed up: don't consider the non `#define' lines.
16735   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16736   # Work around the forget-to-reset-the-flag bug.
16737   echo 't clr' >>$CONFIG_STATUS
16738   echo ': clr' >>$CONFIG_STATUS
16739   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16740   echo 'CEOF
16741   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16742   rm -f $tmp/in
16743   mv $tmp/out $tmp/in
16744 ' >>$CONFIG_STATUS
16745   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16746   rm -f conftest.defines
16747   mv conftest.tail conftest.defines
16748 done
16749 rm -f conftest.defines
16750 echo '  fi # grep' >>$CONFIG_STATUS
16751 echo >>$CONFIG_STATUS
16752
16753 # Break up conftest.undefs because some shells have a limit on the size
16754 # of here documents, and old seds have small limits too (100 cmds).
16755 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16756 rm -f conftest.tail
16757 while grep . conftest.undefs >/dev/null
16758 do
16759   # Write a limited-size here document to $tmp/undefs.sed.
16760   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16761   # Speed up: don't consider the non `#undef'
16762   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16763   # Work around the forget-to-reset-the-flag bug.
16764   echo 't clr' >>$CONFIG_STATUS
16765   echo ': clr' >>$CONFIG_STATUS
16766   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16767   echo 'CEOF
16768   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16769   rm -f $tmp/in
16770   mv $tmp/out $tmp/in
16771 ' >>$CONFIG_STATUS
16772   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16773   rm -f conftest.undefs
16774   mv conftest.tail conftest.undefs
16775 done
16776 rm -f conftest.undefs
16777
16778 cat >>$CONFIG_STATUS <<\_ACEOF
16779   # Let's still pretend it is `configure' which instantiates (i.e., don't
16780   # use $as_me), people would be surprised to read:
16781   #    /* config.h.  Generated by config.status.  */
16782   if test x"$ac_file" = x-; then
16783     echo "/* Generated by configure.  */" >$tmp/config.h
16784   else
16785     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16786   fi
16787   cat $tmp/in >>$tmp/config.h
16788   rm -f $tmp/in
16789   if test x"$ac_file" != x-; then
16790     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16791       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16792 echo "$as_me: $ac_file is unchanged" >&6;}
16793     else
16794       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796          X"$ac_file" : 'X\(//\)[^/]' \| \
16797          X"$ac_file" : 'X\(//\)$' \| \
16798          X"$ac_file" : 'X\(/\)' \| \
16799          .     : '\(.\)' 2>/dev/null ||
16800 echo X"$ac_file" |
16801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16803           /^X\(\/\/\)$/{ s//\1/; q; }
16804           /^X\(\/\).*/{ s//\1/; q; }
16805           s/.*/./; q'`
16806       { if $as_mkdir_p; then
16807     mkdir -p "$ac_dir"
16808   else
16809     as_dir="$ac_dir"
16810     as_dirs=
16811     while test ! -d "$as_dir"; do
16812       as_dirs="$as_dir $as_dirs"
16813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16815          X"$as_dir" : 'X\(//\)[^/]' \| \
16816          X"$as_dir" : 'X\(//\)$' \| \
16817          X"$as_dir" : 'X\(/\)' \| \
16818          .     : '\(.\)' 2>/dev/null ||
16819 echo X"$as_dir" |
16820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16822           /^X\(\/\/\)$/{ s//\1/; q; }
16823           /^X\(\/\).*/{ s//\1/; q; }
16824           s/.*/./; q'`
16825     done
16826     test ! -n "$as_dirs" || mkdir $as_dirs
16827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16829    { (exit 1); exit 1; }; }; }
16830
16831       rm -f $ac_file
16832       mv $tmp/config.h $ac_file
16833     fi
16834   else
16835     cat $tmp/config.h
16836     rm -f $tmp/config.h
16837   fi
16838 # Compute $ac_file's index in $config_headers.
16839 _am_stamp_count=1
16840 for _am_header in $config_headers :; do
16841   case $_am_header in
16842     $ac_file | $ac_file:* )
16843       break ;;
16844     * )
16845       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16846   esac
16847 done
16848 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16849 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16850          X$ac_file : 'X\(//\)[^/]' \| \
16851          X$ac_file : 'X\(//\)$' \| \
16852          X$ac_file : 'X\(/\)' \| \
16853          .     : '\(.\)' 2>/dev/null ||
16854 echo X$ac_file |
16855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16856           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16857           /^X\(\/\/\)$/{ s//\1/; q; }
16858           /^X\(\/\).*/{ s//\1/; q; }
16859           s/.*/./; q'`/stamp-h$_am_stamp_count
16860 done
16861 _ACEOF
16862 cat >>$CONFIG_STATUS <<\_ACEOF
16863
16864 #
16865 # CONFIG_COMMANDS section.
16866 #
16867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16868   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16869   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16870   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16872          X"$ac_dest" : 'X\(//\)[^/]' \| \
16873          X"$ac_dest" : 'X\(//\)$' \| \
16874          X"$ac_dest" : 'X\(/\)' \| \
16875          .     : '\(.\)' 2>/dev/null ||
16876 echo X"$ac_dest" |
16877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16879           /^X\(\/\/\)$/{ s//\1/; q; }
16880           /^X\(\/\).*/{ s//\1/; q; }
16881           s/.*/./; q'`
16882   ac_builddir=.
16883
16884 if test "$ac_dir" != .; then
16885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16886   # A "../" for each directory in $ac_dir_suffix.
16887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16888 else
16889   ac_dir_suffix= ac_top_builddir=
16890 fi
16891
16892 case $srcdir in
16893   .)  # No --srcdir option.  We are building in place.
16894     ac_srcdir=.
16895     if test -z "$ac_top_builddir"; then
16896        ac_top_srcdir=.
16897     else
16898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16899     fi ;;
16900   [\\/]* | ?:[\\/]* )  # Absolute path.
16901     ac_srcdir=$srcdir$ac_dir_suffix;
16902     ac_top_srcdir=$srcdir ;;
16903   *) # Relative path.
16904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16906 esac
16907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16908 # absolute.
16909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16913
16914
16915   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16916 echo "$as_me: executing $ac_dest commands" >&6;}
16917   case $ac_dest in
16918     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16919   # Strip MF so we end up with the name of the file.
16920   mf=`echo "$mf" | sed -e 's/:.*$//'`
16921   # Check whether this is an Automake generated Makefile or not.
16922   # We used to match only the files named `Makefile.in', but
16923   # some people rename them; so instead we look at the file content.
16924   # Grep'ing the first line is not enough: some people post-process
16925   # each Makefile.in and add a new line on top of each file to say so.
16926   # So let's grep whole file.
16927   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16928     dirpart=`(dirname "$mf") 2>/dev/null ||
16929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16930          X"$mf" : 'X\(//\)[^/]' \| \
16931          X"$mf" : 'X\(//\)$' \| \
16932          X"$mf" : 'X\(/\)' \| \
16933          .     : '\(.\)' 2>/dev/null ||
16934 echo X"$mf" |
16935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16936           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16937           /^X\(\/\/\)$/{ s//\1/; q; }
16938           /^X\(\/\).*/{ s//\1/; q; }
16939           s/.*/./; q'`
16940   else
16941     continue
16942   fi
16943   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16944   # Extract the definition of DEP_FILES from the Makefile without
16945   # running `make'.
16946   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16947   test -z "$DEPDIR" && continue
16948   # When using ansi2knr, U may be empty or an underscore; expand it
16949   U=`sed -n -e '/^U = / s///p' < "$mf"`
16950   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16951   # We invoke sed twice because it is the simplest approach to
16952   # changing $(DEPDIR) to its actual value in the expansion.
16953   for file in `sed -n -e '
16954     /^DEP_FILES = .*\\\\$/ {
16955       s/^DEP_FILES = //
16956       :loop
16957         s/\\\\$//
16958         p
16959         n
16960         /\\\\$/ b loop
16961       p
16962     }
16963     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16964        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16965     # Make sure the directory exists.
16966     test -f "$dirpart/$file" && continue
16967     fdir=`(dirname "$file") 2>/dev/null ||
16968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969          X"$file" : 'X\(//\)[^/]' \| \
16970          X"$file" : 'X\(//\)$' \| \
16971          X"$file" : 'X\(/\)' \| \
16972          .     : '\(.\)' 2>/dev/null ||
16973 echo X"$file" |
16974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16976           /^X\(\/\/\)$/{ s//\1/; q; }
16977           /^X\(\/\).*/{ s//\1/; q; }
16978           s/.*/./; q'`
16979     { if $as_mkdir_p; then
16980     mkdir -p $dirpart/$fdir
16981   else
16982     as_dir=$dirpart/$fdir
16983     as_dirs=
16984     while test ! -d "$as_dir"; do
16985       as_dirs="$as_dir $as_dirs"
16986       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988          X"$as_dir" : 'X\(//\)[^/]' \| \
16989          X"$as_dir" : 'X\(//\)$' \| \
16990          X"$as_dir" : 'X\(/\)' \| \
16991          .     : '\(.\)' 2>/dev/null ||
16992 echo X"$as_dir" |
16993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16995           /^X\(\/\/\)$/{ s//\1/; q; }
16996           /^X\(\/\).*/{ s//\1/; q; }
16997           s/.*/./; q'`
16998     done
16999     test ! -n "$as_dirs" || mkdir $as_dirs
17000   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17001 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17002    { (exit 1); exit 1; }; }; }
17003
17004     # echo "creating $dirpart/$file"
17005     echo '# dummy' > "$dirpart/$file"
17006   done
17007 done
17008  ;;
17009     default-1 ) for ac_file in $CONFIG_FILES; do
17010         # Support "outfile[:infile[:infile...]]"
17011         case "$ac_file" in
17012           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17013         esac
17014         # PO directories have a Makefile.in generated from Makefile.in.in.
17015         case "$ac_file" in */Makefile.in)
17016           # Adjust a relative srcdir.
17017           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17018           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17019           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17020           # In autoconf-2.13 it is called $ac_given_srcdir.
17021           # In autoconf-2.50 it is called $srcdir.
17022           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17023           case "$ac_given_srcdir" in
17024             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17025             /*) top_srcdir="$ac_given_srcdir" ;;
17026             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17027           esac
17028           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17029             rm -f "$ac_dir/POTFILES"
17030             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17031             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
17032             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17033             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17034           fi
17035           ;;
17036         esac
17037       done ;;
17038   esac
17039 done
17040 _ACEOF
17041
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17043
17044 { (exit 0); exit 0; }
17045 _ACEOF
17046 chmod +x $CONFIG_STATUS
17047 ac_clean_files=$ac_clean_files_save
17048
17049
17050 # configure is writing to config.log, and then calls config.status.
17051 # config.status does its own redirection, appending to config.log.
17052 # Unfortunately, on DOS this fails, as config.log is still kept open
17053 # by configure, so config.status won't be able to write to it; its
17054 # output is simply discarded.  So we exec the FD to /dev/null,
17055 # effectively closing config.log, so it can be properly (re)opened and
17056 # appended to by config.status.  When coming back to configure, we
17057 # need to make the FD available again.
17058 if test "$no_create" != yes; then
17059   ac_cs_success=:
17060   ac_config_status_args=
17061   test "$silent" = yes &&
17062     ac_config_status_args="$ac_config_status_args --quiet"
17063   exec 5>/dev/null
17064   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17065   exec 5>>config.log
17066   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17067   # would make configure fail if this is the last instruction.
17068   $ac_cs_success || { (exit 1); exit 1; }
17069 fi
17070